/* ==========================================================================
   CSS CUSTOM VARIABLES & GLOBAL STYLES
   ========================================================================== */
:root {
    --bg-primary: #FAF8F5; /* Luxury Off-white/champagne */
    --color-slate: #1C1917; /* Dark slate for high contrast text */
    --color-muted: #78716C; /* Soft gray for description text */
    
    /* Gold Metallic Gradients */
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa7c11;
    --gold-gradient: linear-gradient(135deg, #f9f5e8 0%, #e6ca65 40%, #d4af37 60%, #b8860b 100%);
    --gold-text-gradient: linear-gradient(135deg, #b8860b 0%, #e6ca65 50%, #b8860b 100%);
    --gold-btn-gradient: linear-gradient(90deg, #aa7c11 0%, #d4af37 50%, #aa7c11 100%);
    
    /* Font Families */
    --font-serif: 'Cinzel', serif;
    --font-serif-deco: 'Cinzel Decorative', serif;
    --font-sans: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Background Silk Gradient effect */
.top-silk-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background: radial-gradient(circle at top right, rgba(243, 229, 171, 0.15) 0%, rgba(250, 248, 245, 0) 70%),
                radial-gradient(circle at top left, rgba(212, 175, 55, 0.1) 0%, rgba(250, 248, 245, 0) 50%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.1) 0%, rgba(250, 248, 245, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

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

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header-outer {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.75); /* Translucent glassmorphic background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    width: 100%;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

.anniversary-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
}

.header-brand-link {
    text-decoration: none;
    display: inline-block;
}

.header-brand-name h1 {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--color-slate);
    text-align: center;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

@media (max-width: 600px) {
    .header {
        flex-direction: row !important; /* Strictly lock in one single line */
        flex-wrap: nowrap !important;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.4rem;
    }
    .header-brand-name h1 {
        font-size: 1.05rem; /* Larger brand name on mobile as requested, but fits perfectly in one line */
        letter-spacing: 1px;
    }
    .brand-logo {
        height: 32px;
    }
    .anniversary-logo {
        height: 42px;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem 3rem;
}

.crown-container {
    margin-bottom: 1rem;
    animation: float 4s ease-in-out infinite;
}

.gold-crown {
    width: 90px;
    height: auto;
}

.present-tag {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--color-muted);
    margin-bottom: 1rem;
    position: relative;
}

.event-subtitle {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 8px;
    color: var(--color-slate);
    line-height: 1.1;
}

.event-main-title {
    font-family: var(--font-serif-deco);
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 4px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin: 0.5rem 0;
    filter: drop-shadow(0 3px 6px rgba(170, 124, 17, 0.2));
}

.event-category {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-slate);
    margin-bottom: 1.5rem;
}

/* Laurel divider */
.laurel-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    width: 80%;
    max-width: 400px;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.dot {
    width: 6px;
    height: 6px;
    background-color: var(--gold-primary);
    border-radius: 50%;
}

.year-badge {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 2px;
    font-size: 0.95rem;
}

.tagline {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--gold-dark);
    margin-bottom: 1.5rem;
}

.hero-desc {
    max-width: 550px;
    font-size: 1.05rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
}

/* Primary Button with Shimmer & Scale Animations */
.btn-primary {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #ffffff;
    background: var(--gold-btn-gradient);
    background-size: 200% auto;
    border: none;
    border-radius: 50px;
    padding: 1.1rem 2.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    outline: none;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    background-position: right center;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.01);
}

@media (max-width: 600px) {
    .event-subtitle {
        font-size: 1.5rem;
        letter-spacing: 4px;
    }
    .event-main-title {
        font-size: 3.2rem;
    }
    .event-category {
        font-size: 1.3rem;
        letter-spacing: 1.5px;
    }
    .tagline {
        font-size: 0.95rem;
        letter-spacing: 3px;
    }
    .btn-primary {
        padding: 0.95rem 2.2rem;
        font-size: 0.95rem;
    }
}

/* ==========================================================================
   PRIZE POOL SECTION
   ========================================================================== */
.prize-section {
    padding: 2rem 1.5rem 4rem;
}

/* Total Pool Card */
.total-pool-card {
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    position: relative;
}

.total-pool-card::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    pointer-events: none;
}

.laurel-wreath {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.laurel-svg {
    width: 100%;
    height: 100%;
}

.style-flip {
    transform: scaleX(-1);
}

.pool-content {
    text-align: center;
}

.pool-content h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: var(--color-slate);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pool-amount {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gold-text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}

/* Individual Prize Cards */
.prize-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.prize-card {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.prize-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    transition: var(--transition-smooth);
}

.prize-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
}

.prize-card.gold::after { background: #d4af37; }
.prize-card.silver::after { background: #c0c0c0; }
.prize-card.bronze::after { background: #cd7f32; }

/* Medal Design */
.medal-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.medal-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1.5px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

.gold-medal {
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
}

.silver-medal {
    background: radial-gradient(circle at 30% 30%, #e6e6e6, #808080);
}

.bronze-medal {
    background: radial-gradient(circle at 30% 30%, #df8f52, #8c4712);
}

.prize-info h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--color-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.prize-value {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-slate);
}

@media (max-width: 768px) {
    .prize-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        max-width: 380px;
    }
    
    .total-pool-card {
        padding: 1.8rem 1.2rem;
        gap: 1rem;
    }
    
    .laurel-wreath {
        width: 50px;
        height: 50px;
    }
    
    .pool-amount {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   HOW TO PARTICIPATE SECTION
   ========================================================================== */
.how-to-join {
    padding: 3rem 1.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    letter-spacing: 3px;
    text-align: center;
    color: var(--color-slate);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: var(--gold-primary);
}

.steps-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--gold-primary);
    color: var(--gold-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
    transition: var(--transition-smooth);
}

.step-item:hover .step-number {
    background-color: var(--gold-primary);
    color: #ffffff;
    transform: scale(1.1);
}

.step-body h5 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-slate);
    margin-bottom: 0.5rem;
}

.step-body p {
    font-size: 0.88rem;
    color: var(--color-muted);
}

@media (max-width: 768px) {
    .steps-flow {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        max-width: 450px;
    }
    
    .step-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .step-number {
        margin-bottom: 0;
        flex-shrink: 0;
    }
}

/* ==========================================================================
   COLLAPSIBLE TERMS & CONDITIONS
   ========================================================================== */
.terms-section {
    padding: 2rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.terms-toggle-btn {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold-dark);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    outline: none;
}

.terms-toggle-btn:hover {
    color: var(--color-slate);
    background-color: rgba(212, 175, 55, 0.06);
}

.toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.terms-toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

.terms-content-wrapper {
    width: 100%;
    max-width: 700px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.terms-content-wrapper.expanded {
    opacity: 1;
}

.terms-text {
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--color-muted);
    white-space: pre-line;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.02);
}

/* Loader Styles */
.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 1.5rem 0;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer {
    background-color: #171513;
    color: #ffffff;
    padding: 2.5rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--gold-primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-left p {
    opacity: 0.8;
}

/* Agency Branding Dynamic Styling */
.agency-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.agency-branding:hover {
    transform: scale(1.05);
}

.agency-row-1 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.15rem;
}

.agency-row-2 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(
        90deg, 
        #ff007f, 
        #ff7700, 
        #ffdd00, 
        #00ffcc, 
        #7f00ff, 
        #ff007f
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liveGradient 4s linear infinite;
    text-shadow: 0px 0px 8px rgba(0, 255, 204, 0.2);
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--gold-primary);
    opacity: 1;
    transform: translateY(-2px);
}

@keyframes liveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   REGISTRATION FORM MODAL POPUP (GOOGLE FORM)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 21, 19, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    width: 90%;
    max-width: 640px;
    height: 85vh;
    background: var(--bg-primary);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-slate);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.close-modal-btn:hover {
    background-color: var(--gold-primary);
    color: #ffffff;
    border-color: var(--gold-primary);
}

.modal-header-branding {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
}

.modal-logo {
    height: 30px;
    width: auto;
}

.modal-header-branding h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--color-slate);
    font-weight: 700;
}

.iframe-wrapper {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

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

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll reveal animations class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}
