/* 
 * Wedding Website Styles 
 * Primary Color: Gold (#D4AF37)
 * Text Color: #333
 * Fonts: Playfair Display (Headings), Lato (Body)
 */

:root {
    --primary-color: #D4AF37;
    --secondary-color: #333333;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --text-color: #444444;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.alt-bg {
    background-color: var(--bg-light);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
}

.btn:hover {
    background-color: #bfa13f;
    transform: translateY(-2px);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title p {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../assets/images/kittens.jpeg') no-repeat center center/cover;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px; /* Offset for fixed nav */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero h1 {
    font-size: 4rem;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    padding: 10px 0;
    display: inline-flex;
}

.date-display span {
    padding: 0 10px;
}

.date-display .month {
    font-weight: 700;
    color: var(--primary-color);
}

.hero .location {
    font-size: 1.2rem;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.time-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 10px;
    min-width: 80px;
    border: 1px solid rgba(255,255,255,0.3);
}

.time-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-body);
}

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

/* Couple Section */
.couple-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.couple-card {
    text-align: center;
    flex: 1;
    min-width: 300px;
}

.couple-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background-image: linear-gradient(45deg, #ccc, #eee);
}

.couple-info h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.couple-info p {
    margin-bottom: 10px;
    color: #666;
}

.couple-info .parent-info {
    font-style: italic;
    font-size: 0.95rem;
}

.couple-info .address {
    font-size: 0.9rem;
    color: #888;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--secondary-color);
    margin: 0 5px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.heart-divider {
    font-size: 3rem;
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

/* Story Section - Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 3px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline .content {
    background-color: var(--white);
    padding: 20px 30px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline .date {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 10px 0;
}

/* Events Section */
.events-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.event-card {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    border-top: 5px solid var(--primary-color);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
}

.event-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.event-card p {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.05rem;
}

.event-card i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 20px;
}

.event-card .verse {
    font-style: italic;
    color: #888;
    font-size: 0.95rem;
}

.map-link {
    margin-top: 25px;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.2rem;
    transition: var(--transition);
    background-image: linear-gradient(135deg, #eee 25%, #f5f5f5 25%, #f5f5f5 50%, #eee 50%, #eee 75%, #f5f5f5 75%, #f5f5f5 100%);
    background-size: 28.28px 28.28px;
}

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

/* RSVP Section */
.rsvp-box {
    background: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

#rsvp-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
}

textarea {
    height: 120px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: #aaa;
    text-align: center;
    padding: 40px 0;
}

footer p {
    margin-bottom: 10px;
}

.credits {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

.family-names {
    font-size: 0.9rem;
    margin-top: 15px;
    color: #777;
}

/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1); }
    45% { transform: scale(1.15); }
    60% { transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.animate-scale-in {
    animation: scaleIn 1.5s ease 0.5s forwards;
    opacity: 0;
}

/* Mobile Responsiveness (The Critical Part) */
@media screen and (max-width: 768px) {
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 60px; /* Navbar height */
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%; /* Full width for better touch targets */
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
        padding-top: 40px;
        gap: 30px;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
        color: var(--secondary-color);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h3 {
        font-size: 2rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left, .timeline-item.right {
        left: 0;
        text-align: left;
    }

    .timeline-item::after {
        left: 21px; /* Align dot with line */
    }
    
    .timeline-item.right::after {
        left: 21px; 
    }

    .couple-grid {
        flex-direction: column;
    }

    .heart-divider {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .time-box {
        min-width: 60px;
        padding: 10px;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .rsvp-box {
        padding: 30px 20px;
    }
    
    .date-display {
        font-size: 1.2rem;
    }
}
