/* Variables & Base Styles */
:root {
    --color-primary: #d4c4b0;
    --color-secondary: #8b7355;
    --color-accent: #bf9270;
    --color-background: #f5f2ed;
    --color-text: #2c1810;
    --header-height: 80px;
    --transition-standard: all 0.3s ease;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 4px 30px rgba(0, 0, 0, 0.1);
    --container-max-width: 1200px;
    --section-spacing: 2rem;
    --scroll-top-size: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

/* Default font for English content */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #f5f2ed, #d4c4b0, #8b7355) fixed;
    background-size: cover;
    color: var(--color-text);
}

/* Apply GFS Neohellenic to Greek content */
body[lang="gr"] {
    font-family: "GFS Neohellenic", sans-serif;
}

body[lang="gr"] h1, body[lang="gr"] h2, body[lang="gr"] h3,
body[lang="gr"] h4, body[lang="gr"] h5, body[lang="gr"] h6, body[lang="gr"] p {
    font-family: "GFS Neohellenic", sans-serif;
    font-weight: 700;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(191, 146, 112, 0.4), 0 0 20px rgba(191, 146, 112, 0.2);
}


h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(245, 242, 237, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    margin-left: 2rem; /* Add space between language switcher and nav links */
}

.nav-btn {
    background: none;
    border: none;
    color: var(--color-text);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition-standard);
}

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

.nav-btn:hover::after {
    width: 100%;
}

/* Confetti Container */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* Confetti Styles */
.confetti {
    position: absolute;
    top: -10px;
    width: 8px;
    height: 8px;
    background-color: rgba(191, 146, 112, 0.7);
    opacity: 0.9;
    border-radius: 50%;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.attendance-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.attendance-options input[type="radio"] {
    margin-right: 0.5rem;
}

.attendance-options label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--color-secondary);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 1rem;
}

.lang-btn {
    box-shadow: 0px 4px 15px rgba(139, 115, 85, 0.5), 0 0 15px rgba(191, 146, 112, 0.7);
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    font-family: 'Lato', sans-serif;
}

.lang-btn.active {
    background-color: var(--color-accent);
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.lang-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0px 4px 20px rgba(139, 115, 85, 0.7), 0 0 25px rgba(191, 146, 112, 0.8);
    background-color: var(--color-secondary);
}

.countdown-container {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--color-secondary);
    animation: fadeInUp 0.6s ease-out forwards;
}

.countdown-container h4 {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

#countdown-timer {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--color-text);
}

/* Enhanced Section Styles */
.section {
    min-height: auto;
    padding: calc(var(--header-height) + var(--section-spacing)) 2rem var(--section-spacing);
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
    transition: background-color 0.5s ease;
}

/* Animated background for each section */
.section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
    opacity: 0.2;
    pointer-events: none;
    animation: moveBackground 20s linear infinite;
    transform: scale(1.1);
}

@keyframes moveBackground {
    0% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    50% {
        transform: translate(0%, 0%) scale(1.2);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}


/* Section background colors and hover effects */
.section:nth-child(odd) {
    background-color: rgba(212, 196, 176, 0.1);
}

.section:nth-child(even) {
    background-color: rgba(139, 115, 85, 0.05);
}

.section-content {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem;
    display: flex;           /* Added */
    flex-direction: column;  /* Added */
    align-items: center;     /* Added */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Cool hover effect for section content */
.section-content:hover {
    transform: translateY(-5px);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 0 0 3px rgba(191, 146, 112, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Section titles with animated underline */
.section-title {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto 2rem;  /* Changed to auto margins */
    padding-bottom: 1rem;
    color: var(--color-secondary);
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.section-content:hover .section-title::after {
    width: 50%; /* Changed from 80% to be more centered */
}


/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: var(--scroll-top-size);
    height: var(--scroll-top-size);
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: translateY(1rem);
    transition: all 0.3s ease;
    box-shadow: 0px 4px 15px rgba(139, 115, 85, 0.5), 0 0 15px rgba(191, 146, 112, 0.7);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 20px rgba(139, 115, 85, 0.7), 0 0 25px rgba(191, 146, 112, 0.8);
    background-color: var(--color-secondary);
}

/* Mobile menu styles */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 1rem;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Children Names */
.children-names {
  text-align: center;
  margin: 2rem 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.child-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--color-secondary);
  margin: 1rem 0;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

body[lang="gr"] .child-name {
  font-family: "GFS Neohellenic", sans-serif;
}

/* About Section */
.about-content {
    text-align: center;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.date-time,
.ceremony-details {
    width: 80%;
    margin: 0; /* Remove individual margins since we're using flex gap */
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
}

.ceremony-details {
    animation: fadeInFloat 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.date-time {
    animation: fadeInFloat 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

/* Breathing Animation Keyframes */
@keyframes breathing {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Apply the breathing animation to the first title */
#about .section-title {
    animation: breathing 5s ease-in-out infinite;
}

/* Gradient border effect for both */
.date-time::before,
.ceremony-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects for both */
.date-time:hover,
.ceremony-details:hover {
    transform: translateY(-8px);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.98);
}

.date-time:hover::before,
.ceremony-details:hover::before {
    transform: scaleX(1);
}

/* Enhanced typography */
.ceremony-details h3,
.date-time h3 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
.date-time,
.ceremony-details h4 {
    color: var(--color-accent);
    font-size: 2.2rem;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.date-time p,
.ceremony-details p {
    color: var(--color-text);
    font-family: 'Cormorant Garamond', serif;
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Location Section */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.church-info,
.reception-info {
    text-align: center;
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.church-info {
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
}

.reception-info {
    animation: fadeInUp 0.8s ease-out forwards 0.4s;
}

.church-info:hover,
.reception-info:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Gradient border effect */
.church-info::before,
.reception-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.church-info:hover::before,
.reception-info:hover::before {
    transform: scaleX(1);
}

/* Location specific styles */
.location-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.location-detail {
    font-style: italic;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.location-address {
    margin-bottom: 1rem;
}

.hotel-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.map-link,
.hotel-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.map-link::before,
.hotel-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.map-link {
    background-color: var(--color-primary);
    color: var(--color-text);
}

.hotel-link {
    background-color: var(--color-accent);
    color: white;
}

.map-link:hover,
.hotel-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-link:hover::before,
.hotel-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.accommodation-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.accommodation-note:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.accommodation-note p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-secondary);
}

/* RSVP Form */
.form-container {
    width: 75%;        /* Changed to percentage */
    margin: 0 auto;
    padding: 2.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.form-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow:
            0 5px 15px rgba(191, 146, 112, 0.1),
            0 0 0 3px rgba(191, 146, 112, 0.1);
    transform: translateY(-2px);
    outline: none;
}

.form-input.invalid {
    border-color: #dc3545;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    font-weight: 600;
}

.submit-btn {
    background-color: var(--color-accent);
    box-shadow: 0px 4px 15px rgba(139, 115, 85, 0.5), 0 0 15px rgba(191, 146, 112, 0.7);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 20px rgba(139, 115, 85, 0.7), 0 0 25px rgba(191, 146, 112, 0.8);
    background-color: var(--color-secondary);
}

.submit-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:disabled::before {
    display: none;
}

/* Gift Section */
.gift-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.gift-message {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--color-secondary);
}

/* Bank account details */
.bank-accounts {
    display: grid;
    grid-template-columns: 1fr; /* Changed from 1fr 1fr to stack vertically */
    gap: 2rem;
    margin-top: 2rem;
}

.bank-account-details {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bank-account-details:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(255, 255, 255, 0.2);
}

.account-title {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.account-info {
    text-align: left;
}

.info-row {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-row:hover {
    background: linear-gradient(90deg,
    rgba(191, 146, 112, 0.1),
    rgba(139, 115, 85, 0.1)
    );
    transform: translateX(10px);
}

.label {
    font-weight: 600;
    color: var(--color-secondary);
    min-width: 140px;
    margin-right: 1rem;
}

.value {
    color: var(--color-text);
    word-break: break-word;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg,
    rgba(191, 146, 112, 0.1),
    rgba(139, 115, 85, 0.1)
    );
    border-radius: 6px;
    transition: all 0.3s ease;
    flex: 1;
}

.value:hover {
    background: linear-gradient(90deg,
    rgba(191, 146, 112, 0.2),
    rgba(139, 115, 85, 0.2)
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.value::after {
    content: 'Click to copy';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.value:hover::after {
    opacity: 1;
}

@media (max-width: 480px) {
    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .label {
        min-width: unset;
        margin-right: 0;
    }

    .value {
        width: 100%;
        text-align: left;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Enable scrolling within the modal */
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    max-height: 90vh; /* Ensures modal content doesn’t overflow too far */
    overflow-y: auto; /* Enables scrolling within the modal content */
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-title {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.review-details {
    margin-bottom: 2rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-primary);
    transition: background-color 0.3s ease;
}

.review-item:hover {
    background-color: rgba(212, 196, 176, 0.1);
}

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

.review-label {
    font-weight: 600;
    color: var(--color-secondary);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.edit-btn,
.confirm-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
}

.edit-btn:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(191, 146, 112, 0.2);
}

.confirm-btn {
    background-color: var(--color-accent);
    color: white;
    border: none;
}

.confirm-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

/* Center footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-background);
    margin-top: var(--section-spacing);
}

/* Animations */
@keyframes fadeInFloat {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    :root {
        --container-max-width: 90%;
    }

    .section-content {
        padding: 2rem;
    }

    /* Adjust header padding for larger screens */
    header {
        padding: 1rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .bank-accounts {
        grid-template-columns: 1fr;
    }

    .bank-account-details + .bank-account-details {
        margin-top: 2rem;
    }

    .date-time,
    .ceremony-details {
        width: 90%;
    }

    .form-container {
        width: 90%;
        padding: 2rem;
    }

    /* Adjust navigation spacing */
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;  /* Fixed height for mobile */
    }

    /* Header Layout */
    header {
        padding: 0.5rem 1rem;
        position: fixed;
        height: var(--header-height);
    }

    /* Language Switcher */
    .language-switcher {
        position: relative;
        z-index: 1002;
        margin: 0;
        display: flex;
        gap: 0.5rem;
    }

    /* Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        position: fixed;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .menu-toggle span {
        width: 24px;
        height: 2px;
        background-color: var(--color-text);
        transition: var(--transition-standard);
        display: block;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* Navigation Container */
    .nav-container {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: auto;
        background-color: var(--color-background);
        box-shadow: var(--shadow-medium);
        transition: max-height 0.3s ease;
        overflow: hidden;
        max-height: 0; /* Initially hidden */
        z-index: 1001;
    }

    /* Active state for when the menu is open */
    .nav-container.active {
        max-height: 300px; /* Adjust based on your needs */
    }

    /* Adjust .nav-links for a vertical layout in mobile mode */
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: left;
    }

    .nav-btn:last-child {
        border-bottom: none;
    }

    /* Section Adjustments */
    .section {
        padding: calc(var(--header-height) + 2rem) 1rem 2rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .date-time,
    .ceremony-details {
        width: 90%;
        padding: 2rem;
    }

    .about-content {
        gap: 2rem;
    }
    .ceremony-details h4 {
        font-size: 1.8rem;
    }

    /* Modal Adjustments */
    .modal-buttons {
        flex-direction: column;
    }

    .edit-btn,
    .confirm-btn {
        width: 100%;
    }

    .modal-content {
        width: 100%; /* Full width on mobile */
        max-height: 100vh; /* Full height on mobile */
        border-radius: 0; /* Removes border-radius for a more immersive experience */
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem;
    }

    .language-switcher {
        transform: scale(0.9);
    }

    .lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .menu-toggle {
        top: 0.75rem;
        right: 0.75rem;
    }

    .nav-container {
        width: 100%;  /* Full width on smallest screens */
    }

    .date-time,
    .ceremony-details {
        width: 95%;
        padding: 1.5rem;
    }

    .ceremony-details h4 {
        font-size: 1.8rem;
    }

    .form-container {
        width: 95%;
        padding: 1.5rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: calc(var(--scroll-top-size) * 0.8);
        height: calc(var(--scroll-top-size) * 0.8);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gift-message {
        font-size: 1rem;
        line-height: 1.6;
    }

    .info-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .label {
        min-width: unset;
        margin-right: 0;
    }

    /* Adjust modal for smallest screens */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Print Styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }

    .section {
        min-height: auto;
        padding: 2rem 0;
    }

    .section-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .submit-btn,
    .registry-btn {
        border: 1px solid #ccc;
    }
}
