:root {
    /* Quantum Nexus Color Palette */
    --bg-base: #030508;
    --bg-surface: rgba(10, 15, 25, 0.6);
    --color-primary: #00E5FF;
    --color-secondary: #7C3AED;
    --color-accent: #F59E0B;
    --color-success: #10B981;
    
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --section-pad: 8rem;
    --container-w: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

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

::selection {
    background: var(--color-primary);
    color: var(--bg-base);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-base);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(0, 229, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

.loader-text {
    font-family: var(--font-mono);
    color: var(--color-primary);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Layout & Typography */
.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-text {
    font-family: var(--font-mono);
    color: var(--color-primary);
    letter-spacing: 0.1em;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

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

.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 4rem; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(3, 5, 8, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo img {
    height: 40px;
    filter: invert(1); /* Assuming black logo is provided */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-main);
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    pointer-events: none; /* Let clicks pass through to canvas if needed */
}

.hero-content {
    pointer-events: auto;
    z-index: 2;
}

.pre-title {
    font-family: var(--font-mono);
    color: var(--color-primary);
    letter-spacing: 0.2em;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.2);
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 4rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    min-width: 100px;
    backdrop-filter: blur(5px);
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.time-box label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-top: 0.5rem;
    letter-spacing: 0.1em;
}

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

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: var(--text-main);
}

.image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(255,255,255,0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: var(--transition-smooth);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(124, 58, 237, 0.2), rgba(0, 229, 255, 0.2));
    mix-blend-mode: overlay;
}

.image-wrapper:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-list li::before {
    content: '>';
    color: var(--color-primary);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.tilt-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: border-color 0.3s;
}

.tilt-card:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tilt-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
    transform: translateZ(30px); /* For 3D effect */
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Marquee */
.lectures-marquee {
    display: flex;
    overflow: hidden;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 0 2rem;
}

.marquee-content .dot {
    color: var(--color-primary);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Technoholix Banner */
.techno-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 4rem;
}

.techno-banner .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    background: rgba(3, 5, 8, 0.7);
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--color-secondary);
}

.banner-content h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Footer */
.footer {
    background: #010204;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    height: 40px;
    filter: invert(1);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-contact a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--color-primary);
}

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--color-primary);
    color: var(--bg-base);
    border-color: var(--color-primary);
}

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

/* Utilities */
.gs-reveal {
    visibility: hidden;
}

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 4rem;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-links {
        display: none; /* Add mobile menu logic later if needed */
    }
    .countdown {
        flex-wrap: wrap;
    }
    .techno-banner {
        padding: 2rem;
    }
    .banner-content {
        padding: 2rem;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
}
