/**
 * RS Buildwell & Constructor — Main Design System
 * Premium luxury construction company stylesheet.
 * Color Palette: Black, White, Dark Gray, Concrete Gray, Gold (#C89B3C)
 * Typography: Playfair Display (serif), Inter (sans-serif)
 */

/* ═══════════════════════════════════════════════════════════════════
   IMPORTS & FONTS
   ═══════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES (Design Tokens)
   ═══════════════════════════════════════════════════════════════════ */
:root {
    /* Colors */
    --color-black: #0a0a0a;
    --color-black-pure: #000000;
    --color-white: #ffffff;
    --color-off-white: #f8f7f4;
    --color-dark-gray: #1a1a1a;
    --color-gray-900: #1e1e1e;
    --color-gray-800: #2a2a2a;
    --color-gray-700: #3a3a3a;
    --color-gray-600: #4a4a4a;
    --color-gray-500: #6b6b6b;
    --color-gray-400: #8a8a8a;
    --color-gray-300: #b0b0b0;
    --color-gray-200: #d4d4d4;
    --color-gray-100: #e8e8e8;
    --color-concrete: #c4bdb3;
    --color-gold: #C89B3C;
    --color-gold-light: #d4af5a;
    --color-gold-dark: #a67c2e;
    --color-gold-glow: rgba(200, 155, 60, 0.15);
    --color-error: #e74c3c;
    --color-success: #27ae60;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Font Sizes — Fluid Typography */
    --fs-display: clamp(3.5rem, 8vw, 8rem);
    --fs-h1: clamp(2.5rem, 5vw, 5rem);
    --fs-h2: clamp(2rem, 4vw, 3.5rem);
    --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
    --fs-h4: clamp(1.25rem, 2vw, 1.75rem);
    --fs-h5: clamp(1.1rem, 1.5vw, 1.35rem);
    --fs-body: clamp(0.95rem, 1.2vw, 1.1rem);
    --fs-small: clamp(0.8rem, 1vw, 0.9rem);
    --fs-tiny: clamp(0.7rem, 0.8vw, 0.8rem);
    --fs-badge: 0.75rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;
    --space-4xl: 12rem;

    /* Section Padding */
    --section-py: clamp(5rem, 10vh, 10rem);
    --section-px: clamp(1.5rem, 5vw, 8rem);

    /* Container */
    --container-max: 1400px;
    --container-narrow: 900px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 4px 30px rgba(200, 155, 60, 0.3);
    --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.1);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(20px);
    --glass-blur-heavy: blur(40px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-fast: 0.2s var(--ease-out);
    --transition-base: 0.4s var(--ease-out);
    --transition-slow: 0.6s var(--ease-out);
    --transition-slower: 0.8s var(--ease-out);

    /* Z-Index Scale */
    --z-behind: -1;
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popup: 500;
    --z-cursor: 9999;
    --z-loader: 10000;

    /* Navbar */
    --nav-height: 80px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: auto; /* Lenis handles smooth scroll */
    overflow-x: hidden;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    cursor: none;
}

/* Selection */
::selection {
    background: var(--color-gold);
    color: var(--color-black);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-light);
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul, ol {
    list-style: none;
}

/* Buttons & Inputs */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: none;
}

button {
    cursor: none;
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }

p {
    color: var(--color-gray-300);
    line-height: 1.8;
}

.text-gold { color: var(--color-gold); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-400); }
.text-center { text-align: center; }

/* Display text */
.display-text {
    font-family: var(--font-serif);
    font-size: var(--fs-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--section-py) 0;
    position: relative;
}

.section-dark {
    background-color: var(--color-dark-gray);
}

.section-darker {
    background-color: var(--color-gray-900);
}

/* Grid */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION HEADER
   ═══════════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: var(--fs-badge);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    background: var(--color-gold-glow);
    border: 1px solid rgba(200, 155, 60, 0.3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-gold);
}

.section-header h2 {
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.section-header p {
    font-size: var(--fs-body);
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto;
}

/* Decorative line */
.section-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    margin: var(--space-md) auto;
}

/* ═══════════════════════════════════════════════════════════════════
   LOADING SCREEN
   ═══════════════════════════════════════════════════════════════════ */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-loader);
    transition: opacity 0.6s var(--ease-out);
}

.loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
}

.loader-bar-container {
    width: 200px;
    height: 2px;
    background: var(--color-gray-800);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out);
}

.loader-percentage {
    font-family: var(--font-sans);
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    margin-top: var(--space-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════════ */
.cursor-inner {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-elastic),
                height 0.3s var(--ease-elastic),
                background 0.3s var(--ease-out);
    mix-blend-mode: difference;
}

.cursor-outer {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(200, 155, 60, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out),
                height 0.4s var(--ease-out),
                border-color 0.3s var(--ease-out),
                background 0.3s var(--ease-out),
                opacity 0.3s;
}

.cursor-text {
    position: fixed;
    pointer-events: none;
    z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s var(--ease-out);
    white-space: nowrap;
}

.cursor-text.visible {
    opacity: 1;
}

/* Cursor states */
.cursor-hover .cursor-inner {
    width: 4px;
    height: 4px;
}

.cursor-hover .cursor-outer {
    width: 56px;
    height: 56px;
    border-color: var(--color-gold);
}

.cursor-expand .cursor-inner {
    width: 60px;
    height: 60px;
    background: rgba(200, 155, 60, 0.2);
}

.cursor-expand .cursor-outer {
    width: 60px;
    height: 60px;
    opacity: 0;
}

/* Hide cursor on mobile */
@media (max-width: 1024px) {
    .cursor-inner,
    .cursor-outer,
    .cursor-text {
        display: none !important;
    }
    body {
        cursor: auto;
    }
    a, button {
        cursor: pointer;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    transition: background 0.4s var(--ease-out),
                backdrop-filter 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 var(--section-px);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: var(--z-sticky);
}

.nav-logo-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-black);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.02em;
}

.nav-logo-text span {
    color: var(--color-gold);
}

/* Desktop Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-gray-300);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Nav CTA Button */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    margin-left: 1rem;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: var(--z-sticky);
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-black);
    z-index: calc(var(--z-sticky) - 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out),
                visibility 0.5s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .mobile-nav-link {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--color-gray-400);
    transition: color var(--transition-base);
    transform: translateY(40px);
    opacity: 0;
}

.mobile-menu.active .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu .mobile-nav-link:hover,
.mobile-menu .mobile-nav-link.active {
    color: var(--color-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 300vh; /* Tighter scroll animation */
    overflow: visible;
}

.hero-canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 40%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--space-lg);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: var(--fs-display);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-title .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px);
}

.hero-tagline {
    font-family: var(--font-sans);
    font-size: var(--fs-h5);
    font-weight: 400;
    color: var(--color-gray-200);
    margin-bottom: var(--space-xl);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    opacity: 0;
    transform: translateY(30px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
}

.hero-scroll-indicator span {
    font-size: var(--fs-tiny);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gray-400);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--color-gray-600);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s var(--ease-out);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    color: var(--color-black);
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    box-shadow: 0 4px 15px rgba(200, 155, 60, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    color: var(--color-white);
    border: 1px solid var(--color-gray-600);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    transform: translateY(-2px);
}

.btn-white {
    color: var(--color-black);
    background: var(--color-white);
}

.btn-white:hover {
    background: var(--color-off-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-icon {
    font-size: 0.9rem;
    transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 155, 60, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: rgba(200, 155, 60, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-gold);
    background: var(--color-gold-glow);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    transition: all var(--transition-base);
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-black);
}

.card-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h5);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.card-text {
    color: var(--color-gray-400);
    font-size: var(--fs-small);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════════════════ */
.project-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}

.project-card:hover .project-card-image {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--space-xl);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transition: padding var(--transition-base);
}

.project-card:hover .project-card-overlay {
    padding-bottom: var(--space-2xl);
}

.project-card-category {
    font-size: var(--fs-tiny);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.project-card-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.project-card-location {
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   STATISTICS COUNTER
   ═══════════════════════════════════════════════════════════════════ */
.stats-section {
    background: linear-gradient(135deg, var(--color-dark-gray), var(--color-gray-900));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    text-align: center;
}

.stat-item {
    padding: var(--space-xl) var(--space-sm);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background: var(--glass-border);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════ */
.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    position: relative;
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--color-gold);
    opacity: 0.3;
    position: absolute;
    top: var(--space-lg);
    left: var(--space-xl);
    font-family: var(--font-serif);
    line-height: 1;
}

.testimonial-text {
    font-size: var(--fs-body);
    color: var(--color-gray-300);
    line-height: 1.9;
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-gold);
    font-size: 0.85rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gold);
}

.testimonial-name {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: var(--fs-tiny);
    color: var(--color-gray-500);
}

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE / PARTNERS
   ═══════════════════════════════════════════════════════════════════ */
.marquee-section {
    overflow: hidden;
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: var(--color-dark-gray);
}

.marquee-track {
    display: flex;
    gap: var(--space-3xl);
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-serif);
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--color-gray-600);
    white-space: nowrap;
    transition: color var(--transition-base);
}

.marquee-item:hover {
    color: var(--color-gold);
}

.marquee-separator {
    color: var(--color-gold);
    opacity: 0.3;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════ */
.cta-section {
    background: linear-gradient(135deg, var(--color-dark-gray), var(--color-black));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--color-gold-glow), transparent 60%);
    animation: ctaGlow 8s var(--ease-in-out) infinite alternate;
}

@keyframes ctaGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: var(--fs-h2);
    margin-bottom: var(--space-md);
    color: var(--color-white);
}

.cta-text {
    font-size: var(--fs-body);
    color: var(--color-gray-400);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--color-dark-gray);
    border-top: 1px solid var(--glass-border);
}

.footer-main {
    padding: var(--space-3xl) 0 var(--space-2xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer-brand {
    max-width: 350px;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.footer-brand-text {
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-700);
    border-radius: 50%;
    color: var(--color-gray-400);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: var(--color-gold-glow);
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--color-gold);
}

.footer-links a i {
    font-size: 0.75rem;
    width: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--fs-small);
    color: var(--color-gray-400);
}

.footer-contact-item i {
    color: var(--color-gold);
    margin-top: 3px;
    width: 16px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: var(--space-md) 0;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: var(--fs-tiny);
    color: var(--color-gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom-links a {
    font-size: var(--fs-tiny);
    color: var(--color-gray-500);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   QUOTE POPUP
   ═══════════════════════════════════════════════════════════════════ */
.quote-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
    z-index: var(--z-popup);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.quote-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    background: var(--color-dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    z-index: calc(var(--z-popup) + 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.quote-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.quote-popup-header {
    padding: var(--space-xl) var(--space-xl) var(--space-md);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--color-dark-gray);
    z-index: 2;
    border-bottom: 1px solid var(--glass-border);
}

.quote-popup-title {
    font-family: var(--font-serif);
    font-size: var(--fs-h4);
    color: var(--color-white);
}

.quote-popup-subtitle {
    font-size: var(--fs-small);
    color: var(--color-gray-400);
    margin-top: 0.25rem;
}

.quote-popup-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-gray-700);
    border-radius: 50%;
    color: var(--color-gray-400);
    font-size: 1rem;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.quote-popup-close:hover {
    border-color: var(--color-error);
    color: var(--color-error);
}

.quote-popup-body {
    padding: var(--space-xl);
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════ */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--color-gray-300);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: var(--fs-small);
    color: var(--color-white);
    background: var(--color-gray-800);
    border: 1px solid var(--color-gray-700);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px var(--color-gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-600);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%236b6b6b'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-select option {
    background: var(--color-gray-800);
    color: var(--color-white);
}

.form-file {
    padding: 1rem;
    border: 2px dashed var(--color-gray-700);
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color var(--transition-fast);
}

.form-file:hover {
    border-color: var(--color-gold);
}

.form-file input[type="file"] {
    display: none;
}

.form-file-label {
    cursor: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-400);
    font-size: var(--fs-small);
}

.form-file-label i {
    font-size: 1.5rem;
    color: var(--color-gold);
}

.form-error {
    font-size: var(--fs-tiny);
    color: var(--color-error);
    margin-top: 0.25rem;
}

.form-success {
    padding: var(--space-md);
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-success);
    font-size: var(--fs-small);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
   WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════════ */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 1.5rem;
    z-index: var(--z-overlay);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════
   ANIMATION UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
}

.line-reveal {
    clip-path: inset(0 100% 0 0);
}

.img-reveal {
    clip-path: inset(0 0 100% 0);
}

.split-line {
    overflow: hidden;
}

.split-line .line-inner {
    transform: translateY(100%);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE TRANSITION
   ═══════════════════════════════════════════════════════════════════ */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    z-index: calc(var(--z-loader) - 1);
    transform: scaleY(0);
    transform-origin: bottom;
}

/* ═══════════════════════════════════════════════════════════════════
   MISC UTILITIES
   ═══════════════════════════════════════════════════════════════════ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.no-scroll {
    overflow: hidden;
}

.bg-pattern {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(200, 155, 60, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(200, 155, 60, 0.03) 0%, transparent 50%);
}

/* ═══════════════════════════════════════════════════════════════════
   3D EFFECT UTILITIES (Framer Motion & ScrollTrigger style)
   ═══════════════════════════════════════════════════════════════════ */
.card, .project-card, .pricing-card, .testimonial-card, .vm-card {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    position: relative;
    will-change: transform;
}

/* 3D depth pop out elements inside cards */
.card-icon, 
.project-card-category, 
.project-card-title, 
.pricing-name, 
.pricing-price, 
.testimonial-quote, 
.testimonial-author,
.vm-card i,
.vm-card h3 {
    transform: translateZ(35px);
    transition: transform 0.3s var(--ease-out);
}

.card-text, 
.project-card-location, 
.pricing-features, 
.testimonial-text,
.vm-card p {
    transform: translateZ(20px);
    transition: transform 0.3s var(--ease-out);
}

/* Shine overlay effect */
.card-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 250px at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.12) 0%, transparent 80%);
    pointer-events: none;
    z-index: 5;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: overlay;
}

.card:hover .card-shine,
.project-card:hover .card-shine,
.pricing-card:hover .card-shine,
.testimonial-card:hover .card-shine,
.vm-card:hover .card-shine {
    opacity: 1;
}

/* 3D Perspective Reveal States */
.reveal-3d {
    opacity: 0;
    transform: perspective(1200px) rotateX(25deg) translateZ(-80px) translateY(50px);
    will-change: transform, opacity;
}

/* Hero 3D depth */
#hero-content {
    transform-style: preserve-3d;
    perspective: 1200px;
    will-change: transform;
}

.hero-title {
    transform: translateZ(60px);
}

.hero-tagline {
    transform: translateZ(35px);
}

.hero-cta {
    transform: translateZ(20px);
}

