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

:root {
    /* Design Brief Color System */
    --bg-main: #FDF3E9; /* warm cream background */
    --bg-secondary: #ECD8D0; /* blush sand cards */
    --text-primary: #55403C; /* warm cocoa text */
    --text-secondary: #6680B3; /* ocean blue headings/nav */
    --accent-primary: #AC9074; /* golden sunset accent */
    --accent-muted: #D1BFBE; /* soft borders/dividers */
    
    /* Countdown specific */
    --countdown-bg: #6680B3;
    --countdown-text: #ffffff;
    
    /* Legacy support (mapped to new colors) */
    --bg-primary: var(--bg-main);
    --text-heading: var(--text-primary);
    --text-body: var(--text-primary);
    --text-link: var(--text-secondary);
    --btn-primary-bg: var(--accent-primary);
    --btn-primary-text: var(--bg-main);
    --btn-hover-bg: var(--text-secondary);
    --accent-icon: var(--accent-muted);
    --accent-highlight: var(--accent-primary);
    --primary-color: var(--accent-primary);
    --secondary-color: var(--text-secondary);
    --accent-color: var(--accent-primary);
    --ocean-blue: var(--text-primary);
    --text-dark: var(--text-primary);
    --text-light: var(--text-primary);
    --bg-light: var(--bg-main);
    --white: var(--bg-main);
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-main);
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

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

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

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

.nav-logo {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-menu a:hover {
    color: var(--accent-primary);
}

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

/* Hamburger Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-save-the-date {
    background-image: url('images/homepg.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-homepage {
    background-image: url('images/beach.JPEG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Mobile optimizations for hero image */
@media (max-width: 768px) {
    .hero-homepage {
        background-attachment: scroll; /* Better performance on mobile */
        background-position: center top; /* Show top portion of image on mobile */
        min-height: 100vh;
        height: auto;
    }
    
    .hero {
        min-height: 100vh;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero-homepage {
        background-position: center 30%; /* Adjust to show better part of image on small screens */
    }
}

.hero-homepage .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-title-animated {
    font-family: 'Alex Brush', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUpCursive 1.2s ease 0.3s forwards;
    letter-spacing: 0.02em;
}

.hero-date-animated {
    font-family: 'Alex Brush', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUpCursive 1.2s ease 0.6s forwards;
    letter-spacing: 0.02em;
}

.hero-location-animated {
    font-family: 'Alex Brush', 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-size: 2rem;
    font-weight: 400;
    font-style: normal;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    animation: fadeInUpCursive 1.2s ease 0.9s forwards;
    letter-spacing: 0.02em;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(253, 243, 233, 0.35), rgba(253, 243, 233, 0.65));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-date {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-date-box {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(44, 95, 124, 0.2);
    animation: fadeInUp 1s ease 0.6s both;
}

#wedding-date {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

/* Countdown Section */
.countdown-section {
    padding: 80px 6vw;
    background: var(--bg-main);
    position: relative;
}

.countdown-container {
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid var(--accent-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.3s both;
}

.countdown-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.02em;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--countdown-bg);
    color: var(--countdown-text);
    border-radius: 18px;
    padding: 2rem 1rem;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 124, 0.4);
}

.countdown-number {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--countdown-text);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-label {
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--countdown-text);
    opacity: 0.95;
}

/* Section Styles */
.section-title {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-primary), var(--text-secondary));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-style: italic;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    opacity: 0.8;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 6vw;
    background: var(--bg-main);
    position: relative;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(236, 216, 208, 0.2), transparent);
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    background: var(--bg-main);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    transition: height 0.5s ease;
    min-height: 400px;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
}

.slideshow-slide.active {
    opacity: 1;
    z-index: 1;
}

.slideshow-slide img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(253, 243, 233, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid var(--accent-muted);
    padding: 1rem 1.2rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: var(--text-secondary);
    color: var(--bg-main);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.slideshow-prev:active,
.slideshow-next:active {
    transform: translateY(-50%) scale(0.95);
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    padding: 10px;
    background: rgba(253, 243, 233, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 25px;
    border: 1px solid var(--accent-muted);
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(253, 243, 233, 0.6);
    border: 1px solid var(--accent-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.slideshow-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    width: 30px;
    border-radius: 6px;
}

/* Global Image Styling */
img {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--accent-primary);
}

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

/* RSVP Section */
.rsvp-section {
    padding: 80px 6vw;
    background: var(--bg-main);
    position: relative;
    min-height: calc(100vh - 200px);
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--accent-muted);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--accent-muted);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-main);
}

.radio-label:hover {
    border-color: var(--text-secondary);
    background: rgba(102, 128, 179, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--text-secondary);
}

.radio-label input[type="radio"]:checked + span {
    color: var(--text-secondary);
    font-weight: 600;
}

.radio-label:has(input[type="radio"]:checked) {
    border-color: var(--text-secondary);
    background: rgba(102, 128, 179, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-style: italic;
    opacity: 0.7;
}

/* Accommodation Section */
.accommodation-section {
    padding: 80px 6vw;
    background: var(--bg-main);
    position: relative;
}

.accommodation-form,
.card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--accent-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--accent-muted);
    border-radius: 12px;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-main);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-secondary);
    box-shadow: 0 0 0 3px rgba(102, 128, 179, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn,
button.primary {
    width: 100%;
    padding: 14px 28px;
    background: var(--accent-primary);
    color: var(--bg-main);
    border: none;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.submit-btn:hover,
button.primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

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

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

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

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

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    color: var(--bg-main);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* Story Section */
.story-section {
    padding: 80px 6vw;
    background: var(--bg-main);
    position: relative;
}

.story-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--accent-muted);
}

.story-intro p {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.story-intro p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Timeline */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--text-secondary), var(--accent-primary));
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: flex-start;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-secondary);
    color: var(--bg-main);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-width: 120px;
    text-align: center;
}

.timeline-item-highlight .timeline-date {
    background: var(--accent-primary);
    font-size: 1rem;
    padding: 1rem 2rem;
    min-width: 180px;
}

.timeline-content {
    width: 45%;
    background: rgba(236, 216, 208, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--accent-muted);
    margin-top: 3rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: 2rem;
}

.timeline-content.full-width {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.timeline-image,
.timeline-image-placeholder {
    width: 100%;
    height: 300px;
    background: rgba(102, 128, 179, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px dashed var(--accent-muted);
    overflow: hidden;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.timeline-image-placeholder span {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-style: italic;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.timeline-text {
    color: var(--text-primary);
    line-height: 1.9;
    font-size: 1rem;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.timeline-text p {
    margin-bottom: 1rem;
}

.timeline-text p:last-child {
    margin-bottom: 0;
}

.timeline-location {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    font-style: italic;
    font-family: 'Montserrat', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.timeline-item-highlight .timeline-content {
    background: rgba(172, 144, 116, 0.15);
    border: 2px solid var(--accent-primary);
}

.timeline-item-highlight .timeline-text {
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-animated {
        font-size: 3rem;
    }

    .hero-date-animated {
        font-size: 1.8rem;
    }

    .hero-location-animated {
        font-size: 1.5rem;
    }
    
    /* Mobile hero content adjustments */
    .hero-homepage .hero-content {
        padding: 1rem;
        padding-top: 80px; /* Account for navbar */
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(253, 243, 233, 0.4), rgba(253, 243, 233, 0.7));
    }

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

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

    /* Mobile Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(253, 243, 233, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--accent-muted);
    }

    .nav-menu a {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
        color: var(--text-secondary);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        color: var(--accent-primary);
        padding-left: 0.5rem;
    }

    .slideshow-wrapper {
        min-height: 300px;
    }
    
    .slideshow-slide img {
        max-height: 70vh;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .slideshow-prev {
        left: 10px;
    }

    .slideshow-next {
        right: 10px;
    }

    .slideshow-dots {
        bottom: 10px;
        padding: 8px;
    }

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

    .rsvp-section {
        padding: 80px 0;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 10px;
    }

    .lightbox-close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .countdown-section {
        padding: 60px 0;
    }

    .countdown-container {
        padding: 2rem 1.5rem;
    }

    .countdown-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .countdown-grid {
        gap: 1rem;
    }

    .countdown-item {
        padding: 1.5rem 0.5rem;
    }

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

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

    /* Timeline Responsive */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }

    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
        min-width: 100px;
    }

    .timeline-item-highlight .timeline-date {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        min-width: 150px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 2.5rem;
    }

    .timeline-content.full-width {
        width: 100%;
    }

    .story-intro {
        padding: 2rem 1.5rem;
    }

    .story-intro p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title-animated {
        font-size: 2.2rem;
    }

    .hero-date-animated {
        font-size: 1.4rem;
    }

    .hero-location-animated {
        font-size: 1.2rem;
    }
    
    /* Small mobile hero adjustments */
    .hero-homepage .hero-content {
        padding-top: 60px;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(253, 243, 233, 0.45), rgba(253, 243, 233, 0.75));
    }

    .hero-date-box {
        padding: 1rem 2rem;
    }

    #wedding-date {
        font-size: 1.4rem;
    }

    .slideshow-wrapper {
        min-height: 250px;
    }
    
    .slideshow-slide img {
        max-height: 60vh;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 35px;
        height: 35px;
        padding: 0.4rem;
        font-size: 1.2rem;
    }

    .slideshow-dot {
        width: 10px;
        height: 10px;
    }

    .slideshow-dot.active {
        width: 25px;
    }

    .countdown-section {
        padding: 40px 0;
    }

    .countdown-container {
        padding: 1.5rem 1rem;
    }

    .countdown-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .countdown-item {
        padding: 1rem 0.5rem;
    }

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

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

