/* ===== Global Styles ===== */
html,
body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.main {
    position: relative;
    overflow: hidden;
    overflow: visible !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 10;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* ===== Landing Page ===== */
.landing-page {
    height: 100vh;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.border-div {
    border-radius: 50%;
    opacity: 0;
    z-index: 15;
    border: 0px solid white;
    transition: all 0.8s ease;
}

.eye-drop-img {
    height: 42vw;
    max-height: 500px;
    min-height: 300px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 2s ease;
}

.logo {
    position: absolute;
    top: 40%;
    font-family: apple-system;
    font-size: 7.5vw;
    text-transform: uppercase;
    font-weight: 400;
    text-align: center;
    color: white;
    opacity: 0;
    z-index: 15;
    transition: all 1s ease;
}

/* ===== Page 2 ===== */
.page2 {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-border-box {
    position: relative;
    width: 90%;
    /* height: 100%; */
    max-width: 900px;
    height: auto;
    min-height: 85vh;
    margin: 0 auto;
    padding: 40px 0;
}

.custom-border-box::before,
.custom-border-box::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 50%;
    box-sizing: border-box;
}

.custom-border-box::before {
    top: 0;
    right: 0;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
}

.custom-border-box::after {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
}

.page2p {
    font-family: costume;
    font-size: 1.35vw;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 20px;
}

.svg-scale-wrapper {
    position: absolute;
    width: 4vw;
    min-width: 30px;
    max-width: 50px;
    z-index: 10;
}

.svg-scale-wrapper:first-child {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.svg-scale-wrapper:last-child {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

/* ===== Page 3 ===== */
.page3 {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.scrolling-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slider-up {
    display: flex;
    align-items: flex-end;
    height: 100vh;
    will-change: transform;
    padding-left: 5vw;
    position: relative;
    z-index: 2;
}

.slider-downside {
    display: flex;
    align-items: flex-start;
    height: 100vh;
    will-change: transform;
    padding-left: 5vw;
    position: absolute;
    top: 0;
    z-index: 1;
}

.blank-div {
    flex-shrink: 0;
    height: 100vh;
}

.middle-container {
    /* max-width: 800px !important; */
    /* margin: 0 auto; */
    text-align: center;
}

.page4-h2 {
    font-size: 3.8vw;
    font-family: apple-system;
    font-weight: 400;
    margin-bottom: 20px;
}

.page4-p {
    font-family: costume !important;
    font-size: 1.5vw !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    margin-bottom: 20px !important;
    font-style: normal !important;
    text-align: center !important;
    width: 80vw;
}


.slider-up img,
.slider-downside img {
    flex-shrink: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-up img:hover,
.slider-downside img:hover {
    transform: scale(1.03);
}

/* slider upside */
.slider-up img:nth-child(2) {
    margin-left: 200px;
}

/* After first blank */
.slider-up img:nth-child(3) {
    margin-left: 600px;
    margin-bottom: 100px;
}

.slider-up img:nth-child(4) {
    margin-left: 180px;
    margin-bottom: 150px;
}

.slider-up img:nth-child(5) {
    margin-left: 220px;
    margin-bottom: 120px;
}

.slider-up img:nth-child(6) {
    margin-left: 220px;
}

.slider-up img:nth-child(7) {
    margin-left: 590px;
    margin-bottom: 130px;
}

.slider-up img:nth-child(8) {
    margin-left: 260px;
    margin-bottom: 150px;
}

/* slider downside */
.slider-downside img:nth-child(2) {
    margin-left: 180px;
}

/* After first blank */
.slider-downside img:nth-child(3) {
    margin-left: 420px;
}

.slider-downside img:nth-child(4) {
    margin-left: 300px;
}

.slider-downside img:nth-child(5) {
    margin-left: 500px;
    margin-top: 120px;
}

/* section text code */
.page {
    height: 100vh;
    position: relative;
    overflow: hidden;
    /* box-sizing: border-box !important; */
}

.text-section {
    height: 100vh;
    position: relative;
    width: 100%;
}

/* slider code */
.inner-slider {
    display: flex;
    align-items: center;
    height: 100%;
    will-change: transform;
    position: relative;
    width: max-content !important;
    /* Or set a specific width */
}

.inner-slider img {
    flex-shrink: 0;
    object-fit: contain;
    transition: transform 0.3s ease;
    width: auto !important;
}

.inner-slider img:hover {
    transform: scale(1.03);
}

.inner-slider img {
    height: 80%;
}

.inner-slider img:first-child {
    height: 100%;
    margin-left: 0px !important;
}

.slider-section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* === Footer style === */
.footer {
    height: 110vh;
    position: relative;
    overflow: hidden;
}

.footer-logo {
    font-family: apple-system;
    font-weight: 400;
    font-size: 4vw;
}

.text-viewer {
    line-height: 1.3;
    font-family: costume;
    font-size: 15px;
    font-weight: 400;
    max-width: 800px !important;
}

.mobile-nav {
    display: none;
}

.mobile-sidebar {
    display: none !important;
}

/* ===== Responsive Breakpoints ===== */
@media (max-width: 1200px) {
    .logo {
        font-size: 6.5vw;
    }

}

@media (max-width: 850px) {

    body {
        height: auto;
        /* overflow-x: hidden; */
        overflow-y: auto;
    }

    /* Landing Page */
    .landing-page {
        flex-direction: column;
        height: 80vh;
    }

    .eye-drop-img {
        height: 60vw;
    }

    .logo {
        font-size: 8vw;
        top: 50%;
        transform: translateY(-50%);
    }

    .footer-logo {
        font-size: 8vw;
    }

    /* Page 2 */
    .custom-border-box {
        width: 95%;
        padding: 30px 0;
    }

    .page2 {
        height: auto;
        min-height: 75vh !important;
    }


    .footer {
        height: auto;
        min-height: 100vh;
    }

    .page2p {
        font-size: 3.5vw !important;
    }

    .page4-p,
    .text-viewer {
        font-size: 3.5vw !important;
    }

    .page4-p {
        width: 95vw;
    }

    .page4-h2 {
        font-size: 9vw !important;
    }

    .page3,
    .slider-section,
    .text-section,
    .page {
        min-height: 100vh !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* .page3 {
        height: auto;
        min-height: 70vh !important;
        overflow: visible !important;

    }

    .page {
        height: auto;
        min-height: 85vh !important;
    }

    .text-section {
        height: auto;
        min-height: 65vh !important;
    }

    .slider-section {
        height: auto;
        min-height: 75vh !important;
    } */

    .page2-svg {
        width: 12vw !important;
    }

    .footer-svg {
        width: 10vw !important;
    }

    .section-svg-top {
        width: 13vw !important;
    }

    .page2-svg-bottom,
    .section-svg-bottom {
        width: 10vw !important;
    }

    .blank-div {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        height: 10vw;
        width: 10vw;
        top: 50px;
        left: -20px;
        z-index: 1000;
        display: block;
        will-change: transform;
    }

    /* Mobile Sidebar */
    .mobile-sidebar {
        position: fixed;
        display: block !important;
        width: 70%;
        max-width: 50vw;
        height: 100vh;
        background: rgba(255, 255, 255, 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 9998;
        will-change: transform !important;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    }

    .nav {
        padding: 50px 50px !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 3px !important;
        width: 100%;
        height: 100%;
    }

    .item {
        text-transform: uppercase !important;
        font-weight: 500 !important;
        font-style: normal !important;
        font-family: apple-system !important;
        letter-spacing: 3px !important;
        font-size: 5vw !important;
        color: rgba(255, 0, 0, 1) !important;
        text-decoration: none !important;
        transform: translateX(-20px) !important;
        will-change: transform, opacity !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    }

}

@media (max-width: 480px) {
    .logo {
        font-size: 10vw;
    }

    .footer-logo {
        font-size: 10vw;
    }

    .footer {
        height: auto;
        min-height: 100vh;
    }

    .inner-slider img {
        height: 90% !important;
        align-self: center !important;
        margin-left: 80px !important;
        width: 80vw !important;
    }

    .inner-slider img:first-child {
        height: 800px !important;
        width: 100vw !important;
        margin-left: 0px !important;
    }

    .page2 {
        height: auto;
        min-height: 60%;
        margin-bottom: 50px;
    }


    /* page3 use kiya tha idr */
    .landing-page {
        height: auto;
        min-height: 80vh !important;
    }

    /* .slider-section {
        height: auto !important;
        min-height: 75vh !important;
    }

    .text-section {
        height: auto !important;
        min-height: 65vh !important;
    } */

    .page2p,
    .page4-p,
    .text-viewer,
    .text-container {
        font-size: 4vw !important;
    }

    .page4-p {
        width: 95vw;
    }

    .page4-h2 {
        font-size: 10vw;
        text-align: center !important;
    }

    .page2-svg,
    .footer-svg {
        width: 12vw !important;
    }

    .section-svg-top {
        width: 18vw !important;
    }

    .page2-svg-bottom,
    .section-svg-bottom {
        width: 10vw !important;
    }

    .blank-div {
        display: none;
    }

    .mobile-nav {
        position: fixed;
        height: 10vw;
        width: 10vw;
        top: 50px;
        left: -20px;
        height: 5vw;
        z-index: 1000;
        display: block;
        will-change: transform;
    }


}
