:root {
    --bg-color: #fdfaf6; /* Very light warm gray/off-white */
    --text-primary: #2d2a26; /* Soft black */
    --text-secondary: #7b2024; /* Burgundy */
    --text-muted: #66635f;
    --accent: #d8c2b5;
    --border: #ece9e3;
    --card-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dot overlay on whole page */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(circle, rgba(123, 32, 36, 0.12) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

/* Typography styles */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* DECORATIVE GRAPHIC ELEMENTS */
.hero-top-stripe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #7b2024 0%, #c0504d 50%, #7b2024 100%);
    z-index: 20;
}

.wave-divider {
    position: relative;
    z-index: 3;
    line-height: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
}

/* Cream wave over hero bg → white section */
.wave-top {
    margin-top: -1px;
    background: var(--bg-color);
}

/* Bordeaux wave sandwich */
.wave-mid {
    background: #ffffff;
    margin-bottom: -1px;
}

.bordeaux-band {
    background: #7b2024;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    z-index: 3;
}

.band-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.03em;
}

.wave-mid-bottom {
    background: #ffffff;
    margin-top: -1px;
}

/* Wave above practical section */
.wave-soft {
    background: #ffffff;
    margin-bottom: -1px;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

/* Subtle background element */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.85) 0%, transparent 70%);
    z-index: 1;
}

/* Diagonal lines texture on top of the radial gradient */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 22px,
        rgba(123, 32, 36, 0.08) 22px,
        rgba(123, 32, 36, 0.08) 23px
    );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.intro-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.cursive-text {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(5rem, 10vw, 8rem);
    color: var(--text-secondary);
    line-height: 0.6;
    transform: rotate(-3deg);
    margin-bottom: 1rem;
    padding-right: 1.5rem;
}

.serif-text {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 1.5rem 3rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
}

.meta-separator {
    color: var(--accent);
}

.scroll-down-btn {
    position: absolute;
    bottom: 3rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite ease-in-out;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 15;
}

.scroll-down-btn:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* DETAILS SECTION */
.details-section {
    padding: 8rem 0;
    background-color: var(--card-bg);
    position: relative;
    z-index: 2;
    /* Grid dot pattern */
    background-image:
        radial-gradient(circle, rgba(123,32,36,0.12) 2px, transparent 2px);
    background-size: 32px 32px;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.section-header .line {
    width: 60px;
    height: 2px;
    background-color: var(--text-secondary);
    margin: 0 auto 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-color);
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.feature-card .icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* IMAGE SECTION */
.image-section {
    background: #ffffff;
    padding: 5rem 0 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.image-container {
    text-align: center;
}

.fest-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.image-caption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1.5rem 2rem;
    background: #ffffff;
}

/* PRACTICAL INFO SECTION */
.practical-section {
    padding: 8rem 0;
    background: var(--bg-color);
    position: relative;
    z-index: 2;
}

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

.practical-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.practical-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.04);
}

.practical-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    padding: 1rem;
    margin-bottom: 1.2rem;
}

.practical-card h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.practical-card p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* CTA & REGISTRATION SECTION */
.cta-section {
    padding: 8rem 0;
    text-align: center;
    background: var(--bg-color);
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* FORM STYLES */
.registration-form {
    max-width: 450px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-color);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--text-secondary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(123, 32, 36, 0.08);
}

.form-group select {
    width: 100%;
    padding: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-color);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237b2024' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: var(--text-secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(123, 32, 36, 0.08);
}

.cta-button {
    width: 100%;
    padding: 1.2rem;
    margin-top: 1rem;
    background-color: var(--text-secondary);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(123, 32, 36, 0.15);
}

.cta-button:hover {
    background-color: #5d161a;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(123, 32, 36, 0.2);
}

.cta-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.success-message {
    max-width: 450px;
    margin: 0 auto;
    background: #eefaed;
    color: #2d5a36;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #c3e6cb;
}

.success-message h3 {
    margin-bottom: 0.5rem;
}

/* FOOTER */
footer {
    padding: 3rem 0;
    text-align: center;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.success-message {
    max-width: 450px;
    margin: 0 auto;
    background: #eefaed;
    color: #2d5a36;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #c3e6cb;
    text-align: center;
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ANIMATIONS */
.fade-in {
    animation: fadeIn 1.2s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero { padding: 4rem 1.5rem 2rem; justify-content: flex-start; }
    .hero-content { margin-top: 15vh; }
    .cursive-text { margin-bottom: 0.5rem; }
    .serif-text { font-size: 2.2rem; }
    .event-meta {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.5rem;
        border-radius: 16px;
    }
    .meta-separator { display: none; }
    .hero-quote { font-size: 1.2rem; }
    .section-header h2 { font-size: 2rem; }
    .details-section, .cta-section { padding: 5rem 0; }
    .registration-form { padding: 2rem 1.5rem; }
}
