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

:root {
    --cream: #FDF8F4;
    --blush: #F2E0D6;
    --rose: #D4A59A;
    --dusty-rose: #C48B7F;
    --gold: #B8956A;
    --gold-light: #D4B896;
    --dark: #3D2C2C;
    --text: #5C4444;
    --text-light: #8B7272;
    --white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--text);
    overflow-x: hidden;
    font-weight: 300;
}

/* ===== ELEGANT SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold-light); border-radius: 3px; }

/* ===== DECORATIVE ELEMENTS ===== */
.ornament {
    display: block;
    margin: 0 auto;
    opacity: 0.4;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

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

.divider-icon {
    color: var(--gold);
    font-size: 14px;
    opacity: 0.7;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(170deg, var(--cream) 0%, var(--blush) 50%, var(--cream) 100%);
    padding: 40px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(212, 165, 154, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 149, 106, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(242, 224, 214, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-top-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.hero-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(48px, 12vw, 120px);
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-ampersand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(28px, 6vw, 60px);
    color: var(--gold);
    display: block;
    margin: -10px 0;
}

.hero-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--text-light);
    margin-top: 20px;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    /* left: 50%; */
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeUp 1s ease 1.5s forwards;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease infinite;
}

/* ===== FLORAL CORNERS ===== */
.floral-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floral-corner {
    position: absolute;
    width: clamp(100px, 20vw, 200px);
    height: clamp(100px, 20vw, 200px);
    opacity: 0.12;
}

.floral-corner--tl {
    top: 20px;
    left: 20px;
    border-top: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
    border-radius: 0;
}

.floral-corner--tl::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 60%;
    height: 60%;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}

.floral-corner--tr {
    top: 20px;
    right: 20px;
    border-top: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.floral-corner--tr::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60%;
    height: 60%;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.floral-corner--bl {
    bottom: 20px;
    left: 20px;
    border-bottom: 2px solid var(--gold);
    border-left: 2px solid var(--gold);
}

.floral-corner--bl::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 60%;
    height: 60%;
    border-bottom: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}

.floral-corner--br {
    bottom: 20px;
    right: 20px;
    border-bottom: 2px solid var(--gold);
    border-right: 2px solid var(--gold);
}

.floral-corner--br::before {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 60%;
    height: 60%;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

/* ===== SECTIONS COMMON ===== */
section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    text-align: center;
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* ===== INVITATION ===== */
.invitation {
    background: var(--white);
    position: relative;
}

.invitation-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 40px;
    text-align: center;
}

.invitation-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 2;
    color: var(--text);
    font-weight: 400;
}

.invitation-text p {
    margin-bottom: 20px;
}

.invitation-highlight {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(28px, 4vw, 42px);
    color: var(--dusty-rose);
    display: block;
    margin: 20px 0;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    background: linear-gradient(170deg, var(--blush) 0%, var(--cream) 100%);
    padding: 80px 20px;
    position: relative;
}

.countdown-section .section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 40px);
    flex-wrap: wrap;
    margin-top: 40px;
}

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

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 300;
    color: var(--dark);
    line-height: 1;
    position: relative;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: 8px;
}

/* ===== VENUE CARD WITH PHOTO ===== */
.detail-card--venue {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    text-align: left;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.detail-card--venue::before {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
}

.detail-card-photo {
    flex: 0 0 45%;
    overflow: hidden;
}

.detail-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    filter: saturate(0.85) contrast(1.02);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.detail-card--venue:hover .detail-card-photo img {
    transform: scale(1.05);
    filter: saturate(1) contrast(1.02);
}

.detail-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

@media (max-width: 600px) {
    .detail-card--venue {
        flex-direction: column;
    }

    .detail-card-photo {
        flex: none;
        height: 200px;
    }

    .detail-card-content {
        padding: 24px;
    }
}

/* ===== DETAILS CARDS ===== */
.details {
    padding: 80px 20px;
}

.details-inner {
    max-width: 800px;
    margin: 0 auto;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 600px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(184, 149, 106, 0.15);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(61, 44, 44, 0.06);
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(184, 149, 106, 0.1);
    pointer-events: none;
}

.detail-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: block;
}

.detail-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 12px;
}

.detail-card p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

.detail-card .detail-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 8px;
}

/* ===== TIMELINE ===== */
.timeline-section {
    background: var(--white);
    padding: 80px 20px;
}

.timeline-inner {
    max-width: 600px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--gold-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.timeline-time {
    width: 45%;
    text-align: right;
    padding-right: 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: var(--gold);
}

.timeline-desc {
    width: 45%;
    padding-left: 50px;
}

.timeline-desc h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
}

.timeline-desc p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== GIFTS ===== */
.gifts-section {
    padding: 80px 20px;
    background: linear-gradient(170deg, var(--cream) 0%, var(--blush) 50%, var(--cream) 100%);
}

.gifts-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.gifts-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    line-height: 2;
    color: var(--text);
    margin-bottom: 20px;
}

.gifts-note {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    font-style: italic;
}

.gift-icon-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    font-size: 28px;
    opacity: 0.5;
}

/* ===== RSVP ===== */
.rsvp-section {
    background: var(--white);
    padding: 80px 20px;
}

.rsvp-inner {
    max-width: 550px;
    margin: 0 auto;
}

.rsvp-form {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    border: 1px solid rgba(184, 149, 106, 0.2);
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-light);
    box-shadow: 0 0 0 3px rgba(184, 149, 106, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8956A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.radio-option {
    flex: 1;
    position: relative;
}

.radio-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--cream);
    border: 1px solid rgba(184, 149, 106, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 1px;
}

.radio-option input:checked + label {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--white);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(135deg, var(--gold) 0%, var(--dusty-rose) 100%);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 30px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dusty-rose) 0%, var(--gold) 100%);
    transition: left 0.4s ease;
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    box-shadow: 0 10px 40px rgba(184, 149, 106, 0.3);
    transform: translateY(-2px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeUp 0.6s ease;
}

.form-success h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 36px;
    color: var(--dusty-rose);
    margin-bottom: 16px;
}

.form-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(170deg, var(--cream), var(--blush));
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(32px, 6vw, 52px);
    color: var(--dark);
    margin-bottom: 10px;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    color: var(--text-light);
    letter-spacing: 4px;
}

.footer-heart {
    margin: 20px 0;
    font-size: 20px;
    opacity: 0.3;
}

.footer-note {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.5;
    margin-top: 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(6px); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== FLOATING 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;
    width: 12px;
    height: 12px;
    background: var(--rose);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    animation: petalFall linear infinite;
}

@keyframes petalFall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg) scale(0.8);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.4);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    section {
        padding: 60px 16px;
    }

    .invitation-inner {
        padding: 60px 24px;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 30px;
    }

    .timeline::before {
        display: none;
    }

    .timeline-item::before {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 8px 0;
    }

    .timeline-time {
        width: 100%;
        text-align: center;
        padding-right: 0;
    }

    .timeline-desc {
        width: 100%;
        padding-left: 0;
        text-align: center;
    }

    .detail-card {
        padding: 30px 24px;
    }

    .countdown-item {
        min-width: 70px;
    }
}

/* ===== NAV DOTS ===== */
.nav-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.nav-dot.active {
    opacity: 1;
    background: var(--gold);
    transform: scale(1.3);
}

.nav-dot:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .nav-dots {
        display: none;
    }
}

/* ===== LEAF SVG DECORATIONS ===== */
.leaf-decoration {
    position: absolute;
    opacity: 0.06;
    pointer-events: none;
}

.leaf-left {
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
}

.leaf-right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(15deg) scaleX(-1);
}
