:root {
    /* Color Palette - Dravidian & Hindu Traditional Theme */
    /* DMK Flag Colors: Red (Top), Black (Bottom) */
    --dmk-red: #D71216;
    /* Rising Sun Red */
    --dmk-black: #000000;

    /* Hindu Traditional Colors */
    --hindu-saffron: #FF9933;
    --hindu-yellow: #FFC107;
    /* Turmeric */

    /* Mappings to existing variables for compatibility */
    --kanjeevaram-maroon: var(--dmk-red);
    /* Headers become Red */
    --temple-green: var(--dmk-black);
    /* Highlights become Black */
    --zari-gold: var(--hindu-yellow);
    /* Borders become Yellow */
    --antique-gold: var(--hindu-saffron);

    --pattu-white: #FFFDE7;
    /* Light Yellow tint background */
    --text-dark: #000000;
    --text-light: #333333;

    /* Fonts */
    --font-heading: 'Cinzel', serif;
    --font-script: 'Great Vibes', cursive;
    --font-body: 'Poppins', sans-serif;
}

/* Reset & Basics */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--pattu-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(var(--antique-gold) 1px, transparent 1px);
    background-size: 30px 30px;
    /* Subtle Kolam dot effect */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--kanjeevaram-maroon);
    text-align: center;
}

.name {
    font-family: var(--font-script);
    font-size: clamp(0.9rem, 4vw, 2rem);
    color: var(--kanjeevaram-maroon);
    margin: 10px 0;
    white-space: nowrap;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 80px;
    /* Space for footer/borders */
    position: relative;
    z-index: 2;
    background-color: rgba(253, 251, 247, 0.95);
    /* Slight opacity to make text readable over pattern */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-left: 2px solid var(--zari-gold);
    border-right: 2px solid var(--zari-gold);
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
        /* More space for content */
    }
}

/* Audio Button */
.audio-control {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

#music-toggle {
    background: var(--kanjeevaram-maroon);
    border: 2px solid var(--zari-gold);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#music-toggle:hover {
    transform: scale(1.1);
}

#music-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    /* Make icon white */
}

/* Invocation */
.invocation {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.ganesha-symbol {
    font-size: 3rem;
    color: var(--temple-green);
    margin-bottom: 10px;
}

.shloka {
    font-style: italic;
    color: var(--kanjeevaram-maroon);
    font-weight: 600;
}

.blessing {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Parents Section */
.parents {
    text-align: center;
    margin-bottom: 40px;
    border-top: 1px solid var(--antique-gold);
    border-bottom: 1px solid var(--antique-gold);
    padding: 20px 0;
}

.invite-line {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--kanjeevaram-maroon);
}

.solicit {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--temple-green);
}

/* Couple Section */
.couple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
}

.photo-frame {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--zari-gold);
    padding: 4px;
    background: var(--kanjeevaram-maroon);
    margin: 0 auto;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.separator {
    margin: 20px 0;
}

.ampersand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--zari-gold);
    display: block;
}

.weds {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.details {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Events */
.events {
    margin-bottom: 50px;
}

.section-title {
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--zari-gold);
    margin: 5px auto 0;
}

.event-card {
    background: white;
    border: 1px solid var(--antique-gold);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--kanjeevaram-maroon);
}

.event-icon {
    font-size: 2rem;
    color: var(--zari-gold);
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.event-details h3 {
    text-align: left;
    margin-bottom: 5px;
    color: var(--kanjeevaram-maroon);
}

.event-details p {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.event-details .date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--kanjeevaram-maroon);
}

.event-details .time {
    font-weight: 600;
}

.event-details .venue {
    font-weight: 500;
    font-style: italic;
}

.map-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    background: var(--temple-green);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: background 0.3s;
}

.map-btn:hover {
    background: var(--kanjeevaram-maroon);
}

/* Countdown */
.countdown h2 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.time-box {
    background: var(--kanjeevaram-maroon);
    color: var(--zari-gold);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
}

.time-box span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    font-family: var(--font-heading);
}

/* Footer / RSVP */
.rsvp {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--text-dark);
    color: var(--antique-gold);
    border-radius: 10px;
}

.social-hashtag {
    margin-top: 15px;
    font-family: var(--font-heading);
    color: var(--pattu-white);
}


.visitor-counter {
    margin-top: 20px;
    display: inline-block;
    background-color: var(--kanjeevaram-maroon);
    color: var(--zari-gold);
    padding: 10px 25px;
    border: 2px solid var(--zari-gold);
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitor-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.visitor-counter span {
    color: white;
}


/* Decorations */
.pattern-border {
    position: fixed;
    left: 0;
    right: 0;
    height: 20px;
    background: repeating-linear-gradient(90deg,
            var(--dmk-red),
            var(--dmk-red) 50px,
            var(--dmk-black) 50px,
            var(--dmk-black) 100px);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.pattern-border.top {
    top: 0;
}

.pattern-border.bottom {
    bottom: 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

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

/* Petals */
.petal {
    position: fixed;
    top: -10%;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: fall, sway;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
}

@keyframes fall {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

@keyframes sway {

    0%,
    100% {
        transform: translateX(0px) rotate(0deg);
    }

    50% {
        transform: translateX(50px) rotate(45deg);
    }
}

/* Responsive */
@media (min-width: 768px) {
    .couple {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }



    .separator {
        margin: 0;
    }
}


@media (max-width: 768px) {
    .couple {
        flex-direction: column;
    }
    
    .name {
        font-size: 2.2rem !important; /* Larger size for mobile */
        white-space: normal; /* Allow wrapping if needed */
        text-align: center;
        margin: 15px 0;
    }
    
    .groom .name,
    .bride .name {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
        line-height: 1.3;
    }
    
    .separator {
        margin: 25px 0;
    }
    
    .ampersand {
        font-size: 2.8rem;
    }
    
    .weds {
        font-size: 1.1rem;
        letter-spacing: 5px;
    }
    
    .photo-frame {
        width: 180px; /* Slightly larger on mobile */
        height: 180px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.9rem !important;
    }
    
    .groom .name,
    .bride .name {
        font-size: clamp(1.6rem, 8vw, 2.2rem) !important;
    }
    
    .photo-frame {
        width: 160px;
        height: 160px;
    }
}