/* Variables */
:root {
    --bg-color: #f7f7f7;
    --text-color: #222222;
    --dark-accent: #111111;
    --gold: #b38b22; /* darker gold for light theme */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-heading, h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-accent);
    text-align: center;
}

/* Language Switcher */
.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.lang-btn.active, .lang-btn:hover {
    color: var(--dark-accent);
}

/* Typography */
.title {
    font-size: 4.5rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    text-align: center;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}

/* Layout */
main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

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

.overlay-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.overlay-content p {
    margin-bottom: 2rem;
    color: #555;
}

/* Buttons */
.btn {
    background: transparent;
    color: var(--dark-accent);
    border: 1px solid var(--dark-accent);
    padding: 12px 35px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.btn:hover, .btn-dark {
    background: var(--dark-accent);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
    border-color: #333;
}

/* Countdown */
.countdown-section {
    margin: 4rem 0;
    text-align: center;
}

.countdown-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    min-width: 80px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.time-box span:first-child {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-accent);
    font-family: var(--font-heading);
}

.time-box .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-top: 5px;
}

/* Gallery */
.gallery-section {
    margin: 4rem 0;
    overflow-x: hidden; /* prevent horizontal scroll on animations */
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.photo-card {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #fff;
    background: #fff;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.photo-card:hover img {
    filter: grayscale(0%);
}

/* Details Section */
.details-section {
    text-align: center;
    margin: 4rem 0;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.details-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.details-section p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #444;
}

.venue-link {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
}

.venue-link:hover {
    border-bottom: 1px solid var(--gold);
}

/* RSVP Form */
.rsvp-section {
    margin: 4rem 0;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.rsvp-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 600;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: #fafafa;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    font-family: var(--font-body);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--dark-accent);
    background: #fff;
}

button[type="submit"] {
    width: 100%;
    margin-top: 15px;
}

#form-response {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #ddd;
    color: #888;
    margin-top: 2rem;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Animations */
.fade-in-bottom {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-top {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 480px) {
    .countdown {
        gap: 8px;
    }
    .time-box {
        min-width: 65px;
        padding: 10px 5px;
    }
    .time-box span:first-child {
        font-size: 1.4rem;
    }
    .time-box .label {
        font-size: 0.6rem;
        letter-spacing: 0px;
    }
}

@media (min-width: 768px) {
    .gallery {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .photo-card {
        width: 45%;
    }
}
