/* ===========================
   BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #557244;
    --gold-light: #dce8d4;
    --rose: #e8b4b8;
    --rose-dark: #c9929b;
    --cream: #faf7f2;
    --cream-dark: #f5efe6;
    --text: #4a4a4a;
    --text-light: #7a7a7a;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   FALLING PETALS
   =========================== */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -20px;
    animation: fall linear forwards;
    opacity: 0.7;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(100px);
        opacity: 0;
    }
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* ===========================
   DIVIDERS
   =========================== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 25px auto;
    max-width: 300px;
}

.divider .leaf {
    display: block;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider .diamond {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
}

.divider.gold .leaf {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(85, 114, 68, 0.1) 0%, rgba(232, 180, 184, 0.2) 100%),
        radial-gradient(circle at 20% 50%, rgba(85, 114, 68, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(232, 180, 184, 0.08) 0%, transparent 50%),
        var(--cream);
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(85, 114, 68, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(232, 180, 184, 0.15) 0%, transparent 40%);
    animation: shimmer 8s ease-in-out infinite alternate;
}

@keyframes shimmer {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-top {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--text);
    margin: 20px 0;
    line-height: 1.2;
}

.names .amp {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--gold);
    margin: 0 15px;
}

.date-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 5px;
    color: var(--text);
    margin-top: 30px;
}

.scroll-down {
    display: inline-block;
    margin-top: 50px;
    color: var(--gold);
    animation: bounce 2s infinite;
}

.scroll-down svg {
    width: 40px;
    height: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.floating-hearts {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    opacity: 0.3;
}

.heart {
    font-size: 24px;
    color: var(--rose);
    animation: float 3s ease-in-out infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.5s;
}

.heart:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===========================
   COUNTDOWN SECTION
   =========================== */
.countdown {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.time-block .number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
    background: linear-gradient(135deg, var(--gold) 0%, #71905d 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-block .label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.separator {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.5;
    margin-top: -20px;
}

/* ===========================
   STORY SECTION
   =========================== */
.story {
    padding: 100px 20px;
    background: 
        radial-gradient(circle at 50% 50%, rgba(232, 180, 184, 0.05) 0%, transparent 70%),
        var(--cream);
    text-align: center;
}

.story-content {
    max-width: 700px;
    margin: 0 auto;
}

.story-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.9;
    color: var(--text);
    margin: 30px 0;
    font-weight: 300;
}

/* ===========================
   DETAILS SECTION
   =========================== */
.details {
    padding: 100px 20px;
    background: var(--white);
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 50px auto 0;
}

.detail-card {
    padding: 40px 30px;
    background: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(85, 114, 68, 0.15);
    border-color: var(--gold);
}

.icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--gold);
}

.icon svg {
    width: 100%;
    height: 100%;
}

.detail-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text);
}

.detail-card p {
    font-size: 1.1rem;
    color: var(--text);
    margin: 5px 0;
}

.detail-card .subtext {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 300;
}

/* ===========================
   GALLERY SECTION
   =========================== */
.gallery {
    padding: 100px 20px;
    background: var(--cream);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item-fit {
    background: var(--cream-dark);
}

.gallery-item-fit img {
    object-fit: contain;
    padding: 8px;
}

.gallery-item.gallery-item-fit:hover img {
    transform: scale(1.03);
}
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        transparent 50%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--white);
}

/* ===========================
   SCHEDULE SECTION
   =========================== */
.schedule {
    padding: 100px 20px;
    background: var(--white);
    text-align: center;
}

.timeline {
    max-width: 600px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--gold-light));
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--cream);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 25px;
    position: relative;
    z-index: 2;
}

.timeline-content {
    text-align: left;
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 300;
}

/* ===========================
   RSVP SECTION
   =========================== */
.rsvp {
    padding: 100px 20px;
    background: 
        linear-gradient(135deg, rgba(85, 114, 68, 0.05) 0%, rgba(232, 180, 184, 0.1) 100%),
        var(--cream);
    text-align: center;
}

.rsvp-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text);
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.messenger-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.messenger-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 13px 26px;
    border: 2px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.messenger-link:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(85, 114, 68, 0.22);
}

/* ===========================
   QUOTE SECTION
   =========================== */
.quote-section {
    padding: 100px 20px;
    background: var(--white);
    text-align: center;
}

.quote-note {
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.3vw, 1.2rem);
    line-height: 1.65;
    color: var(--text);
    text-align: left;
}

.quote-note p + p {
    margin-top: 28px;
}
blockquote {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--text);
    line-height: 1.8;
    position: relative;
}

blockquote::before {
    content: '"';
    font-size: 6rem;
    color: var(--gold-light);
    position: absolute;
    top: -30px;
    left: -30px;
    font-family: 'Cormorant Garamond', serif;
}

cite {
    display: block;
    margin-top: 30px;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-light);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    padding: 80px 20px;
    background: 
        linear-gradient(135deg, rgba(85, 114, 68, 0.1) 0%, rgba(232, 180, 184, 0.15) 100%),
        var(--cream-dark);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text);
    margin-bottom: 20px;
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--text);
    margin: 20px 0;
    font-weight: 300;
}

.footer-date {
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-top: 20px;
    font-weight: 500;
}

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 15px;
    }

    .time-block .number {
        font-size: 3rem;
    }

    .separator {
        font-size: 2.5rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
        margin-right: 15px;
    }

    blockquote::before {
        left: 0;
    }
}

@media (max-width: 480px) {
    .names {
        font-size: 2.5rem;
    }

    .countdown-timer {
        flex-direction: column;
        gap: 10px;
    }

    .separator {
        display: none;
    }
    .messenger-links {
        flex-direction: column;
        align-items: center;
    }

    .messenger-link {
        width: 100%;
        max-width: 280px;
    }
}
