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

/* ========================================
   NAVIGATION BAR
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: background 0.3s, border-color 0.3s;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s;
}

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

.nav-right {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-rsvp {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
}

.nav-rsvp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: var(--primary-dark);
}

.nav-rsvp::after {
    display: none;
}

.language-selector select {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select:hover {
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(92, 122, 148, 0.1);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 20px;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu (Hidden by Default) */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    border-top: 2px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s;
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Georgia', serif;
    font-size: 1rem;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 30px;
}

.mobile-rsvp {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.mobile-rsvp:hover {
    background: var(--primary-dark);
    padding-left: 30px;
}

.mobile-language {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-language label {
    font-family: 'Georgia', serif;
    color: var(--text-color);
    font-weight: 500;
}

.mobile-language select {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    font-family: 'Georgia', serif;
    font-size: 0.9rem;
}

/* ========================================
   MAIN STYLES
   ======================================== */

/* Light Theme (Default) */
:root,
body.theme-light {
    /* Primary - Dusty Blue / Twilight */
    --primary-color: #5C7A94;
    --primary-dark: #4A6378;
    --primary-light: #7D9DB5;
    
    /* Secondary/Accent - Rose Petal / Pink Avalanche */
    --secondary-color: #C4A582;
    --accent-color: #B39570;
    
    /* Tertiary - Champagne */
    --tertiary-color: #F5F1E8;
    
    /* Text Colors */
    --text-color: #2C3E50;
    --text-light: #5A6B7D;
    --text-on-primary: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F9FA;
    --bg-accent: #FAF9F6;
    
    /* Border & Divider */
    --border-color: #E0E6ED;
    --divider-color: var(--secondary-color);
}

/* Dark Theme */
body.theme-dark {
    /* Primary - Dusty Blue / Twilight (adjusted for dark) */
    --primary-color: #7D9DB5;
    --primary-dark: #6B8AA4;
    --primary-light: #A8C5D9;
    
    /* Secondary/Accent - Rose Petal / Pink Avalanche */
    --secondary-color: #D4B896;
    --accent-color: #C4A582;
    
    /* Tertiary - Champagne */
    --tertiary-color: #E8DEC8;
    
    /* Text Colors */
    --text-color: #E8EEF3;
    --text-light: #B8C5D3;
    --text-on-primary: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #1A2332;
    --bg-secondary: #243447;
    --bg-accent: #2C3E50;
    
    /* Border & Divider */
    --border-color: #3A4D62;
    --divider-color: var(--secondary-color);
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.color-primary {
    color: var(--primary-color) !important;
}

.color-secondary {
    color: var(--secondary-color) !important;
}

.color-tertiary {
    color: var(--tertiary-color) !important;
}

/* Desktop Layout - Two Column */
.image-column {
    position: fixed;
    left: 0;
    top: 70px;
    width: 60%;
    height: calc(100vh - 70px);
    overflow: hidden;
    z-index: 1;
    background-color: #2a2a2a;
}

.image-column::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    z-index: 5;
    pointer-events: none;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.image-column img.active {
    opacity: 1;
    z-index: 2;
}

/* Image Overlay Text */
.image-overlay-text {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 10;
    max-width: 600px;
}

.overlay-names {
    font-family: 'Georgia', serif;
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 2px;
    line-height: 1.1;
    color: white;
    border-bottom: none;
    padding-bottom: 0;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

.overlay-message {
    font-size: 1.2em;
    line-height: 1.5;
    font-style: normal;
    font-family: 'Georgia', serif;
    margin: 0;
    color: white;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8);
}

.content-column {
    position: relative;
    margin-left: 60%;
    margin-top: 70px;
    width: 40%;
    background-color: var(--bg-primary);
    min-height: calc(100vh - 70px);
    z-index: 10;
    overflow: visible;
}

.content-section {
    min-height: 100vh;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Hide mobile images on desktop */
.mobile-section-image {
    display: none;
}

.mobile-image-wrapper {
    display: none;
}

.mobile-overlay {
    display: none;
}

.section-content {
    width: 100%;
}

/* Typography */
h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: normal;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: normal;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

h1.names {
    font-weight: bold;
    color: var(--primary-dark);
    text-align: right;
}

.subtitle {
    font-size: 1.8em;
    font-style: italic;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.date {
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.date-details {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    font-weight: bold;
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Info Blocks */
.info-block {
    margin-bottom: 40px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--secondary-color);
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background-color: var(--secondary-color);
    z-index: 1;
}

.timeline-item {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    position: relative;
    padding-left: 45px;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 8px;
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    flex: 1;
}

.time {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.event h3 {
    margin-bottom: 8px;
    color: var(--primary-color);
}

.event p {
    margin-bottom: 0;
    color: var(--text-light);
}

/* Hotels */
.hotel-block {
    margin-bottom: 35px;
    padding: 25px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
}

.hotel-block h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
}

.distance {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 10px;
}

.note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 30px;
    padding: 15px;
    background-color: var(--tertiary-color);
    border-radius: 5px;
}

/* FAQ */
.faq-item {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* RSVP Form */
.rsvp-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Georgia', serif;
    background-color: var(--bg-primary);
    color: var(--text-color);
    transition: border-color 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    color: var(--text-color);
}

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

.submit-btn {
    background-color: var(--secondary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-family: 'Georgia', serif;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.submit-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border: 2px solid transparent;
    border-radius: 5px;
    font-family: 'Georgia', serif;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.alert p {
    margin-bottom: 10px;
}

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

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Dark theme alert adjustments */
body.theme-dark .alert-success {
    background-color: #1e4620;
    border-color: #2d5a2e;
    color: #a8e6a8;
}

body.theme-dark .alert-danger {
    background-color: #4a1f23;
    border-color: #5e2a2e;
    color: #f5a5a8;
}

body.theme-dark .alert-warning {
    background-color: #4a3f1a;
    border-color: #5e5028;
    color: #f5e5a8;
}

body.theme-dark .alert-info {
    background-color: #1a3a4a;
    border-color: #284a5e;
    color: #a8d5e6;
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 40px 60px;
    text-align: center;
    border-top: 2px solid var(--secondary-color);
}

footer p {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Mobile Styles */
@media screen and (max-width: 968px) {
    /* Mobile Navigation Styles */
    .navbar {
        background: transparent;
        border-bottom: none;
        box-shadow: none;
        height: auto;
    }
    
    .nav-container {
        height: 0;
        padding: 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background: var(--bg-primary);
        border: 2px solid var(--border-color);
        border-radius: 8px;
        padding: 8px;
        width: 40px;
        height: 40px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        opacity: 0.5;
        transition: opacity 0.3s;
    }
    
    .hamburger:hover,
    .hamburger.active {
        opacity: 1;
    }
    
    .hamburger-line {
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: all 0.3s;
    }
    
    .hamburger.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .hamburger.active .hamburger-line {
        background: white;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .mobile-menu {
        display: flex;
        position: fixed;
        top: 65px;
        right: 15px;
        width: 280px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        border: 2px solid var(--border-color);
        max-height: 0;
        opacity: 0;
        visibility: hidden;
    }
    
    .mobile-menu.open {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }
    
    /* Adjust content for mobile - no navbar height */
    .image-column {
        display: none;
    }
    
    .content-column {
        margin-top: 0;
        min-height: 100vh;
    }

    /* Show mobile section images */
    .mobile-section-image {
        display: block;
        width: 100%;
        height: 50vh;
        object-fit: cover;
        margin: 0;
        padding: 0;
    }

    .mobile-image-wrapper {
        display: block;
        position: relative;
    }

    .mobile-overlay {
        display: block;
    }

    /* First section image is full screen */
    #welcome .mobile-section-image {
        height: 100dvh;
    }

    #welcome .mobile-image-wrapper {
        position: relative;
        width: 100%;
        height: 100dvh;
    }
    
    #welcome .mobile-image-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
        pointer-events: none;
        z-index: 1;
    }

    #welcome .mobile-image-wrapper .mobile-section-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    #welcome .mobile-overlay {
        position: absolute;
        bottom: 15%;
        left: 20px;
        right: 20px;
        z-index: 10;
    }

    .overlay-names {
        font-size: 2.2em;
    }

    .overlay-message {
        font-size: 1em;
    }

    .content-column {
        margin-left: 0;
        width: 100%;
    }

    .content-section {
        min-height: auto;
        padding: 0;
        display: block;
    }

    .section-content {
        padding: 60px 30px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.3em;
    }

    .subtitle {
        font-size: 1.4em;
    }

    .date-details {
        font-size: 1.6em;
    }

    .timeline-container::before {
        left: 7px;
        width: 2px;
    }

    .timeline-item {
        padding-left: 35px;
    }

    .timeline-marker {
        width: 16px;
        height: 16px;
        border-width: 2px;
        top: 6px;
    }

    .time {
        font-size: 1.1em;
    }

    footer {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .section-content {
        padding: 40px 20px;
    }

    #welcome .mobile-overlay {
        bottom: 30px;
        left: 15px;
        right: 15px;
    }

    .overlay-names {
        font-size: 1.8em;
    }

    .overlay-message {
        font-size: 0.95em;
    }

    .timeline-container::before {
        left: 6px;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .timeline-marker {
        width: 14px;
        height: 14px;
    }

    .time {
        font-size: 1em;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
    }
}

/* Falling Cherry Blossoms */
.cherry-blossoms-container {
    position: fixed;
    top: 0;
    left: 60%;
    width: 40%;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.cherry-petal {
    position: absolute;
    width: 25px;
    height: 25px;
    color: var(--secondary-color);
    opacity: 0;
    top: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Falling animation */
@keyframes fall-1 {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) translateX(15px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(15px) rotate(270deg);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall-2 {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) translateX(-20px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(-40px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(-20px) rotate(270deg);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fall-3 {
    0% {
        transform: translateY(-50px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.9;
    }
    25% {
        transform: translateY(25vh) translateX(25px) rotate(90deg);
    }
    50% {
        transform: translateY(50vh) translateX(50px) rotate(180deg);
    }
    75% {
        transform: translateY(75vh) translateX(25px) rotate(270deg);
    }
    90% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) translateX(0) rotate(360deg);
        opacity: 0;
    }
}

@keyframes sway {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Individual petal animations with different timings and positions */
.petal-1 {
    left: 10%;
    animation: fall-1 12s linear infinite;
    animation-delay: 0s;
}

.petal-2 {
    left: 25%;
    animation: fall-2 14s linear infinite;
    animation-delay: 2s;
}

.petal-3 {
    left: 40%;
    animation: fall-3 11s linear infinite;
    animation-delay: 4s;
}

.petal-4 {
    left: 55%;
    animation: fall-1 13s linear infinite;
    animation-delay: 1s;
}

.petal-5 {
    left: 70%;
    animation: fall-2 15s linear infinite;
    animation-delay: 3s;
}

.petal-6 {
    left: 85%;
    animation: fall-3 12.5s linear infinite;
    animation-delay: 5s;
}

.petal-7 {
    left: 20%;
    animation: fall-1 13.5s linear infinite;
    animation-delay: 6s;
}

.petal-8 {
    left: 60%;
    animation: fall-2 14.5s linear infinite;
    animation-delay: 7s;
}

/* Mobile: fewer, smaller petals */
@media screen and (max-width: 968px) {
    .cherry-blossoms-container {
        left: 0;
        width: 100%;
    }
    
    .cherry-petal {
        width: 20px;
        height: 20px;
        opacity: 0.5;
    }
    
    .petal-3, .petal-8 {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .cherry-petal {
        width: 20px;
        height: 20px;
        opacity: 0.5;
    }
    
    .petal-3, .petal-5, .petal-8 {
        display: none;
    }
}

