/* Color Variables and Base Reset */
:root {
    --primary-color: #8c1c3f;
    /* Deep Maroon / Bridal Color */
    --secondary-color: #d4af37;
    /* Rich Gold */
    --accent-color: #faede6;
    /* Soft Peach / Off-white */
    --text-dark: #2a2a2a;
    --text-light: #ffffff;
    --bg-color: #fcf9f5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-tamil: 'Kavivanar', cursive;
}

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

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

/* Typography Defaults */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

/* -----------------------------------
   HERO SECTION
------------------------------------ */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(140, 28, 63, 0.7) 100%);
    z-index: 2;
}

.hero-caricature {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.05);
    /* slightly zoomed for parallax bleed space */
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-light);
    margin-top: 10vh;
}

.elegant-title {
    font-size: clamp(3rem, 8vw, 6rem);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.ampersand {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.8em;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: -15vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    animation: bounce 2s infinite ease-in-out;
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.arrow-down {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* -----------------------------------
   QUOTE SECTION
------------------------------------ */
.quote-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    position: relative;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(252, 249, 245, 0.8), rgba(252, 249, 245, 1));
}

.quote-section .container {
    position: relative;
    z-index: 10;
}

.tamil-quote {
    font-family: var(--font-tamil);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.english-translation {
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* -----------------------------------
   EVENTS SECTION
------------------------------------ */
.events-section {
    padding: 6rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Decorative background curves/blobs */
.events-section::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.events-section::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(140, 28, 63, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--primary-color);
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

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

.cards-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.glassmorphism {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

.event-card {
    flex: 1 1 350px;
    max-width: 450px;
    padding: 3rem 2rem;
    transition: transform 2s ease, box-shadow 0.4s ease;
    border-top: 4px solid var(--primary-color);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(140, 28, 63, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.event-time {
    display: inline-block;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: 15px;
    width: 100%;
}

.event-time .date {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.event-time .time {
    color: #666;
    font-size: 1.1rem;
}

.card-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(140, 28, 63, 0.2);
}

.live-btn {
    background-color: #fffafb;
}

.live-btn:hover {
    background-color: #e62e5c;
    /* A slight red-pinkish pop for the live stream */
    border-color: #e62e5c;
}

.calendar-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #ccc;
    color: #999;
    background-color: #f7f7f7;
    filter: grayscale(100%);
}

/* -----------------------------------
   VENUE SECTION
------------------------------------ */
.venue-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
}

.venue-details {
    max-width: 600px;
    margin: 3rem auto 0;
    padding: 4rem 2rem;
    border-top: 4px solid var(--secondary-color);
}

.venue-details h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.venue-details p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(140, 28, 63, 0.2);
}

.btn-primary:hover {
    background-color: #6b142f;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(140, 28, 63, 0.3);
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* -----------------------------------
   FOOTER
------------------------------------ */
.site-footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    text-align: center;
    padding: 3rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
}

/* -----------------------------------
   ANIMATIONS (Intersection Observer classes)
------------------------------------ */
.animate {
    opacity: 0;
    visibility: hidden;
    will-change: transform, opacity;
}

.on-scroll.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Specific Transitions */
.fade-up {
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.slide-up {
    transform: translateY(80px);
    transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-up.is-visible {
    transform: translateY(0);
}

.fade-right {
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-right.is-visible {
    transform: translateX(0);
}

.fade-left {
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left.is-visible {
    transform: translateX(0);
}

.zoom-in {
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-in.is-visible {
    transform: scale(1);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .events-section .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .event-card {
        width: 100%;
        top: 0;
    }

    .fade-left,
    .fade-right {
        transform: translateY(30px);
    }

    .fade-left.is-visible,
    .fade-right.is-visible {
        transform: translateY(0);
    }

    .delay-1,
    .delay-2 {
        transition-delay: 0s;
    }
}