/* ========================================
   DISTRIBUTION DIVISION PAGE STYLES
   Custom styles for Distribution Division page
======================================== */

/* ========================================
   MAIN LAYOUT
======================================== */
.distribution-main {
    padding-top: 70px; /* Header height offset */
    min-height: 100vh;
    margin-top: 70px;
}

/* ========================================
   HERO SECTION
======================================== */
.section-hero {
    background:var(--color-bg-base);
    padding: var(--spacing-sm) 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: 116px;
    line-height: 126px;
    letter-spacing: -4.7%;
    color: var(--color-hero);
    text-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

/* Tablet Styles (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .hero-title {
        font-size: 82px;
        line-height: 88px;
        min-height: 100px;
    }
}
/* Mobile Styles (320px - 767px) */
@media screen and (max-width: 767px) {
    .distribution-main {
        padding-top: 20px;
    }

    .hero-title {
        font-size: 64px;
        line-height: 40px;
        min-height: 100px;
    }
}
/* Extra Small Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 38px;
        line-height: 40px;
        min-height: 50px;
    }
}

/* ========================================
   VIDEO BANNER SECTION
======================================== */

.video-banner-section {
    position: relative;
    padding: var(--spacing-sm) 0;
    background: var(--color-bg-base);
    width: 100%;
}

.video-container {
    position: relative;
    width: 1200px;
    height: 450px;
    max-width: 90vw;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    /*box-shadow: var(--shadow-medium);*/
    /*background: #cccccc; /* Temporary visible background */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
}

.video-text {
    font-family: var(--font-family-primary);
    font-size: 65px;
    line-height: 77px;
    letter-spacing: -3.705px;
    font-weight: var(--font-weight-bold);
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Video Banner Section - Tablet Responsive */
@media screen and (max-width: 1023px) {
    .video-container {
        width: 90vw;
        height: 400px;
    }
    
    .video-text {
        font-size: 48px;
        line-height: 56px;
        letter-spacing: -2.736px;
    }
}

/* Video Banner Section - Mobile Responsive */
@media screen and (max-width: 767px) {
    .video-container {
        width: 90vw;
        height: 300px;
    }
    
    .video-text {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -1.824px;
    }
}
/* ========================================
   FEATURES SECTION WITH VIDEO BACKGROUND
======================================== 
.features-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}


.features-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


.features-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}


.features-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}


.features-title h2 {
    font-size: 42px;
    line-height: 50px;
    color: white; /* Changed from var(--color-primary) 
    margin: 0;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.9996px;
    margin-bottom: var(--spacing-xxl);
    text-align: left;
}


.features-title h2 .char {
    opacity: 0.2;
    display: inline-block; /* Ensure proper rendering 
    font: inherit; /* Inherit font properties from parent
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: white; /* Changed for visibility 
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icons white 
}*/
/* ========================================
   FEATURES SECTION WITH VIDEO BACKGROUND
======================================== */
.features-section {
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Video Background */
.features-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Overlay for text readability */
.features-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
   /* background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );*/
    z-index: 2;
}

/* Content Wrapper */
.features-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

/* Update text colors for video background */
.features-title h2 {
    font-size: 42px;
    line-height: 50px;
    color: white; /* Changed from var(--color-primary) */
    margin: 0 0 var(--spacing-xxl) 0;
    font-weight: var(--font-weight-medium);
    letter-spacing: -0.9996px;
    text-align: left;
}

/* Base styles for animated elements */
.features-title h2 .char,
.features-title h2 .word {
    opacity: 0.2;
    display: inline-block;
    font: inherit;
}

/* Word elements need proper spacing */
.features-title h2 .word {
    margin-right: 0.3em;
}

.features-title h2 .word:last-child {
    margin-right: 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xxl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
    position: relative;
    padding-bottom: var(--spacing-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Makes icons white */
}

.feature-content {
    width: 100%;
}

.feature-content h5 {
    font-size: 24px;
    line-height: 32px;
    color: white;
    margin: 0 0 var(--spacing-md) 0;
    font-weight: var(--font-weight-regular);
}

/* Feature Lines - Enhanced for video background */
.feature-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    position: relative;
}

.feature-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    transition: width 0.6s ease;
}

.feature-item.animate .feature-line::after {
    width: 60%;
}

/* Responsive Updates */
@media screen and (max-width: 1023px) {
    .features-section {
        min-height: 80vh;
    }
    
    .features-grid {   
        gap: var(--spacing-xl);
        grid-template-columns: 1fr;
    }
    
    .features-title h2 {
        font-size: 36px;
        line-height: 44px;
    }
    
    .features-title h2 .char,
    .features-title h2 .word {
        font-size: 36px !important;
        line-height: 44px !important;
    }
    
    /* Override GSAP inline styles for tablet */
    .features-title h2 .char[style],
    .features-title h2 .word[style] {
        font-size: 36px !important;
        line-height: 44px !important;
    }
}

@media screen and (max-width: 767px) {
    .features-section {
        padding: var(--spacing-xl) 0;
        min-height: 70vh;
    }
    
    .features-grid {   
        gap: var(--spacing-lg);
    }
    
    .features-title h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .features-title h2 .char,
    .features-title h2 .word {
        font-size: 28px !important;
        line-height: 36px !important;
        margin-right: 0.25em; /* Tighter spacing on mobile */
    }
    
    /* Override GSAP inline styles for mobile */
    .features-title h2 .char[style],
    .features-title h2 .word[style] {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    
    .feature-content h5 {
        font-size: 18px;
        line-height: 22px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }

    .feature-icon img {
        width: 28px;
        height: 28px;
    }
}




/* ========================================
   ABOUT OZONE SYSTEMS SECTION
======================================== */
.about-section {
    padding: var(--spacing-xxl) 0; /* Increased padding for better scroll room */
    background: var(--color-bg-base);
    overflow: hidden; /* Important for animations that go outside bounds */
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--grid-margin);
}

.about-text {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-regular);
    font-size: 38px;
    line-height: 52px;
    letter-spacing: -1.5%;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
    text-align: left;
    display: block;
    word-spacing: 2px;
}

/* Initially hide words for GSAP animation to prevent FOUC */
.about-text .word {
    visibility: hidden;
}

.about-text .highlight {
    color: var(--color-primary);
    font-weight: var(--font-weight-regular);
    display: inline;
}

/* NEW STYLES FOR IMAGE FLASHING */
.image-flash-wrapper {
    position: relative; /* Container for absolutely positioned images */
    width: 80px;
    height: 50px;
    border-radius: 25px;
    vertical-align: middle;
    display: inline-block;
    margin: 0 6px;
}

.flash-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    opacity: 0; /* All images are hidden by default */
}


/* About Section - Tablet Responsive */
@media screen and (max-width: 1023px) {
    .about-content {
        max-width: 1000px;
    }
    
    .about-text {
        font-size: 32px;
        line-height: 44px;
        text-align: left;
    }
    
    .image-flash-wrapper {
        width: 60px;
        height: 45px;
        border-radius: 20px;
        margin: 0 4px;
    }
}

/* About Section - Mobile Responsive */
@media screen and (max-width: 767px) {
    .about-section {
        padding: var(--spacing-sm) 0;
    }   
    .about-content {
        max-width: 100%;
        padding: 0px var(--grid-margin-mobile);
    }
    
    .about-text {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: var(--spacing-lg);
        text-align: justify;
    }
    
    .image-flash-wrapper {
        width: 40px;
        height: 30px;
        border-radius: 15px;
        margin: 0 3px;
    }
}
/* ========================================
   HERO SECTION OVERRIDES
======================================== */

/* Hero Section - Mobile Responsive */
@media screen and (max-width: 767px) {
    .hero-title {
        font-size: 42px !important;
        line-height: 46px !important;
    }
}

