
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.1), 0 8px 16px -8px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.15);
    --highlight-pink: #ec4899;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 32px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f0f2f8;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(79, 70, 229, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(245, 158, 11, 0.04) 0%, transparent 50%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SHARED HEADER ===== */
.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.75rem 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 24px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    height: 65px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

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

.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
    color: white;
    background: rgba(79, 70, 229, 0.35);
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 5rem 3rem;
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--highlight-pink), var(--secondary));
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    color: var(--dark);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

/* ===== ANNOUNCEMENTS ===== */
#announcement-banner {
    margin-bottom: 2rem;
}

.announcement {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 1.75rem;
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    font-weight: 600;
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.announcement::before {
    content: '📢';
    font-size: 1.25rem;
}

/* ===== EVENTS GRID ===== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: var(--primary-light);
}

.event-image-container {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    overflow: hidden;
    position: relative;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-card:hover .event-image {
    transform: scale(1.06);
}

.event-details {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.event-description {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.65;
    flex: 1;
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.event-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 24px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1.5px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    box-shadow: var(--shadow);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* ===== FORM INPUTS ===== */
.form-input, .form-select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s;
    background: white;
    color: var(--dark);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.08);
}

.form-input::placeholder { color: var(--gray-400); }

.form-label {
    display: block;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    letter-spacing: -0.01em;
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.slide-down { animation: slideDown 0.5s ease-out forwards; }

/* Staggered card animations */
.event-card:nth-child(1) { animation: fadeIn 0.5s ease-out 0.05s both; }
.event-card:nth-child(2) { animation: fadeIn 0.5s ease-out 0.1s both; }
.event-card:nth-child(3) { animation: fadeIn 0.5s ease-out 0.15s both; }
.event-card:nth-child(4) { animation: fadeIn 0.5s ease-out 0.2s both; }
.event-card:nth-child(5) { animation: fadeIn 0.5s ease-out 0.25s both; }
.event-card:nth-child(6) { animation: fadeIn 0.5s ease-out 0.3s both; }

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-xl);
        z-index: 1000;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .container { padding: 1.5rem 1rem; }
    .hero { padding: 3rem 1.5rem; border-radius: var(--radius-xl); }
    .hero h1 { font-size: 2rem; }
    .events-grid { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}
