/* ===== CSS VARIABLES ===== */
:root {
    --primary: #1a1a2e;
    --secondary: #16213e;
    --accent: #0f3460;
    --gold: #e8b830;
    --gold-light: #f0d060;
    --gold-dark: #c49820;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #0d0d0d;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: "Playfair Display", Georgia, serif;
    --font-secondary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --radius: 12px;
    --radius-sm: 8px;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: var(--gold);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 10px;
}

/* ===== FLOATING PARTICLES ===== */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0.15;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-family: var(--font-secondary);
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(232, 184, 48, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(232, 184, 48, 0.4);
}
.btn-secondary {
    background: var(--primary);
    color: var(--white);
}
.btn-secondary:hover {
    background: var(--accent);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--primary);
}
.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 10px 0;
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--gold) !important;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}
.navbar-brand span {
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    display: block;
    font-weight: 400;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}
.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 5px 0;
}
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover {
    color: var(--gold);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--secondary) 50%,
        var(--accent) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8b830' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(232, 184, 48, 0.15);
    border: 1px solid rgba(232, 184, 48, 0.3);
    color: var(--gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 15px;
    line-height: 1.15;
}
.hero h1 .highlight {
    color: var(--gold);
}
.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 300;
}
.hero .desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 20px auto 35px;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    animation: bounce 2s infinite;
    margin-top: 1em;
}
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}
.hero-scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
}

/* ===== COUNTDOWN ===== */
.countdown {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
}
.countdown .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.countdown-item {
    text-align: center;
}
.countdown-item .number {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: block;
}
.countdown-item .label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}
.countdown-separator {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 300;
}

/* ===== CAROUSEL / GALLERY ===== */
.carousel-section {
    background: var(--light);
    overflow: hidden;
}
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.carousel-slide {
    min-width: 100%;
    position: relative;
}
.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
}
.carousel-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.carousel-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}
.carousel-prev {
    left: -25px;
}
.carousel-next {
    right: -25px;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.2);
}

/* ===== REGISTRATION FORM ===== */
.registration-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
}
.registration-section .section-title h2 {
    color: var(--white);
}
.registration-section .section-title h2::after {
    background: var(--gold);
}
.registration-section .section-title p {
    color: rgba(255, 255, 255, 0.7);
}
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}
.form-group {
    margin-bottom: 22px;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 8px;
}
.form-group label .required {
    color: var(--danger);
    margin-left: 3px;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-secondary);
    transition: var(--transition);
    background: var(--light);
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 184, 48, 0.15);
}
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}
.form-control:disabled {
    background: var(--gray-light);
    cursor: not-allowed;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.form-error {
    display: none;
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 5px;
}
.form-error.show {
    display: block;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-divider {
    border: none;
    height: 1px;
    background: var(--gray-light);
    margin: 30px 0;
}
.event-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.event-card {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    background: var(--light);
}
.event-card:hover {
    border-color: var(--gold);
    background: rgba(232, 184, 48, 0.05);
}
.event-card.selected {
    border-color: var(--gold);
    background: rgba(232, 184, 48, 0.1);
    box-shadow: 0 0 0 3px rgba(232, 184, 48, 0.15);
}
.event-card .event-emoji {
    font-size: 2rem;
    margin-bottom: 8px;
}
.event-card .event-name {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.event-card .event-time {
    font-size: 0.8rem;
    color: var(--gray);
}
.event-card .event-quota {
    font-size: 0.75rem;
    color: var(--info);
    margin-top: 6px;
}
.event-card .check {
    display: none;
}
.event-card.selected .check {
    display: inline-block;
    color: var(--success);
    margin-left: 5px;
}
.capacity-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.85rem;
    color: var(--info);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.capacity-info .icon {
    font-size: 1.2rem;
}
.form-submit {
    margin-top: 10px;
}
.form-submit .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
}
.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}
.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}
.form-success.show {
    display: block;
}
.form-success .success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}
.form-success h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}
.form-success p {
    color: var(--gray);
    margin-bottom: 20px;
}
/* reCAPTCHA placeholder */
.g-recaptcha {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}
.recaptcha-placeholder {
    width: 304px;
    height: 78px;
    background: var(--gray-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--gray);
    border: 1px solid #d3d3d3;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s ease infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}
.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.faq-question {
    width: 100%;
    padding: 18px 24px;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-family: var(--font-secondary);
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--gold-dark);
}
.faq-question .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--gray);
}
.faq-item.active .faq-question .faq-icon {
    background: var(--gold);
    color: var(--primary);
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
    padding: 0 24px;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 18px;
}
.faq-answer p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CONTACT / FOOTER ===== */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 10px;
}
.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-links h4 {
    font-size: 1rem;
    color: var(--gold);
    margin-bottom: 15px;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero .subtitle {
        font-size: 1rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .countdown-item .number {
        font-size: 2rem;
    }
    .countdown-item .label {
        font-size: 0.7rem;
    }
    .countdown .container {
        gap: 20px;
    }
    .form-container {
        padding: 25px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .event-selection {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .carousel-slide img {
        height: 300px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .carousel-prev {
        left: -15px;
    }
    .carousel-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
}
