/* Media Demo Styles */
:root {
    --bg-main: #faf9f6;
    --bg-light: #f0eee9;
    --text-dark: #2c3e50;
    --accent: #8b6d8c;
    --accent-light: #a88ca9;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: var(--font-heading);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: white;
    padding: 1rem 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .logo {
    font-size: 2rem;
    font-weight: 600;
    color: white;
}

.navbar.scrolled .logo, .navbar.scrolled .nav-links a {
    color: var(--text-dark);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero-media {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&q=80&w=1200') center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
}

.hero-content h2 { font-size: 2rem; font-style: italic; }
.hero-content h1 { font-size: 5rem; margin: 1rem 0; }
.hero-content .date { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; }

.page-header {
    height: 40vh;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--accent);
}

/* Sections */
.section { padding: 5rem 10%; }
.bg-light { background-color: var(--bg-light); }
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.time-box {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    min-width: 120px;
}

.time-box span {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--accent);
}

/* Form */
.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
}

.rsvp-form textarea { height: 100px; resize: vertical; }

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.primary-btn:hover { background: var(--accent-light); }
.primary-btn.outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}
.primary-btn.outline:hover {
    background: var(--accent);
    color: white;
}

.success-msg {
    margin-top: 1rem;
    color: #27ae60;
    font-weight: bold;
}

/* Dress Code & Gallery */
.dress-code { text-align: center; max-width: 600px; margin: 0 auto; }
.dress-card { background: white; padding: 2rem; border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

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

/* Gifts */
.gifts-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.gift-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.gift-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.gift-card p { margin-bottom: 1.5rem; }

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

footer {
    background: #1a1a1a;
    color: white;
    text-align: center;
    padding: 3rem 1rem;
}

.made-by a { color: var(--accent-light); text-decoration: none; }

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; background: rgba(0,0,0,0.8); }
    .navbar.scrolled { padding: 1rem; }
    .nav-links { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .time-box { min-width: 80px; padding: 1rem; }
    .time-box span { font-size: 1.8rem; }
    .section { padding: 3rem 5%; }
}
