:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-subtle: #eff6ff;
    --dark: #111827;
    --gray-900: #1f2937;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --green: #16a34a;
    --red: #dc2626;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, rgba(15,23,42,.98) 0%, rgba(15,23,42,.88) 100%);
    color: var(--gray-900);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--primary);
    line-height: 1.7;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-up {
    animation: fadeUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,.15);
    background: rgba(15,23,42,.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 10px 0;
    border-bottom-color: rgba(255,255,255,.2);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,.8);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #fff;
}

.navbar.scrolled .nav-links a {
    color: var(--gray-500);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.navbar .nav-links a.active,
.navbar .nav-links a.active:hover {
    color: #fff;
    font-weight: 700;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 2px;
}

.navbar.scrolled .nav-links a.active,
.navbar.scrolled .nav-links a.active:hover {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.navbar .btn-primary {
    padding: 8px 22px;
    font-size: 0.9rem;
    color: var(--white) !important;
    font-weight: 700;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-slideshow-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slideshow-bg .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slideshow-bg .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.65);
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-overlay { background: rgba(15,23,42,.8); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 80px;
    animation: fadeUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.hero-title .highlight {
    color: #fff;
}

.hero-subtitle {
    font-size: 1.2em;
    font-weight: 700;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-top: 60px;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-tagline {
    display: block;
    font-size: 1.1rem;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: -.3px;
    margin-top: 4px;
    color: rgba(255,255,255,.85);
}

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

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 80px;
    margin-bottom: 48px;
}

.hero-buttons .btn-primary {
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
}

.hero-buttons .btn-primary:hover {
    background: rgba(255,255,255,.25);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    display: block;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-400);
    font-weight: 400;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    background: transparent;
    text-align: center;
}

.countdown-header {
    margin-bottom: 20px;
}

.countdown-date-card {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: 16px;
    padding: 12px 24px 12px 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    margin-top: 20px;
}

.date-cal {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary);
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 60px;
}

.date-month {
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255,255,255,.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1;
}

.date-day {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.date-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.date-year {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.date-venue {
    font-size: .8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.date-venue i {
    margin-right: 4px;
    color: var(--primary);
}

.date-venue-sub {
    font-size: .75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.countdown-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 110px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
    transition: transform .2s;
}

.countdown-card:hover {
    transform: translateY(-4px);
}

.countdown-number {
    font-size: 3.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: 3px;
    font-variant-numeric: tabular-nums;
    transition: transform .15s;
}

.countdown-number.bump {
    animation: countBump .2s ease;
}

@keyframes countBump {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.countdown-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 8px;
}

@media (max-width: 480px) {
    .countdown-grid { gap: 10px; }
    .countdown-card { min-width: 70px; padding: 16px 12px; }
    .countdown-number { font-size: 2.2rem; }
}

/* ===== ABOUT ===== */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
}

.about-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary);
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.about-card p {
    color: var(--gray-500);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== HIGHLIGHTS ===== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.25s ease;
}

.highlight-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
}

.highlight-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.1rem;
    color: var(--primary);
    transition: all 0.25s ease;
}

.highlight-card:hover .highlight-icon {
    background: var(--primary);
    color: var(--white);
}

.highlight-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--dark);
}

.highlight-card p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ===== GALLERY ===== */
.gallery {
    background: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--gray-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}



/* ===== FOOTER ===== */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 56px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--gray-400);
    line-height: 1.7;
    margin: 12px 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact p {
    color: var(--gray-400);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.footer-contact p i {
    color: var(--primary);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ===== MODAL (shared) ===== */
.registration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    padding: 20px;
}

.registration-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    max-height: 68vh;
    overflow-y: auto;
    padding: 36px;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--gray-400);
    transition: color 0.2s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.modal-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 24px;
}

/* ===== FORM (shared) ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--gray-700);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--dark);
    appearance: none;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.btn-prev,
.btn-submit {
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-prev:hover {
    background: var(--gray-200);
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.success-content p {
    color: var(--gray-500);
    margin-bottom: 12px;
}

.token-display {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 4px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-family: 'SF Mono', 'Courier New', monospace;
}

.success-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin: 8px 0 20px;
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content { text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-buttons { justify-content: center; }
    .hero-badge { margin: 0 auto 20px; }
    .highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 64px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .hero { align-items: center; padding-top: 60px; }
    .hero-title { font-size: 2rem; }
    .nav-links { gap: 8px; }
    .nav-links a { font-size: .85rem; padding: 6px 12px; }
    .navbar .btn-primary { display: none; }
    .admin-nav .container { justify-content: flex-start; gap: 12px; }
    .about-grid { grid-template-columns: 1fr; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .footer-contact p { justify-content: center; }
    .modal-content { padding: 24px 20px; margin: 10px; }
}

@media (max-width: 480px) {
    .hero-content { padding-top: 20px; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: .85rem; max-width: 100%; }
    .hero-buttons { flex-direction: row; gap: 8px; }
    .hero-buttons .btn-primary { padding: 10px 18px; font-size: .8rem; flex: 1; justify-content: center; }
    .btn-primary, .btn-secondary { justify-content: center; }
    .highlights-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 1.3rem; }
    .form-nav { flex-direction: column; }
    .btn-next { margin-left: 0; }
    .token-display { font-size: 1.5rem; letter-spacing: 2px; }
}
