@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent: #D4AF37; /* Sharper Metallic Gold */
    --accent-variant: #F3E5AB;
    --accent-dark: #AA8C2C;
    --dark: #0F172A; /* Modern Slate Dark */
    --text: #334155;
    --muted: #64748B;
    --bg-light: #F8FAFC;
    --overlay: rgba(0,0,0,0.35);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* ============ HOMEPAGE STYLES ============ */

.homepage-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-section {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    color: white;
    animation: fadeIn 1s ease-in;
}

/* Modern section icon */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-variant));
    color: var(--dark);
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}
.section-icon i { line-height: 1; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.couple-names {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.wedding-date {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.wedding-location {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 300;
}

.wedding-sublocation {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Parents Section */
.parents-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    color: var(--text);
}

.parents-section h3 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.parents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.parent-family {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-top: 4px solid var(--accent);
    transition: all 0.3s ease;
}

.parent-family:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.parent-family h4 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.parent-names {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.parent-location {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}

.bride-family {
    background: linear-gradient(135deg, rgba(201,155,44,0.10) 0%, rgba(201,155,44,0.04) 100%);
}

.groom-family {
    background: linear-gradient(135deg, rgba(201,155,44,0.04) 0%, rgba(201,155,44,0.10) 100%);
}

.welcome-message {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.welcome-message h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 15px;
}

.welcome-message p {
    font-size: 1.1rem;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background: var(--bg-light);
    color: var(--dark);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--accent);
    color: white;
}

.homepage-footer {
    background: var(--dark);
    color: var(--bg-light);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ============ RECEPTION PAGE STYLES ============ */

.reception-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reception-hero {
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 60px 20px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* background image fallback element used to ensure visibility across devices */
.hero-section .bg-image,
.reception-hero .bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 10s ease;
}

/* Subtle zoom effect for backgrounds */
.hero-section:hover .bg-image,
.reception-hero:hover .bg-image {
    transform: scale(1.05);
}

.reception-header {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.reception-header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.reception-date {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.reception-venue {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

.back-button {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateX(-5px);
}

/* ============ TAB NAVIGATION ============ */

.tab-navigation {
    display: flex;
    justify-content: center;
    background: var(--dark);
    overflow-x: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 10px;
}

.tab-button {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: white;
    background: rgba(255,255,255,0.05);
}

.tab-button.active {
    background: transparent;
    border-bottom-color: var(--accent);
    color: white;
}

/* ============ TAB CONTENT ============ */

.tab-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-pane h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============ PROGRAMME OF EVENTS ============ */

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.event-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.event-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

.event-time {
    display: inline-block;
    background: var(--accent);
    color: var(--dark);
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.event-item h3 {
    font-family: var(--font-heading);
    color: var(--dark);
    margin: 10px 0;
    font-size: 1.3rem;
}

.event-item p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ============ MENUS ============ */

.menu-section {
    margin-bottom: 40px;
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.menu-section h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
}

.menu-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.menu-list li {
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-list li:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.menu-category-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Food Menu Grid with Images */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.food-item {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.food-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.food-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background-color: white;
    transition: transform 0.5s ease;
}

.food-item:hover img {
    transform: scale(1.05);
}

.food-info {
    padding: 15px;
    text-align: center;
}

.food-info h4 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--dark);
    font-weight: 600;
    margin: 0;
}

/* ============ ABOUT COUPLE ============ */

.couple-profile-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.couple-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding-bottom: 25px;
    transition: transform 0.3s ease;
}

.couple-card:hover {
    transform: translateY(-8px);
}

.couple-img-wrapper {
    height: 400px;
    overflow: hidden;
    margin-bottom: 20px;
    background-color: #f9f9f9;
}

.couple-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.couple-card:hover .couple-img-wrapper img {
    transform: scale(1.05);
}

.couple-info {
    padding: 0 25px;
}

.couple-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.couple-role {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.couple-info p {
    color: var(--muted);
    font-size: 0.95rem;
}

.our-story {
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
}

.our-story h3 {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 20px;
}

.our-story p {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text);
}

/* ============ PHOTO GALLERY ============ */

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-top: 30px;
    align-items: start;
}


.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    cursor: pointer;
}

.gallery-item figcaption {
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Responsive image heights */
@media (max-width: 1024px) {
    .gallery-item img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }
    .gallery-item img {
        height: auto;
    }
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .gallery-item img {
        height: auto;
    }
}

/* ============ FOOTER ============ */

.reception-footer {
    background: var(--dark);
    color: var(--bg-light);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    margin-top: 40px;
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 768px) {
    .couple-names {
        font-size: 2.5rem;
    }

    .wedding-date {
        font-size: 1.3rem;
    }

    .welcome-message h2 {
        font-size: 1.3rem;
    }

    .reception-header h1 {
        font-size: 2rem;
    }

    .tab-navigation {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1 1 50%;
    }

    .tab-pane h2 {
        font-size: 1.8rem;
    }

    .menu-list {
        grid-template-columns: 1fr;
    }

    .events-list {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 1.8rem;
    }

    .wedding-date {
        font-size: 1rem;
    }

    .welcome-message {
        padding: 20px;
    }

    .welcome-message h2 {
        font-size: 1.1rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }

    .reception-header h1 {
        font-size: 1.5rem;
    }

    .tab-pane h2 {
        font-size: 1.4rem;
    }

    .tab-button {
        font-size: 0.85rem;
        padding: 12px 10px;
    }
}

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays if needed */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ============ LIGHTBOX ============ */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    font-family: var(--font-body);
    margin-top: 10px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0.1)}
    to {transform:scale(1)}
}

@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 95%;
    }
}

/* Lightbox Navigation Buttons */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2002;
    background-color: rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--accent);
    color: white;
}

.lightbox-download {
    position: absolute;
    top: 25px;
    right: 90px;
    color: #f1f1f1;
    font-size: 30px;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    text-decoration: none;
}

.lightbox-download:hover {
    color: var(--accent);
}

.lightbox-share {
    position: absolute;
    top: 25px;
    right: 145px;
    color: #f1f1f1;
    font-size: 30px;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
    text-decoration: none;
}

.lightbox-share:hover {
    color: var(--accent);
}
