/* ========================================
   Wedding Invitation — Адыбек & Инесса
   Romantic Minimalism / Luxury Style
   ======================================== */

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

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    color: #5a4a3a;
    background: #fffdf8;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    line-height: 1.3;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Container --- */
.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Base --- */
.section {
    padding: 100px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.4rem;
    color: #6b5a4e;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* --- Divider --- */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #c9a84c, #d4a574, #e8a0b4);
    margin: 20px auto 32px;
}

.divider-light {
    background: rgba(255,255,255,0.4);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid #8b7355;
    color: #8b7355;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    background: transparent;
}

.btn:hover {
    background: linear-gradient(135deg, #c9a84c, #8b7355);
    border-color: #c9a84c;
    color: #fff;
}

/* --- Photo Placeholders --- */
.photo-placeholder {
    width: 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::after {
    content: 'PHOTO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(107, 90, 78, 0.3);
}


/* ========================================
   1. HERO
   ======================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: #e8d5c4;
    padding: 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 253, 248, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6b5a4e;
    margin-bottom: 24px;
    text-shadow: 0 1px 6px rgba(255, 253, 248, 0.8);
}

.hero-names {
    font-size: 3.5rem;
    font-weight: 400;
    color: #3a2f25;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    text-shadow: 0 2px 10px rgba(255, 253, 248, 0.9);
}

.hero-names span {
    font-style: italic;
    font-weight: 300;
    opacity: 0.6;
    margin: 0 8px;
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #5a4a3a;
    text-shadow: 0 1px 6px rgba(255, 253, 248, 0.8);
    margin-bottom: 24px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.hero-scroll span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8b7355;
    opacity: 0.7;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #8b7355, transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   2. GREETING
   ======================================== */
.greeting {
    background: #fffdf8;
}

.greeting-photo {
    max-width: 320px;
    margin: 0 auto 48px;
}

.greeting-img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
}

.greeting-text h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.greeting-text p {
    max-width: 520px;
    margin: 0 auto 16px;
    font-size: 0.95rem;
    color: #7a6a5a;
}

/* ========================================
   3. LOCATION
   ======================================== */
.location {
    background: linear-gradient(135deg, #faf6f0 0%, #f5ede4 50%, #fce8d5 100%);
}

.location-icon {
    color: #c9a84c;
    margin-bottom: 24px;
}

.location-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #6b5a4e;
    max-width: 480px;
    margin: 0 auto 12px;
}

.location-text {
    font-size: 0.95rem;
    color: #7a6a5a;
    margin-bottom: 8px;
}

.venue-card {
    background: #fff;
    padding: 32px;
    border-radius: 4px;
    margin: 24px auto 32px;
    max-width: 400px;
    box-shadow: 0 2px 20px rgba(139, 115, 85, 0.08);
}

.venue-card h4 {
    font-size: 1.4rem;
    color: #6b5a4e;
    margin-bottom: 8px;
}

.venue-card p {
    font-size: 0.9rem;
    color: #8a7a6a;
    line-height: 1.6;
}

/* ========================================
   4 & 7. PHOTO SECTIONS
   ======================================== */
.photo-section {
    padding: 60px 0;
    background: #fffdf8;
}

.large-photo {
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 4px;
}

.photo-img {
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.large-photo:hover .photo-img {
    transform: scale(1.03);
}

/* ========================================
   5. TIMELINE
   ======================================== */
.timeline {
    background: linear-gradient(180deg, #fffdf8 0%, #f5ede4 40%, #fce8d5 100%);
    margin-top: -1px;
}

.timeline-list {
    max-width: 400px;
    margin: 16px auto 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(201, 184, 168, 0.3);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #d4a574, #c9a84c);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.timeline-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #6b5a4e;
    min-width: 70px;
    text-align: left;
}

.timeline-desc {
    font-size: 0.9rem;
    color: #7a6a5a;
    text-align: left;
}

/* ========================================
   6. DRESS CODE
   ======================================== */
.dresscode {
    background: linear-gradient(180deg, #fce8d5 0%, #f5ede4 50%, #faf6f0 100%);
    margin-top: -1px;
}

.dresscode-intro {
    font-size: 0.95rem;
    color: #7a6a5a;
    max-width: 480px;
    margin: 0 auto 8px;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.color-swatch {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch span {
    position: absolute;
    bottom: -24px;
    font-size: 0.7rem;
    color: #8a7a6a;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.dresscode-note {
    font-size: 0.85rem;
    color: #9a8a7a;
    font-style: italic;
    margin: 40px 0 32px;
}

.dresscode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.dresscode-card {
    background: #faf6f0;
    padding: 32px 20px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.dresscode-card:hover {
    transform: translateY(-4px);
}

.dresscode-icon {
    color: #c9a84c;
    margin-bottom: 16px;
}

.dresscode-card h4 {
    font-size: 1.2rem;
    color: #6b5a4e;
    margin-bottom: 8px;
}

.dresscode-card p {
    font-size: 0.85rem;
    color: #8a7a6a;
}

/* ========================================
   8. WISHES
   ======================================== */
.wishes {
    background: linear-gradient(135deg, #faf6f0 0%, #f5ede4 50%, #fce8d5 100%);
}

.wishes-photos {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.wish-photo {
    width: 160px;
    overflow: hidden;
    border-radius: 100px 100px 4px 4px;
}

.wish-photo-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 100px 100px 4px 4px;
    transition: transform 0.6s ease;
}

.wish-photo:hover .wish-photo-img {
    transform: scale(1.05);
}

.wishes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 520px;
    margin: 0 auto;
}

.wish-card {
    background: #fff;
    padding: 36px 28px;
    border-radius: 4px;
    box-shadow: 0 2px 20px rgba(139, 115, 85, 0.06);
    transition: transform 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-4px);
}

.wish-icon {
    color: #c9a84c;
    margin-bottom: 16px;
}

.wish-card h4 {
    font-size: 1.3rem;
    color: #6b5a4e;
    margin-bottom: 10px;
}

.wish-card p {
    font-size: 0.9rem;
    color: #7a6a5a;
}

/* ========================================
   9. COORDINATOR
   ======================================== */
.coordinator {
    background: #fffdf8;
}

.coordinator-text {
    font-size: 0.95rem;
    color: #7a6a5a;
    max-width: 460px;
    margin: 0 auto 24px;
}

.coordinator-list {
    list-style: none;
    max-width: 300px;
    margin: 0 auto 36px;
}

.coordinator-list li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #7a6a5a;
    position: relative;
    padding-left: 20px;
}

.coordinator-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c9b8a8;
    transform: translateY(-50%);
}

/* ========================================
   10. RSVP
   ======================================== */
.rsvp {
    background: linear-gradient(135deg, #faf6f0 0%, #f5ede4 50%, #fce8d5 100%);
}

.rsvp-subtitle {
    font-size: 0.95rem;
    color: #8a7a6a;
    margin-bottom: 8px;
}

.rsvp-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b5a4e;
    margin-bottom: 10px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d9ccbe;
    border-radius: 4px;
    background: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: #5a4a3a;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input[type="text"]:focus {
    border-color: #8b7355;
}

.form-group input[type="text"]::placeholder {
    color: #bfb0a0;
}

/* Radio buttons (attendance) */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #5a4a3a;
    padding: 12px 16px;
    border: 1px solid #e5d9cc;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #c9b8a8;
    background: #fdfaf6;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 2px solid #c9b8a8;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
    border-color: #8b7355;
    background: #8b7355;
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.radio-label input[type="radio"]:checked ~ span:last-child {
    color: #6b5a4e;
    font-weight: 400;
}

/* Checkbox buttons (alcohol multi-select) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #5a4a3a;
    padding: 12px 16px;
    border: 1px solid #e5d9cc;
    border-radius: 4px;
    background: #fff;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #c9b8a8;
    background: #fdfaf6;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: block;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    border-radius: 4px;
    border: 2px solid #c9b8a8;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    border-color: #8b7355;
    background: #8b7355;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ span:last-child {
    color: #6b5a4e;
    font-weight: 400;
}

/* Selected card highlight */
.radio-label input[type="radio"]:checked ~ .radio-custom,
.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 40px 0;
    color: #6b5a4e;
}

.form-success svg {
    color: #8b7355;
    margin-bottom: 16px;
}

.form-success p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
}

/* ========================================
   11. FINAL
   ======================================== */
.final {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    background: #5a4a3a;
    padding: 0 0 80px 0;
    overflow: hidden;
}

.final-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.final-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.final-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.final h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 300;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 300;
    color: #fff;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-top: 8px;
}

/* ========================================
   MUSIC BUTTON
   ======================================== */
.music-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #c9a84c, #d4a574);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4);
    transition: all 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.music-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.5);
}

.music-btn.playing {
    animation: musicPulse 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(201, 168, 76, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(201, 168, 76, 0.7); }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: #3a2f25;
    padding: 24px 20px;
    text-align: center;
}

.site-footer p {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.footer-telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-telegram-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   TELEGRAM INVITE (RSVP success)
   ======================================== */
.telegram-invite-text {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.9rem !important;
    color: #7a6a5a;
    margin: 16px 0 20px;
    line-height: 1.6;
}

.btn-telegram {
    background: linear-gradient(135deg, #229ED9, #1a8bc7);
    border-color: #229ED9;
    color: #fff;
    display: inline-block;
    margin-top: 8px;
}

.btn-telegram:hover {
    background: linear-gradient(135deg, #1a8bc7, #1576a8);
    border-color: #1a8bc7;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .section {
        padding: 64px 0;
    }

    .section h2 {
        font-size: 1.8rem;
    }

    /* Hero — stronger overlay for mobile readability */
    .hero-overlay {
        background: rgba(255, 253, 248, 0.55);
    }

    .hero-content {
        margin-top: -60px;
    }

    .hero-names {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 0.65rem;
    }

    .hero-scroll {
        bottom: 24px;
    }

    /* Greeting photo — wider on mobile */
    .greeting-photo {
        max-width: 85%;
    }

    /* Dresscode — stack on mobile */
    .dresscode-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
    }

    /* Form — always single column on mobile */
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    /* Bigger touch targets for radio/checkbox buttons */
    .radio-label,
    .checkbox-label {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    /* Bigger submit button */
    .btn-submit {
        padding: 18px;
        font-size: 0.9rem;
    }

    /* Wishes photos */
    .wishes-photos {
        gap: 16px;
    }

    .wish-photo {
        width: 140px;
    }

    /* Countdown */
    .countdown {
        gap: 20px;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .final h2 {
        font-size: 1.7rem;
    }

    /* Final — stronger overlay on mobile */
    .final-overlay {
        background: rgba(0, 0, 0, 0.55);
    }

    .color-swatch {
        width: 56px;
        height: 56px;
    }

    .venue-card {
        padding: 24px 20px;
    }

    /* Buttons — bigger touch target */
    .btn {
        padding: 16px 32px;
        font-size: 0.8rem;
    }

    /* Form inputs — bigger for mobile */
    .form-group input[type="text"] {
        padding: 16px;
        font-size: 1rem;
    }

    /* Photo sections — less padding */
    .photo-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 48px 0;
    }

    .hero-names {
        font-size: 2rem;
    }

    .countdown {
        gap: 14px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

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

    .timeline-item {
        gap: 14px;
    }

    .timeline-icon {
        width: 48px;
        height: 48px;
    }

    .timeline-time {
        font-size: 1.3rem;
        min-width: 60px;
    }

    .wish-photo {
        width: 120px;
    }

    .greeting-photo {
        max-width: 90%;
    }
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */

/* Shimmer effect on dividers */
.divider {
    position: relative;
    overflow: hidden;
}

.divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Float animation for icons */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.location-icon,
.wish-icon,
.dresscode-icon {
    animation: float 4s ease-in-out infinite;
}

.wish-card:nth-child(2) .wish-icon { animation-delay: 0.5s; }
.wish-card:nth-child(3) .wish-icon { animation-delay: 1s; }

/* Timeline icon pulse on scroll */
.timeline-icon {
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-icon {
    background: linear-gradient(135deg, #c9a84c, #d4a574);
    transform: scale(1.1);
}

/* Venue card subtle glow */
.venue-card {
    transition: all 0.4s ease;
}

.venue-card:hover {
    box-shadow: 0 8px 40px rgba(139, 115, 85, 0.15);
    transform: translateY(-2px);
}

/* Selection animation */
.radio-label input[type="radio"]:checked ~ .radio-custom,
.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    animation: selectPop 0.3s ease;
}

@keyframes selectPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Button ripple-like hover */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(139, 115, 85, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Photo section reveal mask */
.large-photo {
    position: relative;
}

/* Greeting photo elegant frame */
.greeting-photo {
    position: relative;
}

.greeting-photo::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 8px;
    pointer-events: none;
    transition: inset 0.4s ease;
}

.greeting-photo:hover::after {
    inset: -14px;
}

/* Color swatch bounce */
.color-swatch {
    animation: swatchFloat 3s ease-in-out infinite;
}

.color-swatch:nth-child(1) { animation-delay: 0s; }
.color-swatch:nth-child(2) { animation-delay: 0.3s; }
.color-swatch:nth-child(3) { animation-delay: 0.6s; }
.color-swatch:nth-child(4) { animation-delay: 0.9s; }

@keyframes swatchFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Countdown number animation */
.countdown-number {
    transition: transform 0.3s ease;
}

.countdown-item:hover .countdown-number {
    transform: scale(1.15);
}

/* Success message animation */
.form-success {
    animation: successAppear 0.6s ease forwards;
}

@keyframes successAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero content entrance */
.hero-content {
    animation: heroEntrance 1.5s ease forwards;
}

@keyframes heroEntrance {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ========================================
   MOBILE: disable heavy/hover animations
   ======================================== */
@media (max-width: 768px) {
    /* Disable continuous float animations (battery drain) */
    .location-icon,
    .wish-icon,
    .dresscode-icon {
        animation: none;
    }

    /* Disable swatch bounce */
    .color-swatch {
        animation: none;
    }

    /* Disable hover effects (no hover on touch) */
    .large-photo:hover .photo-img,
    .wish-photo:hover .wish-photo-img,
    .dresscode-card:hover,
    .wish-card:hover,
    .venue-card:hover,
    .greeting-photo:hover::after,
    .countdown-item:hover .countdown-number,
    .timeline-item:hover .timeline-icon {
        transform: none;
        box-shadow: inherit;
    }

    /* Simpler greeting photo frame on mobile */
    .greeting-photo::after {
        inset: -6px;
    }

    /* Disable button ripple on mobile */
    .btn::after {
        display: none;
    }

    /* Keep shimmer but slower (less CPU) */
    .divider::after {
        animation-duration: 5s;
    }

    /* Active states for touch (replace hover) */
    .radio-label:active,
    .checkbox-label:active {
        background: #f5ede4;
        border-color: #c9b8a8;
    }

    .btn:active {
        background: #8b7355;
        color: #fff;
    }

    .wish-card:active {
        transform: scale(0.98);
    }

    .dresscode-card:active {
        transform: scale(0.98);
    }
}
