:root {
    /* Color Palette - "Illuminated Fluidity" (Light Mode Reverse) */
    --color-bg: #f5f5f7;
    /* Soft White/Grey */
    --color-surface: #ffffff;
    --color-gold-start: #bfa15f;
    /* Darker gold for visibility on light */
    --color-gold-end: #d4af37;
    --color-tungsten: #dca365;
    /* Warm Ambient */
    --color-text-body: #2a2a2a;
    /* Dark Grey Text */
    --color-text-muted: #666666;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--color-gold-start), var(--color-gold-end));
    --gradient-dark-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4));
    /* Whiter glass */

    /* Fonts */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;

    /* Spacing */
    --section-spacing: 140px;
    --container-width: 1400px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    /* margin: 0; padding: 0; Handled by Tailwind Preflight */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-body);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
}

/* Utilities: Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.glass-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(197, 160, 89, 0.15);
}

/* Fluid Background Blobs */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Skeleton Loading / Image Framing */
.image-frame {
    background: #e0e0e0;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.image-frame::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.2) 20%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-gold-start), transparent 70%);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-tungsten), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Header / Nav - Updated for Visibility */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.main-header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    /* Opaque white for better text visibility */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    color: #333;
    /* Ensure dark text */
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-gold-start);
    transition: width 0.3s ease;
}

.nav-btn:hover::after,
.nav-btn.active::after {
    width: 100%;
}

.highlight-btn {
    border: 1px solid #333;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
}

/* Hero Section Updates */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

/* Fix Hero Visiblity */
.hero-overlay {
    background: linear-gradient(to right, rgba(245, 245, 247, 0.95), rgba(245, 245, 247, 0.7), rgba(245, 245, 247, 0.2));
    /* Stronger overlay on left for text */
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Removed incorrect rotation */
    animation: zoomEffect 20s infinite alternate;
}

.hero-tag {
    color: var(--color-gold-start);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    margin-bottom: 2rem;
    color: #1a1a1a;
    font-size: clamp(3rem, 5vw, 5rem);
    background: none;
    -webkit-text-fill-color: initial;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--color-gold-start);
    color: var(--color-gold-end);
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--color-gold-start);
    color: #000;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* WhatsApp Pop */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Grid System for Catalog */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.catalog-item {
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.catalog-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

.catalog-info {
    position: relative;
    z-index: 2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    /* .nav-links { display: none; } */
    /* Keep nav for now or stack it */
    .nav-links {
        flex-direction: column;
        background: var(--color-surface);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }
}

/* --- New Styles for Multi-Page --- */

/* Page Headers */
.page-header {
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Masonry Grid (Simple CSS Columns) */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

@media (max-width: 992px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.masonry-item img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
    opacity: 0.7;
}

.item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .item-overlay {
    opacity: 1;
}

.view-btn {
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--color-gold-start);
    color: var(--color-gold-end);
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.contact-detail {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-body);
}

.contact-detail i {
    color: var(--color-gold-start);
    font-size: 1.2rem;
}

.map-container {
    margin-top: 2rem;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
}

/* --- New Content Sections --- */

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* 1. Hero Image */
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg), rgba(18, 18, 18, 0.4));
    z-index: 1;
}

/* 2. Split Layout (Founders) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

.founders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.founder-card {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.founder-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    filter: grayscale(20%);
    transition: filter 0.3s;
}

.founder-card:hover img {
    filter: grayscale(0%);
}

/* 3. Horizontal Scroll Services */
.horizontal-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 2rem 0;
    scroll-snap-type: x mandatory;
}

.service-card {
    min-width: 350px;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    scroll-snap-align: center;
    overflow: hidden;
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    transition: background 0.3s;
}

.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(197, 160, 89, 0.4), rgba(0, 0, 0, 0.4));
}

.service-overlay i {
    font-size: 2rem;
    color: var(--color-gold-start);
    margin-bottom: 1rem;
}

/* 4. Light Module */
.light-module {
    display: grid;
    grid-template-columns: 2fr 1fr;
    overflow: hidden;
    height: 500px;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .light-module {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.light-visual {
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
}

.light-layer {
    position: absolute;
    inset: 0;
    transition: all 0.5s ease;
    background-color: rgba(255, 214, 170, 0.2);
    /* Default Ambient */
}

.light-controls {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.light-btn {
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.light-btn span {
    display: block;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    opacity: 0.6;
}

.light-btn.active,
.light-btn:hover {
    background: var(--color-gold-start);
    color: #000;
    border-color: var(--color-gold-start);
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.3);
}

/* 6. Testimonials */
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.testimonial-card {
    min-width: 300px;
    padding: 2rem;
    font-style: italic;
    border-left: 3px solid var(--color-gold-start);
}

/* 7. Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* WhatsApp Tooltip */
.whatsapp-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1000;
}

.whatsapp-float {
    position: static;
    /* Override previous fixed */
    float: right;
}

.whatsapp-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 250px;
    background: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    /* JS will trigger */
    animation: fadeIn 0.5s ease;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: #fff transparent;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Forms */
.clean-form .form-group {
    margin-bottom: 1.5rem;
}

.clean-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    /* Darker text for labels */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.clean-form input,
.clean-form textarea {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    /* White input on light mode */
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Darker border */
    border-radius: 8px;
    color: #333;
    /* Dark text */
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.clean-form input:focus,
.clean-form textarea:focus {
    outline: none;
    border-color: var(--color-gold-start);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}