:root { 
    --primary: #f8d7da; 
    --accent: #e91e63; 
    --dark: #2c3e50; 
    --light: #ecf0f1; 
}

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

html { 
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; 
}

body { 
    font-family: 'Georgia', serif; 
    line-height: 1.6; 
    color: var(--dark); 
    overflow-x: hidden; 
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sticky-nav.visible {
    transform: translateY(0);
}

.sticky-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px clamp(15px, 5vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-family: 'Georgia', serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

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

.nav-menu {
    display: flex;
    gap: clamp(15px, 4vw, 30px);
}

.nav-menu a {
    color: var(--dark);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    will-change: transform, background-color;
}

.nav-menu a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Sticky Nav */
@media (max-width: 480px) {
    .nav-menu {
        gap: 8px;
    }
    
    .nav-menu a {
        padding: 6px 12px;
    }
}

/* Hero Section */
.hero { 
    height: 100vh; 
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/background.jpeg'); 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    color: white;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
}

h1 { 
    font-size: clamp(3rem, 8vw, 6rem); 
    margin-bottom: 1rem; 
    animation: fadeInUp 2s ease; 
}

.hearts { 
    font-size: clamp(3rem, 6vw, 5rem); 
    color: var(--accent); 
    animation: heartbeat 2s infinite; 
}

/* Navigation Index */
.nav-index {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    animation: fadeInUp 3s ease;
}

.nav-index p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid white;
    border-radius: 25px;
    font-size: clamp(0.8rem, 1.5vw, 0.95rem);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.1);
}

.nav-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Sections */
section { 
    min-height: 100vh;
    padding: clamp(40px, 8vw, 80px) clamp(15px, 5vw, 40px);
    max-width: 1200px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

section > * {
    width: 100%;
}

/* Full-screen image layout */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100dvh;
    -webkit-text-size-adjust: 100%;
}

body::before {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: url("images/save_the_data.webp");
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.1);
    z-index: 0;
}

.image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.blur-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/save_the_date_blur.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.full-screen-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    z-index: 2;
}

.rsvp-link {
    position: fixed;
    right: clamp(16px, 4vw, 32px);
    bottom: clamp(16px, 5vw, 36px);
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

/* Adjust sections for large screens */
@media (min-width: 1024px) {
    section {
        min-height: auto;
        padding: clamp(60px, 10vw, 120px) clamp(20px, 8vw, 60px);
    }
}

h2 { 
    font-size: clamp(1.8rem, 6vw, 2.5rem); 
    margin-bottom: clamp(15px, 4vw, 30px); 
    color: var(--accent); 
}

h3 { 
    font-size: clamp(1.2rem, 3vw, 1.5rem); 
    margin-bottom: 15px; 
}

.details { 
    background: var(--light); 
    text-align: center; 
}

.grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: clamp(20px, 5vw, 40px); 
    margin-top: clamp(20px, 4vw, 40px);
}

.card { 
    background: white; 
    padding: clamp(25px, 5vw, 40px); 
    border-radius: 15px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    transition: transform 0.3s; 
}

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

.date { 
    font-size: clamp(1.8rem, 5vw, 2.5rem); 
    color: var(--accent); 
}

/* Music Section */
.music-section {
    text-align: center;
}

.music-section p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.spotify-btn {
    display: inline-block;
    background: #1DB954;
    color: white;
    padding: clamp(12px, 2vw, 15px) clamp(30px, 5vw, 40px);
    border-radius: 50px;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.1rem);
    margin-bottom: clamp(20px, 4vw, 30px);
    transition: background 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.spotify-btn:hover {
    background: #1ed760;
}

.spotify-embed {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.spotify-embed iframe {
    border-radius: 12px;
    width: 100%;
    height: clamp(300px, 60vw, 380px);
}

/* RSVP Section */
#rsvp {
    background: var(--primary);
}

#rsvp a {
    color: var(--dark);
    text-decoration: underline;
}

footer { 
    background: var(--dark); 
    color: white; 
    text-align: center; 
    padding: clamp(30px, 6vw, 40px);
    min-height: auto;
    scroll-snap-align: start;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .grid { 
        grid-template-columns: 1fr; 
    }
    
    .nav-links {
        gap: 10px;
    }
    
    .nav-links a {
        padding: 6px 12px;
    }
    
    section {
        min-height: auto;
        padding: clamp(30px, 5vw, 60px) clamp(15px, 4vw, 30px);
    }
}

.rsvp-body {
    display: block;
    background: linear-gradient(120deg, #f6efe9, #fbe6ea);
    color: var(--dark);
    overflow-y: auto;
    height: auto;
}

.rsvp-body::before {
    content: none;
}

.rsvp-page {
    min-height: 100vh;
    padding: clamp(40px, 8vw, 80px) clamp(20px, 6vw, 60px);
    display: grid;
    gap: clamp(24px, 5vw, 40px);
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    color: var(--accent);
    margin-bottom: 10px;
}

.rsvp-kicker {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.rsvp-subtitle {
    font-size: 1.1rem;
}

.rsvp-form {
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(24px, 5vw, 40px);
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 20px;
}

.rsvp-form label {
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-block;
}

.rsvp-form input,
.rsvp-form textarea,
.rsvp-form select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.field {
    display: grid;
}

.field-hint {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 8px;
}

.choice-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.choice {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(233, 30, 99, 0.08);
    padding: 10px 14px;
    border-radius: 999px;
}

.rsvp-submit {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rsvp-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.35);
}

.rsvp-status {
    min-height: 22px;
    color: var(--dark);
}

.rsvp-back {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    justify-self: start;
}

@media (max-width: 480px) {
    h1 { 
        margin-bottom: 0.5rem; 
    }
    
    .nav-index {
        bottom: 20px;
    }
    
    .nav-links {
        gap: 8px;
        flex-direction: column;
    }
    
    .nav-links a {
        width: 100%;
    }
    
    .card {
        padding: clamp(20px, 4vw, 30px);
    }
}
