/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d5016;
    --secondary-color: #1a3a0a;
    --text-dark: #2c2417;
    --text-light: #5a5247;
    --background-light: #faf9f6;
    --white: #ffffff;
    --accent: #6b8e5a;
    --earth-tone: #8b6f47;
    --sage-green: #4a5f3a;
    --shadow: rgba(0, 0, 0, 0.08);
    --gold-accent: #c9a961;
    --cream: #f5f2eb;
    --soft-shadow: rgba(45, 80, 22, 0.06);
}

/* All Headings use Parisienne Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Parisienne', cursive;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
    overflow-x: hidden;
}

body {
    height: 100%;
    overflow-x: hidden;
    overflow-y: scroll;
}

/* Ensure main container doesn't cut off content */
#photos {
    overflow-x: visible;
    overflow-y: visible;
}


/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent), var(--primary-color));
    background-size: 200% 100%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(45, 80, 22, 0.5);
    animation: progressShimmer 2s linear infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--background-light);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}

h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.03em;
}
.parisienne-regular {
    font-family: "Parisienne", cursive;
    font-weight: 400;
    font-style: normal;
  }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Fullscreen container for sections */
section > .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px var(--soft-shadow);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(45, 80, 22, 0.08);
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    overflow: visible;
}

.nav-container .logo {
    flex-shrink: 0;
}

.nav-container .nav-menu {
    flex: 0 1 auto;
    justify-content: flex-end;
    min-width: auto;
    overflow: visible;
}

.logo {
    font-family: 'Parisienne', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 0.02em;
    font-style: normal;
    position: relative;
    flex-shrink: 1;
}

.logo::after {
    content: '✿';
    font-size: 0.8rem;
    color: var(--sage-green);
    opacity: 0.6;
    margin-left: 8px;
    font-style: normal;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    position: relative;
    left: auto;
    top: auto;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-transform: uppercase;
    padding: 8px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Ensure nav menu is visible on desktop */
@media (min-width: 769px) {
    .nav-menu {
        display: flex !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        flex-direction: row !important;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(45, 80, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(107, 142, 90, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, rgba(250, 249, 246, 0.98) 0%, rgba(245, 242, 235, 0.98) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%232d5016" opacity="0.02"/><circle cx="75" cy="75" r="1" fill="%234a5f3a" opacity="0.02"/></pattern></defs><rect fill="%23faf9f6" width="1200" height="800"/><rect fill="url(%23grain)" width="1200" height="800"/></svg>');
    background-size: cover, cover, cover, cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 0;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 80, 22, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.4;
    }
}

.hero::after {
    content: '✿ ✿ ✿';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--sage-green);
    opacity: 0.15;
    font-size: 2rem;
    letter-spacing: 2rem;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.hero-content {
    animation: fadeInUp 1s ease;
    will-change: transform, opacity;
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Parisienne', cursive;
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    line-height: 1.1;
    letter-spacing: 0.02em;
}


.hero-subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    font-style: italic;
    opacity: 0.9;
}

.hero-date {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    position: relative;
}

.hero-location {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1;
    letter-spacing: 0.02em;
}

.countdown-label {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: var(--primary-color);
}

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

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

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Section Styles */
section {
    min-height: 100vh;
    height: 100vh;
    padding: 30px 0 20px;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Photos section needs overflow visible for polaroids */
.photos-section {
    overflow-x: visible;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.1), transparent);
}

section:first-of-type {
    padding-top: 0;
}

section:first-of-type::before {
    display: none;
}

/* Ensure container content is centered within fullscreen sections */
section .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Reduce spacing in containers */
section .container > *:first-child {
    margin-top: 0;
}

section .container > *:last-child {
    margin-bottom: 0;
}

section.animate-in {
    animation: sectionFadeIn 0.8s ease forwards;
}

/* Ensure scroll snap works smoothly - disable conflicting transforms on desktop */
@media (min-width: 769px) {
    section:not(.has-overflow) {
        transform: none;
    }
}

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

.section-title {
    font-family: 'Parisienne', cursive;
    font-size: 4.5rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 500;
    letter-spacing: 0.08em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 1rem;
}

.section-title::before {
    content: '✿';
    color: var(--sage-green);
    opacity: 0.35;
    font-size: 1.2rem;
    margin-right: 25px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.section-title::after {
    content: '✿';
    color: var(--sage-green);
    opacity: 0.35;
    font-size: 1.2rem;
    margin-left: 25px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.9;
    font-style: italic;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* Photos Section */
.photos-section {
    background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
    position: relative;
    overflow-x: visible;
    overflow-y: visible;
    padding: 30px 20px 20px;
}

.photos-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(45, 80, 22, 0.1), transparent);
}

.photos-section .container {
    overflow: visible;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.polaroid-gallery {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: nowrap;
    max-width: 950px;
    margin: 2rem auto 0;
    padding: 1.5rem 20px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Polaroid Style */
.polaroid {
    background: var(--white);
    padding: 18px 18px 70px 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(-150%) rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    opacity: 0;
    max-width: 380px;
    width: 100%;
    border: 1px solid rgba(45, 80, 22, 0.05);
    flex-shrink: 0;
    overflow: visible;
}

.polaroid:nth-child(2) {
    transform: translateX(150%) rotate(3deg);
    margin-top: 2rem;
}

.polaroid:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(45, 80, 22, 0.25), 0 4px 15px rgba(0, 0, 0, 0.15);
}

.polaroid:nth-child(1):hover {
    transform: rotate(-2deg) scale(1.05);
}

.polaroid:nth-child(2):hover {
    transform: rotate(3deg) scale(1.05);
}

@keyframes polaroidAppearFromLeft {
    from {
        opacity: 0;
        transform: translateX(-150%) rotate(-2deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-2deg) scale(1);
    }
}

@keyframes polaroidAppearFromRight {
    from {
        opacity: 0;
        transform: translateX(150%) rotate(3deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(3deg) scale(1);
    }
}

.polaroid:nth-child(1).animate-in {
    animation: polaroidAppearFromLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: forwards;
}

.polaroid:nth-child(2).animate-in {
    animation: polaroidAppearFromRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    animation-fill-mode: forwards;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.polaroid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Base photo-item styles (for non-polaroid items) */
.photo-item:not(.polaroid) {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.photo-item:not(.polaroid):hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 10px 30px rgba(45, 80, 22, 0.3);
}

.photo-item:not(.polaroid).animate-in {
    animation: slideUpFade 0.6s ease forwards;
}

/* Placeholder styles for when no image is present */
.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-green) 50%, var(--secondary-color) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
}

.photo-placeholder p {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* Polaroids are now always visible - animations removed for immediate display */

/* Location Section */
.location-section {
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-top: 2rem;
}

.location-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.address {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.location-description {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.map-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-green) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25), 0 2px 8px rgba(45, 80, 22, 0.15);
    position: relative;
    overflow: hidden;
}

.map-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.map-button:hover::before {
    left: 100%;
}

.map-button:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35), 0 4px 12px rgba(45, 80, 22, 0.2);
}

.location-map {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px var(--soft-shadow), 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(45, 80, 22, 0.08);
    position: relative;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    display: block;
}

/* Hotels Section */
.hotels-section {
    background: var(--cream);
}

.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hotel-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--soft-shadow), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    border: 1px solid rgba(45, 80, 22, 0.06);
    position: relative;
    overflow: hidden;
}

.hotel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--sage-green), var(--primary-color));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hotel-card:hover::before {
    transform: scaleX(1);
}

.hotel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.25);
}

.hotel-card.animate-in {
    animation: slideUpFade 0.6s ease forwards;
}

.hotel-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hotel-distance {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hotel-address {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hotel-description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hotel-contact {
    margin-bottom: 1.5rem;
}

.hotel-contact p {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.hotel-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.hotel-link:hover {
    color: var(--sage-green);
}

/* FAQ Section */
.faq-section {
    background: var(--white);
    padding-bottom: 4rem;
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1.2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px var(--soft-shadow), 0 1px 3px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(45, 80, 22, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--background-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
    padding: 40px 0;
    min-height: 100vh;
    height: auto;
    /* TEMPORARY: RSVP hidden - remove line below to re-enable */
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.rsvp-section .container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.rsvp-section * {
    visibility: visible !important;
}

.rsvp-form {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--soft-shadow), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(45, 80, 22, 0.06);
    position: relative;
}

.rsvp-form::before {
    content: '✿';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 10px 20px;
    color: var(--sage-green);
    opacity: 0.6;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid rgba(45, 80, 22, 0.12);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    background: var(--cream);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-dark);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(45, 80, 22, 0.08), 0 4px 12px rgba(45, 80, 22, 0.1);
    outline: none;
    background: var(--white);
    transform: translateY(-1px);
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-green) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25), 0 2px 8px rgba(45, 80, 22, 0.15);
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-button:hover::before {
    width: 300px;
    height: 300px;
}

.submit-button:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35), 0 4px 12px rgba(45, 80, 22, 0.2);
}

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

.rsvp-message {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.rsvp-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.rsvp-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* RSVP Name Search */
.rsvp-name-search {
    max-width: 600px;
    margin: 3rem auto 0;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--soft-shadow), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(45, 80, 22, 0.06);
    position: relative;
}

.rsvp-name-search::before {
    content: '✿';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    padding: 10px 20px;
    color: var(--sage-green);
    opacity: 0.6;
    font-size: 1.5rem;
}

.rsvp-name-search .form-group {
    position: relative;
}

.rsvp-name-search input {
    font-size: 1.1rem;
    padding: 18px 20px;
}

.name-search-hint {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    opacity: 0.7;
}

/* Name Suggestions Dropdown */
.name-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.15);
    z-index: 100;
    display: none;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(45, 80, 22, 0.08);
    color: var(--text-dark);
}

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

.suggestion-item:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

.suggestion-item.best-match {
    background: rgba(45, 80, 22, 0.05);
    font-weight: 600;
}

.suggestion-item.no-match {
    color: var(--text-light);
    cursor: default;
    font-style: italic;
}

.suggestion-item.no-match:hover {
    background: transparent;
    color: var(--text-light);
}

/* RSVP Form Container */
.rsvp-form-container {
    max-width: 600px;
    margin: 3rem auto 0;
    animation: fadeInUp 0.5s ease;
}

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

/* Guest Info Display */
.guest-info {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(45, 80, 22, 0.1);
}

.guest-name-display {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.guest-name-display strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Submit Button Loading State */
.submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.submit-button:disabled:hover {
    transform: none !important;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25), 0 2px 8px rgba(45, 80, 22, 0.15);
}

/* Registry Section */
.registry-section {
    background: var(--white);
}

.registry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.registry-item {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px var(--soft-shadow), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    border: 1px solid rgba(45, 80, 22, 0.06);
    position: relative;
}

.registry-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--sage-green));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.registry-item:hover::after {
    transform: scaleX(1);
}

.registry-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.25);
}

.registry-item.animate-in {
    animation: slideUpFade 0.6s ease forwards;
}

.registry-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.registry-item h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.registry-item p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.registry-button {
    display: inline-block;
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--sage-green) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.25), 0 2px 8px rgba(45, 80, 22, 0.15);
    position: relative;
    overflow: hidden;
}

.registry-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.registry-button:hover::before {
    left: 100%;
}

.registry-button:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.35), 0 4px 12px rgba(45, 80, 22, 0.2);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1f1f1f 100%);
    color: var(--white);
    text-align: center;
    padding: 3.5rem 0;
    position: relative;
}

.footer::before {
    content: '✿ ✿ ✿';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #8fa87a;
    opacity: 0.6;
    font-size: 1.2rem;
    letter-spacing: 1.5rem;
}

.footer p {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    color: var(--white);
    opacity: 1;
    font-weight: 300;
}

.footer-date {
    color: #6b8e5a;
    font-weight: 500;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

/* Sections with lots of content should allow natural scrolling */
section.has-overflow {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: start;
    overflow-y: visible;
}

/* Medium screens - tablets and small desktops */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3.5rem;
        letter-spacing: 0.05em;
    }
    
    .section-title::before,
    .section-title::after {
        font-size: 1rem;
        margin: 0 15px;
    }
}

/* Disable scroll snap on mobile for better usability */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }
    
    section {
        min-height: auto;
        height: auto;
        padding: 100px 0 60px;
        scroll-snap-align: none;
        scroll-snap-stop: normal;
        overflow-y: visible;
    }
    
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

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

    .section-title {
        font-size: 2rem;
        padding: 0 0.5rem;
    }
    
    /* Hide decorative elements on very small screens */
    .section-title::before,
    .section-title::after {
        display: none;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        height: 300px;
    }

    .rsvp-form,
    .rsvp-name-search {
        padding: 2rem;
    }

    .name-suggestions {
        max-height: 150px;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .polaroid-gallery {
        gap: 2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .polaroid {
        max-width: 100%;
        transform: translateX(-50px) rotate(0deg);
        opacity: 0;
        margin-top: 0 !important;
    }
    
    .polaroid:nth-child(2) {
        transform: translateX(50px) rotate(0deg);
        margin-top: 0;
    }
    
    @keyframes polaroidAppearMobileLeft {
        from {
            opacity: 0;
            transform: translateX(-50px) rotate(0deg) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(0deg) scale(1);
        }
    }
    
    @keyframes polaroidAppearMobileRight {
        from {
            opacity: 0;
            transform: translateX(50px) rotate(0deg) scale(0.9);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(0deg) scale(1);
        }
    }
    
    .polaroid:nth-child(1).animate-in {
        animation: polaroidAppearMobileLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .polaroid:nth-child(2).animate-in {
        animation: polaroidAppearMobileRight 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
    }
    
    @media (max-width: 600px) {
        .polaroid-gallery {
            gap: 1.5rem;
        }
        
        .polaroid {
            max-width: 100%;
        }
    }
    
    .polaroid:hover {
        transform: scale(1.05) rotate(0deg);
    }
    
    .polaroid:nth-child(1):hover,
    .polaroid:nth-child(2):hover {
        transform: scale(1.05) rotate(0deg);
    }
    
    .polaroid:hover {
        transform: scale(1.05) rotate(0deg);
    }
    
    .polaroid:nth-child(1):hover {
        transform: scale(1.05) rotate(0deg);
    }
    
    .polaroid:nth-child(2):hover {
        transform: scale(1.05) rotate(0deg);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
        letter-spacing: 0.03em;
    }

    .container {
        padding: 0 15px;
    }

    section {
        padding: 60px 0;
    }
}
