﻿body {
    background-color: #0F121C;
}

/* The video's parent container, provides the initial background image */
.relative.flex-1 {
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
}

.video-background {
    position: fixed; /* Changed to fixed for mobile-first. Will be fixed to the viewport. */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

    .video-background.video-is-playing {
        opacity: 0.3;
    }

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.5);
    border-radius: 4px;
}

    .custom-scrollbar::-webkit-scrollbar-thumb:hover {
        background: rgba(100, 116, 139, 0.7);
    }

.custom-scrollbar {
    -webkit-overflow-scrolling: touch; /* Added for smooth scrolling on iOS */
}

/* Landing Page View */
.landing-view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.landing-content-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 120px; /* Make space for glass dock */
}

.landing-view.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}


/* --- Landing Page Marketing Sections --- */
.hero-section {
    position: relative;
    z-index: 10; /* Ensure text is above video/particles */
}

.animation-fadeInDown {
    animation: fadeInDown 1s ease-out backwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animation-fadeInUp {
    animation: fadeInUp 1s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button-primary {
    background: linear-gradient(to right, #0ea5e9, #6366f1);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

    .cta-button-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    }

.cta-button-secondary {
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .cta-button-secondary:hover {
        background-color: rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.8);
        color: #f0f9ff;
    }

.value-card {
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .value-card:hover {
        transform: translateY(-5px);
        background-color: rgba(30, 41, 59, 0.7);
        border-color: rgba(255, 255, 255, 0.2);
    }

.feature-image {
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Venues Section --- */
.venue-card {
    background-color: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem; /* 16px */
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .venue-card:hover {
        transform: translateY(-8px);
        border-color: rgba(56, 189, 248, 0.5);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

.venue-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.venue-card-content {
    padding: 1.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows the button to be pushed to the bottom */
}

.venue-preview-button {
    display: block;
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #e2e8f0; /* text-slate-200 */
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

    .venue-preview-button:hover {
        background-color: rgba(56, 189, 248, 0.25);
        border-color: rgba(56, 189, 248, 0.6);
        color: #fff;
    }


.venue-status-tag {
    position: absolute;
    top: 0.75rem; /* 12px */
    right: 0.75rem; /* 12px */
    background-color: rgba(22, 163, 74, 0.2); /* bg-green-600/20 */
    backdrop-filter: blur(8px);
    border: 1px solid rgba(34, 197, 94, 0.4); /* border-green-500/40 */
    color: #bbf7d0; /* text-green-200 */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem; /* 12px */
    font-weight: 600;
}


.how-it-works-step .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: linear-gradient(to right, #0ea5e9, #6366f1);
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.audience-tag {
    background-color: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.875rem;
}


/* --- NEW Glass Dock Navigation --- */
.glass-dock-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 30;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.dock-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: #cbd5e1;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Prevents jumping on hover */
}

    .dock-item:hover {
        color: white;
        background-color: rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.5);
    }

    .dock-item > i {
        font-size: 1.125rem;
        width: 20px;
        text-align: center;
    }

/* Home Button */
.home-button {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 30;
    width: 50px;
    height: 50px;
    background-color: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

    .home-button.visible {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .home-button:hover {
        background-color: rgba(56, 189, 248, 0.2);
        border-color: rgba(56, 189, 248, 0.8);
        color: #f0f9ff;
        transform: scale(1.1);
    }

/* Content visibility handled by JS, but transition is here */
#page-content-wrapper {
    transition: opacity 0.5s ease-in-out;
}

    #page-content-wrapper.content-fading-out {
        opacity: 0;
    }

/* Timeline specific styles */
.grid-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-out;
}

    .grid-collapsible.expanded {
        grid-template-rows: 1fr;
    }

    .grid-collapsible > div {
        overflow: hidden;
        opacity: 0;
        transition: opacity 0.3s ease-out 0.1s, padding-top 0.4s ease-out;
        padding-top: 0;
    }

    .grid-collapsible.expanded > div {
        opacity: 1;
        padding-top: 1.25rem;
    }

.timeline-axis::before, .timeline-axis::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 2px;
    background-color: #475569;
    z-index: 10;
}

.timeline-axis::before {
    top: -1px;
}

.timeline-axis::after {
    bottom: -1px;
}

.timeline-scale-ticks {
    background-image: repeating-linear-gradient( to bottom, transparent, transparent 24px, rgba(255, 255, 255, 0.4) 25px );
    background-size: 100% 25px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 1rem;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background-color: #94a3b8;
    border-radius: 9999px;
    z-index: 20;
}

@media (min-width: 1024px) {
    .timeline-item::after {
        left: 50%;
    }

    .card-header {
        position: relative;
    }

    .timeline-item .card-header::before {
        content: "";
        position: absolute;
        top: 22px;
        width: calc(2rem - 5px);
        height: 1px;
        background-color: #475569;
    }

    .timeline-item:not(.lg\:flex-row-reverse) .card-header::before {
        right: 100%;
    }

    .timeline-item.lg\:flex-row-reverse .card-header::before {
        left: 100%;
    }
}

@keyframes draw-line {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.timeline-animating .timeline-axis {
    transform-origin: top;
    animation: draw-line 1.2s 0.1s ease-out forwards;
}

#timeline-container > .timeline-item, #timeline-container > .year-label {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

    #timeline-container > .timeline-item.is-visible, #timeline-container > .year-label.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

/*
============================================
RESPONSIVE AND MOBILE FIXES
============================================
*/

/* Default styles for mobile (screens up to 767px) */
body {
    padding: 0;
}

#app-shell {
    height: auto;
    min-height: 100vh; /* Use min-height to ensure it fills screen */
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    overflow: visible; /* Prevent content from being hidden */
}

/* Let content flow naturally on mobile */
.landing-view, #scroll-wrapper {
    position: static;
    height: auto;
}

/* Let the body handle all scrolling */
.landing-content-container, #scroll-wrapper {
    overflow-y: visible;
    height: auto;
}

.landing-content-container {
    padding-bottom: 150px; /* More space for fixed dock on mobile */
}

.glass-dock-container {
    position: fixed; /* Keep it at the bottom of the viewport on mobile */
}

#page-content-wrapper {
    padding-top: 4rem;
    padding-bottom: 8rem;
}


/* Styles for desktop (screens 768px and up) */
@media (min-width: 768px) {
    .video-background {
        position: absolute; /* Restore absolute positioning for desktop */
    }

    body {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 1rem; /* This was the p-4 class */
    }

    #app-shell {
        height: 90vh; /* Restore the fixed viewport height */
        min-height: auto;
        max-width: 72rem;
        border-radius: 1rem; /* rounded-2xl */
        border: 1px solid rgba(255, 255, 255, 0.1);
        overflow: hidden; /* Restore overflow hidden for app-shell */
    }

    /* Restore app-like layout for desktop */
    .landing-view, #scroll-wrapper {
        position: absolute;
    }

    .landing-content-container,
    #scroll-wrapper {
        overflow-y: auto; /* Restore internal scrolling */
        height: 100%;
    }

    .landing-content-container {
        padding-bottom: 120px; /* Restore original padding */
    }

    .glass-dock-container {
        position: absolute; /* Attach to the bottom of the app-shell */
    }

    #page-content-wrapper {
        padding-top: 4rem;
        padding-bottom: 4rem; /* Reset for desktop */
    }
}
