:root {
    --primary-color: var(--brand, #266d00);
    --secondary-color: var(--brand-light, #6ac043);
    --bg-dark: #0a0a0a;
    --text-light: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
}

/* Theme Header Fix */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent !important;
    border: none !important;
}

.nav a {
    color: #fff !important;
}

.nav .active {
    color: var(--primary-color) !important;
}

.nav-cta {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #000 !important;
}

.slide-content,
.navana-nav,
.navana-arrows,
.slide-preview {
    will-change: transform, opacity;
}

.navana-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Prevent horizontal scroll gaps */
    background: var(--bg-dark);
    z-index: 1;
    /* Stay behind the sheet of paper */
}

/* Ensure all sections after hero slide OVER as one unit */
.navana-hero~section,
.navana-hero~div,
.navana-hero~footer,
.director,
#projects,
#about,
#contact {
    position: relative;
    z-index: 10;
    background: #fff;
    /* Ensure solid background for the 'sheet' */
}

/* Specific section fixes to maintain seamless stack */
.director {
    margin-top: 0 !important;
}

.swiper-container {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.swiper-slide-active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 600px;
}

.slide-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(30px);
}

.slide-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.slide-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.slide-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    font-weight: 600;
}

.slide-btn:hover {
    background: var(--secondary-color);
    color: #000;
}

/* Navana-style horizontal progress */
.navana-nav {
    position: absolute;
    left: 40px;
    bottom: 80px;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.nav-line {
    width: 100px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-count {
    color: var(--secondary-color);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    min-width: 80px;
    /* Ensure space for "01 / 03" */
}

/* Slide Preview (Next Slide) */
.slide-preview {
    position: absolute;
    right: 40px;
    /* Always visible */
    bottom: 10%;
    width: 280px;
    height: 380px;
    z-index: 10;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-preview:hover {
    transform: translateY(-10px);
}

.preview-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
    transform: scale(1.1);
    /* Always scaled up as requested */
}

.slide-preview:hover .preview-img {
    transform: scale(1.1);
}

.preview-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: var(--primary-color);
    padding: 5px 12px;
    backdrop-filter: blur(5px);
}

/* Arrows Styling (Extreme Right Side) */
.navana-arrows {
    position: absolute;
    right: 40px;
    bottom: 80px;
    z-index: 100;
    display: flex;
    gap: 15px;
}

.arrow-prev,
.arrow-next {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.arrow-prev:hover,
.arrow-next:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* Responsive Design across all devices */

@media (max-width: 1440px) {
    .slide-title {
        font-size: 4rem;
    }

    .slide-preview {
        width: 250px;
        height: 340px;
    }
}

@media (max-width: 1200px) {
    .slide-content {
        max-width: 60%;
        left: 80px;
    }

    .slide-title {
        font-size: 3.2rem;
    }

    .slide-preview {
        right: 20px;
        width: 220px;
        height: 300px;
        bottom: 12%;
    }

    .navana-arrows {
        right: 20px;
    }
}

@media (max-width: 991px) {
    .slide-content {
        left: 5%;
        right: 5%;
        max-width: 90%;
        top: 45%;
        transform: translateY(-50%);
    }

    .slide-title {
        font-size: 2.8rem;
        margin-bottom: 20px;
    }

    .slide-preview {
        display: none;
        /* Hide on tablet/mobile */
    }

    .navana-nav {
        left: 30px;
        bottom: 40px;
    }

    .navana-arrows {
        right: 30px;
        bottom: 40px;
    }
}

@media (max-width: 768px) {
    .slide-content {
        top: 50%;
    }

    .slide-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .slide-subtitle {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .slide-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .navana-nav {
        left: 20px;
        bottom: 30px;
        gap: 10px;
    }

    .nav-line {
        width: 40px;
    }

    .navana-arrows {
        right: 20px;
        bottom: 30px;
        gap: 10px;
    }

    .arrow-prev,
    .arrow-next {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .slide-content {
        padding-right: 10px;
    }

    .slide-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 15px;
    }

    .slide-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .navana-nav,
    .navana-arrows {
        bottom: 20px;
    }
}