/* ---------------------------------------------------------
   TAMTA & GOGA WEDDING INVITATION — STYLES.CSS
   --------------------------------------------------------- */

:root {
    --primary: #2C3E50;
    --accent: #C5A059;
    --accent-dark: #A4833E;
    --bg-light: #FBF9F5;
    --card-bg: #FFFFFF;
    --text-main: #4A4A4A;
    --text-heading: #1A252F;
    --border-color: #E2DDD5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-heading);
    font-weight: 500;
}

/* --- BULLETPROOF MOBILE NAVIGATION (320px & UP) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px; /* Minimal padding for 320px width */
    background: rgba(251, 249, 245, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(226, 221, 213, 0.5);
    box-sizing: border-box;
}

.nav-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    letter-spacing: 0.5px;
    color: var(--primary);
    font-weight: 600;
    flex-shrink: 0;
    text-decoration: none; /* Removes any default link underline */
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent); /* Optional: changes color slightly on hover */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 6px; /* Ultra-tight gap so everything fits on 320px */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.5rem; /* Extremely compact font for Mobile S */
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Mobile M and up (360px+) */
@media (min-width: 360px) {
    .navbar {
        padding: 10px 12px;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-links a {
        font-size: 0.58rem;
        letter-spacing: 0.5px;
    }
    .nav-brand {
        font-size: 1.1rem;
    }
}

/* Mobile L and up (412px+) */
@media (min-width: 412px) {
    .navbar {
        padding: 12px 18px;
    }
    .nav-links {
        gap: 14px;
    }
    .nav-links a {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
    .nav-brand {
        font-size: 1.2rem;
    }
}

/* Tablets and Desktops (600px+) */
@media (min-width: 600px) {
    .navbar {
        padding: 15px 30px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
    }
    .nav-brand {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
}

/* --- HERO SECTION (Couple Photo) --- */
.hero {
    position: relative;
    height: 100vh;
    /* REPLACE 'couple-photo.jpg' with your picture filename */
    background: url('couple-photo.jpg') left/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 0 15px;
}

/* --- MOBILE S & M BACKGROUND POSITION ADJUSTMENT --- */
@media (max-width: 375px) {
    .hero {
        background-image: url('couple-photo.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 50% 50%;
    }
    
    /* Pushes countdown cubes down for small phones */
    .countdown {
        margin-top: 100px; /* Adjust this value as needed */
    }
}

@media (min-width: 376px) and (max-width: 425px) {
    .hero {
        background-image: url('couple-photo.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 45% 50%;
    }
    
    /* Pushes countdown cubes down for medium phones */
    .countdown {
        margin-top: 120px; /* Adjust this value as needed */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
}

.sub-title {
    display: block;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #E8D5B5;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(1.8rem, 7vw, 5rem); /* Scales down smoothly for tiny screens */
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 400;
    white-space: nowrap; /* Keeps names side-by-side */
}

.hero-date {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 300;
}

/* --- COUNTDOWN: ALL 4 SIDE-BY-SIDE WITH COMPACT MOBILE PADDING --- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 6px; /* Tight gap so all 4 boxes stay in one row */
    margin-bottom: 30px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 4px; /* Compact padding for small screens */
    border-radius: 6px;
    flex: 1; /* Shares space evenly */
    min-width: 0; /* Allows boxes to shrink safely */
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.countdown-item span {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 4vw, 1.6rem); /* Scales down gracefully on mobile S/M */
    font-weight: 600;
    color: #ffffff;
}

.countdown-item label {
    font-size: clamp(0.5rem, 1.5vw, 0.65Error); /* Compact text size */
    font-size: clamp(0.5rem, 1.5vw, 0.65rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #dddddd;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* --- SECTIONS --- */
.section {
    padding: 70px 15px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent-dark);
    margin-bottom: 30px;
}

/* Save the Date Section */
.std-section {
    background-color: #ffffff;
}

.std-image-wrapper {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
    border: 1px solid var(--border-color);
}

.std-img {
    width: 100%;
    height: auto;
    display: block;
}

.story-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    max-width: 650px;
    margin: 0 auto;
}

/* --- WIDEN CONTAINER SPECIFICALLY FOR 3 CARDS --- */
.details-section .container {
    max-width: 1100px; /* Widened from 800px so 3 cards fit side-by-side */
}

/* --- DETAILS GRID FIX --- */
.details-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default: stacked on mobile */
    gap: 30px;
    margin-top: 40px;
}

/* Tablet: 2 columns */
@media(min-width: 700px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: All 3 cards side-by-side evenly */
@media(min-width: 1000px) {
    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.detail-card {
    background: var(--card-bg);
    padding: 40px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.04);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease;
    text-align: center;
}

.detail-card:hover {
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.detail-card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.event-time {
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.event-location {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.5;
}

.map-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* --- RSVP FORM --- */
.rsvp-section {
    background-color: #F4F0EA;
}

/* --- RSVP FORM & CENTERED BUTTON --- */
.rsvp-form {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.04);
    border: 1px solid var(--border-color);
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

@media(min-width: 600px) {
    .rsvp-form {
        padding: 45px;
    }
}

/* Forces the Send RSVP button to center alignment inside the form */
.rsvp-form .btn-primary {
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 25px auto 0 auto;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    background: var(--bg-light);
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.success-message {
    background: var(--card-bg);
    padding: 40px 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--accent-dark);
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
    padding: 30px 15px;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

/* --- ANIMATION CLASSES --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 600px) {
    .navbar { padding: 12px 15px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.7rem; }
}

/* --- LANGUAGE SWITCHER ACTIVE STATE --- */
.lang-switcher {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.35; /* Dimmed state for inactive language */
    filter: grayscale(40%); /* Slightly desaturate inactive flag */
    transition: all 0.3s ease;
    padding: 2px 0;
    position: relative;
}

/* Active language styling: fully bright and colorful */
.lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Optional: Adds a subtle elegant underline to the active language */
.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent);
}

.lang-btn:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.flag-icon {
    width: 22px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    display: block;
}

.lang-divider {
    color: var(--border-color);
    font-size: 0.75rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .lang-switcher {
        gap: 6px;
    }
    .flag-icon {
        width: 18px;
    }
}

/* --- FIXED HAMBURGER MENU STYLES --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 4px; /* Creates a larger clickable tap target on mobile */
    z-index: 2000; /* Higher than language switcher and navbar */
    position: relative;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary); /* FIXED: Changed to dark primary color so it's visible on light navbar */
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none; /* FIXED: Ensures clicks pass through to the button */
}

/* Mobile Screen Breakpoint */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    /* Hide links by default on mobile */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    /* Show links when active class is added by JS */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 5px 0;
        color: #ffffff;
    }
}

/* Scroll Down Arrows Container */
.scroll-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px; /* Reduced gap to bring arrows closer together */
    margin-top: 35px;
}

/* Individual Arrow Styling (Bigger & Wider) */
.scroll-arrows span {
    display: block;
    width: 18px;  /* Increased size (was 10px) */
    height: 18px; /* Increased size (was 10px) */
    border-bottom: 3px solid #d4af37; /* Thicker golden border (was 2px) */
    border-right: 3px solid #d4af37;  /* Thicker golden border (was 2px) */
    transform: rotate(45deg);
    animation: ultraSmoothFloat 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, opacity; /* Optimizes performance for smooth rendering */
}

/* Stagger the timing for a soft, wave-like cascade */
.scroll-arrows span:nth-child(1) {
    animation-delay: 0s;
}
.scroll-arrows span:nth-child(2) {
    animation-delay: 0.2s;
}
.scroll-arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Ultra-Smooth, GPU-Accelerated Motion */
@keyframes ultraSmoothFloat {
    0%, 100% {
        opacity: 0.35;
        transform: rotate(45deg) translate3d(0, 0, 0);
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translate3d(6px, 6px, 0); /* Gentle downward glide */
    }
}

/* Venue Image Wrapper inside Cards (Larger) */
.detail-card .card-img-wrapper {
    width: 100px;  /* Increased size (was 80px) */
    height: 100px; /* Increased size (was 80px) */
    margin: 0 auto 20px auto; 
    border-radius: 50%; /* Keeps them perfectly circular */
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #d4af37; /* Golden frame */
}

.detail-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps the photos neatly cropped inside the circle */
}