/* =============================================
   AMRISH & BHUVANESWARI — WEDDING STYLES
   Design: Traditional Brahmin × Modern Premium
   ============================================= */

:root {
    --color-maroon: #5A0001;
    --color-maroon-dark: #3B0000;
    --color-gold: #D4AF37;
    --color-gold-light: #E8CC6E;
    --color-cream: #FFFCF2;
    --color-dark: #1A0D0D;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, .pre-title, .post-title, .section-title, .event-time {
    color: var(--color-maroon);
}

/* ---- Utilities ---- */
.hidden { opacity: 0; visibility: hidden; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.italic { font-style: italic; }

/* =============================================
   LOADER
   ============================================= */
.loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-maroon);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-logo-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    transform-origin: center center;
    border: 3px solid var(--color-gold);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3), 0 0 120px rgba(212, 175, 55, 0.1);
}

.loader-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* =============================================
   BACKGROUND LAYERS
   ============================================= */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.kolam-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vw;
    height: 150vw;
    background:
        radial-gradient(circle, transparent 20%, rgba(212, 175, 55, 0.04) 50%, transparent 80%),
        repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 40px, rgba(212, 175, 55, 0.02) 41px, transparent 42px);
    z-index: 0;
    pointer-events: none;
    animation: kolam-spin 180s linear infinite;
}

@keyframes kolam-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================
   LAYOUT
   ============================================= */
main {
    position: relative;
    z-index: 10;
}

.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
}



/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    text-align: center;
    height: 100vh;
    overflow: hidden;
}

.pre-title {
    font-size: 0.85rem;
    letter-spacing: 6px;
    color: var(--color-maroon);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.8;
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1.15;
    color: var(--color-maroon);
    font-weight: 600;
    margin: 1rem 0;
}

.hero-weds {
    display: inline-block;
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--color-gold);
    margin: -0.5rem 0;
}

.post-title {
    font-size: 1rem;
    letter-spacing: 8px;
    margin-top: 2.5rem;
    color: var(--color-maroon);
    font-weight: 500;
    opacity: 0.7;
}

/* =============================================
   GLASSMORPHISM CARDS
   ============================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 3.5rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.06),
        0 40px 80px rgba(74, 4, 4, 0.08);
}

.section-title {
    font-family: var(--font-heading);
    color: var(--color-maroon);
    font-size: 3.2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* =============================================
   WELCOME / STORY SECTION
   ============================================= */
.story-text {
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: center;
    color: var(--color-dark);
    max-width: 700px;
    margin: 0 auto;
}

.parents-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0;
}

.family-divider {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--color-maroon);
    font-weight: 700;
    padding: 0 1rem;
    line-height: 1;
}

.parent-block {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.parent-block h3 {
    color: var(--color-maroon);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.parent-block p {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.5;
}

/* =============================================
   EVENTS
   ============================================= */
.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.event-card {
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 60px rgba(74, 4, 4, 0.12),
        0 0 0 1px rgba(212, 175, 55, 0.2);
}

.event-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

.event-card h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-maroon);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.event-time {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-maroon);
    letter-spacing: 1px;
}

.event-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Agni Glow for Muhurtham */
.muhurtham-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(212, 173, 55, 0.1) 0%, transparent 70%);
    animation: agni-glow 4s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes agni-glow {
    0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.15); }
}

/* =============================================
   VENUE
   ============================================= */
.venue-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
}

.venue-info { flex: 1; }

.venue-card h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-maroon);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.venue-address {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--color-dark);
    opacity: 0.7;
}

.venue-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 24px;
    border: 3px solid var(--color-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

/* =============================================
   CTA BUTTONS
   ============================================= */
.glow-btn {
    display: inline-block;
    padding: 1.1rem 3.5rem;
    background: var(--color-maroon);
    color: #FFFFFF;
    text-decoration: none;
    border: 2px solid var(--color-gold);
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(90, 0, 1, 0.25);
    cursor: pointer;
}

.glow-btn:hover {
    background: var(--color-gold);
    color: var(--color-maroon);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    transform: translateY(-4px);
}

.glow-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

.whatsapp-btn {
    background: #25D366;
    border-color: #25D366;
    margin-top: 1.5rem;
}

.whatsapp-btn:hover {
    background: #1DA851;
    color: #FFFFFF;
    border-color: #1DA851;
}

/* Apple-Style Calendar Button */
.apple-style-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(90, 0, 1, 0.05);
    border: 1px solid rgba(90, 0, 1, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: var(--color-maroon);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.apple-style-btn:hover {
    background: rgba(90, 0, 1, 0.1);
    border-color: var(--color-maroon);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 0, 1, 0.1);
}

/* =============================================
   RSVP SECTION — Compact, content-fitted
   ============================================= */
.rsvp-section {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.rsvp-card {
    max-width: 750px;
    margin: 0 auto;
    padding: 3rem;
}

.rsvp-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

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

.rsvp-title {
    font-family: var(--font-heading);
    color: var(--color-maroon);
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
}

.rsvp-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-dark);
    opacity: 0.8;
    max-width: 550px;
    margin: 0 auto 1.5rem auto;
}

.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    color: var(--color-maroon);
    opacity: 0.7;
}

.apple-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    background: #FFFFFF;
    color: var(--color-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.apple-input::placeholder {
    color: rgba(26, 13, 13, 0.35);
}

.apple-input:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: #FFFCF2;
}

.apple-input::-webkit-outer-spin-button,
.apple-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.form-privacy {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    color: var(--color-dark);
    opacity: 0.4;
    text-align: center;
}

.success-icon-large {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.success-title {
    color: var(--color-maroon);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

/* =============================================
   PHOTOS SECTION
   ============================================= */
.photos-section {
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.02));
}

.photos-section .glass-card {
    border-color: rgba(212, 175, 55, 0.2);
}

/* =============================================
   COUNTDOWN & FOOTER
   ============================================= */
.footer-static {
    position: relative;
    padding: 4rem 2rem 14rem 2rem;
    text-align: center;
    z-index: 10;
}

.countdown-section {
    margin-bottom: 2.5rem;
}

.countdown-label {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-maroon);
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-digit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-digit .number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--color-maroon);
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 16px;
    padding: 0.5rem 1rem;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    line-height: 1.2;
}

.countdown-digit .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-dark);
    opacity: 0.5;
    margin-top: 0.5rem;
    font-weight: 600;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-gold), transparent);
    margin: 2rem auto;
}

.footer-tagline {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-maroon);
    margin-bottom: 0.5rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--color-dark);
    opacity: 0.4;
}

/* =============================================
   FLOATING ACTION BAR
   ============================================= */
.apple-action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(20, 10, 10, 0.7);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 0.4rem;
    gap: 0.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.apple-action-bar.hidden-initially {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(50px);
}

.apple-action-bar.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--color-cream);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    min-width: 85px;
    opacity: 0.85;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

.action-btn:hover svg {
    transform: translateY(-3px);
}

.action-btn.primary {
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
    font-weight: 600;
    opacity: 1;
}

.action-btn.primary:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--color-gold);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
        min-height: auto;
    }

    .couple-names {
        font-size: 3.5rem;
    }

    .hero-weds {
        font-size: 3rem;
    }

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

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

    .glass-card {
        padding: 2.5rem 1.5rem;
    }

    .venue-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .venue-image {
        width: 250px;
        height: 250px;
    }

    .loader-logo-container {
        width: 220px;
        height: 220px;
    }

    .rsvp-section {
        padding: 3rem 1.5rem;
    }

    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    .rsvp-inputs-row {
        grid-template-columns: 1fr;
    }

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

    .countdown-digit .number {
        font-size: 2rem;
        min-width: 55px;
        padding: 0.4rem 0.8rem;
    }

    .countdown-label {
        font-size: 1.3rem;
    }

    .apple-action-bar {
        bottom: 20px;
        width: 92%;
        justify-content: space-between;
    }

    .ornament-line {
        width: 50px;
    }

    .footer-tagline {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.8rem;
    }

    .hero-weds {
        font-size: 2.5rem;
    }

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

    .glow-btn {
        padding: 1rem 2.5rem;
        font-size: 0.85rem;
    }

    .countdown-grid {
        gap: 0.6rem;
    }

    .countdown-digit .number {
        font-size: 1.6rem;
        min-width: 48px;
    }
}
