:root {
    --primary: #020c1b;
    --secondary: #0a192f;
    --tertiary: #112240;
    --accent: #64ffda;
    --accent-glow: rgba(100, 255, 218, 0.4);
    --pink: #f57dff;
    --blue: #57cbff;
    --text-light: #ccd6f6;
    --text-white: #e6f1ff;
    --glass: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(100, 255, 218, 0.1);
}

html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film Grain - Low Opacity for performance/style balance */
.grain-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Cursor */
.cursor-dot {
    position: fixed; top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
}

.cursor-outline {
    position: fixed; top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    will-change: transform;
}

body.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(100, 255, 218, 0.05);
    border-color: var(--accent);
    mix-blend-mode: difference;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    color: var(--text-white);
    margin: 0;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    text-align: center;
    margin-bottom: 80px;
    color: var(--text-white);
    opacity: 1;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Math Background */
.math-bg {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none;
    overflow: hidden;
}

.math-symbol {
    position: absolute;
    color: var(--accent);
    opacity: 0.03;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    user-select: none;
}

/* Navbar */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 50px;
    position: fixed; width: 100%; box-sizing: border-box;
    top: 0; z-index: 1000;
    background: rgba(2, 12, 27, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 40px; border-radius: 50%; border: 2px solid var(--accent); }
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    position: relative;
    padding: 5px 0;
}
.nav-links a:hover { color: var(--accent); }

.hamburger { display: none; color: var(--accent); font-size: 1.5rem; cursor: none; }

/* Hero Section */
header {
    height: 100vh;
    display: flex; justify-content: center; align-items: center;
    text-align: center; position: relative; overflow: hidden;
}

#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-content { position: relative; z-index: 2; pointer-events: none; }
.hero-content > * { pointer-events: auto; }

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1; margin: 20px 0;
    color: var(--text-white);
    text-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.tagline {
    font-family: 'Fira Code', monospace;
    color: var(--accent);
    font-size: clamp(1rem, 2vw, 1.2rem);
    letter-spacing: 2px;
}

/* Buttons */
.cta-button, .magnetic-btn {
    display: inline-block; margin-top: 40px;
    padding: 1.2rem 3rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    background: rgba(100, 255, 218, 0.05);
    transition: all 0.2s ease;
}

.cta-button:hover, .magnetic-btn:hover {
    background: rgba(100, 255, 218, 0.15);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Sections */
section { position: relative; z-index: 2; padding: 120px 0; }

.about-card {
    background: rgba(17, 34, 64, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 60px; border-radius: 10px;
    max-width: 900px; margin: 0 auto;
}
.about-content p { font-size: 1.1rem; color: var(--text-light); text-align: center;}

/* Event Filters (Missing previously) */
.event-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: none; /* For custom cursor */
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Timeline */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
    content: ''; position: absolute; left: 50%;
    width: 1px; height: 100%; background: var(--tertiary);
}

.timeline-item {
    width: 45%; margin-bottom: 60px; position: relative;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-item.visible { opacity: 1; transform: translateY(0); }
.timeline-item:nth-child(odd) { margin-left: auto; text-align: left; padding-left: 40px; }
.timeline-item:nth-child(even) { margin-right: auto; text-align: right; padding-right: 40px; }

/* Timeline Dots (Restored) */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border: 2px solid var(--accent);
    border-radius: 50%;
    top: 30px; /* Align with content top */
    z-index: 10;
    box-shadow: 0 0 5px var(--accent-glow);
    transition: background 0.3s;
}

.timeline-item:nth-child(odd)::after {
    left: -6px; /* Position on the center line relative to the right-side item */
    /* Wait, odd items have margin-left: auto (right side).
       The center line is at left: 50% of .timeline.
       Since .timeline-item is 45% width and floats right (margin-left:auto),
       its left edge is at 55%.
       We need the dot at -10% + offset? No.
       The easiest way for absolute positioning relative to item:
       Right item (odd): Left edge is near center. Dot should be at left: -40px (padding) - 6px (half dot)?
    */
    left: -46px; /* 40px padding + 6px to center on line */
}

.timeline-item:nth-child(even)::after {
    right: -46px; /* 40px padding + 6px to center on line */
}

.timeline-item:hover::after {
    background-color: var(--accent);
}

.timeline-content {
    background: var(--tertiary); padding: 25px;
    border-radius: 6px; border: 1px solid transparent;
    transition: border-color 0.3s;
}
.timeline-content:hover { border-color: var(--accent); }
.timeline-date { color: var(--accent); font-family: 'Fira Code', monospace; font-size: 0.85rem; display: block; margin-bottom: 10px;}

/* Team */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center; /* Ensure grid is centered */
}
.team-card {
    background: var(--tertiary); padding: 40px 20px;
    border-radius: 8px; text-align: center;
    border: 1px solid var(--glass-border);
    transition: transform 0.2s;
}
.team-card:hover { transform: translateY(-5px); border-color: var(--accent); }

.member-img-placeholder {
    width: 140px; height: 140px; margin: 0 auto 25px;
    border-radius: 50%; position: relative;
    display: flex; justify-content: center; align-items: center;
    font-size: 3rem; color: var(--text-white);
}
.member-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; }

.team-card .role { color: var(--accent); font-family: 'Fira Code', monospace; display: block; margin-bottom: 15px; }

/* Quotes */
.quote-wrapper { text-align: center; } /* Center button */
.quote-box {
    margin: 0 auto 40px; /* Center box */
    max-width: 800px;
    background: var(--tertiary);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

/* Footer */
footer { background: var(--secondary); padding: 60px 0; text-align: center; border-top: 1px solid var(--tertiary); }
.social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-links a {
    width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--tertiary); border-radius: 50%; color: var(--text-dim);
    transition: all 0.2s;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 80%;
        background: var(--tertiary); flex-direction: column;
        justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.3s;
    }
    .nav-links.active { transform: translateX(0); }
    .hamburger { display: block; z-index: 1001; }
    
    .timeline::before { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px !important; padding-right: 0 !important; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    
    /* Mobile Dot Alignment */
    .timeline-item::after {
        left: 14px !important; /* 20px (line) - 6px (half dot) */
        right: auto !important;
    }
    
    .cursor-dot, .cursor-outline { display: none; }
    .hero-title { font-size: 3.5rem; }
}