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

:root {
    --primary-color: #7B68EE; /* Purple Theme */
    --primary-hover: #6A5ACD;
    --accent-color: #7B68EE; /* Using primary as accent */
    --bg-color: #F9F8FE; /* Light purple-white */
    --bg-light: #F5F3FE; /* Lighter purple tint for subtle backgrounds */
    --secondary-color: #FFFFFF;
    --text-dark: #2D2D3D;
    --text-light: #5E5E6E;
    --border-color: #D8D3EE;
    --white: #FFFFFF;

    /* Spacing System */
    --spacing-xs: 10px;
    --spacing-sm: 20px;
    --spacing-md: 30px;
    --spacing-lg: 40px;
    --spacing-xl: 50px;

    /* Border Radius System */
    --radius-sm: 5px;
    --radius-md: 10px;   /* Standard for cards/containers */
    --radius-lg: 15px;
    --radius-circle: 50%;

    /* Typography Scale */
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.2rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.8rem;

    /* Icon Sizes */
    --icon-sm: 2rem;
    --icon-md: 3rem;
    --icon-lg: 4rem;
}

/* Dark mode colors */
body.dark-mode {
    --primary-color: #9370DB; /* Lighter Purple for Dark Mode */
    --primary-hover: #8A63D2;
    --accent-color: #9370DB;
    --bg-color: #121212;
    --bg-light: #252525; /* Slightly lighter than secondary-color for contrast */
    --secondary-color: #1E1E1E;
    --text-dark: #F0F0F0;
    --text-light: #C0C0C0;
    --border-color: #4A4A4A;
    --white: #1E1E1E;

    background-color: var(--bg-color);
    color: var(--text-dark);
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Floating Flowers Background Animation - Desktop Only */
@media (min-width: 769px) {
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(circle 100px at 10% 15%, rgba(123, 104, 238, 0.15) 0%, rgba(123, 104, 238, 0.05) 50%, transparent 100%),
            radial-gradient(circle 120px at 85% 20%, rgba(123, 104, 238, 0.18) 0%, rgba(123, 104, 238, 0.06) 50%, transparent 100%),
            radial-gradient(circle 90px at 20% 70%, rgba(123, 104, 238, 0.14) 0%, rgba(123, 104, 238, 0.04) 50%, transparent 100%),
            radial-gradient(circle 110px at 75% 75%, rgba(123, 104, 238, 0.16) 0%, rgba(123, 104, 238, 0.05) 50%, transparent 100%),
            radial-gradient(circle 95px at 50% 45%, rgba(123, 104, 238, 0.13) 0%, rgba(123, 104, 238, 0.04) 50%, transparent 100%),
            radial-gradient(circle 105px at 90% 55%, rgba(123, 104, 238, 0.15) 0%, rgba(123, 104, 238, 0.045) 50%, transparent 100%);
        pointer-events: none;
        z-index: 1;
        animation: floatFlowers 60s ease-in-out infinite;
    }

    body.dark-mode::before {
        background-image:
            radial-gradient(circle 100px at 10% 15%, rgba(147, 112, 219, 0.25) 0%, rgba(147, 112, 219, 0.08) 50%, transparent 100%),
            radial-gradient(circle 120px at 85% 20%, rgba(147, 112, 219, 0.28) 0%, rgba(147, 112, 219, 0.1) 50%, transparent 100%),
            radial-gradient(circle 90px at 20% 70%, rgba(147, 112, 219, 0.23) 0%, rgba(147, 112, 219, 0.07) 50%, transparent 100%),
            radial-gradient(circle 110px at 75% 75%, rgba(147, 112, 219, 0.26) 0%, rgba(147, 112, 219, 0.09) 50%, transparent 100%),
            radial-gradient(circle 95px at 50% 45%, rgba(147, 112, 219, 0.22) 0%, rgba(147, 112, 219, 0.07) 50%, transparent 100%),
            radial-gradient(circle 105px at 90% 55%, rgba(147, 112, 219, 0.24) 0%, rgba(147, 112, 219, 0.08) 50%, transparent 100%);
    }

    @keyframes floatFlowers {
        0% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
        25% {
            transform: translate(3%, -2%) rotate(5deg) scale(1.05);
        }
        50% {
            transform: translate(-2%, 4%) rotate(-3deg) scale(0.95);
        }
        75% {
            transform: translate(-4%, -1%) rotate(4deg) scale(1.02);
        }
        100% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
    }

    /* Second layer - smaller petals floating slower */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:
            radial-gradient(ellipse 60px 40px at 30% 25%, rgba(123, 104, 238, 0.12) 0%, rgba(123, 104, 238, 0.03) 60%, transparent 100%),
            radial-gradient(ellipse 50px 35px at 70% 50%, rgba(123, 104, 238, 0.1) 0%, rgba(123, 104, 238, 0.025) 60%, transparent 100%),
            radial-gradient(ellipse 55px 38px at 15% 60%, rgba(123, 104, 238, 0.11) 0%, rgba(123, 104, 238, 0.028) 60%, transparent 100%),
            radial-gradient(ellipse 52px 36px at 85% 35%, rgba(123, 104, 238, 0.105) 0%, rgba(123, 104, 238, 0.026) 60%, transparent 100%),
            radial-gradient(ellipse 58px 39px at 45% 80%, rgba(123, 104, 238, 0.115) 0%, rgba(123, 104, 238, 0.029) 60%, transparent 100%),
            radial-gradient(ellipse 48px 33px at 65% 10%, rgba(123, 104, 238, 0.095) 0%, rgba(123, 104, 238, 0.024) 60%, transparent 100%);
        pointer-events: none;
        z-index: 1;
        animation: floatPetals 45s ease-in-out infinite reverse;
    }

    body.dark-mode::after {
        background-image:
            radial-gradient(ellipse 60px 40px at 30% 25%, rgba(147, 112, 219, 0.18) 0%, rgba(147, 112, 219, 0.05) 60%, transparent 100%),
            radial-gradient(ellipse 50px 35px at 70% 50%, rgba(147, 112, 219, 0.15) 0%, rgba(147, 112, 219, 0.04) 60%, transparent 100%),
            radial-gradient(ellipse 55px 38px at 15% 60%, rgba(147, 112, 219, 0.17) 0%, rgba(147, 112, 219, 0.045) 60%, transparent 100%),
            radial-gradient(ellipse 52px 36px at 85% 35%, rgba(147, 112, 219, 0.16) 0%, rgba(147, 112, 219, 0.042) 60%, transparent 100%),
            radial-gradient(ellipse 58px 39px at 45% 80%, rgba(147, 112, 219, 0.175) 0%, rgba(147, 112, 219, 0.046) 60%, transparent 100%),
            radial-gradient(ellipse 48px 33px at 65% 10%, rgba(147, 112, 219, 0.145) 0%, rgba(147, 112, 219, 0.038) 60%, transparent 100%);
    }

    @keyframes floatPetals {
        0% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
        33% {
            transform: translate(-3%, 2%) rotate(-4deg) scale(1.08);
        }
        66% {
            transform: translate(2%, -3%) rotate(6deg) scale(0.92);
        }
        100% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
    }

    /* Ensure content is above the floating background */
    .navbar,
    .hero,
    section,
    footer,
    .page-content {
        position: relative;
        z-index: 2;
    }
}

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

/* Classes from inline styles */
.welcome-subtitle { text-align: center; font-size: 1.3rem; color: var(--text-light); }
.welcome-text { text-align: center; }
.bg-light-section { background: var(--white); }
body.dark-mode .bg-light-section { background: var(--secondary-color); }
.footer-subtext { margin-top: 10px; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color); /* Fully opaque background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}



.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 70px;
    opacity: 0; /* Hide by default to prevent FOUC */
    transition: opacity 0.2s ease-in-out;
}

.nav-container.loaded {
    opacity: 1; /* Fade in when loaded */
}

.brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-decoration: none;
}

/* FIX: Ensure text over hero image is always readable */
.navbar.transparent .brand,
.navbar.transparent .nav-links a,
.navbar.transparent .theme-icon {
    color: var(--white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}
.navbar.transparent .hamburger span {
    background: var(--white);
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}


.nav-links {
    display: flex; list-style: none; gap: 40px; align-items: center; margin-left: auto;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

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

.nav-links a:hover { color: var(--primary-color); }
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle Button */
.theme-toggle {
    background: none; border: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center; transition: all 0.3s ease;
    margin-left: 20px; padding: 0; color: var(--primary-color);
}
.theme-icon { font-size: 24px; }

/* Hamburger */
.hamburger { display: none; }

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/kosciol.jpg') no-repeat center center;
    background-size: cover;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif; font-size: 4rem;
    color: #FFFFFF; /* Brighter, pure white */
    font-weight: 400; letter-spacing: 2px;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 1), 0 0 10px rgba(0,0,0,0.5); /* Stronger shadow */
}

.hero-content .ampersand {
    font-family: 'Playfair Display', serif; font-size: 5rem;
    color: var(--primary-color); font-style: italic; display: block;
    margin: -10px 0; text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

body.dark-mode .hero-content .ampersand {
    color: var(--primary-color);
}

.hero-content .date {
    font-family: 'Montserrat', sans-serif; font-size: 1.5rem;
    color: #FFFFFF; /* Explicitly set to pure white */
    margin-top: 1rem; letter-spacing: 2px; font-weight: 300;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1), 0 0 8px rgba(0,0,0,0.5); /* Stronger shadow */
}

.hero-content .tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: #FFFFFF; /* Explicitly set to pure white */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1), 0 0 8px rgba(0,0,0,0.5); /* Stronger shadow */
}

.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%;
    transform: translateX(-50%); color: var(--white);
    font-size: 2rem; animation: bounce 2s infinite; cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Styles */
section { padding: 80px 0; }

.page-content {
    padding: 120px 0 80px 0;
}

h2 {
    font-family: 'Playfair Display', serif; text-align: center;
    font-size: 2.8rem; color: var(--primary-color); margin-bottom: 3rem;
    font-weight: 400; letter-spacing: 1px; position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    transform: translateX(-50%); width: 80px; height: 2px;
    background-color: var(--primary-color); opacity: 0.5;
}

/* Event Details */
.event-details {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px; margin-top: 40px;
}

.event-card {
    background: var(--secondary-color); padding: 40px;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    box-shadow: 0 5px 25px rgba(123, 104, 238, 0.08);
    text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 104, 238, 0.12);
}

.event-card .icon .material-icons {
    font-size: 3rem; color: var(--accent-color); margin-bottom: 20px;
}

.event-card h3 {
    font-family: 'Playfair Display', serif; font-size: 1.6rem;
    color: var(--text-dark); margin-bottom: 15px; font-weight: 400;
}

.event-card p { color: var(--text-light); line-height: 1.8; margin-bottom: 10px; }

.cta-link {
    display: inline-block; margin-top: auto; color: var(--primary-color);
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    padding: 10px 20px; border: 1px solid var(--primary-color);
    border-radius: var(--radius-md); transition: all 0.3s ease;
    letter-spacing: 0.5px; text-transform: uppercase;
}

.cta-link:hover { background: var(--primary-color); color: var(--white); }

/* Content Box */
.content-box {
    max-width: 800px; margin: 40px auto; background: var(--secondary-color);
    padding: 50px; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    box-shadow: 0 5px 25px rgba(123, 104, 238, 0.08);
}
.content-box p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }

/* ===========================
   FORM STYLES
   =========================== */

.rsvp-content {
    max-width: 800px;
    margin: 0 auto;
}

.rsvp-form {
    background: var(--secondary-color);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 25px rgba(123, 104, 238, 0.08);
}

body.dark-mode .rsvp-form {
    background: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Form Groups */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.3px;
}

/* Input Fields */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    outline: none;
}

/* Focus States - WCAG 2.1 AA Compliant */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
    background: var(--secondary-color);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus,
body.dark-mode .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(147, 112, 219, 0.2);
}

/* Hover States */
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-hover);
}

/* Dark Mode Input Styling */
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    background: var(--bg-color);
    border-color: var(--border-color);
    color: var(--text-dark);
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

/* Textarea Specific */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Select Dropdown */
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237B68EE' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

body.dark-mode .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239370DB' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Number Input Arrows */
.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Validation States */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #E53E3E;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #38A169;
}

.form-group .error-message {
    color: #E53E3E;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.2);
}

.submit-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(123, 104, 238, 0.3);
}

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

.submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(123, 104, 238, 0.2);
}

body.dark-mode .submit-btn {
    color: #000;
    background: var(--primary-color);
    box-shadow: 0 4px 12px rgba(147, 112, 219, 0.3);
}

body.dark-mode .submit-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(147, 112, 219, 0.4);
}

/* Responsive Form */
@media (max-width: 768px) {
    .rsvp-form {
        padding: var(--spacing-md);
    }

    .submit-btn {
        font-size: var(--font-size-base);
        padding: 14px 24px;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */

/* Page Icons */
.page-icon {
    font-size: var(--icon-lg);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    display: block;
    text-align: center;
}

/* Section Headings */
.section-heading {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.section-heading--center {
    text-align: center;
}

/* Info Box */
.info-box {
    background: var(--secondary-color);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

body.dark-mode .info-box {
    background: var(--secondary-color);
    border-color: var(--border-color);
}

/* Light Background Box */
.light-box {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

/* Text Utilities */
.text-emphasized {
    font-size: var(--font-size-lg);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

/* Account Number Display */
.account-number {
    font-family: 'Courier New', monospace;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
    font-weight: bold;
    letter-spacing: 2px;
    word-break: break-all;
}

/* Hashtag Display */
.hashtag {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    font-weight: bold;
    text-align: center;
    margin: var(--spacing-sm) 0;
    letter-spacing: 1px;
}

/* Styled List */
.styled-list {
    list-style-position: inside;
    font-size: var(--font-size-lg);
    padding-left: var(--spacing-sm);
}

.styled-list li {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Spacing Utilities */
.mb-10 { margin-bottom: var(--spacing-xs); }
.mb-20 { margin-bottom: var(--spacing-sm); }
.mb-30 { margin-bottom: var(--spacing-md); }
.mb-40 { margin-bottom: var(--spacing-lg); }

.mt-10 { margin-top: var(--spacing-xs); }
.mt-20 { margin-top: var(--spacing-sm); }
.mt-30 { margin-top: var(--spacing-md); }
.mt-40 { margin-top: var(--spacing-lg); }

/* Padding Utilities */
.p-25 { padding: 25px; }
.p-30 { padding: var(--spacing-md); }

/* Border Utilities */
.border-top {
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-md);
}

/* Font Utilities */
.font-bold { font-weight: 700; }
.font-semi-bold { font-weight: 600; }
.font-italic { font-style: italic; }

/* Dark Mode Utility Overrides */
body.dark-mode .light-box {
    background: var(--bg-light);
}

body.dark-mode .section-heading {
    color: var(--primary-color);
}

body.dark-mode .account-number,
body.dark-mode .hashtag {
    color: var(--primary-color);
}

/* ===========================
   GALLERY STYLES
   =========================== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.gallery-item {
    aspect-ratio: 4 / 3;
    background: var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(123, 104, 238, 0.15);
}

body.dark-mode .gallery-item {
    background: var(--secondary-color);
    border-color: var(--border-color);
}

body.dark-mode .gallery-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* When images are added */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-xs);
    }
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--text-dark); color: var(--bg-color);
    text-align: center; padding: 40px 0;
}
footer p { opacity: 0.9; font-weight: 300; }

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex; flex-direction: column; cursor: pointer; gap: 5px;
        z-index: 1001; /* Ensure it's above other nav elements */
        order: 1; /* First - on the left */
    }

    .hamburger span { width: 25px; height: 2px; background: var(--primary-color); transition: all 0.3s ease; border-radius: 2px; }

    .brand {
        order: 2; /* Second - in the center */
        flex-grow: 1; /* Take remaining space */
        text-align: center; /* Center the text */
        margin: 0 15px; /* Add spacing on both sides */
    }

    .theme-toggle {
        order: 3; /* Third - on the right */
        margin-left: 0;
        margin-right: 0;
    }

    .nav-links {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: var(--bg-color); flex-direction: column; justify-content: center;
        padding-top: 0; gap: 30px; transition: left 0.4s ease-in-out;
        order: 4; /* Keep menu last (though position: fixed removes it from flex flow) */
    }

    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; text-shadow: none; }
    .hamburger.active span { background: var(--text-dark); }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .ampersand { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
}

/* Dark Mode Specifics */
body.dark-mode .navbar { background: var(--secondary-color); }


body.dark-mode .event-card,
body.dark-mode .content-box {
    background: var(--secondary-color);
    border-color: var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
body.dark-mode footer { background: #0A0A0A; color: var(--text-light); }
body.dark-mode .cta-link { color: var(--primary-color); border-color: var(--primary-color); }
body.dark-mode .cta-link:hover { background: var(--primary-color); color: #000; }
body.dark-mode h2 { color: var(--primary-color); }
body.dark-mode .brand { color: var(--primary-color); }
body.dark-mode .nav-links a { color: var(--text-dark); }
body.dark-mode .nav-links a:hover { color: var(--primary-color); }
body.dark-mode .nav-links a::after { background: var(--primary-color); }
body.dark-mode .hamburger.active span { background: var(--text-dark); }


/* Countdown Timer Styles */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between countdown items */
    margin-top: 30px;
    color: #FFFFFF; /* Explicitly set to pure white */
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 1), 0 0 8px rgba(0,0,0,0.5); /* Stronger shadow */
}

.countdown-item {
    text-align: center;
    font-size: 2em; /* Adjust as needed */
    font-family: 'Playfair Display', serif;
    line-height: 1; /* Adjust line height for better spacing */
}

.countdown-item span {
    display: block;
    font-size: 1.5em; /* Larger for the numbers */
    font-weight: bold;
}

.countdown-item .label {
    font-size: 0.5em; /* Smaller for the labels */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .countdown {
        gap: 10px;
    }

    .countdown-item {
        font-size: 1.2em;
    }

    .countdown-item span {
        font-size: 1.2em;
    }

    .countdown-item .label {
        font-size: 0.4em;
    }
}


/* Seating Map Styles */
.seating-map-container {
    width: 100%;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(123, 104, 238, 0.08);
    position: relative;
    overflow: hidden;
}

body.dark-mode .seating-map-container {
    background: var(--secondary-color);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.seating-map {
    display: grid;
    grid-template-columns: 150px 150px 150px; /* 3 equal columns - all 150px */
    grid-template-rows: auto auto auto; /* Three rows */
    gap: 30px;
    justify-content: center;
    justify-items: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

.table {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-dark);
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

body.dark-mode .table {
    background: var(--bg-color);
    border-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table p {
    margin: 0;
    line-height: 1.2;
}

.head-table {
    grid-column: 1 / -1; /* Spans all columns */
    width: 60%;
    height: 80px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.round-table {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    min-width: 120px; /* Ensure consistent size */
    max-width: 120px;
}

.dance-floor {
    grid-column: 2 / 3; /* Center column */
    grid-row: 2 / 3; /* Second row */
    width: 150px;
    height: 150px;
    background: repeating-linear-gradient(
        45deg,
        var(--border-color),
        var(--border-color) 10px,
        var(--bg-color) 10px,
        var(--bg-color) 20px
    );
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(123, 104, 238, 0.2);
}

body.dark-mode .dance-floor {
    background: repeating-linear-gradient(
        45deg,
        var(--border-color),
        var(--border-color) 10px,
        var(--secondary-color) 10px,
        var(--secondary-color) 20px
    );
    box-shadow: inset 0 0 10px rgba(147, 112, 219, 0.3);
}

/* Positioning for tables around dance floor */
.table-1 { grid-column: 1 / 2; grid-row: 2 / 3; }
.table-2 { grid-column: 3 / 4; grid-row: 2 / 3; }
.table-3 { grid-column: 1 / 2; grid-row: 3 / 4; margin-top: 20px; }
.table-4 { grid-column: 3 / 4; grid-row: 3 / 4; margin-top: 20px; }
.table-5 { grid-column: 2 / 3; grid-row: 3 / 4; margin-top: 20px; } /* Center table below dance floor */


/* Responsive adjustments */
@media (max-width: 768px) {
    .seating-map {
        grid-template-columns: 1fr; /* Single column on small screens */
        grid-template-rows: auto;
    }

    .head-table {
        width: 80%;
        margin-bottom: 20px;
    }

    .round-table {
        width: 80px;
        height: 80px;
    }

    .dance-floor {
        width: 100px;
        height: 100px;
        grid-column: auto;
        grid-row: auto;
        margin: 20px 0;
    }

    /* Reset positioning for small screens */
    .table-1, .table-2, .table-3, .table-4, .table-5 {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
    }
}