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

:root[data-theme="dark"] {
    --bg-page: #0a0e27;
    --bg-header: linear-gradient(90deg, #1a1f4d, #2d1b5e);
    --bg-hero: linear-gradient(135deg, #1a1f4d, #2d1b5e 40%, #38bdf8, #2d1b5e 90%);    --bg-card: #141a3d;
    --bg-footer: #1a1f4d;
    --bg-rule: #1e1440;
    --border-color: #2d3468;
    --text-main: #e8ecf7;
    --text-body: #d6dcf5;
    --text-muted: #b8c0e0;
    --text-heading: #fff;
    --accent: #a855f7;
    --accent-2: #38bdf8;
    --toggle-bg: #2d1b5e;
}

:root[data-theme="light"] {
    --bg-page: #f4f5fb;
    --bg-header: linear-gradient(90deg, #ffffff, #f0eefc);
    --bg-hero: linear-gradient(135deg, #ede9fe, #dbeafe 40%, #bfdbfe, #ede9fe 90%);
    --bg-card: #ffffff;
    --bg-footer: #ffffff;
    --bg-rule: #f0eefc;
    --border-color: #dcdfef;
    --text-main: #1a1f4d;
    --text-body: #383f70;
    --text-muted: #5c6291;
    --text-heading: #14163a;
    --accent: #7c3aed;
    --accent-2: #0284c7;
    --toggle-bg: #e9e6fb;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    transition: background 0.25s ease, color 0.25s ease;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 20;
    gap: 1rem;
    transition: background 0.25s ease;
}

/* Hamburger button (hidden on desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 30;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    border-radius: 2px;
    background: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay behind mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}
.logo { display: flex; align-items: center; }
.logo img {
    height: 48px;
    width: auto;
    border-radius: 8px;
    display: block;
}
nav { display: flex; align-items: center; }

@media (max-width: 860px) {
    .hamburger { display: flex; }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 260px;
        background: var(--bg-card);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 25;
    }
    nav.active { transform: translateX(0); }

    nav a {
        margin-left: 0;
        padding: 0.7rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .theme-toggle { margin-left: 0; margin-top: 1rem; }
}
nav a {
    display: inline-block;
    color: var(--text-main);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.95rem;
    transition: color 0.2s, transform 0.2s ease;
}
nav a:hover {
    color: var(--accent-2);
    transform: scale(1.1);
}
.theme-toggle {
    margin-left: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--toggle-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.25s ease, transform 0.15s ease;
}
.theme-toggle:hover { transform: scale(1.08); }

.hero {
    text-align: center;
    padding: 6rem 2rem 5rem;
    background: var(--bg-hero);
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.hero-logo { width: 140px; height: auto; border-radius: 16px; margin-bottom: 1.5rem; }

.hero h1 { font-size: 4rem; color: var(--text-heading); letter-spacing: 1px; }

.glow-text {
    animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-2);
    }
    50% {
        text-shadow: 0 0 20px var(--accent-2), 0 0 40px var(--accent), 0 0 60px var(--accent);
    }
}

.tagline { font-size: 1.3rem; color: var(--accent); margin: 1rem 0 0.5rem; }
.hero-sub { font-size: 1rem; color: var(--text-body); font-style: italic; }

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 2.2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.2s;
}
.cta-button:hover { background: var(--accent-2); }

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}
.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.intro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}
.intro-card h3 { color: var(--accent-2); margin-bottom: 0.6rem; }
.intro-card p { font-size: 0.9rem; color: var(--text-muted); }

.page-hero {
    text-align: center;
    padding: 1.75rem 2rem;
    background: var(--bg-header);
}
.page-hero h1 { font-size: 2.2rem; color: var(--text-heading); }

.page-content, .about-preview {
    max-width: 780px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}
.page-content h2 { color: var(--accent-2); margin: 2rem 0 1rem; }
.page-content p { margin-bottom: 1.2rem; color: var(--text-body); }
.text-link { color: var(--accent); text-decoration: none; font-weight: bold; }
.text-link:hover { color: var(--accent-2); }

blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-body);
    font-size: 1.1rem;
}

.skill-list, .stage-list {
    margin: 1rem 0 1.5rem 1.5rem;
}
.skill-list li, .stage-list li { margin-bottom: 0.6rem; color: var(--text-body); }

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.vision-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    font-weight: 600;
    color: var(--accent);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.vision-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    border-color: var(--accent);
}
.closing-statement {
    font-size: 1.15rem;
    color: var(--accent-2);
    font-style: italic;
    margin-top: 2rem;
    text-align: center;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}
.rule {
    background: var(--bg-rule);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rule:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.form-message {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-2);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}
form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin-top: 1rem;
    gap: 0.9rem;
}
form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: -0.5rem;
}
form input, form select {
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
}
form button {
    margin-top: 1.5rem;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
form button:hover { background: var(--accent-2); }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem 1.5rem;
}
.stat { text-align: center; }
.stat strong {
    display: block;
    font-size: 2.4rem;
    color: var(--accent-2);
}
.stat span { color: var(--text-muted); font-size: 0.9rem; }


.table-wrap {
    margin-top: 1.5rem;
    overflow-x: auto;
    width: 100%;
}

.admin-table {
    width: 100%;
    min-width: 1100px;
    table-layout: auto;
    border-collapse: collapse;
    font-size: 0.76rem;
}
.admin-table th, .admin-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}
.admin-table th {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.admin-table tr:hover {
    background: var(--bg-card);
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.admin-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.admin-search {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    min-width: 200px;
}
.admin-btn {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease;
}
.admin-btn:hover { background: var(--accent-2); }

.email-panel {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.email-panel input {
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.9rem;
    min-width: 240px;
}
.email-status {
    font-size: 0.85rem;
    color: var(--accent-2);
}

.admin-table th.sort-asc::after { content: " ▲"; font-size: 0.7em; }
.admin-table th.sort-desc::after { content: " ▼"; font-size: 0.7em; }

.admin-content {
    max-width: 1600px;
    width: 98%;
}

/* Events page */

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.event-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);}

.event-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    margin: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.event-thumb:hover {
    transform: scale(1.05);
}

@media (max-width: 700px) {
    .event-card { flex-direction: column; }
    .event-thumb {
        width: 100%;
        height: 160px;
        margin: 0;
        border-radius: 0;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}



.event-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.event-body h3 { color: var(--text-heading); margin: 0.4rem 0; }
.event-location { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.6rem; }

/* Textarea to match form inputs */
form textarea {
    padding: 0.55rem 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-footer);
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: background 0.25s ease;
}

/* FAQ */
.faq-list { margin-top: 1.5rem; }
.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-toggle {
    color: var(--accent);
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding-bottom: 1rem; color: var(--text-body); }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.team-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.team-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.8rem;
    display: block;
}

.team-card h3 { color: var(--text-heading); font-size: 1rem; margin-bottom: 0.2rem; }
.team-role { color: var(--accent); font-size: 0.85rem; }

/* Testimonials */
.testimonials {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    text-align: center;
}
.testimonials-title { color: var(--accent-2); margin-bottom: 2rem; }
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: left;
}
.testimonial-card p {
    color: var(--text-body);
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-author {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Event detail page */
.event-detail-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    display: block;
    margin: 0 auto 1.5rem;
    cursor: pointer;
}
.event-description {
    margin: 1.5rem 0;
    color: var(--text-body);
}

/* Newsletter */
.newsletter {
    max-width: 600px;
    margin: 4rem auto;
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.newsletter h2 { color: var(--accent-2); margin-bottom: 0.5rem; }
.newsletter p { color: var(--text-body); margin-bottom: 1.2rem; }
.newsletter-form {
    display: flex;
    gap: 0.6rem;
    max-width: 400px;
    margin: 0 auto;
}
.newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--text-main);
}
.newsletter-form button {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}
.newsletter-form button:hover { background: var(--accent-2); }
.newsletter-status {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--accent-2);
}

/* Sponsors */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.sponsor-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sponsor-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.25); }
.sponsor-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-bottom: 0.6rem; }
.sponsor-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--bg-rule);
    border-radius: 8px;
    margin: 0 auto 0.6rem;
}
.sponsor-sub {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
a.sponsor-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Status select in admin table */
.status-select {
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: var(--bg-page);
    color: var(--text-main);
    font-size: 0.78rem;
    width: 110px;
}

/* Dashboard bar charts */
.bar-chart { margin: 1rem 0 2rem; }
.bar-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}
.bar-label { width: 140px; flex-shrink: 0; color: var(--text-body); }
.bar-track {
    flex: 1;
    height: 18px;
    background: var(--bg-rule);
    border-radius: 4px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.bar-value { width: 30px; text-align: right; color: var(--text-muted); }

/* Menu toggle admin page */
.menu-toggle-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.menu-toggle-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}
.menu-toggle-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.menu-toggle-label {
    font-weight: 600;
    color: var(--text-main);
}
.menu-toggle-url {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}
