/* ---------------------------------
   Variables & General Styles
--------------------------------- */
:root {
    --primary-color: #B89973; /* Elegant Gold */
    --secondary-color: #F5E6E8; /* Soft Blush Pink */
    --bg-color: #FAF9F6; /* Ivory / Off-white */
    --text-color: #4A4A4A; /* Soft Charcoal */
    --heading-color: #2C2C2C;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 400;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

/* ---------------------------------
   Buttons & Links
--------------------------------- */
a {
    text-decoration: none;
    color: inherit;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
    display: inline-block;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 30px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(184, 153, 115, 0.4);
}

.btn-primary:hover {
    background-color: #9c805c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(184, 153, 115, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 30px;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* ---------------------------------
   Typography
--------------------------------- */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

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

.section-title.light {
    color: #fff;
}

.section-subtitle {
    font-style: italic;
    color: #777;
    margin-bottom: 50px;
    margin-top: 20px;
}

/* ---------------------------------
   Audio Toggle Button
--------------------------------- */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(250, 249, 246, 0.9);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.music-toggle:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: scale(1.1);
}

.music-toggle.playing {
    background-color: var(--primary-color);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(184, 153, 115, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(184, 153, 115, 0); }
    100% { box-shadow: 0 0 0 0 rgba(184, 153, 115, 0); }
}

/* ---------------------------------
   1. Hero Section
--------------------------------- */
.hero {
    height: 100vh;
    width: 100%;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Soft overlay to make text readable */
    z-index: 1;
}

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

.couple-names {
    font-family: var(--font-script);
    font-size: 6rem;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    line-height: 1;
}

.couple-names span {
    font-size: 4rem;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.invitation-line {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 300;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.wedding-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    font-size: 1.3rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.divider {
    width: 2px;
    height: 30px;
    background-color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* ---------------------------------
   2. Our Story Section
--------------------------------- */
.story-text {
    max-width: 700px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    color: #666;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-icon {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

.timeline-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ---------------------------------
   3. Event Details Section
--------------------------------- */
.events {
    background-color: #fff;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.event-card {
    background: var(--bg-color);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 5px;
    background-color: var(--primary-color);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

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

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.event-time {
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.event-location-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.event-address {
    color: #777;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

/* ---------------------------------
   4. Countdown Section
--------------------------------- */
.countdown-section {
    background-image: url('assets/couple_photo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: #fff;
}

.countdown-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(44, 44, 44, 0.7);
}

.countdown-container {
    position: relative;
    z-index: 2;
    padding: 100px 20px;
}

.timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.time-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 30px;
    border-radius: 8px;
    min-width: 120px;
}

.time-block span {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.time-block p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ---------------------------------
   5. Photo Gallery Section
--------------------------------- */
.gallery {
    background-color: var(--bg-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 1;
    cursor: pointer;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(184, 153, 115, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.4s ease;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary-color);
}

/* ---------------------------------
   6. RSVP Section
--------------------------------- */
.rsvp {
    background-color: #fff;
    padding-bottom: 120px;
}

.rsvp-form {
    max-width: 600px;
    margin: 40px auto 0;
    text-align: left;
    background: var(--bg-color);
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: #fff;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.rsvp-form .btn-primary {
    width: 100%;
}

.form-success {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    display: none;
}

.form-success i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-success.active {
    display: block;
    animation: fadeUp 0.5s ease forwards;
}

.hidden {
    display: none;
}

/* ---------------------------------
   7. Contact Section
--------------------------------- */
.contact {
    background-color: var(--secondary-color);
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #1ebe56;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ---------------------------------
   8. Footer
--------------------------------- */
footer {
    background-color: var(--heading-color);
    color: #fff;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-names {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

footer p {
    color: #aaa;
    margin-bottom: 5px;
}

.copyright {
    margin-top: 30px;
    font-size: 0.85rem;
    color: #666;
}

.agency-credit {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.agency-credit p {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 5px;
}

.agency-credit span {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-weight: 600;
}

.agency-msg {
    font-family: var(--font-body);
    font-size: 0.9rem !important;
}

.agency-credit a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition-smooth);
}

.agency-credit a:hover {
    color: #fff;
}

/* ---------------------------------
   Animations (Scroll Reveal)
--------------------------------- */
.reveal {
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
}

.fade-up {
    transform: translateY(50px);
}

.fade-up.active {
    transform: translateY(0);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-left.active {
    transform: translateX(0);
}

.slide-right {
    transform: translateX(50px);
}

.slide-right.active {
    transform: translateX(0);
}

/* ---------------------------------
   Responsive Design
--------------------------------- */
@media (max-width: 900px) {
    .timeline::before {
        left: 30px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-icon {
        left: 5px !important;
    }
    .wedding-details {
        flex-direction: column;
        gap: 15px;
    }
    .divider {
        display: none;
    }
    .couple-names {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {
    .couple-names { font-size: 3rem; }
    .couple-names span { font-size: 2rem; }
    .section-title { font-size: 2.2rem; }
    .timer { gap: 15px; }
    .time-block { min-width: 80px; padding: 15px; }
    .time-block span { font-size: 2rem; }
    .contact-details { flex-direction: column; gap: 20px; align-items: center; }
    .rsvp-form { padding: 30px 20px; }
}
