:root {
    --primary-gold: #D4AF37;

    /* Light Mode Variables */
    --bg-body: #faf9f6;
    --bg-section: #FBF7EE;
    --bg-card: #ffffff;
    --bg-input: #f8f9fa;
    --text-main: #2c2c2c;
    --text-muted: #6c757d;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-scrolled: rgba(255, 255, 255, 1);
    --border-color: rgba(0,0,0,0.05);
    --shadow-color: rgba(0,0,0,0.05);
}

body.dark-mode {
    /* Dark Mode Variables */
    --bg-body: #121212;
    --bg-section: #1a1a1a; /* Slightly lighter than body */
    --bg-card: #242424;
    --bg-input: #2a2a2a;
    --text-main: #f0f0f0;
    --text-muted: #b0b0b0;
    --navbar-bg: rgba(18, 18, 18, 0.95);
    --navbar-scrolled: rgba(18, 18, 18, 1);
    --border-color: rgba(255,255,255,0.1);
    --shadow-color: rgba(0,0,0,0.5);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

/* --- Navbar & Mobile Drawer (Offcanvas) --- */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px var(--shadow-color);
    padding: 15px 0;
}

.navbar.scrolled {
    background: var(--navbar-scrolled);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
    border-radius: 4px; /* Optional: Softens the black box edges */
}

/* In light mode, the black logo might look stark. We can add a subtle border or keep it as is. */
/* In dark mode, it blends in. */

.nav-link {
    color: var(--text-main);
    font-weight: 400;
    font-size: 1.1rem;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-gold);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--primary-gold);
    color: #fff;
}

/* Mobile Drawer Customization */
.offcanvas {
    background-color: var(--bg-section);
    color: var(--text-main);
}
.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}
.btn-close {
    filter: invert(var(--invert-value)); /* Trick to handle close button color */
}
body.dark-mode { --invert-value: 1; }
body:not(.dark-mode) { --invert-value: 0; }

.mobile-nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}
.mobile-nav-link:hover {
    color: var(--primary-gold);
    padding-left: 10px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Ensure it handles mobile viewports correctly */
    min-height: 100dvh;
    padding-top: 0;
    overflow: hidden;
}

/* Ensure carousel items behave like the original flex container */
.carousel-item {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    display: flex !important; /* Bootstrap hides items, we need flex when active */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Center exactly */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw; /* Force full viewport width */
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    filter: brightness(0.9);
    animation: zoomBg 30s infinite alternate;
}

/* Mobile Responsive Hero Fixes */
@media (max-width: 768px) {
    .hero, .carousel-item {
        height: 100dvh;
        min-height: 100dvh;
    }
    .hero-bg-image {
        /* Ensure image covers fully on mobile without being cut off */
        background-attachment: scroll; /* Parallax sometimes breaks on mobile */
        width: 100%;
        left: 0;
    }
    .hero-content {
        width: 90%;
        padding: 20px;
        margin: 0 auto;
    }
}

@keyframes zoomBg {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient adapted for variable, but overlay usually needs specific transparency */
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(251, 247, 238, 0.4) 100%);
    z-index: -1;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(20, 20, 20, 0.6) 100%);
}

/* Floating Decoration Animation */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(255,255,255,0) 70%);
    animation: float 10s infinite ease-in-out;
    z-index: -1;
}
body.dark-mode .floating-shape {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(0,0,0,0) 70%);
}

.shape-1 { width: 400px; height: 400px; top: -100px; left: -100px; }
.shape-2 { width: 300px; height: 300px; bottom: 10%; right: -50px; animation-delay: 2s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    50% { transform: translate(20px, 40px); }
    100% { transform: translate(0, 0); }
}

.hero-content {
    text-align: center;
    padding: 40px;
    max-width: 900px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

body.dark-mode .hero-content {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2c2c2c;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
body.dark-mode .hero-title {
    color: #f0f0f0;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #444;
    margin-bottom: 40px;
    font-weight: 300;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}
body.dark-mode .hero-subtitle {
    color: #ccc;
}

.btn-gold {
    background-color: var(--primary-gold);
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid var(--primary-gold);
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--primary-gold);
}

/* --- Sections General --- */
.section-padding {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 60px;
}
.section-title span {
    color: var(--primary-gold);
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}
.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

/* --- Hospitality & Decor Features --- */
.feature-box {
    background: var(--bg-card);
    padding: 50px 30px;
    border-radius: 4px; /* Sharper corners for luxury feel */
    box-shadow: 0 5px 15px var(--shadow-color);
    height: 100%;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-gold);
    transition: width 0.4s ease;
    z-index: -1;
    opacity: 0.05;
}

.feature-box:hover {
    transform: translateY(-15px);
    border-color: var(--primary-gold);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-box:hover::before {
    width: 100%;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-gold);
    margin-bottom: 25px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-box h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form Elements Adaptation */
.form-control, .form-select {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}
.form-control::placeholder {
    color: var(--text-muted);
}
.form-control:focus {
    background-color: var(--bg-input);
    color: var(--text-main);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    border-color: var(--primary-gold) !important;
}

/* --- Immersive Decor Section --- */
.decor-showcase {
    background-color: var(--bg-section);
}
.decor-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 20px 40px var(--shadow-color);
}
.decor-img-wrapper img {
    width: 100%;
    transition: transform 0.8s;
}
.decor-img-wrapper:hover img {
    transform: scale(1.05);
}

/* --- Gallery Grid --- */
.gallery-item {
    position: relative;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 44, 44, 0.6); /* Slightly darker for better text contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.03);
}

/* Preferred Partners Transition */
.grayscale-hover-transition {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.grayscale-hover-transition:hover {
    opacity: 1;
}

/* FAQ Customization */
#faq .accordion-collapse {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

#faq .accordion-body {
    color: var(--text-main);
}

/* --- Contact Section --- */
.bg-light {
    background-color: var(--bg-section) !important;
}
.bg-white {
    background-color: var(--bg-card) !important;
}

/* --- Footer --- */
footer {
    background-color: #121212; /* Keep footer dark always or adapt? Usually dark footers are fine. */
    color: white;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}
body.dark-mode footer {
    background-color: #0a0a0a;
}

footer h4 {
    color: var(--primary-gold);
    margin-bottom: 25px;
}
footer ul li {
    margin-bottom: 10px;
}
footer ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}
footer ul li a:hover {
    color: white;
}
.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 10px;
    color: white;
    transition: background 0.3s;
}
.social-icons a:hover {
    background: var(--primary-gold);
}

/* Mobile Drawer Social Icons Fix */
.offcanvas-body .social-icons a {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}
.offcanvas-body .social-icons a:hover {
    background: var(--primary-gold);
    color: white;
}

/* Helper Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-padding { padding: 60px 0; }
}

/* --- Background Patterns --- */
.bg-pattern-floral {
    position: relative;
    z-index: 1;
    overflow: hidden; /* Prevent pseudo-element overflow */
}

.bg-pattern-floral::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4; /* Subtle effect */

    /* Floral/Geometric CSS Pattern */
    background-color: var(--bg-body);
    background-image:
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(212, 175, 55, 0.1) 21%, rgba(212, 175, 55, 0.1) 34%, transparent 35%, transparent),
        radial-gradient(circle at 0% 50%, transparent 20%, rgba(212, 175, 55, 0.1) 21%, rgba(212, 175, 55, 0.1) 34%, transparent 35%, transparent);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
}

/* Dark mode adjustment for pattern visibility */
body.dark-mode .bg-pattern-floral::before {
    opacity: 0.2; /* Even more subtle in dark mode */
    background-image:
        radial-gradient(circle at 100% 50%, transparent 20%, rgba(212, 175, 55, 0.2) 21%, rgba(212, 175, 55, 0.2) 34%, transparent 35%, transparent),
        radial-gradient(circle at 0% 50%, transparent 20%, rgba(212, 175, 55, 0.2) 21%, rgba(212, 175, 55, 0.2) 34%, transparent 35%, transparent);
}

/* --- Occasions Section --- */
.occasion-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.occasion-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.occasion-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.occasion-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.occasion-card:hover .occasion-img img {
    transform: scale(1.1);
}

.occasion-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.occasion-card:hover .occasion-overlay {
    opacity: 1;
}

.occasion-overlay i {
    font-size: 2.5rem;
    color: var(--primary-gold);
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.occasion-card:hover .occasion-overlay i {
    transform: scale(1);
}

.occasion-content {
    padding: 20px;
    text-align: center;
}

.occasion-content h4 {
    color: var(--text-main);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

/* --- Our Process Section --- */
.process-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 50px;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--border-color); /* Light line */
    z-index: 0;
}

.process-step-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin-bottom: 30px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--primary-gold);
    transition: all 0.4s ease;
    box-shadow: 0 0 0 5px var(--bg-body); /* Gap effect */
}

.process-step-item:hover .step-icon-wrapper {
    background: var(--primary-gold);
    color: white;
    transform: rotateY(180deg);
}

.step-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

@media (max-width: 991px) {
    .process-steps::before {
        display: none; /* Hide line on mobile */
    }
    .process-steps {
        flex-direction: column;
    }
    .process-step-item {
        margin-bottom: 40px;
    }
}

/* --- New Relatable Features & Patterns --- */

/* Luxury Geometric Pattern */
.bg-pattern-luxury {
    position: relative;
    background-color: var(--bg-section);
    z-index: 1;
}

.bg-pattern-luxury::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    opacity: 0.1;
    background-image:
        linear-gradient(45deg, var(--primary-gold) 25%, transparent 25%, transparent 75%, var(--primary-gold) 75%, var(--primary-gold)),
        linear-gradient(45deg, var(--primary-gold) 25%, transparent 25%, transparent 75%, var(--primary-gold) 75%, var(--primary-gold));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

body.dark-mode .bg-pattern-luxury::before {
    opacity: 0.05;
}

/* Stylish Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4rem 0;
    color: var(--primary-gold);
    opacity: 0.6;
}

.section-divider::before,
.section-divider::after {
    content: "";
    height: 1px;
    background: var(--primary-gold);
    width: 150px;
    margin: 0 20px;
}

.section-divider i {
    font-size: 1.5rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.2;
    position: absolute;
    top: 20px;
    right: 20px;
}

.client-info h5 {
    color: var(--text-main);
    margin: 0;
    font-size: 1.1rem;
}

.client-info small {
    color: var(--primary-gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Team Section */
.team-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px var(--shadow-color);
    transition: transform 0.3s;
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img-wrapper {
    height: 300px;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.fun-fact-box {
    background: var(--bg-section);
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px dashed var(--primary-gold);
}

/* Stats Counter Strip */
.stats-section {
    background: var(--primary-gold);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-item h3 {
    font-size: 3.5rem;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 0;
}

.stats-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Footer Revamp Extras */
.footer-newsletter-box {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.insta-item {
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 4px;
    transition: opacity 0.3s, transform 0.3s;
    background: rgba(255,255,255,0.1);
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    opacity: 0.7;
}

.insta-item:hover {
    transform: scale(1.05);
    z-index: 2;
}

.insta-item:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* --- Founder Section --- */
.founder-section {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-section);
}

.founder-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background-image: url('https://www.transparenttextures.com/patterns/black-linen.png'),
                      radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.4) 0%, transparent 50%);
    z-index: 1;
}

body.dark-mode .founder-bg-overlay {
    opacity: 0.08;
}

.founder-img-frame {
    position: relative;
    padding: 20px;
    z-index: 2;
}

.founder-img-frame img {
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
    filter: grayscale(20%) contrast(1.1);
    transition: all 0.5s ease;
    width: 100%;
}

.founder-img-frame:hover img {
    filter: grayscale(0%) contrast(1.0);
    transform: translateY(-5px);
}

.founder-frame-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-gold);
    transform: translate(20px, 20px);
    z-index: 1;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.founder-img-frame:hover .founder-frame-border {
    transform: translate(15px, 15px);
}

.founder-quote {
    position: relative;
    padding-left: 30px;
    border-left: 3px solid var(--primary-gold);
}

.quote-icon-start, .quote-icon-end {
    font-size: 1.5rem;
    color: var(--primary-gold);
    opacity: 0.5;
}

.quote-icon-start {
    margin-right: 10px;
    vertical-align: top;
}

/* --- The Difference Section Custom Card --- */
.difference-card {
    background: rgba(255, 255, 255, 0.95); /* High opacity for visibility */
    border: 1px solid rgba(212, 175, 55, 0.3); /* Subtle gold border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Distinct shadow */
}

body.dark-mode .difference-card {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.difference-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: var(--primary-gold);
}

/* --- Preloader: Haveli Door Animation --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Background for content behind doors */
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container covers the screen */
.haveli-door-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Above logo */
    pointer-events: none;
    display: flex;
}

/* Common Door Styles */
.haveli-door {
    width: 50%;
    height: 100%;
    background-color: #1a1a1a;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
    /* Wood texture simulation */
    /* Use the provided image as background */
    background-image: url('../assets/door.png');
    background-size: 200% 100%; /* Scale to cover full width combined */
    background-repeat: no-repeat;

    border: 5px solid #2a2a2a;
    transition: transform 1.5s ease-in-out;
}

.door-left {
    border-right: 2px solid #000;
    transform-origin: left;
    background-position: left center; /* Show left half */

    /* Initial state is closed (default), JS or Animation will open it */
    animation: openDoorLeft 2.5s forwards ease-in-out;
    animation-delay: 1.5s; /* Wait a bit before opening */
}

.door-right {
    border-left: 2px solid #000;
    transform-origin: right;
    background-position: right center; /* Show right half */

    animation: openDoorRight 2.5s forwards ease-in-out;
    animation-delay: 1.5s;
}

/* Door Details (Haveli Style - Optional overlay if image is plain) */
.door-inner {
    /* Optional: Overlay a slight gradient or texture if needed,
       but if the image is good, we might not need this.
       Let's keep it subtle just in case. */
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
}

/* Animation Keyframes */
@keyframes openDoorLeft {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(-90deg) translateX(-100%); opacity: 0; }
}

@keyframes openDoorRight {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(90deg) translateX(100%); opacity: 0; }
}

/* Fade out the logo content shortly after doors open */
.preloader-content {
    animation: fadeOutLogo 0.5s forwards;
    animation-delay: 3.5s;
    z-index: 5;
    position: relative;
}

@keyframes fadeOutLogo {
    to { opacity: 0; transform: scale(1.1); }
}

/* Completely remove loader after animation */
#preloader.loaded {
    display: none;
}

.loader-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background-color: var(--primary-gold);
    border-radius: 50%;
    animation: loaderBounce 1.4s infinite ease-in-out both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* --- Floating Decoration (New Graphics) --- */
.floating-decor {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: floatRotate 15s infinite ease-in-out;
    filter: none;
}

/* Founder Section Placement */
.decor-founder {
    top: -50px;
    right: -50px;
    width: 300px;
    opacity: 0.1;
}

/* Testimonials Section Placement */
.decor-testimonials {
    bottom: -50px;
    left: -50px;
    width: 400px;
    opacity: 0.05;
    animation-delay: 2s;
}

/* Footer Placement */
.decor-footer {
    top: 20%;
    right: 5%;
    width: 250px;
    opacity: 0.05;
    animation-delay: 5s;
}

@keyframes floatRotate {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* --- Back To Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 0; /* Reset padding for circular shape */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3) !important;
}

/* --- Smooth Scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Hover Glow for Difference Cards --- */
.difference-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.difference-card:hover {
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.25); /* Gold Glow */
    border-color: var(--primary-gold);
}

/* --- Decorative Frills (Scalloped Border) --- */
.scalloped-divider {
    height: 30px;
    width: 100%;
    background-color: var(--bg-body);
    mask-image: radial-gradient(circle 15px at 50% 100%, transparent 15px, black 16px);
    mask-size: 30px 30px;
    mask-repeat: repeat-x;
    -webkit-mask-image: radial-gradient(circle 15px at 50% 100%, transparent 15px, black 16px);
    -webkit-mask-size: 30px 30px;
    -webkit-mask-repeat: repeat-x;
    transform: rotate(180deg);
}

.hero-bottom-frill {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 30px; /* Added height */
    z-index: 2;
    background-color: var(--bg-body); /* Match the section below (Founder) */
    transform: rotate(0deg); /* Points down */
    mask-image: radial-gradient(circle 15px at 50% 0, transparent 15px, black 16px);
    -webkit-mask-image: radial-gradient(circle 15px at 50% 0, transparent 15px, black 16px);
}

.footer-top-frill {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    height: 30px;
    background-color: #121212; /* Match Footer bg */
    mask-image: radial-gradient(circle 15px at 50% 100%, transparent 15px, black 16px);
    -webkit-mask-image: radial-gradient(circle 15px at 50% 100%, transparent 15px, black 16px);
    transform: rotate(180deg); /* Points up into the previous section */
}

/* --- Floating Hearts Background --- */
.bg-floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.heart-shape {
    position: absolute;
    color: var(--primary-gold);
    opacity: 0.1;
    font-size: 1.5rem;
    animation: floatUp 8s infinite linear;
}

.heart-1 { left: 10%; bottom: -10%; animation-duration: 10s; font-size: 2rem; }
.heart-2 { left: 30%; bottom: -10%; animation-duration: 12s; animation-delay: 2s; }
.heart-3 { left: 60%; bottom: -10%; animation-duration: 9s; animation-delay: 1s; font-size: 1.2rem; }
.heart-4 { left: 80%; bottom: -10%; animation-duration: 14s; animation-delay: 4s; font-size: 2.5rem; }

@keyframes floatUp {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-120vh) scale(1.1); opacity: 0; }
}

/* --- Floating Balloon --- */
.floating-balloon-container {
    position: absolute;
    top: -30px;
    right: 20px;
    z-index: 5;
}

.floating-balloon {
    font-size: 3rem;
    color: #ff6b6b; /* Playful color, or use Gold */
    /* text-shadow: 2px 2px 0px rgba(0,0,0,0.1); */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.2));
    animation: bobble 3s infinite ease-in-out;
    display: inline-block;
}

@keyframes bobble {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

/* --- Rotating Flowers in Services --- */
.flower-bg-icon {
    position: absolute;
    color: var(--primary-gold);
    opacity: 0.15;
    z-index: 0;
    animation: spinSlow 30s infinite linear;
}

.flower-1 { top: 10%; left: 5%; font-size: 5rem; }
.flower-2 { bottom: 10%; right: 5%; font-size: 6rem; animation-direction: reverse; }

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Generic Floating Animations --- */
.floating-elements-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1; /* Above background, below content */
}

.floating-icon {
    position: absolute;
    bottom: -20%;
    color: var(--primary-gold);
    opacity: 0;
    animation-name: floatUpGeneric;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes floatUpGeneric {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-1000px) scale(1.1); opacity: 0; } /* Fallback distance */
}

/* For Cards (smaller distance) */
@keyframes floatUpCard {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    10% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-300px) scale(1.1); opacity: 0; }
}

.float-slow { animation-duration: 8s; }
.float-medium { animation-duration: 5s; }
.float-fast { animation-duration: 3s; }

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 1s; }
.delay-2 { animation-delay: 2s; }
.delay-3 { animation-delay: 3s; }
.delay-4 { animation-delay: 4s; }

/* Stats Section Floating Icons */
.stats-floating-icon {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    opacity: 0.1;
    z-index: -1;
    animation: floatUpCard 6s infinite linear;
}

/* Occasion Card Overlay Fix */
.occasion-img {
    position: relative; /* Ensure container is relative */
    overflow: hidden;
}

.occasion-floating-icon {
    position: absolute;
    bottom: -20%;
    color: rgba(255, 255, 255, 0.8); /* Lighter for over images */
    animation-name: floatUpCard;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

/* Visionary Stars */
.visionary-star {
    font-size: 1.5rem;
    color: var(--primary-gold);
}
