/* --- DESIGN TOKENS --- */
:root {
    /* Colors */
    --clr-ivory: #FFFFF0;
    --clr-bg-light: #FAFAEB;
    --clr-beige: #F5F5DC;
    --clr-gold: #D4AF37;
    --clr-gold-light: #E6C280;
    --clr-green-dark: #013220;
    --clr-green-mutated: #1A4331;
    --clr-text-main: #333333;
    --clr-text-light: #FFFFF0;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Alex Brush', cursive;
    
    /* Transition */
    --trans-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--clr-text-main);
    background-color: var(--clr-ivory);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- REUSABLE UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.light-bg {
    background-color: var(--clr-bg-light);
}

.dark-bg {
    background-color: var(--clr-green-dark);
    color: var(--clr-text-light);
}

.default-bg {
    background-color: var(--clr-ivory);
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: 3rem;
    color: var(--clr-green-dark);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.light-heading h2 {
    color: var(--clr-gold);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.divider::before, .divider::after {
    content: '';
    height: 1px;
    width: 60px;
    background-color: var(--clr-gold);
}

.cross-icon {
    color: var(--clr-gold);
    font-size: 1.2rem;
}

/* Glassmorphism */
.card-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.dark-bg .card-glass {
    background: rgba(26, 67, 49, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: var(--clr-text-light);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: var(--clr-gold);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--trans-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--clr-green-dark);
    transition: var(--trans-smooth);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.glowing-btn {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}
.glowing-btn:hover {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

.mt-4 { margin-top: 2rem; }
.pb-4 { padding-bottom: 2rem; }

/* --- LOADER --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-ivory);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-out;
}

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

.rings {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.ring {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid var(--clr-gold);
    border-radius: 50%;
    top: 15px;
}

.ring-1 {
    left: 5px;
    animation: rotateRing1 2s infinite ease-in-out alternate;
}

.ring-2 {
    right: 5px;
    animation: rotateRing2 2s infinite ease-in-out alternate;
}

@keyframes rotateRing1 {
    0% { transform: translateX(0) scale(1); }
    100% { transform: translateX(10px) scale(1.1); }
}
@keyframes rotateRing2 {
    0% { transform: translateX(0) scale(1); }
    100% { transform: translateX(-10px) scale(1.1); }
}

.loader-text {
    font-size: 2.5rem;
    color: var(--clr-green-dark);
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.loader-container p {
    color: var(--clr-gold);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* --- NAVIGATION --- */
.glass-nav {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 40px;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--trans-smooth);
}

.glass-nav ul {
    display: flex;
    gap: 20px;
}

.glass-nav a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--clr-green-dark);
    transition: var(--trans-smooth);
    padding: 8px 12px;
    border-radius: 20px;
}

.glass-nav a:hover, .glass-nav a.active {
    background-color: var(--clr-gold);
    color: #fff;
}

/* Music Toggle */
.music-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-gold);
    color: #fff;
    border: none;
    z-index: 1001;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: var(--trans-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.music-btn:hover {
    transform: scale(1.1);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.hero-content {
    color: var(--clr-text-light);
    max-width: 800px;
    padding: 0 20px;
}

.pre-title {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    color: rgba(255,255,240,0.9);
}

.names-wrapper-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    margin-bottom: 10px;
}

.script-name {
    font-family: var(--font-script);
    font-size: 8.5rem;   /* Increased size slightly for Alex Brush */
    line-height: 0.9;
    font-weight: 400;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.3);
}

.ampersand-divider {
    position: relative;
    width: 100px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ampersand-divider::before, .ampersand-divider::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.ampersand-divider::before { left: 0; }
.ampersand-divider::after { right: 0; }

.ampersand-divider span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--clr-gold);
}

.getting-married {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 6px;
    margin-top: 10px;
    color: rgba(255,255,240,0.9);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 15px;
    color: var(--clr-gold-light);
}

.btn-primary-outline {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
    color: #fff;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-top: 30px;
    transition: var(--trans-smooth);
}

.btn-primary-outline:hover {
    background: rgba(255,255,255,1);
    color: var(--clr-green-dark);
}

/* --- INVITATION SECTION --- */
.invitation {
    background-color: var(--clr-ivory);
    padding: 120px 0 80px;
}

.invitation-ornament {
    margin-bottom: 40px;
}

.ornament-icon {
    color: var(--clr-gold);
    font-size: 1.5rem;
    position: relative;
}

.ornament-icon::before, .ornament-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: var(--clr-gold);
    opacity: 0.5;
}

.ornament-icon::before { right: 100%; margin-right: 20px; }
.ornament-icon::after { left: 100%; margin-left: 20px; }

.invitation-message {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--clr-green-dark);
    margin-bottom: 25px;
}

.invitation-names {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--clr-text-main);
    margin-bottom: 30px;
    font-weight: 300;
}

.invitation-names span {
    font-family: var(--font-script);
    color: var(--clr-gold);
    font-size: 3.5rem;
    display: inline-block;
    padding: 0 10px;
}

.main-invite {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--clr-green-dark);
    margin-bottom: 35px;
}

.blessing-box {
    margin: 40px 0;
    padding: 20px;
    border-left: 2px solid var(--clr-gold);
    border-right: 2px solid var(--clr-gold);
    display: inline-block;
}

.blessing-box p {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: #444;
}

.blessing-box strong {
    display: block;
    margin-top: 10px;
    color: var(--clr-gold);
    font-size: 1.5rem;
    font-family: var(--font-serif);
}

.final-note {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.5rem); /* Responsive font size */
    font-style: italic;
    color: var(--clr-gold);
    font-weight: 400;
    margin-top: 50px;
    letter-spacing: 1px;
    padding: 0 15px; /* Prevent touching edges on mobile/tablet */
    line-height: 1.6;
}

.invitation-divider {
    margin-top: 60px;
}

.floral-divider {
    width: 60px;
    opacity: 0.15;
    filter: sepia(1) saturate(5) hue-rotate(10deg);
}

@media (max-width: 768px) {
    .invitation-names { font-size: 1.8rem; }
    .invitation-names span { font-size: 2.5rem; }
    .main-invite { font-size: 1.3rem; }
    .blessing-box p { font-size: 1.1rem; }
}
.couple-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Tablet Optimization for Couple Section */
@media (min-width: 601px) and (max-width: 1024px) {
    .couple-wrapper {
        gap: 20px;
        flex-wrap: nowrap; /* Keep side-by-side on iPad */
    }
    .person {
        width: 320px !important;
        padding: 30px 20px !important;
    }
    .and-divider h2 {
        font-size: 3rem !important;
    }
}

.person {
    text-align: center;
    padding: 40px 30px;
    width: 350px;
}

.img-ring {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--clr-gold);
    padding: 8px;
    margin: 0 auto 25px;
    position: relative;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.img-ring:hover .img-wrapper {
    transform: scale(1.05);
}

.person h3 {
    font-size: 2.2rem;
    color: var(--clr-green-dark);
    margin-bottom: 5px;
}

.role {
    font-family: var(--font-sans);
    color: var(--clr-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.parents-info {
    font-size: 0.95rem;
    color: var(--clr-text-main);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding-top: 15px;
}

.parents-names {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 5px;
}

.and-divider h2 {
    font-size: 4rem;
    color: var(--clr-gold);
    font-style: italic;
}

/* --- EVENTS SECTION --- */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--clr-gold);
    top: 0;
    bottom: 0;
    left: 30px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0 30px 60px;
    position: relative;
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 10px;
    background-color: var(--clr-green-dark);
    border: 2px solid var(--clr-gold);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--clr-gold);
}

.timeline-content {
    padding: 30px;
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--clr-gold);
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--clr-beige);
    font-family: var(--font-sans);
}

.event-meta i {
    color: var(--clr-gold);
}

/* --- VENUE SECTION --- */
.venue-luxury-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.venue-info-card {
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary-catchy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: var(--clr-gold);
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
}

.btn-primary-catchy:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.5);
    background: var(--clr-green-dark);
}

.bounce-icon {
    animation: iconBounce 2s infinite;
}

@keyframes iconBounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* --- SAVE THE DATE --- */
.save-the-date {
    position: relative;
    text-align: center;
    color: #fff;
    clip-path: inset(0); /* Essential to contain the fixed child */
}

.save-the-date::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/pic.png');
    background-size: cover;
    background-position: center;
    z-index: -2; /* Behind the overlay */
}

.save-the-date .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(1, 50, 32, 0.4); 
    z-index: -1;
}

.save-the-date h2 {
    font-family: 'Alex Brush', cursive;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    text-transform: none; /* Script looks better in mixed case */
    color: #fff;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.date-text {
    font-size: 1.5rem;
    letter-spacing: 8px;
    margin-bottom: 50px;
    color: var(--clr-gold);
    position: relative;
    z-index: 1;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 500px; /* Limits size on desktop */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.time-box {
    width: 100%;
    aspect-ratio: 1/1; /* Keeps them square */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.time-box h3 {
    font-size: clamp(1.2rem, 5vw, 2.5rem); /* Slightly larger for emphasis */
    margin: 0;
    color: #fff; /* Changed from gold to white */
    font-weight: 700;
}

.time-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-gold);
}

/* --- GALLERY SECTION --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.mobile-only {
    display: none !important; /* Always hidden on desktop */
}


.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .hover-icon {
    opacity: 1;
}

.gallery-item:hover .hover-icon i {
    transform: translateY(0);
}

/* --- RSVP SECTION --- */
.rsvp-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px 40px;
    text-align: center;
}

.rsvp-card h2 {
    font-size: 2.8rem;
    color: var(--clr-gold);
    margin-bottom: 10px;
}

.rsvp-form {
    text-align: left;
}

.rsvp-form .input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 35px;
}

.rsvp-form .input-group label {
    font-size: 0.8rem;
    color: var(--clr-gold);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0px;
    font-weight: 600;
}

.rsvp-form .input-group input {
    width: 100%;
    padding: 10px 0;
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
    border-radius: 0;
}

.radio-group-new {
    margin-bottom: 40px;
}

.radio-options-modern {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 10px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.radio-content i {
    font-size: 1.2rem;
    color: rgba(212, 175, 55, 0.5);
}

.radio-content span {
    font-size: 0.85rem;
    color: var(--clr-beige);
    font-weight: 500;
}

.radio-card input:checked + .radio-content {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--clr-gold);
    transform: translateY(-3px);
}

.radio-card input:checked + .radio-content i {
    color: var(--clr-gold);
}

.radio-card input:checked + .radio-content span {
    color: #fff;
}

.full-width-btn {
    width: 100%;
}

.btn-primary { width: 100%; }

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

.hidden { display: none !important; }

.form-message {
    text-align: center;
    margin-top: 20px;
    color: var(--clr-gold);
    font-style: italic;
    font-size: 1.1rem;
}

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

/* --- FOOTER --- */
footer {
    background-color: var(--clr-green-dark);
    color: var(--clr-text-light);
    text-align: center;
    padding: 60px 20px 100px; /* Extra bottom padding for nav */
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

footer p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clr-gold-light);
}

footer h2 {
    font-size: 3rem;
    margin: 15px 0;
    color: var(--clr-gold);
}

.inline-heart {
    font-size: 1.5rem;
    margin: 0 10px;
}

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(1, 50, 32, 0.95);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border: 4px solid var(--clr-gold);
    border-radius: 5px;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--clr-gold);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* --- ANIMATIONS & EFFECTS --- */
/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Falling Petals */
#petals-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 999;
}

.petal {
    position: absolute;
    background-color: rgba(255, 255, 240, 0.3); /* Subtle white petal */
    border-radius: 15% 85% 15% 85%;
    box-shadow: 0 0 5px rgba(255,255,255,0.2);
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg) translateX(50px); opacity: 0; }
}


/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-title { font-size: 3.5rem; }
    .glass-nav { width: 90%; }
    .glass-nav ul { justify-content: space-around; gap: 5px; }
    .glass-nav a { padding: 8px; font-size: 0.75rem; }
}

@media (max-width: 768px) {
    .main-title { font-size: 2.8rem; }
    .ampersand { font-size: 2.2rem; }
    .typing-text { font-size: 1.2rem; }
    .section { padding: 70px 0; }
    .section-heading h2 { font-size: 2.2rem; }
    
    .timeline::after { left: 20px; }
    .timeline-item { padding-left: 45px; }
    .timeline-icon { width: 30px; height: 30px; left: 5px; font-size: 0.8rem; }
    .timeline-content { padding: 20px; }
    
    .venue-card { padding: 20px; }
    
    footer h2 { font-size: 2.2rem; }

    .save-the-date {
        background-attachment: scroll; /* Reset for safety, though pseudo-element takes over */
    }
}

@media (max-width: 480px) {
    .glass-nav ul { flex-wrap: wrap; justify-content: center; }
    .glass-nav { border-radius: 20px; bottom: 15px; }
    .radio-options { flex-direction: column; gap: 10px; }
}

/* --- MOBILE GALLERY ENFORCEMENT --- */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    /* Hide the last 2 items on mobile as requested */
    .mobile-hide, .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important; /* Show on mobile */
    }
}

/* --- COUNTDOWN FINISHED STATE --- */
.countdown.finished {
    display: block; /* Disable grid layout */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.finished-message {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.finished-ornament {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.finished-heart-icon {
    color: var(--clr-gold);
    font-size: 1.8rem;
    animation: heartBeat 2s infinite ease-in-out;
}

.finished-ornament::before,
.finished-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--clr-gold), transparent);
}

.finished-ornament::before {
    right: 100%;
    margin-right: 15px;
}

.finished-ornament::after {
    left: 100%;
    margin-left: 15px;
}

.finished-title {
    font-family: var(--font-script);
    font-size: clamp(3rem, 8vw, 4.5rem);
    color: #fff;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    margin-bottom: 10px;
    line-height: 1.2;
}

.finished-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    color: var(--clr-gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
    }
    50% {
        transform: scale(1.15);
        text-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
    }
}

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