/* ===================================================
   BUG BROS — Cybersecurity Team Website
   Dark hacker aesthetic with terminal vibes
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Share+Tech+Mono&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #06080d;
    --bg-secondary: #0c1018;
    --bg-card: #0f1420;
    --bg-card-hover: #141b2a;
    --bg-glass: rgba(12, 16, 24, 0.85);
    --bg-input: #0a0f18;

    --accent: #00ff41;
    --accent-dim: #00cc34;
    --accent-glow: rgba(0, 255, 65, 0.15);
    --accent-glow-strong: rgba(0, 255, 65, 0.35);
    --accent-secondary: #00d4ff;
    --accent-warning: #ff6b35;
    --accent-red: #ff3e3e;

    --text-primary: #e0e6f0;
    --text-secondary: #8892a4;
    --text-muted: #4a5568;

    --border: #1a2235;
    --border-accent: rgba(0, 255, 65, 0.2);

    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', 'Courier New', monospace;

    --radius: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg-secondary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--accent-secondary); }

/* ---------- Matrix Canvas Background ---------- */
#matrix-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}

.navbar.scrolled {
    background: rgba(6, 8, 13, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    border: 2px solid var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--accent-glow);
    position: relative;
}

.nav-brand .brand-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    opacity: 0.3;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.1; transform: scale(1.05); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
    letter-spacing: 0.5px;
}

.nav-links a::before {
    content: '>';
    margin-right: 4px;
    opacity: 0;
    color: var(--accent);
    transition: opacity var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    background: var(--accent-glow);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    opacity: 1;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Main Content ---------- */
main {
    position: relative;
    z-index: 1;
    padding-top: 70px;
}

.section {
    display: none;
    min-height: calc(100vh - 70px);
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease forwards;
}

.section.active {
    display: block;
}

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

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-header h2 .accent-dot {
    color: var(--accent);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Hero Section ---------- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 40px 80px;
    min-height: calc(100vh - 70px);
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 50px;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow-strong); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 4px;
}

.hero h1 .glitch {
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.hero h1 .glitch::before,
.hero h1 .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
}

.hero h1 .glitch::before {
    color: var(--accent-red);
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: inset(0 0 80% 0);
}

.hero h1 .glitch::after {
    color: var(--accent-secondary);
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: inset(80% 0 0 0);
}

@keyframes glitch-1 {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, 2px); }
    98% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(3px, 1px); }
    93% { transform: translate(-3px, -1px); }
    95% { transform: translate(2px, 2px); }
    97% { transform: translate(-2px, -2px); }
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    max-width: 600px;
    width: 100%;
    text-align: left;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    min-height: 140px;
}

.terminal-body .prompt {
    color: var(--accent);
}

.terminal-body .cmd {
    color: var(--text-primary);
}

.terminal-body .output {
    color: var(--text-secondary);
    opacity: 0.8;
}

.terminal-body .cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 600;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #33ff66;
    box-shadow: 0 0 40px var(--accent-glow-strong);
    transform: translateY(-2px);
    color: var(--bg-primary);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-accent);
}

.btn-outline:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--accent);
}

/* ---------- Cards Grid ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 65, 0.06);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.card .card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card .card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Tag / Badge */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tag-green {
    background: rgba(0, 255, 65, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.tag-blue {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.tag-orange {
    background: rgba(255, 107, 53, 0.1);
    color: var(--accent-warning);
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.tag-red {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(255, 62, 62, 0.2);
}

/* ---------- Team Section ---------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: all var(--transition);
    position: relative;
}

.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 65, 0.06);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-glow), rgba(0, 212, 255, 0.15));
    border: 2px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 16px;
}

.team-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.team-card .role {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 12px;
}

.team-card .bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.team-socials {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.team-socials a {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px;
    transition: color var(--transition-fast);
}

.team-socials a:hover {
    color: var(--accent);
}

/* ---------- Events Section ---------- */
.events-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.events-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border), transparent);
}

.event-item {
    position: relative;
    padding-left: 64px;
    margin-bottom: 40px;
}

.event-dot {
    position: absolute;
    left: 16px;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 1;
}

.event-dot.past {
    border-color: var(--text-muted);
    background: var(--text-muted);
}

.event-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.event-item.past .event-date {
    color: var(--text-muted);
}

.event-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.event-content:hover {
    border-color: var(--border-accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.event-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.event-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ---------- Challenges Section ---------- */
.challenge-card {
    cursor: pointer;
}

.challenge-card .difficulty {
    display: flex;
    gap: 3px;
    margin-top: 12px;
}

.difficulty-bar {
    width: 28px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}

.difficulty-bar.filled {
    background: var(--accent);
}

.difficulty-bar.filled.medium {
    background: var(--accent-warning);
}

.difficulty-bar.filled.hard {
    background: var(--accent-red);
}

/* ---------- Challenge Page (Biometric) ---------- */
.challenge-page {
    max-width: 560px;
    margin: 0 auto;
    padding: 60px 20px;
}

.challenge-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-bottom: 40px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.challenge-back:hover {
    color: var(--accent);
}

.biometric-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.biometric-header {
    padding: 32px 32px 0;
    text-align: center;
}

.biometric-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.biometric-header p {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* Fingerprint scanner visual */
.fingerprint-scanner {
    width: 120px;
    height: 120px;
    margin: 32px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fingerprint-ring {
    position: absolute;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: scan-ring 3s ease-in-out infinite;
}

.fingerprint-ring:nth-child(1) {
    width: 120px; height: 120px;
    animation-delay: 0s;
}
.fingerprint-ring:nth-child(2) {
    width: 90px; height: 90px;
    animation-delay: 0.5s;
}
.fingerprint-ring:nth-child(3) {
    width: 60px; height: 60px;
    animation-delay: 1s;
}

@keyframes scan-ring {
    0%, 100% { opacity: 0.15; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

.fingerprint-icon {
    font-size: 42px;
    z-index: 1;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan-line 2.5s ease-in-out infinite;
    box-shadow: 0 0 15px var(--accent-glow-strong);
}

@keyframes scan-line {
    0% { top: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

.biometric-form {
    padding: 0 32px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition);
}

.btn-auth:hover {
    background: #33ff66;
    box-shadow: 0 0 30px var(--accent-glow-strong);
}

/* Auth result messages */
.auth-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    text-align: center;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.auth-result.success {
    display: block;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
}

.auth-result.success h3 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
    font-family: var(--font-display);
    letter-spacing: 2px;
}

.auth-result.success .flag-display {
    background: var(--bg-primary);
    border: 1px solid var(--accent);
    padding: 16px;
    border-radius: var(--radius);
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-top: 8px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.auth-result.fail {
    display: block;
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid rgba(255, 62, 62, 0.25);
    color: var(--accent-red);
    font-size: 0.9rem;
}

/* Flag submission */
.flag-submit-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.flag-submit-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-align: center;
}

.flag-result {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius);
    font-family: var(--font-mono);
    text-align: center;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.flag-result.correct {
    display: block;
    background: rgba(0, 255, 65, 0.08);
    border: 1px solid rgba(0, 255, 65, 0.25);
    color: var(--accent);
}

.flag-result.incorrect {
    display: block;
    background: rgba(255, 62, 62, 0.08);
    border: 1px solid rgba(255, 62, 62, 0.25);
    color: var(--accent-red);
}

/* ---------- Contact Section ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-links li span.icon {
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

/* ---------- Footer ---------- */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer .footer-brand {
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Writeups Section ---------- */
.writeup-card {
    cursor: pointer;
}

.writeup-card .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6, 8, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        transform: translateX(100%);
        transition: transform var(--transition);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .section {
        padding: 40px 20px;
    }

    .hero {
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .events-timeline::before {
        left: 14px;
    }

    .event-item {
        padding-left: 44px;
    }

    .event-dot {
        left: 6px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Utility ---------- */
.hidden {
    display: none !important;
}

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

.text-center {
    text-align: center;
}

/* Confetti / success animation */
@keyframes celebrate {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); opacity: 1; }
}

.celebrate {
    animation: celebrate 0.6s ease forwards;
}

/* Scanline overlay for extra cyberpunk feel */
.scanline-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.4;
}
