/* ---------- Global Fix ---------- */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling globally */
}

/* ==============================
   SECTION 1: OUR STORY
============================== */
#aboutSec1 {
    margin-top: 50px;
    position: relative;
    overflow: hidden;
}

#aboutSec1 h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #B1C9EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out;
}

#aboutSec1 h6 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #CDCDCF;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out 0.2s;
}

#sec1left {
    max-width: 620px;
}

#sec1right img {
    height: 650px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease-out 0.4s;
}

/* Section 1 Visible State */
#aboutSec1 h1.visible,
#aboutSec1 h6.visible,
#sec1right img.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 992px) {
    #aboutSec1 .container {
        flex-direction: column;
        text-align: center;
    }
    #sec1right img {
        max-width: 90%;
        height: auto;
        margin-top: 30px;
    }
    #aboutSec1 h1 {
        font-size: 55px;
        line-height: 60px;
    }
    #aboutSec1 h6 {
        font-size: 18px;
        line-height: 26px;
    }
}

/* ==============================
   SECTION 2: FUTURE OF DATA
============================== */
#aboutSec2 {
    position: relative;
    padding: 100px 0 0 0;
    background-color: #030311;
    overflow-x: hidden;
}

#aboutSec2 .text-left {
    position: relative;
    z-index: 2;
    max-width: 635px;
    margin-right: auto;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out;
}

#aboutSec2 .image-container {
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease-out 0.2s;
}

#aboutSec2 .image-container img {
    width: 100vw; /* full width */
    height: auto;
    display: block;
    margin-top: -600px; /* image overlap */
    z-index: -2;
}

/* Text styling */
#aboutSec2 .text-left h1 {
    font-size: 55px;
    line-height: 65px;
    font-weight: 700;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #ffffff 0%, #b1c9ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#aboutSec2 .text-left h6 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: #cdcdcf;
    max-width: 600px;
}

/* Visible state triggered by JS */
#aboutSec2 .text-left.visible,
#aboutSec2 .image-container.visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    #aboutSec2 .image-container img {
        margin-top: -150px;
    }
    #aboutSec2 .text-left h1 {
        font-size: 38px;
        line-height: 48px;
        text-align: center;
    }
    #aboutSec2 .text-left h6 {
        font-size: 16px;
        line-height: 26px;
        max-width: 100%;
        text-align: center;
    }
    #aboutSec2 .text-left {
        margin: 0 auto;
    }
}

/* ==============================
   SECTION 3: OUR MISSION
============================== */
#aboutSec3 {
    margin-top: -300px;
    position: relative;
    overflow: hidden;
    z-index: 5; 
}

#aboutSec3 h2 {
    font-family: 'Grift', Arial, sans-serif;
    font-size: 55px;
    font-weight: 600;
    background: linear-gradient(90deg, #FFFFFF 0%, #B1C9EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

#aboutSec3 .missions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#aboutSec3 .mission-box {
    text-align: center;
    padding: 20px;
    border-right: 2px solid #4F4F58;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

/* Staggered animation delays */
#aboutSec3 .mission-box:nth-child(1).visible { transition-delay: 0.1s; }
#aboutSec3 .mission-box:nth-child(2).visible { transition-delay: 0.3s; }
#aboutSec3 .mission-box:nth-child(3).visible { transition-delay: 0.5s; }

#aboutSec3 .mission-box:last-child {
    border-right: none;
}

#aboutSec3 .mission-box img {
    width: 75px;
    height: 75px;
}

#aboutSec3 .mission-box h6 {
    font-weight: bold;
    font-size: 24px;
    color: #E6E6E7;
}

#aboutSec3 .mission-box p {
    margin-top: 20px;
    font-style: Regular;
    font-size: 20px;
    color: #E6E6E7;
}

/* Visible state triggered by JS */
#aboutSec3 h2.visible,
#aboutSec3 .mission-box.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    #aboutSec3 {
        margin-top: 0;
    }
}

/* Responsive */
@media (max-width: 480px) {
    #aboutSec3 {
        margin-top: 70px;
    }
    #aboutSec3 h2 {
        font-size: 55px;
        line-height: 60px;
    }
    #aboutSec3 h6 {
        font-size: 23px;
        line-height: 30px;
    }
    #aboutSec3 .mission-box {
        border: none;
        margin-bottom: 30px;
        flex: 1 1 100%;
    }
    #aboutSec3 .mission-box img {
        max-height: 60px;
    }
    #aboutSec3 .mission-box p {
        font-size: 22px;
        line-height: 30px;
    }
}

/* ==============================
   SECTION 4: IMAGE
============================== */
#aboutSec4 {
    position: relative;
    overflow: visible;
    margin-top: -230px;
}

#aboutSec4Center img {
    width: 100vw;
    height: auto;
    display: block;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

#aboutSec4Center img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   SECTION 5: OUR COMMITMENT
============================== */
#aboutSec5 {
    margin-top: -100px;
    position: relative;
    overflow: hidden;
}

#aboutSec5 h1 {
    font-size: 70px;
    line-height: 70px;
    font-weight: 700;
    background: linear-gradient(90deg, #FFFFFF 0%, #B1C9EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out;
}

#aboutSec5 h6 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 400;
    color: #CDCDCF;
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.6s ease-out 0.2s;
}

#aboutSec5 .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

#sec5right img {
    height: 650px;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.6s ease-out 0.4s;
}

/* When visible */
#sec5left h1.visible,
#sec5left h6.visible,
#sec5right img.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
     #aboutSec5 {
        margin-top: 100px;
    }
    #aboutSec5 .container {
        flex-direction: column;
        text-align: center;
    }
    #sec5right img {
        max-width: 90%;
        height: auto;
        margin: 20px 0 0 0;
    }
}

@media (max-width:480px) {
    #aboutSec5 {
        margin-top: 100px;
    }
    #aboutSec5 h1 {
        font-size: 55px;
        line-height: 60px;
    }
    #aboutSec5 h6 {
        font-size: 16px;
        line-height: 24px;
    }
}
