/* ==========================================================================
   ExpoVerse Modern Dark Theme - CSS System
   ========================================================================== */

:root {
    /* Color Palette */
    --bg-main: #06060A;
    --bg-alt: #0B0B13;
    --surface-1: rgba(255, 255, 255, 0.03);
    --surface-2: rgba(255, 255, 255, 0.05);
    
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.5);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-error: #f43f5e;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.2);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacings */
    --section-py: 100px;
    --container-px: 5%;
    --max-width: 1280px;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --glass-blur: blur(12px);
    --shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-error { color: var(--text-error); }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-alt);
    position: relative;
}
.bg-alt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.text-center { text-align: center; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.mt-2 { margin-top: 1rem; }

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue-light), var(--accent-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glassmorphism Card System */
.glass-card {
    background: var(--surface-1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    background: var(--surface-2);
    box-shadow: var(--shadow-glow);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface-2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 80px; /* Enhanced based on user feedback */
    /* This leverages a CSS filter to turn the black logo into a bright white one */
    filter: invert(1) brightness(2) contrast(1.2);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
}
.nav-item:hover {
    color: white;
}
.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    transition: var(--transition);
}
.nav-item:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}
.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.video-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* Dark gradient overlay so text remains readable */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(6, 6, 10, 0.7) 0%,
        rgba(6, 6, 10, 0.4) 50%,
        rgba(6, 6, 10, 1) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 5vh;
}

.hero-text-wrapper {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--accent-purple-light);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.wheel {
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   Sections Formatting
   ========================================================================== */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
}
.body-copy {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   About Section
   --------------------------------------------------------- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.abstract-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 30px;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.5;
}
.blue-orb {
    width: 200px; height: 200px;
    background: var(--accent-blue);
    top: -50px; left: -50px;
    animation: float 8s infinite alternate ease-in-out;
}
.purple-orb {
    width: 150px; height: 150px;
    background: var(--accent-purple);
    bottom: -20px; right: -20px;
    animation: float 6s infinite alternate-reverse ease-in-out;
}

.node-network {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.5;
}
.node {
    position: absolute;
    width: 10px; height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px white;
}
.n1 { top: 30%; left: 20%; animation: pulse 2s infinite; }
.n2 { top: 50%; left: 80%; animation: pulse 2s infinite 0.7s; }
.n3 { top: 80%; left: 40%; animation: pulse 2s infinite 1.4s; }

.connection-lines {
    width: 100%; height: 100%;
}

.glass-content {
    position: relative;
    z-index: 10;
}
.glass-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.glass-content p {
    color: var(--text-secondary);
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ---------------------------------------------------------
   Benefits Section
   --------------------------------------------------------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.card-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent-purple);
    filter: blur(20px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.benefit-card:hover .icon-glow {
    opacity: 0.8;
    width: 50px; height: 50px;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* ---------------------------------------------------------
   Expansion Roadmap Section
   --------------------------------------------------------- */
.expansion-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 3rem;
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}
.timeline-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to bottom, var(--accent-blue), var(--accent-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.45rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.active .timeline-marker {
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px var(--accent-blue);
}
.active .marker-core {
    width: 8px; height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.timeline-content {
    padding: 1.5rem;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-purple-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Extracted visual globe */
.globe-container {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.css-globe {
    width: 300px;
    height: 300px;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.globe-ring {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.r1 { transform: rotateY(0deg); border-color: rgba(59, 130, 246, 0.3); }
.r2 { transform: rotateY(60deg); border-color: rgba(139, 92, 246, 0.3); }
.r3 { transform: rotateY(120deg); }
.globe-layer {
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 60px; /* Enhanced size */
    margin-bottom: 1.5rem;
}
.footer-tagline {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-heading {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.footer-col a {
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-col a:hover {
    color: var(--accent-blue-light);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem var(--container-px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.social-links {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 35px; height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* ==========================================================================
   Contact Modal Form System
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: var(--transition);
    padding: 2.5rem;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.modal-close:hover {
    color: white;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}
.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-response {
    display: none;
    margin-bottom: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}
.form-response.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-response.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}


/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-anim.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Initial load animation */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .expansion-layout, .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-links-group {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(6, 6, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        border-left: 1px solid var(--border-color);
    }
    .nav-links.active {
        right: 0;
    }
    .mobile-menu-btn {
        display: flex;
        z-index: 1000;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
    
    .footer-links-group {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
