/* Fullscreen Slider Styles */
.fullscreen-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* White gradient overlay at the top for menu readability */
.fullscreen-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(255, 255, 255, 0.7) 20%, 
        rgba(255, 255, 255, 0.5) 40%, 
        rgba(255, 255, 255, 0.3) 60%, 
        rgba(255, 255, 255, 0.1) 80%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    pointer-events: none;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 0;
    pointer-events: auto;
    visibility: visible;
}

.slide.next {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 1;
}

.slide-content {
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 2;
    /* Readability backdrop */
    display: inline-block;
    padding: 20px 28px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.35) 100%);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    backdrop-filter: saturate(120%) blur(2px);
}

.slide-content h1 {
    color: #ffffff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-content p {
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-content a {
    color: #ffffff !important;
}

.slide-content * {
    color: #ffffff !important;
}

/* Slide Navigation */
.slide-navigation {
    z-index: 100;
}

.nav-slides {
    position: relative;
}

/* Vertical connecting line */
.nav-slides::before {
    content: '';
    position: absolute;
    right: 6px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255,255,255,0.3) 0%, 
        rgba(255,255,255,0.6) 50%, 
        rgba(255,255,255,0.3) 100%);
    z-index: 1;
}

.nav-slide {
    position: relative;
}

.nav-slide.active {
    opacity: 1 !important;
}

.nav-slide.active .nav-dot {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.nav-slide.active span {
    color: #ffffff !important;
}

.nav-slide:hover {
    opacity: 1 !important;
}

.nav-slide:hover .nav-dot {
    background: rgba(255,255,255,0.8) !important;
    border-color: #ffffff !important;
    transform: scale(1.1);
}

.nav-slide:hover span {
    color: #ffffff !important;
}



/* Responsive */
/* Ensure slide texts stay below header/logo on all resolutions */
.fullscreen-slider .row.h-100.align-items-center {
    align-items: center !important;
    padding-top: 0 !important;
}

/* 1280px and below - reduce slide text sizes */
@media (max-width: 1280px) {
    .slide-content h1 {
        font-size: clamp(1.7rem, 2.6vw, 2.1rem) !important;
        line-height: 1.12 !important;
    }
    .slide-content h2 {
        font-size: clamp(0.9rem, 1.6vw, 1.05rem) !important;
    }
    .slide-content p {
        font-size: clamp(0.9rem, 1.8vw, 1.02rem) !important;
    }
}

/* 1024px and below (≈1K) - significantly smaller */
@media (max-width: 1024px) {
    .slide-content h1 {
        font-size: clamp(1.3rem, 2.2vw, 1.8rem) !important;
        line-height: 1.12 !important;
    }
    .slide-content h2 {
        font-size: clamp(0.78rem, 1.35vw, 0.95rem) !important;
    }
    .slide-content p {
        font-size: clamp(0.82rem, 1.6vw, 0.96rem) !important;
    }
}

@media (max-width: 991.98px) {
    .fullscreen-slider .row.h-100.align-items-center {
        align-items: center !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 768px) {
    .slide-navigation {
        position: absolute !important;
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        right: auto !important;
        top: auto !important;
    }
    
    .nav-slides {
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
    }
    
    .nav-slide {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .nav-slide span {
        display: none !important;
    }
    
    .nav-slide .nav-dot {
        width: 12px !important;
        height: 12px !important;
        margin: 0 !important;
    }
    
    .nav-slides::before {
        display: none !important;
    }
    
    .slide-content {
        padding: 14px 18px !important;
        background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 100%) !important;
        border-radius: 12px !important;
    }

    .slide-content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
        line-height: 1.15 !important;
    }
    
    .slide-content h2 {
        font-size: clamp(0.85rem, 2.2vw, 1.1rem) !important;
    }
    
    .slide-content p {
        font-size: clamp(0.9rem, 2.6vw, 1.05rem) !important;
    }
    
    .slide-content .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .slide-navigation {
        bottom: 20px !important;
    }
    
    .nav-slides {
        gap: 12px !important;
    }
    
    .nav-slide .nav-dot {
        width: 10px !important;
        height: 10px !important;
    }
    
    .slide-content {
        padding: 12px 16px !important;
        background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.25) 100%) !important;
        border-radius: 10px !important;
    }

    .slide-content h1 {
        font-size: clamp(1.4rem, 7vw, 1.9rem) !important;
        line-height: 1.15 !important;
    }
    
    .slide-content h2 {
        font-size: 0.8rem !important;
    }
    
    .slide-content p {
        font-size: 0.8rem !important;
    }
}

/* Slide Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions */
.slide.transitioning {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}
