:root {
    --gold: #C5A028;
    --gold-dim: #C5A028;
    --gold-gradient: linear-gradient(135deg, #4c5b45, #6d7a3f, #916c45);
    --red: #8B0000;
    --red-bright: #C21E56;
    --cream: #FFFDD0;
    --off-white: #FAF9F6;
    --text-dark: #2C2C2C;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);

    --font-heading: 'Cinzel', serif;
    --font-script: 'Cinzel', serif;
    /* Changed from Cursive to Bold Serif as requested */
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--gold);
    /* Fallback */
    /* Mandala Pattern Overlay */
    background-image: url('https://www.transparenttextures.com/patterns/black-scales.png'), linear-gradient(to right, #FFFDD0, #FAF9F6);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--red);
}

.amp {
    font-family: var(--font-script);
    text-transform: uppercase;
    color: var(--gold);
    font-size: 2.5em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    border: var(--glass-border);
    box-shadow: var(--shadow);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 200, 200, 0.3);
}

/* Parallax & Carousel */
.hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Darken slightly for readability */
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.05);
    /* Slight zoom effect start */
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.parallax-bg {
    /* Removed old parallax to favor carousel */
    display: none;
}

/* Utilities */
.section-padding {
    padding: 5rem 1rem;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-royal {
    display: inline-block;
    padding: 12px 30px;
    background: var(--gold-gradient);
    color: white;
    /* Fallback */
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-royal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s;
}

#navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

#navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s;
}

#navbar a:hover {
    color: var(--red-bright);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-script);
    font-size: 5rem;
    color: var(--gold);
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
    text-transform: uppercase !important;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Ganesh & Shloka */
.ganesh-intro {
    margin-bottom: 2rem;
}

.ganesh-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.shloka {
    font-family: var(--font-heading);
    color: var(--red);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
}

.guest-welcome {
    font-size: 1.5rem;
    color: var(--red-bright);
    margin: 10px 0 20px;
    font-family: var(--font-script);
    font-weight: bold;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--gold);
    min-width: 80px;
}

.time-unit span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--red);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.event-card {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 20px;
}

.event-card::after {
    content: '❀';
    position: absolute;
    right: -11px;
    color: var(--red);
    /* Removed background and border-radius to remove yellow oval shape */
    top: 15px;
    z-index: 1;
    font-size: 1.2rem;
    line-height: 20px;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -11px;
    right: auto;
}

.event-card .content {
    padding: 20px 30px;
    position: relative;
}

.event-card h3 {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: inline-block;
}

.date-badge {
    background: var(--red);
    color: white;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 5px 0;
}

/* Game: Guess the Ring */
.game-container {
    text-align: center;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

#game-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    height: 150px;
    position: relative;
    perspective: 1000px;
}

.cup-container {
    position: relative;
    width: 100px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.cup {
    width: 100px;
    height: 120px;
    background: linear-gradient(135deg, #d4af37, #b8860b);
    border-radius: 10px 10px 40px 40px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
    border: 2px solid #fff;
}

.cup-design {
    font-size: 2rem;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.cup.lifted {
    transform: translateY(-60px);
}

.item {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    z-index: 1;
    transition: opacity 0.3s;
}

.item.hidden {
    opacity: 0;
}

.game-controls {
    margin-top: 20px;
}

#game-status {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--red);
    min-height: 27px;
}

/* Family Section */
.venue-details {
    padding: 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.family-details-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.regards-text {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--text-dark);
}

.family-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--red-bright);
}

.family-tree {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
}

.family-side {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--gold);
}

.family-side h4 {
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.family-side ul {
    list-style: none;
    margin-bottom: 15px;
}

.family-side li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.address-box {
    font-size: 0.85rem;
    color: #555;
    background: rgba(255, 253, 208, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.address-box p {
    margin-bottom: 5px;
}

/* Guestbook */
.guest-list {
    max-height: 200px;
    overflow-y: auto;
    margin: 20px 0;
    border: 1px solid #ddd;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
}

.guest-entry {
    padding: 5px;
    border-bottom: 1px solid #eee;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    /* JS will toggle */
    align-items: center;
    justify-content: center;
}

.modal-content {
    padding: 40px;
    text-align: center;
    max-width: 400px;
    background: white;
}

#guest-name-input {
    padding: 10px;
    width: 80%;
    margin: 20px 0;
    border: 1px solid var(--gold);
    border-radius: 5px;
    font-family: var(--font-body);
}

/* Music Toggle - Styled to match screenshot */
#music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #8B0000;
    /* Dark Red */
    color: white;
    border: 3px solid var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

#music-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }

    .event-card {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }

    .event-card::after {
        left: 11px;
    }

    .left,
    .right {
        left: 0%;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    #navbar {
        display: none;
    }

    /* Mobile toggle required */
}

/* Falling animations */
.petal {
    position: fixed;
    top: -20px;
    z-index: 999;
    border-radius: 50% 0 50% 50%;
    animation: fall linear forwards;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
    }

    100% {
        transform: translateY(110vh) rotate(720deg) translateX(50px);
    }
}