/* ==========================================
   Wedding Website Styles
   Color Palette: Gold (#D4A843) & Maroon (#8B0000)
   Fonts: Playfair Display (headings) + Lato (body)
   ========================================== */

/* ===== CSS Custom Properties ===== */
:root {
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --gold-dark: #B8922E;
    --maroon: #8B0000;
    --maroon-light: #A52A2A;
    --maroon-dark: #6B0000;
    --cream: #FFF8F0;
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--maroon);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--maroon);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--maroon);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

/* Floral Pattern Overlays */
.floral-pattern {
    position: absolute;
    width: 400px;
    height: 400px;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0c5 25 25 45 50 50-25 5-45 25-50 50-5-25-25-45-50-50 25-5 45-25 50-50z' fill='%23D4A843'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 100px;
}

.floral-top-left {
    top: -100px;
    left: -100px;
}

.floral-bottom-right {
    bottom: -100px;
    right: -100px;
    transform: rotate(180deg);
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
    max-width: 800px;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 30px;
}

.bride-name, .groom-name {
    display: block;
    font-weight: 700;
}

.ampersand {
    display: block;
    font-size: 2.5rem;
    color: var(--gold);
    margin: 10px 0;
    font-weight: 400;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.3rem;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.date-icon {
    font-size: 1.5rem;
}

.hero-intro {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.5s both;
}

/* ===== Buttons ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: var(--gold);
    color: var(--maroon-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* ===== Section Styles ===== */
.section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--maroon);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* ===== Family Section ===== */
.family-section {
    background: var(--white);
}

.family-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.family-card {
    background: var(--cream);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(212, 168, 67, 0.2);
}

.family-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.card-header {
    margin-bottom: 25px;
}

.family-role {
    font-size: 1.8rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.card-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.parent-names {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--maroon-light);
    margin-bottom: 10px;
}

.parents-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.parent-name {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 400;
}

/* ===== Schedule Section ===== */
.schedule-section {
    background: linear-gradient(135deg, var(--cream) 0%, #FFF0E0 100%);
}

.schedule-timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.schedule-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--gold);
}

.schedule-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.muhurtam-card {
    border-left-color: var(--maroon);
    background: linear-gradient(135deg, var(--white) 0%, #FFF8F0 100%);
}

.schedule-time {
    text-align: center;
    min-width: 100px;
}

.time-icon {
    font-size: 2rem;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.muhurtam-card .time-icon {
    color: var(--maroon);
}

.time-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--maroon);
    font-weight: 600;
}

.schedule-details {
    flex: 1;
}

.event-title {
    font-size: 1.8rem;
    color: var(--maroon);
    margin-bottom: 8px;
}

.event-desc {
    color: var(--text-light);
    font-size: 1rem;
}

.schedule-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--gold);
    color: var(--maroon-dark);
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(45deg);
}

.muhurtam-badge {
    background: var(--maroon);
    color: var(--gold-light);
}

/* ===== Location Section ===== */
.location-section {
    background: var(--white);
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.venue-details {
    background: var(--cream);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.venue-name {
    font-size: 1.5rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.venue-address {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.map-btn {
    align-self: flex-start;
}

.qr-container {
    text-align: center;
    padding: 30px;
    background: var(--cream);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.qr-title {
    font-size: 1.2rem;
    color: var(--maroon);
    margin-bottom: 20px;
}

.qr-code {
    display: inline-block;
    padding: 15px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.qr-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===== Gallery Section ===== */
.gallery-section {
    background: linear-gradient(135deg, var(--cream) 0%, #FFF0E0 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: var(--transition);
    aspect-ratio: 4/3;
}

.gallery-item:nth-child(3n+1) {
    aspect-ratio: 3/4;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: rotate(90deg);
}

/* ===== Footer ===== */
.footer {
    background: var(--maroon);
    color: var(--white);
    padding: 40px 20px;
    text-align: center;
}

.footer-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.footer-date {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-credit {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ===== Responsive Design ===== */

/* Tablet */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .schedule-card {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .location-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(3n+1) {
        aspect-ratio: 4/3;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 80px 15px 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .ampersand {
        font-size: 1.8rem;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .section {
        padding: 60px 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .schedule-badge {
        font-size: 0.7rem;
        padding: 4px 35px;
        right: -35px;
    }

    .family-card {
        padding: 30px 20px;
    }

    .venue-details {
        padding: 20px;
    }
}
