/* ===================================
   Wedding Website - Mobile First CSS
   Beige & Green Color Palette
   Akbilek & Yevgeniy - 22.03.2026
   =================================== */

/* Import Google Fonts with Cyrillic Extended support */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Lobster&family=Marck+Script&family=Montserrat:wght@300;400;500;600&family=Tangerine:wght@400;700&display=swap');

/* CSS Variables */
:root {
    /* Primary Green tones (from PLAN.md) */
    --green-dark: #7d9b79;
    --green-main: #7d9b79;
    --green-light: #7d9b79;
    --green-muted: #b5b99a;

    /* Beige tones (from PLAN.md) */
    --beige-main: #f4efe9;
    --beige-light: #faf8f5;
    --beige-warm: #ebe4da;
    --beige-dark: #d9d0c3;

    /* Text colors */
    --text-light: #f4efe9;
    --text-dark: #3d3d3d;
    --text-muted: #6b6b6b;

    /* Accent */
    --gold-accent: #c4a77d;
    --heart-color: #b38b6d;

    /* Shadows & Effects */
    --shadow-soft: 0 4px 20px rgba(106, 112, 76, 0.15);
    --shadow-medium: 0 8px 40px rgba(106, 112, 76, 0.2);
    --shadow-envelope: 0 15px 50px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* ========== ENVELOPE TEXT POSITIONING ==========
       Tweak these to adjust text position on the envelope image */
    --envelope-text-top: 25%;           /* Names vertical position from top */
    --envelope-text-left: 50%;          /* Names horizontal center */
    --envelope-date-bottom: 13%;        /* Date vertical position from bottom */
    --envelope-date-left: 50%;          /* Date horizontal center */
}

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

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

body {
    font-family: 'Cormorant Garamond', 'Times New Roman', serif;
    background-color: var(--beige-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.3;
}

.handwritten {
    font-family: 'Marck Script', cursive;
    font-weight: 400;
}

.elegant-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    letter-spacing: 0.05em;
}c

.sans-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Container */
.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Base */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.section-green {
    background-color: var(--green-main);
    color: var(--text-light);
}

.section-beige {
    background-color: var(--beige-main);
    color: var(--text-dark);
}

/* Noise texture overlay */
.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ===================================
   PAGE 1: Envelope Section
   =================================== */
.envelope-section {
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f4efe9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0; /* Remove default section padding for envelope */
}

.envelope-wrapper {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.envelope {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Envelope image - mobile first: full screen coverage */
.envelope-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Names overlay - positioned on the envelope */
.envelope-names {
    position: absolute;
    top: var(--envelope-text-top);
    left: var(--envelope-text-left);
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.envelope-names .name-first,
.envelope-names .name-second {
    display: block;
    font-family: 'Lobster', cursive;
    font-size: 2.8rem;
    color: var(--beige-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    line-height: 1.15;
}

.envelope-ampersand {
    display: block;
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    color: var(--beige-warm);
    opacity: 0.85;
    margin: 0.2rem 0;
}

/* Date positioned separately at bottom of envelope */
.envelope-date {
    position: absolute;
    bottom: var(--envelope-date-bottom);
    left: var(--envelope-date-left);
    transform: translateX(-50%);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: var(--beige-warm);
    letter-spacing: 0.25em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeInUp 1s ease 0.5s both;
}

.scroll-hint-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    color: var(--beige-warm);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    animation: bounce 2s infinite;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--beige-warm);
    stroke-width: 2;
    opacity: 0.6;
}

/* ===================================
   PAGE 2: Photo + Quote + Music
   =================================== */
.story-section {
    background-color: var(--beige-main);
    padding: 4rem 1.5rem;
}

.story-content {
    max-width: 400px;
    text-align: center;
}

.story-photo {
    position: relative;
    margin-bottom: 2rem;
}

.story-photo img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 200px 200px 20px 20px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.story-photo-frame {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px);
    max-width: 340px;
    height: calc(100% + 20px);
    border: 1px solid var(--green-muted);
    border-radius: 210px 210px 30px 30px;
    pointer-events: none;
    opacity: 0.5;
}

.story-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

/* Music invitation */
.music-invitation {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--beige-warm) 0%, var(--beige-main) 100%);
    border-radius: 16px;
    border: 1px solid var(--beige-dark);
}

.music-invitation-text {
    font-family: 'Lobster', cursive;
    font-size: 1.3rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--green-main);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.music-btn:hover {
    background: var(--green-main);
}

.music-btn:hover svg {
    fill: var(--beige-light);
}

.music-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--green-main);
    transition: var(--transition-fast);
}

.music-btn-main {
    width: 60px;
    height: 60px;
    background: var(--green-main);
    contain: layout style paint;
    will-change: transform;
}

.music-btn-main svg {
    width: 24px;
    height: 24px;
    fill: var(--beige-light);
}

.music-btn-main:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

.music-btn-main.playing {
    animation: pulse 2s infinite;
}

/* ===================================
   PAGE 3: Date Section with Calendar
   =================================== */
.date-section {
    background-color: var(--green-main);
    padding: 4rem 1.5rem;
}

.date-content {
    max-width: 400px;
    text-align: center;
    width: 100%;
}

.date-header {
    margin-bottom: 2rem;
}

.date-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--beige-warm);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.date-main {
    font-family: 'Lobster', cursive;
    font-size: 1.5rem;
    color: var(--beige-light);
    margin-bottom: 0.5rem;
}

.date-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.date-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--beige-warm);
}

.date-day {
    font-family: 'Tangerine', cursive;
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: var(--beige-light);
}

.date-year {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--beige-warm);
}

.date-weekday {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--beige-warm);
    opacity: 0.9;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    gap: 1rem;
}

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

.divider-icon {
    font-size: 1rem;
    color: var(--beige-warm);
    opacity: 0.7;
}

/* Calendar */
.calendar-wrapper {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    /* Removed backdrop-filter: blur(10px) for better scroll performance */
}

.calendar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--beige-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.calendar {
    width: 100%;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.calendar-header span {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--beige-warm);
    text-align: center;
    padding: 0.5rem 0;
    opacity: 0.8;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--beige-light);
    text-align: center;
    padding: 0.6rem 0.3rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.calendar-day.empty {
    visibility: hidden;
}

.calendar-day.other-month {
    opacity: 0.3;
}

/* Heart-shaped highlight for wedding date */
.calendar-day.selected {
    position: relative;
    color: var(--beige-light);
    font-weight: 600;
}

.calendar-day.selected::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* Center the heart, nudge left a bit more on mobile */
    transform: translate(-53%, -45%);
    width: 36px;
    height: 32px;
    background: var(--heart-color);
    clip-path: path('M18 28 C8 20, 0 12, 0 6 A6 6 0 0 1 6 0 C10 0, 14 3, 18 8 C22 3, 26 0, 30 0 A6 6 0 0 1 36 6 C36 12, 28 20, 18 28 Z');
    z-index: -1;
    opacity: 0.9;
}

/* ===================================
   PAGE 4: Venue & Time
   =================================== */
.venue-section {
    background-color: var(--beige-main);
    padding: 4rem 1.5rem;
}

.venue-content {
    max-width: 400px;
    text-align: center;
    width: 100%;
}

.venue-header {
    margin-bottom: 2rem;
}

.venue-time-display {
    margin-bottom: 2rem;
}

.venue-time {
    font-family: 'Lobster', cursive;
    font-size: 3.5rem;
    color: var(--green-dark);
    line-height: 1;
}

.venue-time-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

/* Venue details card */
.venue-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.venue-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.venue-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--beige-light);
}

.venue-name {
    font-family: 'Lobster', cursive;
    font-size: 1.8rem;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
}

.venue-hall-type {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--green-main);
    font-style: italic;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.venue-address {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Venue photo */
.venue-photo {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.venue-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* Map */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    width: 100%;
    height: 280px;
    border: none;
    display: block;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--green-main);
    text-decoration: none;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--green-main);
    border-radius: 50px;
    transition: var(--transition-fast);
}

.map-link:hover {
    background: var(--green-main);
    color: var(--beige-light);
}

/* ===================================
   PAGE 5: RSVP Section
   =================================== */
.rsvp-section {
    background-color: var(--green-main);
    padding: 4rem 1.5rem;
}

.rsvp-content {
    max-width: 400px;
    width: 100%;
}

.rsvp-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.rsvp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 2px solid var(--beige-warm);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--beige-warm);
    fill: none;
    stroke-width: 1.5;
}

.rsvp-title {
    font-family: 'Lobster', cursive;
    font-size: 2.5rem;
    color: var(--beige-light);
    margin-bottom: 0.5rem;
}

.rsvp-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--beige-warm);
    font-style: italic;
}

/* RSVP photo */
.rsvp-photo {
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.rsvp-photo img {
    width: 100%;
    aspect-ratio: 38 / 57;
    object-fit: cover;
    display: block;
}

/* RSVP Form */
.rsvp-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    border: 2px solid var(--beige-dark);
    border-radius: 12px;
    background: var(--beige-light);
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-main);
    box-shadow: 0 0 0 3px rgba(106, 112, 76, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.7;
}

/* Checkbox styling */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 1rem;
    background: var(--beige-light);
    border-radius: 12px;
    border: 2px solid var(--beige-dark);
    transition: var(--transition-fast);
}

.checkbox-wrapper:hover {
    border-color: var(--green-light);
}

.checkbox-wrapper input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--green-main);
    cursor: pointer;
}

.checkbox-wrapper span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--beige-light);
    background: var(--green-dark);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(106, 112, 76, 0.3);
}

.btn-submit:hover {
    background: var(--green-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 112, 76, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Success message after form submission */
.rsvp-success {
    text-align: center;
    padding: 3rem 2rem;
    animation: fadeIn 0.5s ease;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--green-main);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-checkmark svg {
    width: 40px;
    height: 40px;
    stroke: var(--beige-light);
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: drawCheck 0.5s ease 0.3s both;
}

.success-title {
    font-family: 'Marck Script', cursive;
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.success-message {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.success-name {
    font-weight: 600;
    color: var(--green-dark);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes drawCheck {
    from {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
    }
    to {
        stroke-dasharray: 100;
        stroke-dashoffset: 0;
    }
}

/* ===================================
   PAGE 6: Final Section
   =================================== */
.final-section {
    background-color: var(--beige-main);
    padding: 4rem 1.5rem;
}

.final-content {
    max-width: 400px;
    text-align: center;
    width: 100%;
}

.final-message {
    margin-bottom: 2rem;
}

.final-title {
    font-family: 'Lobster', cursive;
    font-size: 2rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.final-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.8;
}

.final-photo {
    margin-bottom: 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

.final-photo::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid var(--green-muted);
    border-radius: 28px;
    pointer-events: none;
    opacity: 0.4;
}

.final-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.final-names {
    font-family: 'Lobster', cursive;
    font-size: 2.5rem;
    color: var(--green-dark);
    margin-bottom: 0.5rem;
}

.final-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

/* ===================================
   Music Player (Floating)
   =================================== */
.music-player-fixed {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
}

.music-toggle-fixed {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-dark);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    contain: layout style paint;
    will-change: transform;
}

.music-toggle-fixed:hover {
    transform: scale(1.1);
    background: var(--green-main);
}

.music-toggle-fixed svg {
    width: 24px;
    height: 24px;
    fill: var(--beige-light);
}

.music-toggle-fixed.playing {
    animation: pulse 2s infinite;
}

/* ===================================
   Language Switcher
   =================================== */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    gap: 0.25rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.35rem;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    /* Removed backdrop-filter: blur(10px) for better scroll performance */
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--green-main);
    color: var(--beige-light);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 112, 76, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(106, 112, 76, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(106, 112, 76, 0);
    }
}

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive - Tablet & Desktop
   =================================== */
@media (min-width: 768px) {
    .container {
        max-width: 600px;
    }

    /* Tablet: constrain envelope to reasonable size */
    .envelope-wrapper {
        max-width: 500px;
        height: auto;
        max-height: 90vh;
    }

    .envelope {
        height: auto;
    }

    .envelope-image {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 8px;
    }

    .envelope-names .name-first,
    .envelope-names .name-second {
        font-size: 3.2rem;
    }

    .date-day {
        font-size: 6rem;
    }

    .venue-time {
        font-size: 4.5rem;
    }

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

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

    .map-container iframe {
        height: 350px;
    }

    .calendar-day {
        font-size: 1.1rem;
        padding: 0.75rem 0.4rem;
    }

    .calendar-day.selected::before {
        width: 42px;
        height: 38px;
        /* Keep centered, same as mobile */
        transform: translate(-50%, -45%);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 700px;
    }

    /* Desktop: slightly larger envelope */
    .envelope-wrapper {
        max-width: 550px;
    }

    .envelope-names .name-first,
    .envelope-names .name-second {
        font-size: 3.5rem;
    }

    .story-photo img {
        max-width: 380px;
    }

    .venue-photo img {
        height: 280px;
    }

}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Hide audio element */
audio {
    display: none;
}

/* ===================================
   Reduced Motion Support
   For users who prefer less animation
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-arrow,
    .music-btn-main.playing,
    .music-toggle-fixed.playing {
        animation: none !important;
    }
}

/* Scroll snap DISABLED - causes "magnet" effect that feels unnatural */
/* Remove snap behavior for natural, responsive scrolling */
