/* 
   ==========================================================================
   WEDDING WEBSITE DESIGN SYSTEM & STYLES (wedding_styles.css)
   Colors: Dark Green (#143D30), Navy Blue (#0B1D33), Gold Accents (#C5A880), White/Cream
   ========================================================================== 
*/

/* --- CSS Variables & Design Tokens --- */
:root {
    --color-primary: #143D30;       /* Rich Forest Green */
    --color-primary-light: #1e5a47;
    --color-secondary: #0B1D33;     /* Deep Navy Blue */
    --color-secondary-light: #153254;
    --color-accent: #C5A880;        /* Muted Gold / Champagne */
    --color-accent-hover: #b09166;
    --color-accent-light: #F4EFE6;  /* Soft Warm Gold/Cream */
    --color-bg-cream: #FAF9F6;      /* Off-White Background */
    --color-white: #FFFFFF;
    --color-text-dark: #2D3748;     /* Dark Charcoal for readability */
    --color-text-light: #718096;    /* Muted gray for secondary text */
    --color-shadow: rgba(11, 29, 51, 0.08);
    --color-shadow-hover: rgba(20, 61, 48, 0.15);
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 32px;
}

/* --- Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-cream);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 3.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-text-dark);
}

strong {
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

/* --- Global Layout Components --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

/* --- Common UI Elements --- */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(20, 61, 48, 0.2);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 29, 51, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.3);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

/* --- Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition-smooth);
    padding: 1.5rem 0;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 2px;
}

.main-header.scrolled .brand-logo {
    color: var(--color-primary);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-quick);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.main-header.scrolled .nav-link {
    color: var(--color-text-dark);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    position: relative;
    transition: var(--transition-quick);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition-quick);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.main-header.scrolled .hamburger,
.main-header.scrolled .hamburger::before,
.main-header.scrolled .hamburger::after {
    background-color: var(--color-primary);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    /* Set forest green and dark navy background fallback */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 29, 51, 0.45); /* Navy overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    max-width: 800px;
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-date {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-white);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-white);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.5s infinite;
}

/* --- Section Animation Styles --- */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Section: Our Story --- */
.story-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-intro {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-style: italic;
    border-left: 3px solid var(--color-accent);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.story-paragraph {
    text-align: justify;
    margin-bottom: 1rem;
}

.story-media-layout {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-image-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(255,255,255,0.7);
    transition: var(--transition-smooth);
}

.story-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px var(--color-shadow-hover);
}

.story-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.story-image-wrapper.img-offset {
    width: 90%;
    align-self: flex-end;
    margin-top: -3rem;
    border: 3px solid var(--color-white);
}

.story-image-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(rgba(11,29,51,0.8), transparent);
    color: var(--color-white);
    padding: 0.8rem 1rem 1.8rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* --- Section: Civil Wedding --- */
.section-civil {
    background-color: var(--color-white);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.civil-intro {
    max-width: 700px;
    margin: -1.5rem auto 4rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.civil-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.civil-card {
    background-color: var(--color-bg-cream);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(197,168,128,0.1);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.civil-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(11,29,51,0.12);
}

.civil-card-img-container {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.civil-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.civil-card:hover .civil-card-img {
    transform: scale(1.05);
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide-item {
    display: none;
    height: 100%;
    width: 100%;
    animation: fadeEffect 1s ease-in-out;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-quick);
}

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.2);
}

.civil-card-body {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.civil-card-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.civil-card-meta {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.civil-card-text {
    margin-bottom: 2rem;
    color: var(--color-text-dark);
    flex-grow: 1;
}

.civil-card-actions {
    margin-top: auto;
}

/* --- Section: Gallery --- */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--color-shadow);
    border: 1px solid rgba(255,255,255,0.7);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px var(--color-shadow-hover);
    z-index: 2;
}

/* Asymmetric Masonry layout via CSS Grid item classes */
.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 61, 48, 0.4);
    opacity: 0;
    transition: var(--transition-quick);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-icon-zoom {
    color: var(--color-white);
    font-size: 2rem;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-icon-zoom {
    transform: translateY(0);
}

.gallery-load-more {
    text-align: center;
    margin-top: 3.5rem;
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 29, 51, 0.98); /* Solid dark navy background */
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-modal[aria-hidden="false"] {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 2px solid var(--color-accent);
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 1px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-quick);
    z-index: 2010;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--color-accent);
}

.lightbox-close {
    top: 30px;
    right: 40px;
    font-size: 3.5rem;
}

.lightbox-prev {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
}

/* --- Section: Seating Plan --- */
.section-seating {
    background-color: var(--color-white);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
    border-bottom: 1px solid rgba(197, 168, 128, 0.15);
}

.seating-intro {
    max-width: 700px;
    margin: -1.5rem auto 3.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.seating-plan-wrapper {
    background-color: var(--color-bg-cream);
    border-radius: var(--border-radius-md);
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(197,168,128,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.seating-plan-placeholder {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.seating-decor-top {
    position: absolute;
    top: -20px;
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(197, 168, 128, 0.05);
    pointer-events: none;
}

/* Beautiful Interactive Seating Chart Mockup */
.seating-map-mock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
    padding: 2rem 0;
}

.table-bridal {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: var(--color-primary);
    border: 4px solid var(--color-accent);
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 25px rgba(20, 61, 48, 0.25);
    flex-direction: column;
    gap: 5px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.table-bridal:hover {
    transform: scale(1.05);
    background-color: var(--color-secondary);
}

.table-bridal-label {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
}

.table-bridal-names {
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--color-accent-light);
}

.tables-guests-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

.table-guest-item {
    background-color: var(--color-white);
    border: 2px solid rgba(197,168,128,0.25);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-guest-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.table-guest-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.table-guest-desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.seating-alert-box {
    margin-top: 3rem;
    background-color: var(--color-accent-light);
    border-left: 4px solid var(--color-accent);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    max-width: 650px;
    text-align: center;
}

.seating-alert-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.seating-alert-text {
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

/* --- Section: Photos Upload & Countdown --- */
.photos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.photos-text-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.countdown-wrapper {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.countdown-box {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-sm);
    width: 85px;
    height: 95px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(20, 61, 48, 0.15);
}

.countdown-number {
    font-size: 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-top: 4px;
}

.photos-teaser-wrapper {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(197,168,128,0.1);
}

.photos-teaser-box {
    position: relative;
    height: 380px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
    padding: 3rem;
    overflow: hidden;
}

.photos-teaser-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    transition: var(--transition-smooth);
}

.photos-teaser-wrapper:hover .photos-teaser-img {
    transform: scale(1.05);
}

.photos-teaser-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.photos-teaser-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-white);
}

.photos-teaser-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 320px;
}

/* --- Section: Contacts --- */
.section-contacts {
    background-color: var(--color-white);
    border-top: 1px solid rgba(197, 168, 128, 0.15);
}

.contacts-intro {
    max-width: 700px;
    margin: -1.5rem auto 4.5rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card-item {
    background-color: var(--color-bg-cream);
    border-radius: var(--border-radius-md);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 5px 20px var(--color-shadow);
    border: 1px solid rgba(197,168,128,0.08);
    transition: var(--transition-smooth);
}

.contact-card-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(11,29,51,0.1);
}

.contact-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-avatar-placeholder-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-white);
    font-weight: 600;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-card-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.contact-card-role {
    font-size: 0.85rem;
    color: var(--color-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-phone {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 500;
    margin-top: 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-card-phone:hover {
    color: var(--color-accent-hover);
}

.contact-form-card {
    background-color: var(--color-bg-cream);
    border-radius: var(--border-radius-md);
    padding: 3rem;
    box-shadow: 0 10px 30px var(--color-shadow);
    border: 1px solid rgba(197,168,128,0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(11,29,51,0.15);
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text-dark);
    transition: var(--transition-quick);
}

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(20, 61, 48, 0.15);
}

.contact-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-feedback-msg {
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.contact-feedback-msg.success {
    display: block;
    background-color: #E6F4EA;
    color: #137333;
    border-left: 4px solid #137333;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--color-secondary);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.85rem;
    font-weight: 300;
    border-top: 3px solid var(--color-accent);
}

.main-footer p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes scrollMouse {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

@keyframes fadeEffect {
    from { opacity: 0.4; } 
    to { opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .story-container,
    .civil-cards-grid,
    .photos-container,
    .contacts-layout {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .container {
        padding: 3.5rem 0;
    }
    
    /* Responsive Header & Hamburger Menu */
    .main-header {
        background-color: var(--color-white);
        padding: 1rem 0;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    }
    
    .brand-logo {
        color: var(--color-primary);
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        background-color: var(--color-primary);
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    .nav-menu.open {
        max-height: 400px;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-link {
        color: var(--color-text-dark);
        display: block;
        padding: 1rem 5%;
        border-bottom: 1px solid rgba(0,0,0,0.02);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--color-primary);
        background-color: var(--color-bg-cream);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Responsive Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-date {
        font-size: 1.2rem;
    }
    
    /* Responsive Grids to 1 Column */
    .story-container,
    .civil-cards-grid,
    .photos-container,
    .contacts-layout {
        grid-template-columns: 1fr;
    }
    
    .story-image-wrapper.img-offset {
        margin-top: 0;
        width: 100%;
        align-self: flex-start;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 0.8rem;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }
    
    .tables-guests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .civil-card-img-container {
        height: 240px;
    }
    
    .contact-card-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

/* --- Timeline (Ablaufplan) Styles --- */
.timeline-section-wrapper {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px dashed rgba(197, 168, 128, 0.3);
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 3.5rem;
}

.timeline-vertical-line-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2.5rem; /* Left align timeline for perfect mobile compatibility */
}

.timeline-vertical-line-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 12px;
    width: 2px;
    background-color: var(--color-accent);
}

.timeline-row {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-badge-column {
    position: absolute;
    left: -2.5rem;
    top: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-badge-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 3px solid var(--color-accent);
    transition: var(--transition-quick);
}

.timeline-row:hover .timeline-badge-circle {
    background-color: var(--color-primary);
    transform: scale(1.2);
}

.timeline-content-column {
    width: 100%;
}

.timeline-item-card {
    background-color: var(--color-bg-cream);
    border: 1px solid rgba(197,168,128,0.12);
    border-radius: var(--border-radius-sm);
    padding: 1.2rem 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-item-card:hover {
    transform: translateX(5px);
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px var(--color-shadow);
}

.timeline-item-time {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.timeline-item-desc {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    font-weight: 300;
}

/* --- Gallery Infinite Scroll Banner (Marquee) --- */
.gallery-marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    background-color: var(--color-white);
    border-top: 1px solid rgba(197, 168, 128, 0.1);
    border-bottom: 1px solid rgba(197, 168, 128, 0.1);
}

.gallery-marquee-container::before,
.gallery-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.gallery-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.gallery-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white), transparent);
}

.gallery-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: scrollTrack 100s linear infinite;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-slide {
    height: 220px;
    flex-shrink: 0;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(197,168,128,0.12);
    transition: var(--transition-smooth);
}

.gallery-slide:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(11,29,51,0.12);
}

.gallery-slide img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
}

@keyframes scrollTrack {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        height: 150px;
    }
    
    .timeline-vertical-line-container {
        padding-left: 2rem;
    }
}

