:root {
    --bg: #0A0F1E;
    --primary: #00AAFF;
    --accent: #FF6B35;
    --text: #FFFFFF;
    --text-muted: #A0ABC0;
    --panel-bg: rgba(10, 15, 30, 0.6);
    --panel-border: rgba(0, 170, 255, 0.2);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

button, a, .track-card, .session-card, .slider-btn, .close-btn {
    touch-action: manipulation;
}

/* Animated Canvas Circuit Background */
#circuit-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background-color: #0A0F1E;
}

/* Ensure all content sits above the canvas background */
.hero-viewport, .marquee-wrapper, .resources-section, .about-section, footer {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    position: relative;
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.auth-container {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    z-index: 10;
}

.logo-container img {
    width: 100%;
    max-width: 300px;
    max-height: 100px;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: drop-shadow(0 0 25px rgba(0, 170, 255, 0.4));
    animation: float 6s ease-in-out infinite;
}

header.sessions-active {
    padding: 1rem;
    gap: 0;
}

header.sessions-active .logo-container img {
    max-width: 200px;
    max-height: 80px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.header-text h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.live-animation-container {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.live-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.6rem;
    color: transparent;
    text-transform: uppercase;
    display: flex;
}

.live-text .letter {
    animation: trailGlow 2.5s infinite;
    text-shadow: 0 0 0 transparent;
    color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.live-text .letter:nth-child(1) { animation-delay: 0.1s; }
.live-text .letter:nth-child(2) { animation-delay: 0.2s; }
.live-text .letter:nth-child(3) { animation-delay: 0.3s; }
.live-text .letter:nth-child(4) { animation-delay: 0.4s; }
.live-text .letter:nth-child(5) { animation-delay: 0.5s; }
.live-text .letter:nth-child(6) { animation-delay: 0.6s; }
.live-text .letter:nth-child(7) { animation-delay: 0.7s; }
.live-text .letter:nth-child(8) { animation-delay: 0.8s; }
.live-text .letter:nth-child(9) { animation-delay: 0.9s; }
.live-text .letter:nth-child(10) { animation-delay: 1.0s; }
.live-text .letter:nth-child(11) { animation-delay: 1.1s; }
.live-text .letter:nth-child(12) { animation-delay: 1.2s; }

@keyframes trailGlow {
    0%, 100% {
        color: rgba(255, 255, 255, 0.1);
        text-shadow: 0 0 0 transparent;
        transform: translateY(0) scale(1);
    }
    15%, 25% {
        color: #fff;
        text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent), 0 0 30px #fff;
        transform: translateY(-3px) scale(1.1);
    }
}

.hero-about-desktop {
    display: none;
    max-width: 900px;
    margin: 1rem auto 0;
}

.about-glass-card {
    background: rgba(10, 15, 30, 0.5);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 16px;
    padding: 0.8rem 1.5rem 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 170, 255, 0.05);
    transition: all 0.4s ease;
    margin: 0;
}

.about-glass-title {
    margin: 0 auto;
    padding: 0 15px;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 170, 255, 0.5);
}

.about-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.about-glass-card:hover {
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.15), inset 0 0 20px rgba(0, 170, 255, 0.1);
    transform: translateY(-2px);
}

.about-icon i {
    font-size: 2rem;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 170, 255, 0.5));
}

.about-glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: left;
    margin: 0;
}

.about-glass-card strong {
    color: #ffffff;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .hero-about-desktop {
        display: block;
        animation: fadeIn 1s ease;
    }
    .about-section {
        display: none !important;
    }
}

/* Hero Viewport (guarantees everything fits on screen initially) */
.hero-viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
}

/* Tracks Section */
.tracks-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 95%;
    max-width: 1400px;
    margin: 0.5rem auto;
    gap: 1rem;
    animation: fadeIn 0.5s ease;
}

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

.tracks-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
    text-transform: uppercase;
}

.tracks-container {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.track-card {
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex: 1;
    min-width: 250px;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

.track-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.2), inset 0 0 20px rgba(0, 170, 255, 0.05);
    transform: translateY(-5px);
    background: rgba(10, 15, 30, 0.9);
}

.track-icon {
    font-size: 3.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px rgba(0, 170, 255, 0.5));
    transition: transform 0.3s ease;
}

.track-card:hover .track-icon {
    transform: scale(1.1);
}

.track-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text);
    text-align: center;
    letter-spacing: 1px;
}

.locked-track {
    opacity: 0.6;
    cursor: not-allowed;
}

.locked-track:hover {
    border-color: var(--panel-border);
    box-shadow: none;
    transform: none;
    background: rgba(10, 15, 30, 0.7);
}

.locked-track:hover .track-icon {
    transform: none;
}

.locked-track .track-icon {
    color: var(--text-muted);
    filter: none;
}

.track-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.back-to-tracks-btn {
    position: absolute;
    top: -45px;
    left: 2.5%;
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-to-tracks-btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

/* Sessions Accordion */
.sessions-container {
    display: flex;
    flex-direction: row;
    flex: 1; /* Allows it to grow/shrink based on available viewport height */
    min-height: 350px;
    width: 95%;
    max-width: 1300px;
    margin: 0.5rem auto;
    gap: 15px;
}

.session-card {
    flex: 1;
    background: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(8px);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

.session-card:hover, .session-card.active {
    flex: 3; /* Expanded state */
    border-left: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.2), inset 0 0 20px rgba(0, 170, 255, 0.05);
    background: rgba(10, 15, 30, 0.9);
}

.session-card.locked:hover, .session-card.locked.active {
    border-left: 4px solid var(--text-muted);
    box-shadow: 0 0 30px rgba(160, 171, 192, 0.1);
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Collapsed View */
.collapsed-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem 0;
    transition: opacity 0.3s ease;
}

.session-card:hover .collapsed-view,
.session-card.active .collapsed-view {
    opacity: 0;
    pointer-events: none;
}

.session-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.7;
}
.locked .session-number {
    color: var(--text-muted);
}

.speaker-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.speaker-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.preview-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.locked-preview .lock-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Expanded View */
.expanded-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    transition-delay: 0s;
    overflow-y: scroll;
    padding: 2rem 2.5rem 1.5rem 2.5rem;
}

.session-card:hover .expanded-view,
.session-card.active .expanded-view {
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0.2s; /* Allows flex to expand first */
}

.expanded-content {
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.expanded-content > * {
    flex-shrink: 0;
}

/* Custom Scrollbar for expanded view */
.expanded-view::-webkit-scrollbar {
    width: 6px;
}
.expanded-view::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.expanded-view::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.session-badge {
    align-self: flex-start;
    background: rgba(0, 170, 255, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    border: 1px solid rgba(0, 170, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expanded-content h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text);
    line-height: 1.3;
}

.speaker-info {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.speaker-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.speaker-info h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-family: var(--font-heading);
}

.speaker-info .designation {
    font-size: 1rem;
    color: var(--text-muted);
}

.session-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 2px solid var(--primary);
}

.session-details p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.icon {
    font-style: normal;
    font-size: 1.2rem;
}

.locked-content {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.lock-icon-large {
    font-size: 5rem;
    opacity: 0.2;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.1));
}

/* Buttons */
.cta-btn {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 14px 28px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.cta-btn.primary-glow {
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.cta-btn:hover {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 0 25px var(--primary);
    transform: translateY(-2px);
}

.cta-btn.super-glow {
    background: rgba(0, 170, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.6), inset 0 0 10px rgba(0, 170, 255, 0.3);
    border: 2px solid var(--primary);
    font-weight: 700;
}
.cta-btn.super-glow:hover {
    background: var(--primary);
    box-shadow: 0 0 30px var(--primary), inset 0 0 15px rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Infinite Marquee */
.marquee-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(10, 15, 30, 0.95);
    border-top: 1px solid var(--primary);
    border-bottom: 1px solid var(--primary);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.1);
}

.marquee-content {
    display: inline-flex;
    align-items: center;
    animation: marquee-scroll 25s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.m-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 1rem;
    text-transform: uppercase;
}

.m-text.blue { color: var(--primary); }
.m-text.white { color: #ffffff; }
.m-text.orange { color: var(--accent); }
.m-text.muted { color: var(--text-muted); }

.m-separator {
    color: var(--primary);
    opacity: 0.5;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 0 1.5rem;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-100% / 3)); }
}

/* Resources Section */
.resources-section {
    width: 90%;
    max-width: 900px;
    margin: 4rem auto 2rem;
    text-align: center;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 170, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.resources-section h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.resources-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.resources-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.resources-grid::-webkit-scrollbar {
    display: none;
}

.resources-grid > div {
    min-width: 280px;
    flex: 0 0 auto;
}

.slider-btn {
    background: rgba(0, 170, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

.resources-grid.empty-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 150px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px dashed rgba(0, 170, 255, 0.2);
}

.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
}

.empty-message i {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.empty-message p {
    font-size: 1.1rem;
    font-family: var(--font-body);
}

/* Simulation Tools Section */
.simulation-tools-section {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto 2rem;
    text-align: center;
}

.simulation-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.sim-tool-card {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 170, 255, 0.15);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.sim-tool-card:hover {
    border-color: rgba(0, 170, 255, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 170, 255, 0.2);
}

.sim-tool-card h3 {
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.4rem;
}

.sim-tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.sim-tool-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 170, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    width: 100%;
}

.sim-tool-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 170, 255, 0.5);
}

/* About Section */
.about-section {
    width: 90%;
    max-width: 900px;
    margin: 6rem auto;
    text-align: center;
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 16px;
    border: 1px solid rgba(0, 170, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.about-section h2 {
    font-family: var(--font-heading);
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    letter-spacing: 1px;
}

.about-section p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.9;
}

/* Footer */
footer {
    background: rgba(5, 8, 17, 0.95);
    border-top: 1px solid rgba(0, 170, 255, 0.1);
    padding: 5rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.contact-compact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.social-icon.whatsapp {
    width: auto;
    padding: 0 16px;
    gap: 8px;
    background: #00d26a; /* WhatsApp brand color */
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font-body);
}

.social-icon.whatsapp:hover {
    background: #00b359;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 106, 0.3);
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.brand-logo-box {
    background: #ffffff;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    flex-shrink: 0;
}

.brand-logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-titles {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.brand-titles h3 {
    font-size: 1.15rem;
    line-height: 1.2;
    margin-bottom: 4px !important;
    color: #ffffff !important;
    letter-spacing: 0 !important;
}

.brand-titles .kerala-section {
    color: #00A859;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-body);
}

.brand-description {
    color: #a0abc0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    max-width: 400px;
    text-align: left;
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('assets/bg1.png') no-repeat center center;
    background-size: cover; /* Adjust to 100% 100% if you want it to stretch exactly to corners */
    background-color: rgba(5, 8, 17, 0.95);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 5px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
    .close-btn {
        top: -35px;
        right: 10px;
        font-size: 35px;
    }
}

.close-btn:hover {
    color: var(--primary);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 170, 255, 0.3);
    border: 1px solid rgba(0, 170, 255, 0.3);
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive */
@media (max-width: 992px) {
    .sessions-container {
        flex-direction: column;
        height: 1000px; /* Provide enough height for vertical stack */
        max-height: none; /* override desktop 60vh limit */
    }
    
    .session-card {
        flex: 1;
        transition: all 0.4s ease;
    }
    
    .session-card:hover, .session-card.active {
        flex: 4; /* Grows vertically */
        border-left: 1px solid var(--panel-border);
        border-top: 4px solid var(--primary);
    }
    
    .session-card.locked:hover, .session-card.locked.active {
        border-left: 1px solid var(--panel-border);
        border-top: 4px solid var(--text-muted);
        flex: 3;
    }

    .collapsed-view {
        flex-direction: row;
        padding: 0 2rem;
        justify-content: flex-start;
        gap: 2rem;
    }

    .preview-name {
        writing-mode: horizontal-tb;
        transform: none;
    }
    
    .speaker-preview {
        flex-direction: row;
    }
    
    .header-text h1 {
        font-size: 2.0rem;
    }
    
    .expanded-view {
        padding: 2rem;
    }
    
    .expanded-content {
        min-width: auto;
    }
}

/* Mobile Session Slider Defaults */
.sessions-slider-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex: 1;
}
.mobile-slider-btn {
    display: none;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(4px);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}
.mobile-slider-btn.prev-btn { left: 5px; }
.mobile-slider-btn.next-btn { right: 5px; }
.mobile-slider-btn:hover { background: var(--primary); color: #fff; box-shadow: 0 0 15px rgba(0, 170, 255, 0.5); }

@media (max-width: 768px) {
    .mobile-slider-btn {
        display: flex;
    }
    
    .sessions-container {
        flex-direction: row;
        height: 700px;
        max-height: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 1rem 0;
        scroll-behavior: smooth;
        width: 100%;
        margin: 0;
    }
    
    .sessions-container::-webkit-scrollbar {
        display: none;
    }
    
    .session-card {
        flex: 0 0 calc(100% - 30px) !important;
        min-width: calc(100% - 30px);
        margin: 0 15px;
        scroll-snap-align: center;
        border-left: 1px solid var(--panel-border) !important;
        border-top: 4px solid var(--primary) !important;
    }
    
    .session-card:hover, .session-card.active {
        flex: 0 0 calc(100% - 30px) !important;
    }

    .collapsed-view {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .expanded-view {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: absolute;
        padding: 1.5rem 1rem 2.5rem;
        height: 100%;
        overflow-y: auto;
    }
}

@media (max-width: 600px) {
    .header-text h1 {
        font-size: 1.6rem;
    }
    .tagline {
        font-size: 0.85rem;
    }
    .live-text {
        font-size: 1.1rem;
        letter-spacing: 0.3rem;
    }
    .tracks-title {
        font-size: 1.5rem;
    }
    .track-card {
        padding: 1.5rem 1rem;
        min-width: 100%;
        gap: 0.8rem;
    }
    .track-icon {
        font-size: 2.8rem;
    }
    .track-card h3 {
        font-size: 1.2rem;
    }
    .logo-container img {
        max-height: 70px;
    }
    .about-section, .resources-section, .simulation-tools-section {
        padding: 1.5rem;
        width: 95%;
        margin-top: 2rem;
    }
    .resources-slider-wrapper .slider-btn {
        display: none;
    }
    .resources-grid {
        scroll-snap-type: x mandatory;
        gap: 0;
    }
    .resources-grid > div {
        flex: 0 0 calc(100% - 10px) !important;
        min-width: calc(100% - 10px) !important;
        margin: 0 5px;
        scroll-snap-align: center;
    }
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    .brand-header {
        flex-direction: column;
    }
    .brand-titles {
        text-align: center;
    }
    .brand-description {
        text-align: center;
        margin: 0 auto;
    }
    .contact-compact {
        align-items: center;
    }
    .social-links {
        justify-content: center;
    }
    .marquee-content span {
        font-size: 0.9rem;
    }
    .back-to-tracks-btn {
        top: -45px;
        left: 5px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

/* Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0A0F1E;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeOutSplash 0.3s ease 2s forwards;
    pointer-events: none;
}

#splash-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: scaleOutSplash 0.8s ease 1.2s forwards;
    z-index: 1;
    position: relative;
}

.splash-line-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0,170,255,0.5);
    font-size: clamp(24px, 3.5vw, 50px);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.splash-logo {
    max-height: clamp(60px, 8vw, 120px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.splash-line-2 {
    color: #00AAFF;
    font-size: calc(clamp(24px, 3.5vw, 50px) * 0.5);
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
    margin-top: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeSlideUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

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

@keyframes scaleOutSplash {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
    }
    100% {
        transform: scale(1.04);
        opacity: 0;
    }
}

@keyframes fadeOutSplash {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Mobile Navigation Overlay */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001; /* Above overlay */
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.hamburger-menu span {
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Open State */
.hamburger-menu.open span:nth-child(1) {
    transform: rotate(45deg);
}
.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: 300;
    transition: color 0.3s;
}

.close-menu-btn:hover {
    color: var(--primary);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 8, 17, 0.98);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
    backdrop-filter: blur(10px);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links .nav-link {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-links .nav-link {
    transform: translateY(0);
    opacity: 1;
}

/* Delay staggered animation */
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(1) { transition: all 0.4s ease 0.1s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(2) { transition: all 0.4s ease 0.2s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(3) { transition: all 0.4s ease 0.3s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(4) { transition: all 0.4s ease 0.4s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(5) { transition: all 0.4s ease 0.5s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(6) { transition: all 0.4s ease 0.6s; }
.mobile-nav-overlay.active .mobile-nav-links .nav-link:nth-child(7) { transition: all 0.4s ease 0.7s; }

.mobile-nav-links .nav-link:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .hamburger-menu {
        display: flex;
    }
}
@media (max-width: 600px) {
    .hamburger-menu {
        top: 1.5rem;
        right: 1.5rem;
    }
}
