/* ==========================================================================
   CSS Variables & Resets
   ========================================================================== */
   :root {
    --primary-color: #E6A817; /* Gold */
    --primary-light: #FFDF73;
    --primary-dark: #b8860b;
    --secondary-color: #D9381E; /* Fire Red */
    --secondary-light: #F26419;
    --text-light: #F4F4F4;
    --text-dark: #1A1A1A;
    --bg-dark: #0D0D0D;
    
    --font-heading: 'Cinzel', serif;
    --font-accent: 'Metamorphous', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ==========================================================================
   Background & Embers
   ========================================================================== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.6) contrast(1.1);
    transform: scale(1.05); /* Slight scale for breathing animation */
    animation: breathingBg 20s infinite alternate ease-in-out;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13,13,13,0.3) 0%, rgba(13,13,13,0.8) 100%);
}

@keyframes breathingBg {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.embers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.ember {
    position: absolute;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255,165,0,1) 0%, rgba(255,69,0,1) 50%, rgba(255,0,0,0) 100%);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) scale(0.2);
        opacity: 0;
    }
}

/* ==========================================================================
   Typography & Headers
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    text-align: center;
}

.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    padding-bottom: 2rem;
}

.hero-content {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    padding: 2rem;
    border-radius: 50%;
}

.pre-title {
    font-family: var(--font-accent);
    color: var(--primary-light);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    color: var(--text-light);
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.9), 0 0 20px rgba(217, 56, 30, 0.6);
    margin-bottom: 2rem;
}

.accent-title {
    color: var(--secondary-light);
    background: -webkit-linear-gradient(#F5D061, #F26419);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(242, 100, 25, 0.4));
}

.name-badge {
    margin-top: 2rem;
}

.name {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 8rem);
    color: var(--primary-color);
    line-height: 0.9;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9), 0 0 30px rgba(230, 168, 23, 0.5);
    background: -webkit-linear-gradient(#FFF, #E6A817);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: -10px;
}

.subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.2rem, 4vw, 2rem);
    letter-spacing: 4px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.age {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--secondary-color);
    line-height: 0.8;
    text-shadow: 0 0 20px rgba(242, 100, 25, 0.8), 4px 4px 0px #000;
    background: url('https://www.transparenttextures.com/patterns/cracked-earth.png'), linear-gradient(to bottom, #F26419, #8c1c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transform: rotate(5deg);
    animation: pulseFire 2s infinite alternate;
}

@keyframes pulseFire {
    0% { filter: drop-shadow(0 0 10px rgba(242, 100, 25, 0.6)); transform: rotate(5deg) scale(1); }
    100% { filter: drop-shadow(0 0 25px rgba(242, 100, 25, 1)); transform: rotate(5deg) scale(1.05); }
}

/* ==========================================================================
   Details Section
   ========================================================================== */
.details-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.card {
    background: rgba(30, 25, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(230, 168, 23, 0.3);
    border-radius: 12px;
    padding: 4px; /* For border gradient effect */
    position: relative;
    flex: 1;
    min-width: 320px;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 20px rgba(230, 168, 23, 0.4);
    border-color: rgba(230, 168, 23, 0.6);
}

.card-inner {
    background: url('https://www.transparenttextures.com/patterns/dark-leather.png'), rgba(20, 18, 15, 0.95);
    border-radius: 8px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 0 15px rgba(242, 100, 25, 0.4);
}

.text h3 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: left;
    color: var(--primary-light);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-dark), transparent);
    margin: 2rem 0;
}

.location-details {
    text-align: center;
}

.park-name {
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1;
}

.park-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

.city {
    color: var(--secondary-light);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location-details p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #ccc;
    font-weight: 500;
}

.waiver-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(230, 168, 23, 0.4);
}

.waiver-text {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-light) !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

.waiver-btn {
    display: inline-block;
    background: rgba(230, 168, 23, 0.15);
    border: 1px solid var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.waiver-btn:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 168, 23, 0.4);
}

/* Activities */
.activities-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(230, 168, 23, 0.3);
    padding-bottom: 1rem;
}

.activities-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.activities-list li {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ddd;
    transition: color 0.3s ease;
}

.activities-list li:hover {
    color: var(--primary-light);
}

.activities-list li span {
    font-size: 1.2rem;
}

.food-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(230, 168, 23, 0.4);
    text-align: center;
}

.food-text {
    font-family: var(--font-accent);
    font-size: 1.2rem;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    animation: pulseFood 2s infinite alternate;
}

@keyframes pulseFood {
    0% { filter: drop-shadow(0 0 5px rgba(230, 168, 23, 0.3)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 15px rgba(230, 168, 23, 0.8)); transform: scale(1.02); }
}

@media (max-width: 600px) {
    .activities-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   RSVP Section
   ========================================================================== */
.rsvp-section {
    text-align: center;
    margin: 4rem 0 2rem;
    padding: 2rem;
}

.rsvp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(to bottom, #931d0b, #4a0c02);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5), inset 0 2px 10px rgba(255, 120, 120, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.rsvp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.rsvp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(0,0,0,0.6), 0 0 20px rgba(217, 56, 30, 0.6);
    border-color: var(--primary-light);
}

.rsvp-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 2rem;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

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

/* Delay for stagger effect */
.details-section.active .card:nth-child(1) {
    transition-delay: 0.1s;
}
.details-section.active .card:nth-child(2) {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 2rem;
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.contact-content {
    background: rgba(30, 25, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 168, 23, 0.3);
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-width: 800px;
    width: 100%;
}

.contact-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(230, 168, 23, 0.3);
    padding-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-person {
    text-align: center;
}

.contact-person h4 {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-person a {
    display: block;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.contact-person a:hover {
    color: var(--primary-light);
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: url('https://www.transparenttextures.com/patterns/dark-leather.png'), rgba(20, 18, 15, 0.95);
    border: 2px solid rgba(230, 168, 23, 0.5);
    border-radius: 12px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(50px) scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    color: var(--secondary-light);
    transform: rotate(90deg);
}

.modal-header h2 {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.modal-header p {
    text-align: center;
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.rsvp-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.rsvp-form .required {
    color: var(--secondary-light);
}

.rsvp-form .optional {
    color: #888;
    font-size: 0.8rem;
    font-weight: normal;
}

.rsvp-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(230, 168, 23, 0.3);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 10px rgba(230, 168, 23, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(to bottom, #931d0b, #4a0c02);
    border: 2px solid var(--primary-color);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0,0,0,0.6), 0 0 15px rgba(217, 56, 30, 0.6);
    border-color: var(--primary-light);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-result {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
}

.form-result.success {
    color: #4ade80;
}

.form-result.error {
    color: #f87171;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
