/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: oklch(0.12 0.015 285);
    --foreground: oklch(0.95 0.01 75);
    --card: oklch(0.16 0.02 285);
    --primary: oklch(0.72 0.15 45);
    --primary-foreground: oklch(0.12 0.015 285);
    --border: oklch(0.25 0.03 285);
    --muted-foreground: oklch(0.65 0.01 285);
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Crimson Pro', serif;
}

body {
    font-family: var(--font-serif);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(30, 25, 45, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--border), 0.4);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.sparkle-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--foreground);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 5rem;
    text-align: center;
}

.hero-content {
    max-width: 56rem;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(184, 134, 51, 0.3);
    background-color: rgba(184, 134, 51, 0.05);
}

.badge-icon {
    width: 1rem;
    height: 1rem;
    color: var(--primary);
}

.badge span {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(var(--muted-foreground), 0.8);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    font-family: var(--font-serif);
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--border);
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: rgba(var(--card), 0.3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.about-content {
    max-width: 56rem;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.highlight-primary {
    color: var(--primary);
    font-weight: 600;
}

.highlight {
    color: var(--foreground);
    font-weight: 500;
}

.quote {
    font-style: italic;
    text-align: center;
    color: rgba(var(--foreground), 0.9);
    padding-top: 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(var(--border), 0.4);
}

/* Events Section */
.events {
    padding: 5rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-top: 1rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 75rem;
    margin: 0 auto;
}

.event-card {
    background-color: var(--card);
    border: 1px solid rgba(var(--border), 0.4);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
}

.event-card:hover {
    border-color: rgba(184, 134, 51, 0.4);
    box-shadow: 0 20px 25px -5px rgba(184, 134, 51, 0.05);
}

.card-header {
    padding: 1.5rem 1.5rem 0;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-author {
    font-size: 1rem;
    color: var(--muted-foreground);
}

.card-body {
    padding: 1.5rem;
}

.event-details {
    margin-bottom: 1rem;
}

.event-details p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.event-details strong {
    color: var(--foreground);
}

.event-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

.card-footer {
    padding: 0 1.5rem 1.5rem;
}

.card-footer .btn {
    width: 100%;
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 1rem;
    background-color: rgba(var(--card), 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 62rem;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: rgba(184, 134, 51, 0.1);
    border: 1px solid rgba(184, 134, 51, 0.3);
    margin-bottom: 1rem;
}

.step-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--muted-foreground);
    line-height: 1.7;
}

/* Footer */
.footer {
    padding: 3rem 1rem;
    border-top: 1px solid rgba(var(--border), 0.4);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links p,
.footer-links a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(var(--border), 0.4);
    padding-top: 2rem;
    text-align: center;
}

.footer-quote {
    font-style: italic;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    width: 90%;
    max-width: 28rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-section {
    padding: 2rem 1.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.modal-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-family: var(--font-serif);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--muted-foreground);
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.form-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.5;
    cursor: pointer;
}

.terms-link {
    color: var(--primary);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.error-message {
    display: block;
    color: oklch(0.577 0.245 27.325);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* Success Screen */
.success-content {
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: rgba(184, 134, 51, 0.1);
    margin-bottom: 1rem;
}

.success-icon svg {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}

.success-content .modal-title {
    margin-bottom: 0.5rem;
}

.success-content .modal-description {
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
    }

    .modal-section {
        padding: 1.5rem 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}
