/* --- General Setup & Variables --- */
:root {
    --color-primary-heading: #FFFFFF;
    --color-turquoise: #4ECDC4;
    --color-sand: #F7F1E3;
    --color-dark-text: #333;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-padding-top: 140px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark-text);
    line-height: 1.6;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}
#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}
.flower-loader {
  width: 70px;
  height: 70px;
  position: relative;
  animation: spin 2s infinite linear;
}
.petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 35px;
  height: 70px;
  background: #FF6B6B;
  border-radius: 70px 0;
  transform-origin: 0 0;
}
.petal:nth-child(1) { transform: rotate(0deg); }
.petal:nth-child(2) { transform: rotate(60deg); }
.petal:nth-child(3) { transform: rotate(120deg); }
.petal:nth-child(4) { transform: rotate(180deg); }
.petal:nth-child(5) { transform: rotate(240deg); }
.petal:nth-child(6) { transform: rotate(300deg); }

@keyframes spin {
  100% { transform: rotate(360deg); }
}

#site-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.75s ease-in;
}
#site-content.loaded {
    opacity: 1;
    visibility: visible;
}


.container {
    max-width: 1000px;
    margin: auto;
    padding: 6rem 2rem;
    text-align: center;
}

.script-font {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: normal;
    color: var(--color-primary-heading);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Specific coloring for sections with light backgrounds */
#story .script-font,
#schedule .script-font,
#travel .script-font,
#rsvp .script-font,
#activities .script-font {
    color: #FF6B6B; /* Reverting to coral for non-hero sections */
    font-style: normal;
}


.subtitle {
    font-size: 1.2rem;
    color: #777;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--color-turquoise);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #3aa89f;
}

/* --- Header & Navigation --- */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    max-width: 1200px;
    margin: auto;
    padding-bottom: 0.12rem;
    position: relative; 
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 2rem;
    color: #FF6B6B;
}

.nav-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-dark-text);
    font-weight: bold;
    transition: color 0.3s ease;
    white-space: nowrap; 
}

.nav-links a:hover {
    color: #FF6B6B;
}

.mobile-lang-menu {
    display: none;
}

.nav-right {
    display: flex;
    align-items: center;
}

#lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 0.9rem;
    color: #888;
    padding: 0;
    transition: color 0.3s ease;
}

.lang-btn.active {
    color: #FF6B6B;
    text-decoration: underline;
}

#lang-switcher span {
    color: #ccc;
}


.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-text);
    margin: 5px;
    transition: all 0.3s ease;
}

.header-decoration {
    width: 100%;
    height: 55px;
    background: url('header-art.png') no-repeat center center/contain;
    margin: 0 auto 1rem;
    max-width: 400px;
}

.hero-ganesha-mobile {
    display: none;
}


/* --- Hero Section --- */
.hero {
    height: 90vh; 
    position: relative;
    overflow: hidden; 
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 600%;
    height: 100%;
    display: flex;
    animation: hero-slideshow 25s infinite; 
    animation-timing-function: ease-in-out;
}

.slide {
    width: 16.666%;
    height: 100%;
    background-position: center center;
    background-size: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2; 
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 0;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: normal;
}

#countdown {
    font-size: 2rem;
    margin-top: 2rem;
    font-weight: bold;
}

/* --- Story Section --- */
#story {
    padding-top: 4rem; 
    padding-bottom: 4rem; 
}

.story-content {
    display: flex;
    align-items: center;
    gap: 2.5rem; 
    text-align: left;
}

.story-image {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Schedule Section --- */
#schedule {
    background-color: var(--color-sand);
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--color-turquoise);
    margin-bottom: 1rem;
}

.event-date {
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 1rem;
}

/* --- Travel Section --- */
.travel-content {
    text-align: left;
    max-width: 800px;
    margin: auto;
}

.travel-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-turquoise);
}

.travel-content h3:first-child {
    margin-top: 0;
}

.travel-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark-text);
}


.travel-content ul {
    list-style: none;
    padding-left: 0;
}

.travel-content ul li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24" fill="none" stroke="%234ECDC4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"></path><circle cx="12" cy="10" r="3"></circle></svg>') no-repeat left center;
    padding-left: 35px;
    margin-bottom: 1rem;
}

/* Hotel List Styles */
.hotel-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.hotel-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24" fill="none" stroke="%23FF6B6B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>') no-repeat left 5px;
    padding-left: 35px;
    margin-bottom: 1rem;
}

.booking-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Rate Table Styles */
.rate-table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}
.rate-table caption {
    caption-side: top;
    text-align: center;
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
    padding-bottom: 1rem;
}
.rate-table th, .rate-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}
.rate-table thead th {
    background-color: var(--color-sand);
    font-weight: bold;
}
.rate-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Currency Converter Styles */
.currency-converter {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}
.currency-converter button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.3s;
}
.currency-converter button:hover {
    background-color: #e0e0e0;
}
.disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-top: 1rem;
}

.location-heading {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-text);
}

.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Activities & Checklist Section --- */
#activities {
    background-color: var(--color-sand);
}

.activities-list ul {
    list-style: none;
    padding-left: 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}
.activities-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24" fill="none" stroke="%23FF6B6B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z"></path></svg>') no-repeat left 5px;
    padding-left: 35px;
    margin-bottom: 1rem;
}

.weather-note {
    font-size: 1.1rem;
    margin: 3rem auto;
    max-width: 700px;
    color: var(--color-dark-text);
}

.checklist-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}
.checklist-category h4 {
    color: var(--color-turquoise);
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9e2d5;
    padding-bottom: 0.5rem;
}
.checklist-category ul {
    list-style: none;
    padding-left: 0;
}
.checklist-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 25px;
}
.checklist-category li::before {
    content: '✓';
    color: var(--color-turquoise);
    position: absolute;
    left: 0;
}

/* --- RSVP Form --- */
#rsvp-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#rsvp-form input, #rsvp-form select, #rsvp-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.hidden {
    display: none !important;
}

#rsvp-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* --- Form Group Styles --- */
.form-group, .form-group-dates {
    text-align: left;
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 5px;
    background-color: #fcfcfc;
}
.form-group > label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}
.phone-group {
    display: flex;
}
.phone-group .country-code {
    flex: 0 0 80px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}
.phone-group input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.form-group #email {
    margin-bottom: 0.5rem;
}

.form-group-dates {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}
.date-fields-container {
    display: flex;
    gap: 1rem;
}

.date-fields-container .date-field, .form-group-dates .date-field {
    flex: 1;
}
.date-fields-container label, .form-group-dates label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

#rsvp-form textarea {
    min-height: 120px;
    resize: vertical;
}

.adblock-notice {
    font-size: 0.8rem;
    font-style: italic;
    color: #777;
    margin-top: 0.5rem;
    text-align: left;
}

#rsvp-form button {
    border: none;
    cursor: pointer;
}

.contact-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}
.contact-title {
    font-family: var(--font-heading);
    color: #FF6B6B;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.contact-subtitle {
    margin-bottom: 2.5rem;
}
.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.contact-person h4 {
    font-size: 1.2rem;
    color: var(--color-turquoise);
    margin-bottom: 0.5rem;
}
.contact-person a {
    text-decoration: none;
    color: var(--color-dark-text);
    transition: color 0.3s ease;
}
.contact-person a:hover {
    color: var(--color-turquoise);
}


/* --- Footer --- */
footer {
    background: var(--color-dark-text);
    color: #fff;
    text-align: center;
    padding: 2rem;
}

/* --- Slideshow Animation --- */
@keyframes hero-slideshow {
    0% { transform: translateX(0%); }      
    16% { transform: translateX(0%); }     
    20% { transform: translateX(-16.666%); }  
    36% { transform: translateX(-16.666%); }  
    40% { transform: translateX(-33.332%); }  
    56% { transform: translateX(-33.332%); }  
    60% { transform: translateX(-49.998%); }  
    76% { transform: translateX(-49.998%); }  
    80% { transform: translateX(-66.664%); }  
    96% { transform: translateX(-66.664%); }  
    100% { transform: translateX(-83.33%); } 
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px; 
    }

    nav {
        align-items: center;
    }

    .nav-links {
        position: fixed;
        left: auto;
        top: 0;
        right: -100%;
        transform: none;
        width: 60%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-brand {
    transform: translateY(-1px);
    }

    .nav-links.nav-active { right: 0; }
    
    .nav-links li { 
        margin: 1.5rem 0; 
        margin-left: 0;
    }
    
    .hamburger { display: block; z-index: 1001; }
    
    .hamburger.toggle .line:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line:nth-child(2) { opacity: 0; }
    .hamburger.toggle .line:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    .nav-right {
        gap: 15px; 
    }
    
    .mobile-lang-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
        width: 100%;
    }

    .mobile-lang-label {
        font-weight: bold;
        font-size: 1.1rem;
        color: var(--color-dark-text);
    }

    .mobile-lang-buttons {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .hero-content h1 { font-size: 4rem; }
    .hero-content h2 { font-size: 1.2rem; }
    .script-font { font-size: 3rem; }
    .story-content { flex-direction: column; }
    
    .header-decoration {
        display: none;
    }

    .hero-ganesha-mobile {
        display: block;
        width: 60px; 
        height: auto;
        margin: 0 auto 20px; 
    }

    .rate-table { font-size: 0.8rem; }
    .rate-table th, .rate-table td { padding: 8px; }
    .currency-converter { flex-wrap: wrap; }
    .date-fields-container, .form-group-dates { flex-direction: column; }
}