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

/* ---------- Titles ---------- */
#OctupusAISec1 h1,
#OctupusAISec2 h1,
#OctupusAISec3 h1,
#OctupusAISec4 h1,
#OctupusAISec7 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;
}

#OctupusAISec1 h6,
#OctupusAISec2 h6,
#OctupusAISec3 h6,
#OctupusAISec4 h6,
#OctupusAISec7 h6 {
    font-size: 28px;
    line-height: 36px;
    font-weight: 300;
    background: linear-gradient(90deg, #FFFFFF 0%, #B1C9EF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Section 1: Brain ---------- */
#OctupusAISec1 .brain-container {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    margin-top: 50px;
}

#OctupusAISec1 .brain-container img {
    max-width: 90%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    opacity: 0;

}

/* ---------- Section 2 ---------- */
#OctupusAISecAI {
    background-image: url(/images/ic_BrainBranches.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 400px;
    width: 100%;
    max-width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

/* ---------- Section 3 ---------- */
#OctupusAISec3 {
    padding: 100px;
    height: 170vh;
    background-color: #030311;
    background-image: url(/images/OctoupusAILap.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right;
}

#OctupusAISec3 .text-left {
    position: relative;
    z-index: 2;
    max-width: 635px;
    margin-right: auto;
}

#OctupusAISec3 .image-container {
    position: relative;
    z-index: 1;
}

#OctupusAISec3 .image-container img {
    position: relative;
    margin-top: -350px;
    z-index: -2;
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    #OctupusAISec3 .image-container img {
        margin-top: -150px;
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}

/* ---------- Section 4 ---------- */
.OctupusAI1 {
    height: 550px;
}

#OctupusAISec4 h2 {
    font-size: 45px;
    font-weight: 600;
    line-height: 70px;
    color: rgba(230, 230, 231, 1);
}

/* ---------- Section 7: Offline AI Chat ---------- */
#OctupusAISec7 {
    overflow-x: hidden;
}

#OctupusAISec7 img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

#OctupusAISec7 .d-flex {
    justify-content: center;
    overflow: hidden;
    /* prevent overflow if image is too large */
}

/* ---------- Animations ---------- */
.fade-in-on-scroll,
.slide-in-left,
.slide-in-right,
.text-animate,
#OctupusAISec1 .brain-container img,
#OctupusAISecAI {
    opacity: 0;
    transition: all 1.2s ease;
}

.fade-in-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

.text-animate {
    transform: translateY(60px);
}

.text-animate.show {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    transform: translateX(-80px);
}

.slide-in-left.show {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(80px);
}

.slide-in-right.show {
    opacity: 1;
    transform: translateX(0);
}

#OctupusAISec1 .brain-container img.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#OctupusAISecAI.show {
    transform: translateY(0);
    opacity: 1;
}

/* ---------- Section 4 Responsive: Move images under h2 on small screens ---------- */
@media (max-width: 768px) {
    #OctupusAISec4 .step {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }

    #OctupusAISec4 .step img.OctupusAI1 {
        order: 2;
        margin-top: 20px;
        height: 400px;
    }

    #OctupusAISec4 .step .text-animate {
        order: 1;
    }
}

/* ---------- Section 3 Responsive ---------- */
@media (max-width: 768px) {

    #OctupusAISec3 .text-left,
    #OctupusAISec3 .image-container {
        max-width: 100%;
        text-align: center;
        margin: auto;
    }

    #OctupusAISec3 .image-container {
        margin-top: 20px;
    }
}

/* ---------- Font Size Responsiveness ---------- */
@media (max-width: 1024px) {

    #OctupusAISec1 h1,
    #OctupusAISec2 h1,
    #OctupusAISec3 h1,
    #OctupusAISec4 h1,
    #OctupusAISec7 h1 {
        font-size: 55px;
        line-height: 60px;
    }

    #OctupusAISec1 h6,
    #OctupusAISec2 h6,
    #OctupusAISec3 h6,
    #OctupusAISec4 h6,
    #OctupusAISec7 h6 {
        font-size: 24px;
        line-height: 32px;
    }
}

@media (max-width: 480px) {

    .fixmobile {
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }
    #OctupusAISec1 h1,
    #OctupusAISec2 h1,
    #OctupusAISec3 h1,
    #OctupusAISec4 h1,
    #OctupusAISec7 h1 {
        font-size: 38px;
        line-height: 45px;
    }

    #OctupusAISec1 h6,
    #OctupusAISec2 h6,
    #OctupusAISec3 h6,
    #OctupusAISec4 h6,
    #OctupusAISec7 h6 {
        font-size: 18px;
        line-height: 24px;
    }

    #OctupusAISec3 {
        background: none;
        padding: 0PX;
        height: auto;
    }
    #OctupusAISec4 h2 {
    font-size: 35px; 
    line-height: 45px; 
}
}

/* ---------- Brain Animation ---------- */