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

:root {
    --text-dark: #2c2c2c;
    --text-light: #666;
    --text-lighter: #999;
    --bg-white: #ffffff;
    --bg-light: #fafafa;
    --bg-cream: #f8f6f3;
    --accent-pink: #f5e6e6;
    --accent-gray: #e5e5e5;
    --border-gray: #d0d0d0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-white);
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

/* Envelope Overlay */
body.envelope-visible {
    overflow: hidden;
}

.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    cursor: pointer;
    animation: fadeIn 0.5s ease-in;
    background: rgba(255, 255, 255, 0.95);
}

.envelope-overlay.hidden {
    display: none;
}

.envelope-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    opacity: 0.6;
}

.envelope-container {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: envelopeAppear 1s ease-out;
}

.envelope-image-wrapper {
    position: relative;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto 3rem;
    transform: rotate(5deg);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.envelope-image-wrapper:hover {
    transform: rotate(10deg) scale(1.02);
}

.envelope-image {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.8s ease-in-out;
    object-fit: contain;
}

.envelope-image-1 {
    position: relative;
    opacity: 1;
    z-index: 2;
}

.envelope-image-2 {
    position: absolute;
    top: 0;
    left: -13px;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    object-fit: contain;
}

.envelope-image-wrapper.transitioning .envelope-image-1 {
    opacity: 0;
}

.envelope-image-wrapper.transitioning .envelope-image-2 {
    opacity: 1;
}

.envelope-instruction {
    margin-top: 3rem;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

.instruction-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.hand-cursor {
    font-size: 2rem;
    animation: bounce 1.5s ease-in-out infinite;
    display: inline-block;
}

.main-content {
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

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

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section with Polaroids */
.hero {
    min-height: 100vh;
    background: var(--bg-cream);
    background-image: 
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop'),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.02) 2px,
            rgba(0,0,0,0.02) 4px
        );
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 246, 243, 0.85);
    z-index: 0;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1.2s ease-out;
}

.wedding-day {
    font-family: 'Inter', sans-serif;
    font-size: 1.85rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out 0.3s both;
}

.polaroid-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.polaroid {
    background: var(--bg-white);
    padding: 15px 15px 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.polaroid-left {
    transform: rotate(-20deg) translateY(-3cm);
    animation: fadeInScaleLeft 1s ease-out 0.6s both;
}

.polaroid:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.polaroid-left:hover {
    transform: rotate(-15deg) translateY(-3cm) scale(1.05);
}

.polaroid-right {
    transform: rotate(15deg);
    animation: fadeInScaleRight 1s ease-out 0.8s both;
}

.polaroid-right:hover {
    transform: rotate(10deg) scale(1.05);
}

.polaroid-photo {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder {
    font-size: 4rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5e6e6, #e8d5d5);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.polaroid:hover .photo-image {
    transform: scale(1.1);
}

.heart-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 3px;
    transition: transform 0.3s ease;
    animation: heartbeat 2s ease-in-out infinite;
}

.polaroid-caption:hover .heart-icon {
    transform: scale(1.3);
}

.polaroid-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.4;
    text-align: left;
    padding: 0 5px;
}

.polaroid-caption .heart {
    color: #e8a0a0;
    font-size: 0.9rem;
}

.date-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0 1rem;
    
    animation: fadeInScale 1s ease-out 1s both;
}

.date-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.8rem;
    font-weight: 300;
    color: var(--text-dark);
    line-height: 0.9;
    letter-spacing: -1px;
    transition: transform 0.3s ease;
}

.date-number:hover {
    transform: scale(1.1);
}

.date-number:nth-child(2),
.date-number:nth-child(3) {
    position: relative;
}

.date-number:nth-child(2)::before,
.date-number:nth-child(3)::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    width: 16px;
    height: 0.5px;
    background: var(--text-dark);
    transform: translateY(-50%);
    opacity: 0.6;
}

.hero-names {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-names .name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--text-dark);
    letter-spacing: 3px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1.2s both;
    display: inline-block;
}

.hero-names .name:hover {
    transform: translateY(-5px);
    color: var(--text-light);
}

.name-separator {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* Device Switcher */
.device-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 0;
    z-index: 1000;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.device-btn {
    padding: 8px 12px;
    border: 1px solid var(--border-gray);
    background: var(--bg-white);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.device-btn:first-child {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.device-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.device-btn.active {
    background: var(--accent-pink);
    color: #c88;
    border-color: #e8a0a0;
}

.device-icon {
    font-size: 0.9rem;
}

/* Countdown Section */
.countdown-section {
    padding: 100px 0;
    background: var(--bg-white);
    background-image: 
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 0;
}

.countdown-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
    animation: fadeInUp 0.8s ease-out both;
}

.countdown-item:nth-child(1) {
    animation-delay: 0.1s;
}

.countdown-item:nth-child(2) {
    animation-delay: 0.2s;
}

.countdown-item:nth-child(3) {
    animation-delay: 0.3s;
}

.countdown-item:nth-child(4) {
    animation-delay: 0.4s;
}

.countdown-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.2rem;
    font-weight: 300;
    color: var(--text-dark);
    width: 120px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    letter-spacing: -1px;
    transition: all 0.3s ease;
}

.countdown-number:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--text-dark);
}

.countdown-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Calendar Section */
.calendar-section {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.calendar-card {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.calendar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.calendar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.calendar-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.calendar-grid {
    margin-bottom: 2rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.weekday {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-lighter);
    text-align: center;
    font-weight: 400;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-day:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

.calendar-day.highlighted {
    border: 2px solid var(--text-dark);
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.calendar-message {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.calendar-date-display {
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 3px;
}

/* Childhood Section */
.childhood-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 300;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.section-title:hover {
    letter-spacing: 2px;
    transform: scale(1.02);
}

.childhood-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.childhood-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.childhood-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    margin-top: 2rem;
}

.child-figure {
    position: relative;
    font-size: 3rem;
}

.figure-body {
  
    height: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
    animation: float 3s ease-in-out infinite;
}

.child-figure:hover .figure-body {
    transform: scale(1.2) rotate(5deg);
}

.figure-heart {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    animation: heartbeat 1.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.child-figure:hover .figure-heart {
    transform: scale(1.3);
}

.floating-hearts {
    position: absolute;
    top: -20px;
    display: flex;
    gap: 10px;
    opacity: 0.6;
}

.floating-heart {
    width: 18px;
    height: 18px;
    object-fit: contain;
    animation: float 2s ease-in-out infinite;
}

.floating-heart:nth-child(1) {
    animation-delay: 0s;
}

.floating-heart:nth-child(2) {
    animation-delay: 0.3s;
}

.floating-heart:nth-child(3) {
    animation-delay: 0.6s;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: var(--bg-light);
    background-image: 
        url('https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.92);
    z-index: 0;
}

.timeline-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.timeline-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-icon img {
    transform: scale(1.2) rotate(5deg);
}

.timeline-time {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    min-width: 80px;
}

.timeline-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    flex: 1;
}

/* Location Section */
.location-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.location-text {
    max-width: 500px;
}

.venue-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 1rem 0;
}

.venue-address {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.venue-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-lighter);
    font-style: italic;
}

.location-image-container {
    position: relative;
}

.location-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.venue-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.location-image:hover .venue-image {
    transform: scale(1.1);
}

.directions-btn {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    background: var(--bg-white);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-dark);
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 10px 5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.directions-btn:hover {
    background: var(--text-dark);
    color: var(--bg-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* RSVP Section */
.rsvp-section {
    padding: 80px 0;
    background: var(--bg-light);
    background-image: 
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.rsvp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250, 250, 250, 0.9);
    z-index: 0;
}

.rsvp-subtitle {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.radio-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--text-dark);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::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-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: var(--text-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

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

.rsvp-message {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    display: none;
    font-family: 'Inter', sans-serif;
}

.rsvp-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.rsvp-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.footer {
    background: var(--bg-white);
    background-image: 
        url('https://images.unsplash.com/photo-1519741497674-611481863552?w=1920&q=80&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 0;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-star {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
    display: inline-block;
}

.footer-names:hover .footer-star {
    transform: rotate(180deg) scale(1.2);
}

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

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

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

@keyframes fadeInScaleLeft {
    from {
        opacity: 0;
        transform: rotate(-20deg) translateY(-3cm) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(-20deg) translateY(-3cm) scale(1);
    }
}

@keyframes fadeInScaleRight {
    from {
        opacity: 0;
        transform: rotate(15deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(15deg) scale(1);
    }
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(44, 44, 44, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(44, 44, 44, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .polaroid-container {
        flex-direction: column;
        gap: 2rem;
    }

    .date-display {
        order: -1;
        flex-direction: row;
        margin: 1rem 0;
    }

    .date-number {
        font-size: 2.5rem;
    }

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

    .countdown-number {
        font-size: 3rem;
        width: 100px;
        height: 80px;
    }

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

    .directions-btn {
        position: static;
        transform: none;
        margin-top: 1rem;
        width: auto;
        height: auto;
        writing-mode: horizontal-tb;
        border-radius: 6px;
        padding: 0.8rem 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .timeline-time {
        min-width: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .rsvp-form {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 15px;
    }

    .date-number {
        font-size: 2rem;
    }

    .hero-names .name {
        font-size: 1.5rem;
    }

    .countdown-number {
        font-size: 2.5rem;
        width: 80px;
        height: 70px;
    }

    .countdown-container {
        gap: 1rem;
    }

    .calendar-card {
        padding: 2rem 1.5rem;
    }

    section {
        padding: 60px 0;
    }
}
