/* Global Styles */

/* Ensure emoji fonts are used for all emoji characters */
@font-face {
    font-family: 'Emoji';
    src: local('Apple Color Emoji'), local('Segoe UI Emoji'), local('Segoe UI Symbol'), local('Noto Color Emoji');
    unicode-range: U+1F300-1F5FF, U+1F600-1F64F, U+1F680-1F6FF, U+2600-26FF, U+2700-27BF, U+1F900-1F9FF, U+1F1E0-1F1FF;
}

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

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    --primary-color: #b4a7a7;
    --secondary-color: #d4b5b5;
    --accent-color: #8b7e74;
    --dark-color: #2c2c2c;
    --light-color: #f9f7f5;
    --text-color: #4a4a4a;
    --border-color: #e8e4e0;
    --serif-font: 'Cormorant Garamond', serif;
    --sans-font: 'Montserrat', sans-serif;
    
    /* Hero background variables (can be overridden dynamically) */
    --hero-color-1: #d4b5b5;
    --hero-color-2: #b4a7a7;
    --hero-color-3: #8b7e74;
    --hero-animation-speed: 60s;
    --hero-overlay-opacity: 0.15;
    --hero-height: 100vh;
}

body {
    font-family: 'Emoji', "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--sans-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimize images for mobile */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Improve touch interactions */
a, button, input, select, textarea {
    -webkit-tap-highlight-color: rgba(180, 167, 167, 0.2);
}

button, .btn-primary, .btn-link {
    touch-action: manipulation;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--serif-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.nav-link-admin {
    color: var(--accent-color);
    font-weight: 500;
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    background-color: var(--light-color);
    overflow-x: hidden;
}

.hero-content {
    text-align: center;
    color: var(--dark-color);
    padding: 8rem 2rem 4rem;
    background-color: var(--light-color);
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-background {
    width: 100%;
    height: var(--hero-height);
    position: relative;
    overflow: hidden;
    background-color: #b4a7a7;
}

.hero-background-scroll {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    display: flex;
    animation: scrollBackground var(--hero-animation-speed) linear infinite;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-background-scroll img {
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

@keyframes scrollBackground {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-monogram {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg) scale(0.85);
    font-family: 'Great Vibes', cursive;
    font-size: var(--monogram-font-size, 12rem);
    color: rgba(255, 255, 255, var(--monogram-opacity, 0.3));
    letter-spacing: 0.15em;
    text-shadow: 
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        -1px 0 0 #000,
        1px 0 0 #000,
        0 -1px 0 #000,
        0 1px 0 #000;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
    padding: 3rem 6rem;
}

/* Monogram hidden by default until animation is set */
.hero-monogram.hidden {
    display: none;
}

/* Animation: Fade In */
.hero-monogram.anim-fade {
    opacity: 0;
    animation: fadeInMonogram 2s ease-in-out 0.5s forwards;
}

@keyframes fadeInMonogram {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.68);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
}

/* Animation: Drawn (stroke effect) */
.hero-monogram.anim-drawn {
    opacity: 0;
    animation: drawnMonogram 2.5s ease-in 0.5s forwards;
}

@keyframes drawnMonogram {
    0% {
        opacity: 1;
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
    100% {
        opacity: 1;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
}

/* Animation: Wipe (from left) */
.hero-monogram.anim-wipe {
    opacity: 0;
    animation: wipeMonogram 2s ease-in-out 0.5s forwards;
}

@keyframes wipeMonogram {
    0% {
        opacity: 1;
        clip-path: inset(0 100% 0 0);
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
}

/* Animation: Slide */
.hero-monogram.anim-slide {
    opacity: 0;
    animation: slideMonogram 2s ease-out 0.5s forwards;
}

@keyframes slideMonogram {
    0% {
        opacity: 0;
        transform: translate(-150%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
}

/* Animation: Zoom */
.hero-monogram.anim-zoom {
    opacity: 0;
    animation: zoomMonogram 2s ease-out 0.5s forwards;
}

@keyframes zoomMonogram {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(2.55);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(var(--monogram-rotation, -15deg)) scale(0.85);
    }
}

.hero-title {
    font-family: var(--serif-font);
    font-size: 5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-date {
    font-family: var(--serif-font);
    font-size: 2rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: var(--dark-color);
}

/* Countdown */
.countdown {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

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

.countdown-value {
    font-family: var(--serif-font);
    font-size: 3rem;
    font-weight: 600;
    display: block;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Section Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-family: var(--serif-font);
    font-size: 3.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Our Story Section */
.our-story {
    background-color: white;
    padding-bottom: 120px;
    position: relative;
    z-index: 1;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.story-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Desktop: Use SVG/icon backgrounds instead of emoji text */
@media (min-width: 769px) {
    .emoji-icon {
        display: inline-block;
        width: 1em;
        height: 1em;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
        font-size: inherit;
        vertical-align: middle;
        text-indent: -9999px;
        overflow: hidden;
    }
    
    .emoji-icon[data-emoji="heart"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    }
    
    .emoji-icon[data-emoji="couple"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e91e63"><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3z"/><circle cx="9" cy="10" r="1.5" fill="%23fff"/><circle cx="15" cy="10" r="1.5" fill="%23fff"/></svg>');
    }
    
    .emoji-icon[data-emoji="ring"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23b8860b"><circle cx="12" cy="12" r="9" fill="none" stroke="%23b8860b" stroke-width="2"/><circle cx="12" cy="8" r="2" fill="%239b59b6"/><path d="M12 10l-3 6h6l-3-6z" fill="%23b8860b"/></svg>');
    }
    
    .emoji-icon[data-emoji="gift"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e74c3c"><rect x="3" y="8" width="18" height="4" fill="%23c0392b"/><rect x="5" y="12" width="14" height="9" fill="%23e74c3c"/><rect x="11" y="8" width="2" height="13" fill="%23c0392b"/><path d="M12 8C10 8 8 6 8 4s2-2 4 0c2-2 4 0 4 2s-2 4-4 4z" fill="%23f39c12"/></svg>');
    }
    
    .emoji-icon[data-emoji="home"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233498db"><path d="M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"/></svg>');
    }
    
    .emoji-icon[data-emoji="globe"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%232ecc71"><circle cx="12" cy="12" r="10" fill="%233498db"/><path d="M12 2c0 0-4 4-4 10s4 10 4 10 4-4 4-10S12 2 12 2z" fill="%232ecc71"/><ellipse cx="12" cy="12" rx="10" ry="4" fill="none" stroke="%232ecc71" stroke-width="1.5"/><line x1="2" y1="12" x2="22" y2="12" stroke="%232ecc71" stroke-width="1.5"/></svg>');
    }
    
    .emoji-icon[data-emoji="hotel"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239b59b6"><rect x="3" y="10" width="18" height="11" fill="%238e44ad"/><rect x="6" y="6" width="3" height="4" fill="%239b59b6"/><rect x="10" y="6" width="3" height="4" fill="%239b59b6"/><rect x="15" y="6" width="3" height="4" fill="%239b59b6"/><rect x="3" y="3" width="18" height="2" fill="%238e44ad"/></svg>');
    }
    
    .emoji-icon[data-emoji="plane"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2334495e"><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/></svg>');
    }
    
    .emoji-icon[data-emoji="theater"] {
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e67e22"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/><path d="M8 10c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm4 0c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2z"/><path d="M8 14h8c0 2.21-1.79 4-4 4s-4-1.79-4-4z" fill="%23e74c3c"/></svg>');
    }
}

.story-card h3 {
    font-family: var(--serif-font);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.story-date {
    font-style: italic;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.story-card p {
    line-height: 1.8;
}

/* Wedding Details */
.wedding-details {
    background-color: var(--light-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    justify-content: center;
}

.detail-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 400px;
}

.detail-card.clickable {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card.clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

.detail-icon {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    font-family: var(--serif-font);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.detail-card p {
    margin-bottom: 0.5rem;
}

.detail-description {
    margin-top: 1rem;
    font-style: italic;
    color: #666;
    font-size: 0.95rem;
}

.btn-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.3s ease;
}

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

/* Schedule Timeline */
.schedule {
    margin-top: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule h3 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid var(--light-color);
}

.timeline-time {
    font-weight: 600;
    color: var(--accent-color);
}

.timeline-content h4 {
    font-family: var(--serif-font);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* RSVP Section */
.rsvp {
    background: linear-gradient(135deg, rgba(212, 181, 181, 0.1) 0%, rgba(180, 167, 167, 0.1) 100%);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--sans-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
}

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

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 126, 116, 0.3);
}

.rsvp-success {
    display: none;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 4rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.rsvp-success.show {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
}

.rsvp-success h3 {
    font-family: var(--serif-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Registry Section */
.registry {
    background-color: white;
}

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

.registry-card {
    background: var(--light-color);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.registry-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.registry-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.registry-card h3 {
    font-family: var(--serif-font);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Gallery Section */
.gallery {
    background-color: var(--light-color);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 100%;
}

.photo-item {
    width: 100%;
    height: 240px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #000;
}

.photo-item img,
.photo-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

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

.photo-placeholder {
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
}

/* Travel Section */
.travel {
    background-color: white;
}

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

.travel-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
}

.travel-card h3 {
    font-family: var(--serif-font);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.travel-card h3::first-letter {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hotel-block {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hotel-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hotel-block h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.activities-list {
    list-style: none;
    padding: 0;
}

.activities-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.activities-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #8b7e74 0%, #b4a7a7 100%);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-title {
    font-family: var(--serif-font);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.footer-date {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-venue {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.footer-address {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    margin-top: 1rem;
}

.social-link {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.social-link:hover {
    border-color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

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

/* Animated in class for permanent visibility */
.animated-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================
   Breakpoints:
   - 1024px and below: Tablets (landscape)
   - 768px and below: Mobile (landscape) & Tablets (portrait)
   - 480px and below: Mobile (portrait)
   ============================================ */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding: 0 25px;
    }

    .hero-monogram {
        font-size: 10rem;
    }

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

/* Mobile landscape and below */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar {
        padding: 1rem 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }

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

    .nav-link {
        padding: 1rem 0;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hamburger {
        display: flex;
        cursor: pointer;
        padding: 0.5rem;
    }

    /* Hero Section Mobile Optimization */
    .hero-wrapper {
        min-height: 85vh;
    }

    .hero-background {
        height: 100%;
        min-height: 40vh;
    }

    .hero-content {
        padding: 6rem 1rem 4rem;
    }

    /* Adjust photo sizing on mobile to show full images without cutting people */
    .hero-background-scroll img {
        object-fit: contain;
    }

    .hero-monogram {
        font-size: 8rem;
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.6);
        padding: 2rem 4rem;
    }

    @keyframes zoomMonogram {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(-15deg) scale(1.8);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(-15deg) scale(0.6);
        }
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
        margin-bottom: 0.8rem;
    }

    .hero-date {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 2rem;
    }

    .countdown {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .countdown-value {
        font-size: 2rem;
    }

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

    /* Section Spacing */
    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }

    /* Details Grid */
    .story-grid,
    .details-grid,
    .travel-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-card,
    .story-card,
    .travel-card {
        padding: 2rem 1.5rem;
    }
    
    .story-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .story-card h3 {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 70px 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }

    .timeline-time {
        font-size: 0.9rem;
    }

    .timeline-content h4 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 2.5rem 1.5rem;
    }
    
    input, select, textarea {
        font-size: 16px;
        min-height: 44px;
    }
    
    .btn-primary, .btn-link {
        min-height: 44px;
        padding: 0.9rem 2rem;
    }

    /* Photo Gallery */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    /* Registry Cards */
    .registry-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .registry-card {
        min-height: 120px;
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .footer-date {
        font-size: 1rem;
    }

    .footer-venue {
        font-size: 1rem;
    }

    .footer-address {
        font-size: 0.85rem;
    }

    .footer-text {
        font-size: 1rem;
    }

    .social-link {
        font-size: 1rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    /* Hero Section Small Mobile */
    .hero-wrapper {
        min-height: 80vh;
    }

    .hero-background {
        min-height: 35vh;
    }

    .hero-content {
        padding: 5rem 1rem 3rem;
    }

    .hero-monogram {
        font-size: 6rem;
        transform: translate(-50%, -50%) rotate(-15deg) scale(0.5);
        padding: 1.5rem 3rem;
    }

    @keyframes zoomMonogram {
        0% {
            opacity: 0;
            transform: translate(-50%, -50%) rotate(-15deg) scale(1.5);
        }
        100% {
            opacity: 1;
            transform: translate(-50%, -50%) rotate(-15deg) scale(0.5);
        }
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

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

    .countdown {
        gap: 1rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

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

    /* Sections */
    section {
        padding: 2.5rem 0;
    }

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

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* Cards */
    .detail-card,
    .story-card,
    .travel-card {
        padding: 1.5rem 1rem;
    }

    .detail-icon,
    .story-icon {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .detail-title,
    .story-title {
        font-size: 1.3rem;
    }

    .detail-text,
    .story-description {
        font-size: 0.9rem;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 60px 1fr;
        gap: 0.8rem;
    }

    .timeline-time {
        font-size: 0.85rem;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }

    /* Form */
    .rsvp-form {
        padding: 2rem 1rem;
    }

    input, select, textarea {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    /* Photo Gallery */
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

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

    .footer-date {
        font-size: 0.95rem;
    }

    .footer-venue {
        font-size: 0.95rem;
    }

    .footer-address {
        font-size: 0.8rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .social-link {
        font-size: 0.9rem;
    }
}

/* Gallery Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

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

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

/* Utility classes for elements */
.hidden {
    display: none;
}

#dressCodeClickText {
    margin-top: 0.5rem;
}

.section-heading {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-heading-spaced {
    margin: 2rem 0 1rem;
    color: var(--dark-color);
}

.mt-half {
    margin-top: 0.5rem;
}

/* Placeholder gradients */
.photo-item.placeholder-1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.photo-item.placeholder-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.photo-item.placeholder-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.photo-item.placeholder-4 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.photo-item.placeholder-5 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.photo-item.placeholder-6 {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}
