/* =================================
   PARALLAX SECTIONS - PORTFOLIO
   Modern Duotone Red/Gray Design
   ================================= */

/* =================================
   PARALLAX BASE STYLES
   ================================= */

.parallax-section {
    position: relative;
    height: 400px;
    background-attachment: scroll; /* JS controls parallax for consistency */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Ensure images load */
    background-color: light-gray;
}

/* Duotone Red/Gray Overlay */
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        /* rgba(255, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(255, 0, 0, 0.15) 100% */
    );
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Additional duotone effect */
.parallax-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 0, 0, 0.1) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    z-index: 2;
}

.parallax-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 2rem;
}

.parallax-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, var(--white), #FF0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.parallax-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

/* =================================
   SPECIFIC PARALLAX SECTIONS
   ================================= */

/* Homepage - Design Workspace */
.parallax-home {
    background-image: url('../assets/imgs/handsBanner.png');
    /* background-color: #111 !important; */
    background-size: cover; /* ensure full coverage */
    background-position: center center;
}

/* Homepage mid-section parallax (between About and Projects) */
.parallax-theme2 {
    background-image: url('../assets/imgs/extraUIElements.png');
    background-position: center center;
    background-size: cover;
}

/* Homepage top separator parallax (below hero) */
.parallax-theme1 {
    background-image: url('../assets/imgs/KyleDalDesign-Theme2.png');
    background-position: center center;
    background-size: cover;
}

/* Core AI Solutions - Modern UI Design */
.parallax-ai {
    background-image: url('../assets/imgs/coreAIBanner.png');
    background-color: #222 !important;
}

/* LifeSecure - Clean Interface Design */
.parallax-security {
    background-image: url('../assets/imgs/lsiBanner.png');
    background-color: #111 !important;
}

/* Landr - Creative Design Tools */
.parallax-audio {
    background-image: url('../assets/imgs/landrBanner.png');
    background-color: #000 !important;
}

/* Sandls - Design System Components */
.parallax-design {
    background-image: url('../assets/imgs/sandlBanner.png');
    background-color: #111 !important;
}

/* BDO - Data Dashboard Design */
.parallax-data {
    background-image: url('../Topics/BDO Topic/bdoMockUp.png');
    background-color: #000 !important;
}

/* Scoops - Client Collaboration */
.parallax-client {
    background-image: url('../assets/imgs/scoopsBanner.png');
    background-color: #222 !important;
}

/* AI Future UX - Research & Innovation */
.parallax-future {
    background-image: url('../assets/imgs/aiFutureUXBanner.png');
    background-color: #000 !important;
}

/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
    .parallax-section {
        height: 300px;
        background-attachment: scroll; /* Better mobile performance */
    }
    
    /* Ensure images show on mobile */
    .parallax-section::before {
        mix-blend-mode: overlay;
        opacity: 0.8;
    }

    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .parallax-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .parallax-section {
        height: 250px;
    }
    
    .parallax-content {
        padding: 1rem;
    }
    
    .parallax-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

/* =================================
   ANIMATION ENHANCEMENTS
   ================================= */

@keyframes parallaxFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.parallax-content {
    animation: parallaxFloat 6s ease-in-out infinite;
}

/* Scroll-triggered animations */
.parallax-section.in-view .parallax-content {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease-out;
}

.parallax-section:not(.in-view) .parallax-content {
    opacity: 0;
    transform: translateY(50px);
}