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

/* ========================================
   GENERAL STYLES
   ======================================== */

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

/* Underline effect for content links (not navigation) */
.section-content a {
    text-decoration: underline;
    text-decoration-color: var(--primary-light);
    text-underline-offset: 3px;
    font-weight: 500;
}

.section-content a:hover {
    text-decoration-color: var(--primary-dark);
    color: var(--primary-dark);
}

/* ========================================
   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: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-left {
    /* Spacer to balance nav-right, keeps nav-links centered */
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-self: 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 {
    justify-self: end;
    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 Styles */
.language-selector-wrapper {
    position: relative;
}

.language-selector-button {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-selector-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

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

.language-flag {
    width: 24px;
    height: 16px;
    display: block;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option-form {
    margin: 0;
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
}

.language-option:hover {
    background: var(--bg-secondary);
}

.language-option.active {
    background: var(--primary-color);
    color: white;
}

.language-option:first-child {
    border-radius: 4px 4px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 4px 4px;
}

.language-name {
    flex: 1;
}

/* Legacy selector styles (if any old selects remain) */
.language-selector select {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 24px;
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.language-selector select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.language-selector select:focus {
    outline: none;
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile RSVP Button (Hidden on Desktop) */
.mobile-rsvp-btn {
    display: none;
}

/* 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;
    border-bottom: 1px solid var(--border-color);
}

.mobile-language .language-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    min-width: auto;
}

.mobile-language .language-selector-button {
    display: none;
}

.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: 20px;
    border-bottom: 1px solid var(--border-color);
}

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

.faq-question {
    color: var(--primary-color);
    margin-bottom: 0;
    padding: 15px 0;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-question:hover .faq-icon {
    color: var(--secondary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

.faq-answer p {
    color: var(--text-light);
    margin-bottom: 15px;
}

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

.faq-answer ul {
    margin: 10px 0 15px 0;
    padding-left: 30px;
    color: var(--text-light);
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

/* Bank Details Styling */
.bank-details-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.bank-details-block {
    padding: 25px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.bank-details-block h4 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.monzo-link {
    display: inline-block;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.monzo-link:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
}

.bank-info {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    border-radius: 6px;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-label {
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0;
    margin-right: 15px;
}

.bank-value {
    color: var(--text-light);
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    text-align: right;
}

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

.guest-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s;
}

.guest-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guest-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.guest-card h4 {
    color: var(--secondary-color);
    margin: 20px 0 15px 0;
    font-size: 1.1em;
}

.menu-options {
    background: var(--bg-accent);
    border-left: 3px solid var(--secondary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.menu-legend {
    font-size: 0.85em;
    color: var(--text-light);
    font-style: italic;
    margin-top: 15px;
    line-height: 1.6;
}

.decline-message {
    background: var(--bg-accent);
    border-left: 3px solid var(--primary-color);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
}

.info-message {
    display: block;
    color: var(--text-color);
    font-size: 0.95em;
    font-style: italic;
    line-height: 1.5;
}

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

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

@media screen and (max-width: 480px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.form-hint {
    font-size: 0.9em;
    color: var(--text-light);
    margin: -4px 0 8px 0;
    font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
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,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

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

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

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    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;
    margin-top: 20px;
}

.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;
}

/* Validation Styles */
.validation-summary-errors {
    background-color: #f8d7da;
    border: 2px solid #f5c6cb;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 25px;
    color: #721c24;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.validation-summary-errors li {
    margin: 5px 0;
    font-size: 0.95em;
}

.validation-summary-errors li::before {
    content: '⚠ ';
    margin-right: 5px;
}

/* Individual field validation messages */
.field-validation-error {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 5px;
    font-style: italic;
}

.text-danger {
    color: #dc3545;
}

/* Inputs with validation errors */
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

input.input-validation-error:focus,
select.input-validation-error:focus,
textarea.input-validation-error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* Valid inputs (optional - shows success state) */
input.valid,
select.valid,
textarea.valid {
    border-color: #28a745;
}

input.valid:focus,
select.valid:focus,
textarea.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.15);
}

/* 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);
}

/* Tablet Styles - Prevent navigation overlap */
@media screen and (max-width: 1100px) {
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .nav-right {
        gap: 15px;
    }
    
    .nav-rsvp {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
    
    .language-selector select {
        padding: 8px 18px;
        font-size: 0.95rem;
    }
}

/* 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-left {
        display: none;
    }
    
    .nav-right {
        display: none;
    }
    
    .mobile-rsvp-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 15px;
        right: 65px;
        z-index: 1001;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        border: 2px solid var(--primary-color);
        border-radius: 8px;
        padding: 8px 16px;
        font-family: 'Georgia', serif;
        font-size: 0.95rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        opacity: 0.7;
        transition: opacity 0.3s, transform 0.2s;
    }
    
    .mobile-rsvp-btn:hover {
        color: white;
        opacity: 1;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .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;
    }

    .bank-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .bank-value {
        text-align: left;
        word-break: break-all;
    }

    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;
    }
}

/* ========================================
   COUNTDOWN TIMER
   ======================================== */

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 70px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--secondary-color);
    font-family: 'Georgia', serif;
    line-height: 1;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-top: 8px;
    font-weight: 500;
}

@media screen and (max-width: 768px) {
    .countdown-timer {
        gap: 20px;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .countdown-timer {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

