/* AOS Library CSS */
@import url('https://unpkg.com/aos@2.3.1/dist/aos.css');

/* Elegant Wedding Theme - Inspired by Reference Design */
:root {
    /* Color Palette - Green and White Theme */
    --primary-color: #6db26d;
    --primary-dark: #5a9a5a;
    --primary-light: #8dc88d;
    --secondary-color: #4a8a4a;
    --accent-color: #f7f9f7;
    --cream: #fafbfa;
    --beige: #f5f7f5;
    --warm-white: #fefffe;
    --text-dark: #3a3a3a;
    --text-medium: #6b6b6b;
    --text-light: #8a8a8a;
    --white: #ffffff;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6db26d 0%, #8dc88d 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(109, 178, 109, 0.8) 0%, rgba(74, 138, 74, 0.8) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 1.5rem;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Lora', serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Crimson Text', serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(109, 178, 109, 0.1);
}

.navbar .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: absolute;
    right: 1rem;
    z-index: 2;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-collapse {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Initials Above Menu */
.navbar-initials {
    text-align: center;
    padding: 0.5rem 0;
}

.initials-link {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.initials-link:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Navigation Menu */
.navbar-nav {
    width: 100%;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    padding: 0.5rem 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 0.5rem 1rem !important;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    text-transform: capitalize;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Navigation Separators */
.nav-separator {
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 0 0.5rem;
    pointer-events: none;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem 0;
}

.lang-toggle {
    display: none;
}

.lang-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 70px;
    height: 32px;
    background: rgba(109, 178, 109, 0.1);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(109, 178, 109, 0.2);
    overflow: hidden;
}

.lang-label:hover {
    background: rgba(109, 178, 109, 0.15);
    border-color: rgba(109, 178, 109, 0.4);
    transform: scale(1.05);
}

.lang-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 2;
    text-align: center;
    width: 50%;
}

.lang-text.en {
    left: 8px;
}

.lang-text.es {
    right: 8px;
}

.lang-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 30px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(109, 178, 109, 0.3);
}

.lang-toggle:checked + .lang-label .lang-slider {
    transform: translateX(36px);
}

.lang-toggle:checked + .lang-label .lang-text.en {
    color: rgba(109, 178, 109, 0.5);
}

.lang-toggle:checked + .lang-label .lang-text.es {
    color: white;
    font-weight: 700;
}

.lang-toggle:not(:checked) + .lang-label .lang-text.en {
    color: white;
    font-weight: 700;
}

.lang-toggle:not(:checked) + .lang-label .lang-text.es {
    color: rgba(109, 178, 109, 0.5);
}

/* Translation Animation */
[data-en], [data-es] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.translating {
    opacity: 0;
    transform: translateY(-10px);
}

/* Mobile Brand - Always Visible */
.navbar-brand-mobile {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.navbar-brand-mobile:hover {
    color: var(--primary-dark);
}

/* Hide mobile brand when navbar is expanded */
.navbar-toggler[aria-expanded="true"] ~ .navbar-brand-mobile {
    display: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(247, 245, 243, 0.1) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-david-xshely.webp');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(109, 178, 109, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(109, 178, 109, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    padding: 2rem 1rem;
}

.hero-names {
    margin-bottom: 2rem;
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.first-name, .second-name {
    display: inline-block;
}

.ampersand {
    font-family: 'Crimson Text', serif;
    font-size: 0.6em;
    font-style: italic;
    color: var(--primary-light);
    margin: 0 1rem;
    position: relative;
    top: -0.1em;
}

.wedding-date-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
    margin-top: 1rem;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-separator {
    margin: 0 1rem;
    color: var(--primary-light);
}

.hero-subtitle {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.hero-subtitle p {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.hero-rsvp {
    margin-top: 2rem;
}

.btn-rsvp {
    display: inline-block;
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 1rem 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s ease;
    text-shadow: none;
}

.btn-rsvp:hover {
    background: var(--white);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* We're Getting Married Section */
.getting-married-section {
    background: var(--beige);
    padding: var(--section-padding);
    text-align: center;
}

.getting-married-title {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3rem;
    line-height: 1.2;
}

/* Invitation Text */
.invitation-text {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.invitation-line {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 400;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.invitation-emphasis {
    font-weight: 600;
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    color: var(--text-dark);
    margin-top: 1rem;
}

.parents-names,
.witnesses-names {
    margin: 1.5rem 0;
    padding: 1rem 0;
}

.parent-couple,
.witness-couple {
    font-family: 'Crimson Text', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.6;
    margin: 0.5rem 0;
    font-style: italic;
}

/* Countdown Timer */
.countdown-wrapper {
    margin: 3rem auto;
    max-width: 700px;
}

.countdown-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 600;
}

.countdown-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown-separator {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 300;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.rsvp-deadline {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--text-light);
    margin: 2rem auto 2rem;
}

.btn-rsvp-main {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 178, 109, 0.3);
}

.btn-rsvp-main:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 178, 109, 0.4);
}

/* Ceremonies Details Section */
.ceremonies-details-section {
    background: var(--warm-white);
    padding: var(--section-padding);
    text-align: center;
}

.ceremony-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    margin: 0 auto 2rem;
    max-width: 600px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(109, 178, 109, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.ceremony-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.ceremony-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(109, 178, 109, 0.3);
}

.ceremony-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.ceremony-content {
    flex: 1;
}

.ceremony-title {
    font-family: 'Crimson Text', serif;
    font-size: 1.75rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-style: italic;
}

.ceremony-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--text-medium);
}

.ceremony-time i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.ceremony-location {
    margin-bottom: 1.5rem;
}

.ceremony-location p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
    font-weight: 500;
}

.btn-view-map {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 178, 109, 0.3);
}

.btn-view-map:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 178, 109, 0.4);
}

.btn-view-map i {
    font-size: 0.875rem;
}

/* Story Section */
.story-section {
    background: var(--beige);
    padding: var(--section-padding);
}

.heart-decoration {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.story-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-slow);
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

.story-content {
    padding: 2rem 0;
}

.story-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.story-subtitle:first-child {
    margin-top: 0;
}

.story-text {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

/* Details Section */
.details-section {
    background: var(--beige);
    padding: var(--section-padding);
}

/* Gallery Section */
.gallery-section {
    background: var(--warm-white);
    padding: var(--section-padding);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.detail-card {
    background: var(--white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(109, 178, 109, 0.1);
    position: relative;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail-icon {
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-card h3 {
    font-family: 'Crimson Text', serif;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.detail-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.footer-date {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-light);
    font-family: 'Montserrat', sans-serif;
}

.footer i {
    color: #ff6b9d;
    margin: 0 0.5rem;
    animation: heartbeat 2s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        margin-left: auto;
        z-index: 2;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-brand-mobile {
        font-size: 1.6rem;
    }
    
    .navbar-initials {
        padding: 1rem 0 0.5rem;
    }
    
    .initials-link {
        font-size: 1.8rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        font-size: 0.9rem;
    }
    
    .nav-separator {
        display: none;
    }
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
    
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .couple-names {
        font-size: clamp(3rem, 10vw, 6rem);
    }
    
    .ampersand {
        margin: 0 0.5rem;
        font-size: 0.7em;
    }
    
    .wedding-date-location {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .getting-married-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .invitation-line {
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .parent-couple,
    .witness-couple {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .ceremony-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .ceremony-icon {
        margin: 0 auto 1.5rem;
    }
    
    .story-content {
        padding: 1rem 0;
        text-align: center;
    }
    
    .detail-card {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .btn-rsvp {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }
    
    .btn-rsvp-main {
        padding: 0.875rem 2.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .couple-names {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    
    .getting-married-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .detail-card {
        padding: 1.5rem 1rem;
    }
    
    .story-text {
        font-size: 1rem;
    }
    
    .btn-rsvp,
    .btn-rsvp-main {
        padding: 0.75rem 2rem;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }
}