/* Global Styles */
:root {
    --primary-color: #d4af37;
    /* Gold */
    --secondary-color: #fdf5e6;
    /* Ivory */
    --accent-color: #f8c3c8;
    /* Blush */
    --text-color: #e92031;
    --dark-bg: #2c2c2c;
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Lato', sans-serif;
    --section-padding: 50px 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

img {
    max-width: 100%;
    display: block;
}

/* Animations using .animate class */
.animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section: Floral Arch Theme */
.hero.floral-theme {
    min-height: 100vh;
    background: radial-gradient(circle at center, #fff 0%, #fff0f5 100%);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 183, 197, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 183, 197, 0.2) 0%, transparent 50%),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)),
        url('../assets/images/hero_bg.png');
    /* Using existing bg as a base if it fits, else gradient suffice */
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero-arch-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.hero-arch-frame {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 80px 40px;
    border: 2px solid #ffb7c5;
    border-radius: 500px 500px 300px 300px;
    /* Elegant pill/arch shape */
    box-shadow: 0 20px 40px rgba(255, 183, 197, 0.15);
    z-index: 5;
    text-align: center;
    position: relative;
}

/* Floral SVGs */
.floral-decoration {
    position: absolute;
    width: 180px;
    height: 180px;
    z-index: 10;
    pointer-events: none;
}

.floral-decoration.tl {
    top: -40px;
    left: -40px;
    transform: rotate(-15deg);
}

.floral-decoration.br {
    bottom: -40px;
    right: -40px;
    transform: rotate(15deg);
}

.hero-floral-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.arch-sub-top {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 2px;
    /* Reduced default */
    color: #b04d5d;
    /* Darker Rose */
    font-weight: 500;
}

.arch-sub-top.sanskrit-text {
    letter-spacing: normal;
    word-spacing: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.arch-sub-top.english-text {
    letter-spacing: 1.5px;
}

.floral-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.floral-names h1 {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3.5rem, 10vw, 5.5rem);
    color: #4a3a3a;
    /* Darker for better contrast */
    line-height: 1;
    margin: 0;
    font-weight: 400;
}

.floral-ampersand {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #b04d5d;
    /* Darker Rose */
    font-style: italic;
    margin: 10px 0;
}

.floral-date-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #de0a31;
    border-bottom: 1px solid #de0a31;
    padding: 15px 0;
    margin: 10px 0;
    width: 60%;
}

.floral-date-day {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #b04d5d;
    /* Darker Rose */
    line-height: 1;
    font-weight: 700;
}

.floral-date-month {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: #6a5a5a;
    /* Darker bronze-gray */
    font-weight: 600;
}

.floral-shloka {
    font-family: 'Noto Sans', sans-serif;
    font-style: italic;
    color: #5a4a4a;
    /* Darker for readability */
    font-size: 0.95rem;
    max-width: 250px;
    margin-top: 10px;
}

.floral-location-summary {
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #b04d5d;
    /* Darker Rose */
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 20px;
}

/* Mobile Adjustments for Floral Arch */
@media (max-width: 768px) {
    .hero-arch-frame {
        width: 90%;
        max-width: 400px;
        /* Increased slightly for tablets */
        padding: 50px 20px;
        border-radius: 300px 300px 200px 200px;
        /* Adjust radius for smaller size */
    }

    .floral-names h1 {
        font-size: 3.5rem;
        /* Fixed smaller size for tablet */
    }

    .floral-decoration {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 20px 10px;
    }

    .hero-arch-frame {
        width: 95%;
        max-width: 340px;
        padding: 40px 15px;
        border-radius: 200px 200px 150px 150px;
    }

    .floral-names h1 {
        font-size: 2.8rem;
    }

    .floral-ampersand {
        font-size: 2rem;
    }

    .floral-date-day {
        font-size: 2.5rem;
    }

    .floral-decoration {
        width: 120px;
        height: 120px;
    }

    .floral-decoration.tl {
        top: -30px;
        left: -30px;
    }

    .floral-decoration.br {
        bottom: -30px;
        right: -30px;
    }

    .arch-sub-top {
        font-size: 0.85rem;
    }

    .arch-sub-top.sanskrit-text {
        font-size: 0.85rem;
        word-spacing: 2px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.6;
    }

    .arch-sub-top.english-text {
        font-size: 0.8rem;
        letter-spacing: 0.5px;
        /* Reduce spacing for mobile */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.4;
    }

    /* Fix Couple Image Overflow */
    .img-wrapper {
        width: 250px;
        height: 250px;
        border-width: 4px;
    }

    .couple-card h3 {
        font-size: 2rem;
    }

    .couple-card p {
        font-size: 1.1rem;
    }

    /* Fix Time Box Overflow */
    .time-box {
        min-width: 60px;
        padding: 5px;
        flex: 1 1 60px;
        /* Allow shrinking */
    }

    .time-box span:first-child {
        font-size: 1.5rem;
    }

    .label {
        font-size: 0.7rem;
    }

    /* Fix Event Card Overflow */
    .event-card {
        flex: 1 1 100%;
        /* Stack fully */
        max-width: 100%;
        margin: 0 10px;
    }

    /* Fix Contact/Info Box Overflow */
    .info-box {
        min-width: 100%;
    }

    .contact-item .phone {
        font-size: 1.5rem;
    }
}



/* Keep previous animations but adapt */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes sealRotateEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments for v3 */
@media (max-width: 768px) {
    .date-seal {
        width: 140px;
        height: 140px;
    }

    .seal-date {
        font-size: 1.2rem;
    }

    .name-part {
        padding: 0 10px;
    }

    .corner-decoration {
        width: 40px;
        height: 40px;
    }
}

/* Merged Section */
#merged-section {
    padding: var(--section-padding);
    background-color: #D1DDB7;
    /* Shared Countdown Background */
    border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.merged-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    flex-wrap: wrap;
}

.info-box {
    flex: 1;
    min-width: 260px;
    text-align: center;
}

.info-box h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

/* Contact Specifics */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.contact-item .phone {
    font-size: 2rem;
    color: #e42908;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

/* Vertical Divider */
.vertical-divider {
    width: 2px;
    background-color: var(--primary-color);
    height: 150px;
    opacity: 0.5;
}

/* Countdown Specifics */
#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    padding: 15px;
    min-width: 80px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.time-box span {
    display: block;
}

.time-box span:first-child {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Couple Section */
#couple {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
    text-align: center;
    background-image: radial-gradient(#e6dab6 1px, transparent 1px);
    background-size: 20px 20px;
}

#couple h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
}

.couple-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

.couple-card {
    text-align: center;
    max-width: 800px;
}

.img-wrapper {
    width: 350px;
    height: 350px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px double var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    padding: 5px;
    background: #fff;
    transition: transform 0.5s ease;
}

.img-wrapper:hover {
    transform: scale(1.02);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.couple-card h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.couple-card .amp {
    color: var(--primary-color);
}

.couple-card p {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Event Details */
#events {
    padding: var(--section-padding);
    background-color: #FFD1DC;
    /* Gold Dust Pattern */
    background-image:
        radial-gradient(var(--primary-color) 1px, transparent 1px),
        radial-gradient(var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    text-align: center;
}

#events h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

#event-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    /* Reduced gap from 40px */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.date-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-date-title {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 15px;
    /* Reduced padding */
    border-radius: 20px;
}

/* Timeline Container (was grid) */
/* Timeline Container (Centered List now) */
.event-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    position: relative;
    width: 100%;
    padding: 0;
    gap: 30px;
}

/* Remove Vertical Line */
.event-grid::before {
    display: none;
}

.event-card {
    background: rgba(255, 240, 245, 0.6);
    border-radius: 15px;
    flex: 1 1 320px;
    max-width: 450px;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle border */
    text-align: center;
    /* ensure text is centered */
    padding: 15px 25px;
    position: relative;
    box-shadow: none;
    /* Remove heavy shadows */
}

.event-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

/* Remove Zigzag logic */
.event-card:nth-child(odd),
.event-card:nth-child(even) {
    align-self: center;
    text-align: center;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Remove Dots */
.event-card::after,
.event-card:nth-child(odd)::after,
.event-card:nth-child(even)::after {
    display: none;
}

.event-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.event-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    /* Gold text for title */
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 5px;
    display: inline-block;
}

.event-detail {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
    font-family: 'Playfair Display', serif;
}

.event-label {
    font-weight: bold;
    color: var(--primary-color);
    margin-right: 5px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.event-value {
    color: #333;
    font-weight: 500;
}

.location-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    border: 1px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.location-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.event-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Gallery Section */
#gallery-section {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--secondary-color);
}

#gallery-section h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Modal */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.4s;
    /* Faster but smoother */
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    /* Ease-out-like curve */
}

@keyframes zoom {
    from {
        transform: scale(0.9);
        /* Start slightly smaller, not 0 */
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

#modal-close:hover,
#modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Family Message */
#family-message {
    padding: var(--section-padding);
    background-color: var(--primary-color);
    /* Gold bg */
    color: #fff;
    text-align: center;
}

#family-message h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

#family-message p {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Footer */
footer {
    padding: 40px 20px;
    background-color: #222;
    color: #fff;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

.small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Music Button */
#music-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}


#music-btn:hover {
    transform: scale(1.1);
}



/* ==========================================================================
   Responsive Rules
   ========================================================================== */

/* Tablet & Large Mobile (up to 1024px) */
@media (max-width: 1024px) {

    #gallery-section h2,
    #events h2,
    #couple-section h2 {
        font-size: 3rem;
    }
}

/* Mobile Devices (up to 768px) */
@media (max-width: 768px) {
    .img-wrapper {
        width: 250px;
        height: 250px;
    }

    .names-wrapper {
        margin: 20px auto;
    }

    .name-glow {
        font-size: 3.5rem;
    }

    .gallery img {
        height: 200px;
    }

    .merged-container {
        flex-direction: column;
        gap: 30px;
    }

    .vertical-divider {
        display: none;
    }

    #countdown .time-box {
        min-width: 60px;
        padding: 5px;
    }

    #countdown .time-box span:first-child {
        font-size: 1.5rem;
    }

    .date-seal-wrapper {
        margin-top: 30px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .date-seal {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .event-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .event-card {
        width: 95%;
        max-width: 100%;
        padding: 20px;
        flex: none;
    }

    .event-icon {
        font-size: 2.5rem;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .img-wrapper {
        width: 200px;
        height: 200px;
    }

    #gallery-section h2,
    #events h2,
    #couple-section h2 {
        font-size: 2.5rem;
    }
}
