/* --- Variables & Reset --- */
:root {
    --primary-color: #0d1b2a; /* Deeper Royal Navy */
    --secondary-color: #660708; /* Richer Indian Maroon */
    --accent-color: #d4af37; /* Elegant Gold */
    --text-color: #4a4a4a; /* Deep grey for better reading */
    --heading-color: #0d1b2a; /* Navy headings */
    --bg-light: #fdfbf7; /* Warm off-white */
    --surface-color: #ffffff; /* Card/Nav backgrounds */
    --white: #ffffff; /* Pure white for fixed text/overlays */
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Poppins', sans-serif;
}

/* --- Dark Mode Theme Variables --- */
body.dark-mode {
    --primary-color: #fdfbf7; /* General hovers and borders */
    --secondary-color: #e5b0b4; /* Softened maroon for better text contrast */
    --accent-color: #ebd58b; /* Brighter gold for dark mode */
    --text-color: #cccccc; /* Light grey body text */
    --heading-color: #fdfbf7; /* Off-white headings */
    --bg-light: #121212;
    --surface-color: #1e1e1e; /* Dark backgrounds for cards/nav */
}

body.dark-mode .btn-nav {
    color: #121212 !important; /* Ensures the "Book Us" button remains readable on gold */
}

body.dark-mode .btn-primary {
    color: #121212; /* Dark text for light-colored buttons in dark mode */
}

body.dark-mode .logo img,
body.dark-mode .footer-logo,
body.dark-mode .splash-logo {
    filter: drop-shadow(0px 0px 8px rgba(255, 255, 255, 0.4)) brightness(1.2); /* Helps black logo text pop on dark background */
}

body.dark-mode footer,
body.dark-mode .testimonials-section {
    background-color: #0a0a0a;
    background-image: none; /* Removes the light mandala pattern */
    box-shadow: inset 0 0 20px rgba(0,0,0,1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 100 100" fill="%23d4af37" fill-opacity="0.08"><circle cx="50" cy="50" r="40" stroke="%23d4af37" stroke-opacity="0.15" stroke-width="2" fill="none"/><path d="M50 10 C50 30 70 50 90 50 C70 50 50 70 50 90 C50 70 30 50 10 50 C30 50 50 30 50 10 Z"/></svg>');
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Custom Scrollbar --- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) var(--bg-light);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 6px;
    border: 3px solid var(--bg-light); /* Adds a nice padding effect around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

/* --- Dark Mode Custom Scrollbar --- */
html:has(body.dark-mode) {
    scrollbar-color: #ebd58b #121212;
}

html:has(body.dark-mode)::-webkit-scrollbar-track,
html:has(body.dark-mode) *::-webkit-scrollbar-track {
    background: #121212;
}

html:has(body.dark-mode)::-webkit-scrollbar-thumb,
html:has(body.dark-mode) *::-webkit-scrollbar-thumb {
    background-color: #ebd58b;
    border: 3px solid #121212;
}

html:has(body.dark-mode)::-webkit-scrollbar-thumb:hover,
html:has(body.dark-mode) *::-webkit-scrollbar-thumb:hover {
    background-color: #fdfbf7;
}

/* --- Typography & Buttons --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding-top: 4rem;
    color: var(--secondary-color);
}

.section-title::before, .section-title::after {
    content: '';
    display: inline-block;
    width: 35px;
    height: 35px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="%23d4af37"><path d="M50 0 C50 25 75 50 100 50 C75 50 50 75 50 100 C50 75 25 50 0 50 C25 50 50 25 50 0 Z"/></svg>') no-repeat center;
    animation: spin-mandala 15s linear infinite;
}

.section-title::before {
    animation-direction: reverse; /* Makes the left icon spin the opposite direction */
}

@keyframes spin-mandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: bold;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(102, 7, 8, 0.4);
}

.btn-primary:hover {
    background-color: #4a0506;
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* --- Button Ripple Effect --- */
.ripple {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 0.6s linear forwards;
    pointer-events: none; /* Prevents the ripple from blocking subsequent clicks */
}

@keyframes ripple-effect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Button Loading State --- */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
    padding-right: 2.5rem;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: var(--white);
    border-right-color: var(--white);
    border-radius: 50%;
    animation: spin-mandala 0.8s linear infinite;
}

/* --- Navigation --- */
.navbar-two {
    background-color: var(--surface-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 2px solid var(--accent-color);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

/* .navbar.scrolled {
    padding: 0.3rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
} */

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--heading-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.theme-toggle .sun-icon { display: none; }
body.dark-mode .theme-toggle .moon-icon { display: none; }
body.dark-mode .theme-toggle .sun-icon { display: block; }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 130px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    opacity: 0;
    animation: logoEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) 1.8s forwards;
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.navbar.scrolled .logo img {
    height: 90px;
}

body.dark-mode .navbar.scrolled .logo img {
    background-color: #fdfbf7;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    filter: none; /* Removes the white glowing drop-shadow for a clean badge look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links li {
    opacity: 0;
    animation: navLinkEntrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.nav-links li:nth-child(1) { animation-delay: 2.0s; }
.nav-links li:nth-child(2) { animation-delay: 2.1s; }
.nav-links li:nth-child(3) { animation-delay: 2.2s; }
.nav-links li:nth-child(4) { animation-delay: 2.3s; }
.nav-links li:nth-child(5) { animation-delay: 2.4s; }

@keyframes navLinkEntrance {
    0% { opacity: 0; transform: translateY(-15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    inset: 0; /* Covers the whole screen */
    background-color: var(--surface-color);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 450px;
    max-width: 80%;
    animation: pulse-splash 1.5s infinite alternate ease-in-out;
    transition: transform 0.8s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.8s ease-in-out;
}

.splash-screen.hidden .splash-logo {
    transform: translateY(-40vh) scale(0.3); /* Slides up and shrinks towards header */
    opacity: 0;
    animation: none; /* Allows the slide-up transform to play without being overridden by the pulse keyframes */
}

@keyframes pulse-splash {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.05); }
}

.splash-loader {
    width: 45px;
    height: 45px;
    border: 3px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin-loader 1s linear infinite;
}

@keyframes spin-loader {
    to { transform: rotate(360deg); }
}

.nav-links a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.btn-nav {
    background: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    transition: all 0.3s ease;
}

/* --- Warli Art Divider --- */
.warli-divider {
    height: 45px;
    width: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 50" stroke="%23721c24" stroke-width="2" fill="none"><circle cx="20" cy="15" r="4" fill="%23721c24"/><path d="M20 19 L20 35 M20 25 L10 20 M20 25 L30 20 M20 35 L15 45 M20 35 L25 45"/><circle cx="50" cy="15" r="4" fill="%23721c24"/><path d="M50 19 L50 35 M50 25 L30 20 M50 25 L70 20 M50 35 L45 45 M50 35 L55 45"/><circle cx="80" cy="15" r="4" fill="%23721c24"/><path d="M80 19 L80 35 M80 25 L70 20 M80 25 L90 20 M80 35 L75 45 M80 35 L85 45"/></svg>') repeat-x center;
    opacity: 0.7;
    margin: 3rem 0;
    animation: walk-warli 10s linear infinite;
}

@keyframes walk-warli {
    from { background-position: 0 center; }
    to { background-position: -100px center; } /* Smooth infinite horizontal pan */
}

/* --- Hero Section --- */
.hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9), rgba(102, 7, 8, 0.85)), url(https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80) center 0px / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    font-family: var(--font-main);
    margin-bottom: 2rem;
}

/* --- Services Section --- */
.services {
    padding-bottom: 4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: 80px 80px 10px 10px; /* Marwadi Arch Style */
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease-out, box-shadow 0.6s ease-out;
    opacity: 0;
    transform: translateY(50px);
    --rx: 0deg;
    --ry: 0deg;
    transform-style: preserve-3d;
}

.card.visible {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(var(--rx)) rotateY(var(--ry));
}

.card-inner {
    padding: 2.5rem 1.5rem;
    border: 2px solid var(--accent-color);
    border-radius: 75px 75px 5px 5px; /* Inner Arch */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateZ(30px); /* 3D pop out effect for inner content */
}

.card h3 {
    color: var(--secondary-color);
}

.card.visible:hover {
    transform: perspective(1000px) translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) scale3d(1.02, 1.02, 1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out; /* Fast tracking while hovering */
    z-index: 10;
}

/* --- FAQ Section --- */
.faq-section {
    padding-bottom: 4rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.3); /* Subtle gold border */
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    color: var(--heading-color);
    outline: none;
    text-align: left;
}

.faq-question:hover, .faq-item.active .faq-question {
    color: var(--secondary-color);
}

.faq-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Rotates the + into an x */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* High enough to clear the paragraph text */
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-color);
    margin: 0;
}

/* --- Portfolio / Gallery Section --- */
.portfolio {
    padding-bottom: 4rem;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--heading-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3; /* Keeps images uniformly sized */
    border: 2px solid var(--accent-color);
    opacity: 0;
    transform: translateY(50px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease-out;
}

.gallery-item.hide {
    display: none;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images fill the container without distorting */
    display: block;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Subtle zoom effect on hover */
}

/* --- Clients Marquee --- */
.clients-marquee {
    padding: 1rem 0 3rem 0;
    overflow: hidden;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll-marquee 25s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    height: 50px;
    object-fit: contain;
    margin: 0 3rem;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.marquee-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- About Section & Page Hero --- */
.about-section {
    padding: 5rem 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-text.visible {
    opacity: 1;
    transform: translateX(0);
}
.about-image {
    border-radius: 150px 150px 10px 10px;
    border: 4px solid var(--accent-color);
    padding: 12px;
    background-color: var(--surface-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.about-image.visible {
    opacity: 1;
    transform: translateX(0);
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 140px 140px 5px 5px;
    display: block;
}
.page-hero {
    height: 50vh;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.9), rgba(102, 7, 8, 0.8)), url('https://images.unsplash.com/photo-1583939000240-690a1e12db01?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.5);
}
.page-hero h1 {
    color: var(--accent-color);
    font-size: 3.5rem;
}

/* --- Royal Stats Section --- */
.stats-section {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(102, 7, 8, 0.95)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="%23d4af37" fill-opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23d4af37" stroke-opacity="0.1" stroke-width="2" fill="none"/><path d="M50 10 C50 30 70 50 90 50 C70 50 50 70 50 90 C50 70 30 50 10 50 C30 50 50 30 50 10 Z"/></svg>') center/cover;
    padding: 6rem 0;
    margin: 4rem 0;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    background: var(--surface-color);
    padding: 0.5rem;
    border-radius: 80px 80px 10px 10px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease-out;
}

.stat-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.stat-border {
    border: 1px dashed rgba(212, 175, 55, 0.6);
    border-radius: 75px 75px 5px 5px;
    padding: 2.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-border {
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    transform: scale(1.02);
}

.stat-icon {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: pulse-glow 2s infinite alternate;
}

.stat-card h3, .stat-card .plus {
    display: inline-block;
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 0;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.stat-card p {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--heading-color);
    font-weight: 600;
}

/* --- Pricing Calculator --- */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 3px solid var(--accent-color);
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease-out, box-shadow 0.3s ease;
    position: relative;
}

.calculator-container::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(212, 175, 55, 0.6);
    border-radius: 8px;
    pointer-events: none; /* Prevents border from blocking clicks */
    z-index: 10;
}

.calculator-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.calculator-container:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.calc-inputs {
    padding: 3rem;
    position: relative;
    z-index: 2;
    background: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
}

.calc-group label {
    font-weight: 600;
    color: var(--heading-color);
    display: block;
    margin-bottom: 0.5rem;
}

.calc-select, .calc-range {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--bg-light);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.calc-select:focus {
    border-color: var(--accent-color);
}

.calc-range {
    padding: 0;
    cursor: pointer;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal !important;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.check-label:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.calc-result {
    background: var(--primary-color);
    background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="%23d4af37" fill-opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23d4af37" stroke-opacity="0.1" stroke-width="2" fill="none"/><path d="M50 10 C50 30 70 50 90 50 C70 50 50 70 50 90 C50 70 30 50 10 50 C30 50 50 30 50 10 Z"/></svg>');
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.calc-result h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.calc-result h3::before,
.calc-result h3::after {
    content: 'âœ¦';
    font-size: 1.2rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.calc-total {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.calc-total.updating {
    transform: scale(1.1);
    color: var(--white); /* Brief flash on update */
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--primary-color);
    padding: 5rem 0;
    margin: 4rem 0;
    color: var(--white);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" fill="%23d4af37" fill-opacity="0.05"><circle cx="50" cy="50" r="40" stroke="%23d4af37" stroke-opacity="0.1" stroke-width="2" fill="none"/><path d="M50 10 C50 30 70 50 90 50 C70 50 50 70 50 90 C50 70 30 50 10 50 C30 50 50 30 50 10 Z"/></svg>');
    box-shadow: inset 0 0 30px rgba(0,0,0,0.8);
}
.testimonials-section .section-title {
    color: var(--accent-color);
}
.testimonial-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 1rem 0;
}
.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.carousel-btn {
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0 1rem;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10;
}
.carousel-btn:hover {
    transform: scale(1.2);
    color: var(--white);
}
.client-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem auto;
    border: 3px solid var(--accent-color);
    display: block;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.testimonial-card {
    flex: 0 0 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(500px circle at var(--x, 50%) var(--y, 50%), rgba(212, 175, 55, 0.12), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.testimonial-card:hover::after {
    opacity: 1;
}
.testimonial-card::before {
    content: 'â€œ';
    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--accent-color);
    position: absolute;
    top: -20px;
    left: 20px;
    opacity: 0.2;
    line-height: 1;
}
.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-card h4 {
    color: var(--accent-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* --- Carousel Dots --- */
.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}
.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.1);
}

/* --- Contact Section --- */
.contact {
    padding-bottom: 5rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #777;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1.8rem 1rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--surface-color);
    color: var(--text-color);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23d4af37" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 15px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--secondary-color);
}

/* Invalid input state */
.form-group input.invalid,
.form-group textarea.invalid,
.form-group select.invalid {
    border-color: #dc3545 !important; /* Red border for errors */
}

/* Float the label up when input is focused or not empty */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: 0.4rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Footer --- */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 3rem 0 1.5rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    object-fit: contain;
    background-color: #fdfbf7; /* Warm off-white background to make the black text pop */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-links a:hover {
    padding-left: 5px; /* Interactive slide effect for quick links */
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* --- Lightbox Modal --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 37, 44, 0.95); /* Deep navy tint */
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.9); }
    to { transform: scale(1); }
}

#modal-caption {
    margin-top: 15px;
    color: var(--white);
    font-size: 1.2rem;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-color);
}

/* --- Exit Intent Popup --- */
.exit-content {
    background-color: var(--surface-color);
    padding: 3.5rem 2.5rem;
    text-align: center;
    border: 3px solid var(--accent-color);
    border-radius: 15px;
    max-width: 500px;
    position: relative;
    background-image: radial-gradient(circle at top left, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    color: var(--text-color);
}

.close-exit {
    position: absolute;
    top: 15px;
    right: 25px;
    color: var(--heading-color);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.close-exit:hover {
    color: var(--accent-color);
}

/* --- Scroll to Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* --- Music Toggle Button --- */
.music-toggle-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--surface-color);
    color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0.7; /* Semi-transparent when paused */
}

.music-toggle-btn.playing {
    opacity: 1;
    background-color: var(--secondary-color);
    color: var(--accent-color);
    animation: pulse-music 2s infinite;
}

@keyframes pulse-music {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* --- 404 Error Page --- */
.error-section {
    height: 85vh;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(102, 7, 8, 0.9)), url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-content {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.error-content h1 {
    font-size: clamp(6rem, 15vw, 12rem); /* Scales beautifully on mobile */
    color: var(--accent-color);
    margin-bottom: 0;
    line-height: 1;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2); transform: scale(1); }
    to { text-shadow: 0 0 30px rgba(212, 175, 55, 0.8), 0 0 60px rgba(212, 175, 55, 0.6), 0 0 100px rgba(212, 175, 55, 0.4); transform: scale(1.02); }
}

.error-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
}

/* --- Custom Cursor --- */
@media (pointer: fine) {
    body, a, button, .card, .gallery-item img, .close-modal, .music-toggle-btn, .scroll-top-btn, .dot {
        cursor: none !important;
    }
    
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background-color: var(--accent-color);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .custom-cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        width: 40px;
        height: 40px;
        border: 2px solid rgba(212, 175, 55, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
        transition: width 0.2s ease, height 0.2s ease, border-color 0.3s ease, background-color 0.2s ease, left 0.1s ease-out, top 0.1s ease-out;
    }

    .custom-cursor.hover {
        transform: translate(-50%, -50%) scale(0);
    }

    .custom-cursor-outline.hover {
        width: 60px;
        height: 60px;
        background-color: rgba(212, 175, 55, 0.1);
        border-color: var(--accent-color);
    }
}

@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-outline {
        display: none !important;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: -100%; /* Hide off-screen initially */
        width: 100%;
        background-color: var(--surface-color);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-links.nav-active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .calculator-container {
        grid-template-columns: 1fr;
    }
    .calc-inputs {
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-text {
        text-align: center;
    }
    .about-text .section-title {
        justify-content: center !important;
    }

    /* Hamburger Animation to 'X' */
    .hamburger.toggle .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2rem;
    }
    
}