/* ==================== STYLES INDEX ==================== */

body {
    background: #0b0f14;
}

.fullscreen-background {
    position: fixed;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1.2s ease;
}

.fullscreen-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.video-active .fullscreen-background {
    opacity: 0 !important;
}

.video-fade-out {
    opacity: 0 !important;
}

.video-visible {
    opacity: 1 !important;
}

.video-preload .video-visible {
    opacity: .25 !important;
}

.video-fade-in {
    opacity: 1 !important;
}
.content-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(120% 100% at 50% 0%, rgba(18, 32, 46, .9), rgba(8, 12, 18, .95));
    transition: opacity .8s ease;
}

.video-loading .content-overlay {
    opacity: .15 !important;
}

.video-ready .content-overlay {
    opacity: 0 !important;
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-text-section {
    padding-top: 7vh;
    text-align: center;
    opacity: 0;
    transform: translateY(-15px);
}

.top-text-section h1 {
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,.5);
}

.top-text-section p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 300;
    color: rgba(255,255,255,.9);
    max-width: 700px;
    margin: 0 auto;
}

.bottom-cards-section {
    margin-top: auto;
    padding-bottom: 8vh;
    opacity: 0;
}
.carousel-section {
    max-width: 980px;
    margin: 4vh auto;
    opacity: 0;
    transform: translateY(20px);
}

.carousel-photo {
    max-height: 420px;
    object-fit: cover;
    border-radius: 18px;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    padding: 0.6rem 1rem;
}

.fade-in-carousel { animation: fadeCarousel 1.1s .8s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes fadeCarousel { to { opacity: 1; transform: none; } }

.transparent-card {
    background: transparent;
    border: none;
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.feature-icon {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(12px);
}

.transparent-card h3 {
    color: #fff;
    font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.transparent-card p {
    color: rgba(255,255,255,.85);
    font-size: 0.98rem;
}

.btn-glass {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 50px;
    padding: .7rem 1.8rem;
}

.fade-in-background {
    animation: fadeBg 2.6s cubic-bezier(.2,.7,.2,1) forwards;
}
.fade-in-video { animation: fadeVid .8s .9s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-in-overlay { animation: fadeOv 2.2s .2s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-in-top-text { animation: fadeTop 1.3s .7s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-in-bottom { animation: fadeBot 1.1s .9s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-in-icon { animation: fadeIcon 1s 1.1s cubic-bezier(.2,.7,.2,1) forwards; }
.fade-in-card { animation: fadeCard 1.1s cubic-bezier(.2,.7,.2,1) forwards; }

@keyframes fadeBg { to { opacity: 1; transform: scale(1); } }
@keyframes fadeVid { from { opacity: .25; } to { opacity: 1; } }
@keyframes fadeOv { to { opacity: .35; } }
@keyframes fadeTop { to { opacity: 1; transform: none; } }
@keyframes fadeBot { to { opacity: 1; } }
@keyframes fadeIcon { to { opacity: 1; transform: none; } }
@keyframes fadeCard { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .fullscreen-background,
    .content-overlay,
    .top-text-section,
    .bottom-cards-section,
    .carousel-section,
    .transparent-card,
    .feature-icon {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

@supports (-webkit-touch-callout: none) {
    html, body {
        min-height: 100%;
    }
    .fullscreen-background {
        position: fixed;
        height: 100dvh;
        min-height: 100dvh;
        transform: translateZ(0);
    }
    .main-content {
        min-height: 100dvh;
    }
}