/* =========== Base Styles =========== */
:root {
    /* Color variables for light mode */
    --bg-primary: #0A0A0F;
    --bg-secondary: rgba(10, 10, 15, 0.75);
    --accent-primary: #00D1FF;
    --accent-secondary: #FF3DCC;
    --text-primary: #E0E0E6;
    --text-secondary: #ABABC0;
    --card-bg: #141422;
    --header-bg: rgba(10, 10, 15, 0.9);
    --table-header: #151525;
    --table-row-odd: rgba(20, 20, 35, 0.8);
    --table-row-even: rgba(15, 15, 25, 0.5);
}

[data-theme="light"] {
    --bg-primary: #F0F0F4;
    --bg-secondary: rgba(240, 240, 245, 0.95);
    --accent-primary: #0088CC;
    --accent-secondary: #CC2288;
    --text-primary: #303040;
    --text-secondary: #505060;
    --card-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, 0.9);
    --table-header: #E0E0E6;
    --table-row-odd: rgba(240, 240, 245, 0.6);
    --table-row-even: rgba(230, 230, 240, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-secondary);
}

a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease, background-color 0.3s ease;
}

a:hover::after {
    width: 100%;
    background-color: var(--accent-secondary);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    position: relative;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
}

.neon-divider {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent
    );
    width: 80%;
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
    box-shadow: 0 0 10px var(--accent-primary);
}

.btn {
    display: inline-block;
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-family: 'Source Code Pro', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 209, 255, 0.2),
        transparent
    );
    transition: left 0.3s ease;
}

.btn:hover {
    background-color: rgba(0, 209, 255, 0.1);
    color: var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    text-shadow: none;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover::after {
    width: 0;
}

/* =========== Header Styles =========== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
    /* Always stay visible */
    transform: translateY(0);
}

/* Remove the hide-on-scroll behavior for sticky nav */
/*
header.scrolled {
    transform: translateY(-100%);
}
*/

header.visible {
    transform: translateY(0);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-container {
    flex: 0 0 80px;
}

.logo {
    max-width: 60px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    order: 2;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;  /* Reduced from 24px */
    width: 25px;   /* Reduced from 30px */
    margin-right: 0; /* Removed spacing */
    margin-left: 2rem; 
}

.bar {
    height: 2px;  /* Reduced from 3px */
    width: 100%;
    background-color: var(--accent-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-secondary);
    transform: rotate(180deg);
}

/* =========== Hero Section =========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.cta-btn {
    font-size: 1.2rem;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--accent-primary); }
    to { box-shadow: 0 0 15px var(--accent-primary); }
}

.digital-rain-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 209, 255, 0.05) 0%, transparent 60%);
    opacity: 0.5;
    z-index: 1;
}

/* =========== About Section =========== */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.mission, .goals {
    flex: 1 1 400px;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission:hover, .goals:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.mission h3, .goals h3 {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.mission h3::after, .goals h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        var(--accent-primary),
        var(--accent-secondary)
    );
}

.goals ul {
    list-style: none;
}

.goals li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.goals li i {
    margin-right: 0.8rem;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* =========== Schedule Section =========== */
.table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

th, td {
    padding: 1rem;
    text-align: left;
}

thead {
    background-color: var(--table-header);
}

th {
    font-family: 'Exo 2', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

tbody tr:nth-child(odd) {
    background-color: var(--table-row-odd);
}

tbody tr:nth-child(even) {
    background-color: var(--table-row-even);
}

tbody tr {
    transition: background-color 0.3s ease;
}

tbody tr:hover {
    background-color: rgba(0, 209, 255, 0.1);
}

/* =========== Events Section =========== */
.event-list {
    list-style: none;
    margin-top: 2rem;
}

.event-item {
    display: flex;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.event-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(
        to bottom,
        var(--accent-primary),
        var(--accent-secondary)
    );
    border-radius: 4px 0 0 4px;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.event-date {
    flex: 0 0 100px;
    color: var(--accent-primary);
    font-family: 'Source Code Pro', monospace;
    font-weight: 600;
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

/* =========== Gallery Section =========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--accent-primary);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item img.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(
        to top,
        rgba(10, 10, 15, 0.9),
        transparent
    );
    color: var(--text-primary);
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

/* =========== Contact Section =========== */
.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.contact-links li {
    margin-bottom: 1rem;
}

.contact-links i {
    margin-right: 0.5rem;
    color: var(--accent-primary);
}

/* =========== Footer =========== */
footer {
    background-color: var(--bg-secondary);
    padding: 2rem 0;
    text-align: center;
    position: relative;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    position: relative;
}

#back-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 1.2rem;
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s ease;
}

#back-to-top-btn:hover {
    color: var(--accent-secondary);
    box-shadow: 0 0 15px var(--accent-secondary);
    transform: translateY(-5px);
}

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

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========== Media Queries =========== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    nav {
        order: 2; /* Ensure it stays on the right in mobile view */
        display: flex;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    footer .container {
        flex-direction: column;
    }
    
    .back-to-top {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .event-item {
        flex-direction: column;
    }
    
    .event-date {
        margin-bottom: 0.5rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
}
