:root {
    --primary-gold: #c5a059;
    --deep-purple: #3a1c52;
    --text-light: #fdfdfd;
    --purple-light: #5a3d7a;
    --purple-dark: #2a1342;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Playfair Display', serif;
    color: var(--text-light);
    background-color: var(--deep-purple);
    overflow-x: hidden;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(58, 28, 82, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary-gold);
    font-weight: bold;
}

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

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

#lantern-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Allows you to click links behind lanterns */
    overflow: hidden;
    z-index: 9999;
    /* Container sits on top, but pointer-events: none lets clicks pass */
}

.lantern {
    position: absolute;
    will-change: transform;
    /* This removes the black background if your images are JPGs */
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 10px rgba(255, 165, 0, 0.5));
}

/* --- Hero Section --- */
#home {
    position: relative;
    padding-top: 60px; /* Account for fixed nav */
}

.hero-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 5;
}

.hero-bg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 100vh;
    object-fit: cover;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* Title Overlay */
.hero-title {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    width: 100%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-title h1 {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    opacity: 0;
    animation: fadeInDown 2s ease-out forwards;
}

.hero-date, .hero-location {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInDown 2s ease-out 0.5s forwards;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInDown 2s ease-out 1s forwards;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(197, 160, 89, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--primary-gold);
}

.countdown-item span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-gold);
    font-family: 'Cinzel', serif;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* --- Main Content Section --- */
.content-section {
    background-color: var(--deep-purple);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px);
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    z-index: 25;
    /* Content sits on top of everything */
    margin-top: -80px;
}

.ganesha-icon {
    width: 80px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.blessing-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #e0d0f0;
}

.hosts-names {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
}

.invite-word {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    letter-spacing: 5px;
    margin: 2rem 0;
    color: white;
}

.couple-names-main {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: white;
    margin: 2rem 0;
    line-height: 1.3;
}

.couple-names-main span {
    display: block;
    font-size: 2rem;
    font-family: 'Great Vibes', cursive;
    color: var(--primary-gold);
    margin: 10px 0;
}

/* --- Events Grid --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.event-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.frame-container {
    position: relative;
    width: 200px;
    height: 260px;
    border: 8px double var(--primary-gold);
    border-radius: 50%;
    overflow: hidden;
    background: #2a113d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.frame-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 2;
}

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

.event-card:hover .frame-img {
    transform: scale(1.1);
}

.event-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.event-details {
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.4;
}

.btn-rsvp {
    margin-top: 1rem;
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
}

/* --- Floating Buy Button --- */
.buy-now-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: sans-serif;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* --- Animations --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        flex-wrap: wrap;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .hero-title h1 {
        font-size: 3rem;
    }

    .countdown {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .countdown-item {
        padding: 0.8rem 1rem;
    }

    .countdown-item span:first-child {
        font-size: 1.8rem;
    }

    .couple-names-main {
        font-size: 2.5rem;
    }

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

    .story-timeline {
        padding: 0;
    }

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

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-date {
        margin-bottom: 1rem;
    }
}

/* Section Containers */
section {
    scroll-margin-top: 60px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    text-align: center;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

/* Our Story Section */
.story-section {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--purple-dark) 100%);
    position: relative;
}

.story-timeline {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.story-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

.story-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.story-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 0.5rem;
}

.story-date {
    text-align: center;
    font-style: italic;
    color: #ccc;
    margin-bottom: 1rem;
}

.story-text {
    line-height: 1.8;
    color: #e0d0f0;
    text-align: center;
}

/* Wedding Details Section */
.details-section {
    background: var(--deep-purple);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.detail-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.detail-card p {
    color: #e0d0f0;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.venue-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary-gold);
    color: var(--deep-purple);
    border: none;
    border-radius: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.venue-btn:hover {
    background: white;
    transform: scale(1.05);
}

/* RSVP Section */
.rsvp-section {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--deep-purple) 100%);
}

.rsvp-subtitle {
    text-align: center;
    color: var(--primary-gold);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}

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

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0d0f0;
    cursor: pointer;
}

.radio-label input, .checkbox-label input {
    width: auto;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-gold);
    color: var(--deep-purple);
    border: none;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: white;
    transform: scale(1.02);
}

.success-message {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
}

.success-message h3 {
    color: #4CAF50;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Gallery Section */
.gallery-section {
    background: var(--deep-purple);
}

.gallery-subtitle {
    text-align: center;
    color: #ccc;
    font-style: italic;
    margin-bottom: 3rem;
}

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

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

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(58, 28, 82, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay p {
    color: white;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

/* Registry Section */
.registry-section {
    background: linear-gradient(135deg, var(--deep-purple) 0%, var(--purple-light) 100%);
}

.registry-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.registry-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0d0f0;
    margin-bottom: 3rem;
}

.registry-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.registry-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary-gold);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 180px;
}

.registry-btn:hover {
    transform: translateY(-10px);
    background: rgba(197, 160, 89, 0.2);
}

.registry-icon {
    font-size: 3rem;
}

.registry-note {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--primary-gold);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: left;
}

.registry-note p {
    color: #e0d0f0;
    line-height: 1.6;
}

/* Schedule Section */
.schedule-section {
    background: var(--deep-purple);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 20px);
}

.schedule-subtitle {
    text-align: center;
    color: #ccc;
    font-style: italic;
    margin-bottom: 3rem;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gold);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-date {
    flex-shrink: 0;
}

.date-box {
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.day {
    font-size: 2rem;
    font-weight: bold;
    color: var(--deep-purple);
    font-family: 'Cinzel', serif;
}

.month {
    font-size: 0.9rem;
    color: var(--deep-purple);
    font-weight: 600;
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.timeline-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.time, .location {
    color: #e0d0f0;
    margin-bottom: 0.5rem;
}

.description {
    color: #ccc;
    line-height: 1.6;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--deep-purple) 100%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(197, 160, 89, 0.1);
}

.faq-question h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin: 0;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: #e0d0f0;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--purple-dark);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 2px solid var(--primary-gold);
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    color: #ccc;
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-hearts {
    font-size: 2rem;
}