/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Love, Compassion, Peaceful */
    --primary-color: #f4a6b8;
    --secondary-color: #d4a5a5;
    --accent-color: #ffd1dc;
    --text-dark: #5a5a5a;
    --text-light: #ffffff;
    --bg-light: #fff8f9;
    --bg-white: #ffffff;
    --rose-gold: #e8b4b8;
    --lavender: #e6d5e8;
    --peach: #ffd6ba;
    --mint: #d4e8e4;
    --periwinkle: #c8b6e8;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-script: 'Dancing Script', cursive;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(244, 166, 184, 0.1);
    --shadow-md: 0 4px 16px rgba(244, 166, 184, 0.15);
    --shadow-lg: 0 8px 32px rgba(244, 166, 184, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffc3a0 0%, #ffafbd 40%, #c8b6e8 70%, #e8b4e8 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.5) translateX(13%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 195, 160, 0.6) 0%, rgba(255, 175, 189, 0.6) 40%, rgba(200, 182, 232, 0.6) 70%, rgba(232, 180, 232, 0.6) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 209, 220, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 182, 232, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 214, 186, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-invite {
    font-family: var(--font-script);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: var(--spacing-sm);
    opacity: 0.95;
}

.ampersand {
    font-family: var(--font-script);
    font-size: 0.8em;
    margin: 0 0.3em;
}

.hero-lunar {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: var(--spacing-xs);
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--text-light);
    margin: var(--spacing-md) auto;
    border-radius: 3px;
}

.hero-date {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: var(--spacing-xs);
}

.hero-location {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-light);
}

/* ============================================
   COUNTDOWN SECTION
   ============================================ */

.countdown-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    min-width: 120px;
    transition: transform 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
}

.countdown-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: var(--spacing-xs);
    color: var(--text-dark);
}

/* ============================================
   STORY SECTION
   ============================================ */

.story-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.story-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.story-image {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
}

.story-quote {
    font-family: var(--font-script);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.timeline-content {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    width: calc(50% - 40px);
    position: relative;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.timeline-date {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   DETAILS SECTION
   ============================================ */

.details-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.detail-card {
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.detail-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.detail-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.detail-card p {
    margin-bottom: var(--spacing-xs);
}

.venue-name {
    font-family: var(--font-script);
    font-size: 1.8rem !important;
    color: var(--primary-color) !important;
    font-weight: 600;
}

.lunar-date {
    font-style: italic;
    opacity: 0.8;
}

.detail-message {
    font-style: italic;
}

.heart-emoji {
    font-size: 2rem !important;
    color: var(--primary-color);
    margin-top: var(--spacing-sm);
}

.map-container {
    margin-top: var(--spacing-lg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RSVP SECTION
   ============================================ */

.rsvp-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--periwinkle) 50%, var(--lavender) 100%);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.radio-group {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.radio-label {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    padding: 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    font-weight: 700;
    color: var(--primary-color);
}

.rsvp-form button {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
}

.rsvp-form button:hover {
    background: var(--secondary-color);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: linear-gradient(135deg, var(--periwinkle) 0%, var(--lavender) 50%, var(--rose-gold) 100%);
    color: var(--text-light);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.footer-text {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.footer-text:last-child {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-thanks {
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    opacity: 0.9;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@media (min-width: 768px) {
    .lightbox-content {
        max-width: 35%;
        max-height: 85vh;
    }
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* Mobile devices (default styles above are mobile-first) */

/* Tablets and up */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        transition: left 0.3s ease;
        gap: var(--spacing-sm);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translate(-50%, 0);
    }
    
    .countdown-item {
        min-width: 100px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .radio-group {
        flex-direction: column;
    }
    
    .radio-label {
        min-width: 100%;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-invite {
        font-size: 1rem;
    }
    
    .story-image {
        height: 280px;
    }
    
    .countdown {
        gap: var(--spacing-sm);
    }
    
    .countdown-item {
        min-width: 80px;
        padding: var(--spacing-sm);
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .detail-card {
        padding: var(--spacing-md);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rsvp-form {
        padding: var(--spacing-md);
    }
    
    .map-container iframe {
        height: 250px;
    }
}

/* Smooth animations for elements */
@media (prefers-reduced-motion: no-preference) {
    .timeline-content,
    .detail-card,
    .gallery-item,
    .countdown-item {
        animation: fadeIn 0.6s ease-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}