/* 
 ==========================================================================
  INTERIOR VEYDAA - CORE STYLE PLATFORM
  Tabbed View Manager, Centered Branding padding, Travertine Ivory Ceramic Palette
 ==========================================================================
*/

/* 1. LUXURY SYSTEM VARIABLES */
:root {
    /* Ivory & Travertine Ceramic Palette - Ultra-Upmarket & Bright */
    --bg-primary: #FAF9F5;          /* Alabaster ivory canvas background */
    --bg-secondary: #FFFFFF;        /* Pure Chalk White for cards & surface layers */
    --accent-sage: #95562d;         /* Interior Veydaa copper-brown */
    --accent-terracotta: #D28F79;   /* Groundingbaked soft terracotta */
    --accent-sand: #ECE6DC;         /* Honey Sand travertine neutral */
    --accent-gold: #A8663A;         /* Warm brand copper highlight */
    --accent-ochre: #E0CFA9;        /* Warm sand ochre tint */
    
    /* Text Contrasts */
    --text-primary: #1C1B1A;        /* Warm obsidian black - maximum luxury contrast */
    --text-secondary: #6F6A65;      /* Slate grey support text */
    --text-light: #A09A93;          /* Soft architectural pencil sketch grey */
    
    /* UI Structure */
    --border-color: rgba(190, 163, 130, 0.28); /* Warm travertine matte line */
    --border-light: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.88);
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Elevated Shadows */
    --shadow-subtle: 0 8px 30px rgba(110, 95, 75, 0.02);
    --shadow-elevated: 0 16px 48px rgba(110, 95, 75, 0.035); /* Extremely soft visual drop */
    --shadow-button: 0 10px 24px rgba(28, 27, 26, 0.06);
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-snappy: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Dimensions */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-round: 100px;
}

/* 2. BASE RESET & VIEWPORT SCROLL-LOCK */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    overflow: hidden; /* ABSOLUTE page scroll blocker. The website functions as an active dynamic console! */
    background-color: var(--bg-primary);
}

body {
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    position: relative;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Accessibility Focus outlines */
*:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 4px;
}

/* Global Hidden Utility */
.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Base Helpers */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-snappy);
}

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

.text-center { text-align: center; }
.text-serif { font-family: var(--font-serif); }
.text-accent { color: var(--accent-sage); }
.text-underline { text-decoration: underline; }

/* Ambient Motion Graphics Backgrounds */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.12; /* Delicate background mist */
    pointer-events: none;
    mix-blend-mode: multiply;
    animation: floatBlobs 24s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background-color: var(--accent-sage);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background-color: var(--accent-terracotta);
    top: 50%;
    left: -200px;
    animation-delay: 6s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background-color: var(--accent-ochre);
    bottom: -100px;
    right: 8%;
    animation-delay: 12s;
}

@keyframes floatBlobs {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(60px, -60px) scale(1.08) rotate(120deg); }
    66% { transform: translate(-40px, 30px) scale(0.96) rotate(240deg); }
    100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* Glassmorphism Panel Curation */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle), var(--shadow-elevated);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    box-shadow: 0 24px 60px rgba(110, 95, 75, 0.05);
    border-color: var(--accent-gold);
}

/* Badge System */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-sage);
    background-color: rgba(94, 109, 91, 0.08);
    padding: 8px 18px;
    border-radius: var(--radius-round);
    margin-bottom: 24px;
    border: 1px solid rgba(94, 109, 91, 0.15);
}

/* Section Titles */
.section-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 50px;
}

/* Dynamic Buttons */
.btn-primary, .btn-secondary, .btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: var(--transition-snappy);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background-color: var(--accent-sage);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(94, 109, 91, 0.2);
}

.btn-primary-cta {
    min-width: 245px;
    padding: 14px 28px;
    flex-direction: column;
    gap: 3px;
    border-radius: 14px;
    background: #1C1B1A;
    text-align: center;
}

.btn-primary-cta span {
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
}

.btn-primary-cta small {
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.68);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-snappy);
}

.btn-text:hover {
    color: var(--text-primary);
}

.btn-block {
    width: 100%;
}

/* 3. CENTERED LUXURY HEADER & SPACIOUS NAVIGATION SHIFT */
.main-header {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid rgba(190, 163, 130, 0.15);
    padding: 18px 0 16px;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Top Tier logo row */
.header-top-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-spacer-left {
    display: none;
}

/* Large Serif Branding Centered Rework */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    text-align: center;
}

.logo-mark {
    width: 88px;
    height: 74px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.logo-main {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #95562d;
    line-height: 1;
    text-indent: 0;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #95562d;
    text-indent: 0.5em;
}

.header-action-right {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Dynamic WhatsApp Header Button */
.whatsapp-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #25d366; /* Elegant whatsapp signature green */
    padding: 10px 20px;
    border-radius: var(--radius-round);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    cursor: pointer;
    transition: var(--transition-snappy);
}

.whatsapp-header-btn:hover {
    background-color: #20ba59;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 2100;
}

.mobile-toggle .bar {
    width: 24px;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: var(--transition-snappy);
}

/* Bottom Tier: SHIFTED Navigation Row beneath branding */
.nav-links-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 22px;
    transition: var(--transition-smooth);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    position: relative;
    padding: 5px 0;
}

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

.nav-item.active {
    color: var(--text-primary);
}

.nav-item.active::after {
    width: 100%;
}

.nav-item:hover {
    color: var(--text-primary);
}

/* 4. CONSOLE PANEL TRANSITION & VIEW PANEL STRUCTURE */
.console-view-container {
    flex: 1;
    position: relative;
    width: 100%;
    height: calc(100vh - 180px); /* Restricts viewport height to eliminate general scrolling wiggles */
    background-color: var(--bg-primary);
}

.view-panel {
    display: none;
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    height: 100%;
    overflow-y: auto; /* Allow scrolling *only* inside views containing long visual portfolios */
    padding: 40px 0 100px;
}

.view-panel.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

#view-hero {
    overflow-y: hidden;
    padding: 24px 0 34px;
}

#view-transformation {
    padding-top: 30px;
}

#view-transformation .section-title {
    margin-bottom: 14px;
}

#view-transformation .section-subtitle {
    margin-bottom: 18px !important;
}

/* View inner scrollbar styling */
.view-scrollable::-webkit-scrollbar {
    width: 4px;
}
.view-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.view-scrollable::-webkit-scrollbar-thumb {
    background: rgba(190, 163, 130, 0.3);
    border-radius: 2px;
}

/* 5. HERO LANDING VIEW CONTENT */
.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
    height: 100%;
    min-height: 0;
}

.hero-title {
    font-size: 58px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 16.5px;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
}

.hero-visual {
    position: relative;
}

.luxury-frame {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    overflow: visible;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    aspect-ratio: 4 / 5;
    animation: subtlePan 15s infinite alternate ease-in-out;
}

@keyframes subtlePan {
    0% { transform: scale(1); }
    100% { transform: scale(1.04); }
}

.floating-metric-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    padding: 20px 30px;
    border-radius: var(--radius-md);
    text-align: center;
    animation: floatVertical 6s infinite ease-in-out;
}

.metric-number {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--accent-sage);
    font-weight: 600;
}

.metric-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-top: 4px;
}

@keyframes floatVertical {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* 6. BEFORE & AFTER TRANSFORMATION SLIDER WITH ROOM CHIPS */
.project-selector-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.project-chip {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 12px 26px;
    border-radius: var(--radius-round);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-snappy);
    outline: none;
}

.project-chip:hover {
    border-color: var(--accent-sage);
    color: var(--text-primary);
}

.project-chip.active {
    background-color: var(--accent-sage);
    color: #FFFFFF;
    border-color: var(--accent-sage);
    box-shadow: var(--shadow-button);
}

.room-selector-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.project-view-stage {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1180px;
    margin: 26px auto 0;
    text-align: left;
}

.project-view-stage .room-selector-chips {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    max-width: none;
    margin: 0;
    max-height: min(530px, calc(100vh - 350px));
    overflow-y: auto;
    padding: 2px 6px 2px 2px;
    position: sticky;
    top: 0;
}

.project-view-stage .chip {
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    border-radius: 12px;
    padding: 11px 14px;
    line-height: 1.25;
}

.floor-selector-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.floor-chip {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-round);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-snappy);
    outline: none;
}

.floor-chip:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.floor-chip.active {
    background-color: var(--accent-gold);
    color: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-button);
}

/* Scanner Spinner HUD inside transformations slider */
.slider-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 249, 245, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.slider-loader-overlay.hidden {
    display: none !important;
}

.spinner-circle-small {
    width: 36px;
    height: 36px;
    border: 3px solid var(--accent-sand);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.loader-text-small {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.chip {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: var(--radius-round);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-snappy);
}

.chip:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.chip.active {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
    box-shadow: var(--shadow-button);
}

/* Slider Widget Frame */
.slider-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    border: 1px solid var(--border-color);
}

.slider-container {
    width: 100%;
    height: min(520px, calc(100vh - 390px));
    min-height: 390px;
    position: relative;
    overflow: hidden;
    touch-action: none; /* Stops touch drag shifting mobile page view */
    -webkit-user-select: none;
    user-select: none;
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.before-img {
    z-index: 10;
}

.after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    overflow: hidden;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    will-change: clip-path;
}

.after-img {
    width: 100%;
    height: 100%;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--accent-gold);
    z-index: 30;
    cursor: ew-resize;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    will-change: left;
    touch-action: none;
}

.handle-line {
    width: 1px;
    height: 40%;
    background-color: rgba(255, 255, 255, 0.4);
}

.handle-button {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(28, 27, 26, 0.15);
    border: 2px solid var(--accent-gold);
    transition: var(--transition-snappy);
}

.slider-handle:hover .handle-button {
    background-color: var(--accent-sage);
    transform: scale(1.08);
}

.single-showcase-mode {
    touch-action: auto;
    background-color: #F1EEE8;
}

.single-showcase-mode .after-wrapper {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

.single-showcase-mode .slider-img {
    object-fit: cover;
    background-color: #F1EEE8;
}

.single-showcase-mode .slider-handle,
.single-showcase-mode .tag-before {
    display: none;
}

.single-showcase-mode .tag-after {
    left: 25px;
    right: auto;
    background-color: rgba(255, 255, 255, 0.82);
}

.tag-label {
    position: absolute;
    bottom: 25px;
    padding: 8px 18px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 25;
}

.tag-before {
    left: 25px;
    background-color: rgba(28, 27, 26, 0.65);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tag-after {
    right: 25px;
    background-color: rgba(255, 255, 255, 0.75);
    color: var(--text-primary);
    border: 1px solid rgba(94, 109, 91, 0.2);
}

.transformation-details-container {
    max-width: 900px;
    margin: 30px auto 0;
    text-align: left;
}

.transformation-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.detail-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.detail-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.detail-card-header h4 {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.detail-card-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
}

.before-dot {
    background-color: var(--accent-terracotta);
    box-shadow: 0 0 6px var(--accent-terracotta);
}

.after-dot {
    background-color: var(--accent-sage);
    box-shadow: 0 0 6px var(--accent-sage);
}

.materials-dot {
    background-color: var(--accent-gold);
    box-shadow: 0 0 6px var(--accent-gold);
}

.detail-card-content {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.transformation-ctas {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.whatsapp-trans-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-round);
    background-color: #25d366;
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
    cursor: pointer;
    transition: var(--transition-snappy);
}

.whatsapp-trans-btn:hover {
    background-color: #20ba59;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

/* 7. PORTFOLIO SHOWCASE */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-tab {
    background: none;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-round);
    transition: var(--transition-snappy);
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    will-change: transform;
}

.portfolio-grid .portfolio-item:nth-child(even) {
    margin-top: 40px;
}

.portfolio-image-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    aspect-ratio: 4 / 3.2;
    border: 1px solid var(--border-color);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(28, 27, 26, 0.7) 10%, rgba(28, 27, 26, 0.2) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 35px;
    transition: opacity 0.5s ease-in-out;
}

.portfolio-image-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-meta {
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    color: #FFFFFF;
}

.portfolio-image-card:hover .portfolio-meta {
    transform: translateY(0);
}

.portfolio-year {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent-ochre);
}

.portfolio-item-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin: 5px 0 2px;
}

.portfolio-location {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.portfolio-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: var(--radius-round);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Flagship G+2 Case Study Project Layout */
.portfolio-grid .portfolio-item.flagship-project {
    grid-column: span 2;
    margin-top: 0 !important;
}

.flagship-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    aspect-ratio: auto;
    min-height: 480px;
    height: auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle), var(--shadow-elevated);
    overflow: hidden;
}

.flagship-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flagship-overlay {
    position: relative;
    background: transparent;
    opacity: 1 !important;
    display: flex;
    align-items: center;
    padding: 40px;
}

.flagship-meta {
    transform: none !important;
    color: var(--text-primary);
}

.flagship-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-sage);
    background-color: rgba(94, 109, 91, 0.08);
    padding: 6px 14px;
    border-radius: var(--radius-round);
    margin-bottom: 18px;
    border: 1px solid rgba(94, 109, 91, 0.15);
}

.flagship-meta .portfolio-year {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.flagship-meta .portfolio-item-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    margin: 5px 0 8px;
    color: var(--text-primary);
}

.flagship-meta .portfolio-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.flagship-meta .portfolio-scope {
    font-size: 13.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.flagship-meta .portfolio-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

.flagship-ctas {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .flagship-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }
    
    .flagship-img {
        height: 280px;
    }
}

.flagship-ctas .btn-primary {
    padding: 12px 24px;
    font-size: 13px;
}

.flagship-ctas .whatsapp-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-round);
    background-color: #25d366;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.15);
    transition: var(--transition-snappy);
}

.flagship-ctas .whatsapp-cta-btn:hover {
    background-color: #20ba59;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.25);
}

/* 8. STYLE QUIZ SYSTEM */
.quiz-card-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 50px;
    border-radius: var(--radius-lg);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.step-progress-bar {
    width: 75%;
    height: 4px;
    background-color: var(--accent-sand);
    border-radius: var(--radius-round);
    position: relative;
    overflow: hidden;
}

.step-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background-color: var(--accent-sage);
    transition: var(--transition-smooth);
}

.step-counter {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.quiz-question-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 35px;
    color: var(--text-primary);
}

.quiz-choices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.quiz-choice-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-snappy);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-subtle);
}

.quiz-choice-card:hover {
    border-color: var(--accent-sage);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(110, 95, 75, 0.02);
}

.quiz-choice-card.selected {
    border-color: var(--text-primary);
    background-color: rgba(94, 109, 91, 0.05);
    box-shadow: 0 8px 20px rgba(28, 27, 26, 0.03);
}

.choice-bullet-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.quiz-choice-card.selected .choice-bullet-indicator::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--text-primary);
}

.choice-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.choice-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Quiz Results Details */
.results-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    animation: fadeIn 0.8s ease;
}

.badge-results {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-terracotta);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.results-archetype {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 30px;
}

.aesthetic-stats {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-row {
    display: grid;
    grid-template-columns: 140px 1fr 45px;
    align-items: center;
    gap: 15px;
}

.stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-bar-track {
    height: 6px;
    background-color: var(--accent-sand);
    border-radius: var(--radius-round);
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: var(--radius-round);
    background-color: var(--accent-sage);
    transition: width 1.5s ease-out;
}

.stat-pct {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
}

#barBiophilic { background-color: var(--accent-terracotta); }
#barMinimalist { background-color: var(--accent-gold); }

.results-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.results-action-row {
    display: flex;
    align-items: center;
    gap: 25px;
}

.results-visuals {
    border-left: 1px solid var(--border-color);
    padding-left: 50px;
}

.results-visuals .sub-heading {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 30px;
}

.toolkit-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.material-toolkit {
    margin-bottom: 35px;
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.material-tag {
    font-size: 13px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-round);
    color: var(--text-secondary);
}

.swatches-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.color-swatch-pill {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-snappy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-swatch-pill:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.color-swatch-pill .checkmark-tick {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.color-swatch-pill.active .checkmark-tick {
    transform: translate(-50%, -50%) scale(1);
}

/* Light swatch color adjustments for EWC dark ticks contrast */
.color-swatch-pill[style*="background-color: rgb(250, 248, 245)"] .checkmark-tick,
.color-swatch-pill[style*="background-color: rgb(250, 245, 240)"] .checkmark-tick,
.color-swatch-pill[style*="background-color: rgb(246, 248, 245)"] .checkmark-tick,
.color-swatch-pill[style*="background-color: rgb(255, 255, 255)"] .checkmark-tick,
.color-swatch-pill[style*="background-color: rgb(249, 249, 249)"] .checkmark-tick,
.color-swatch-pill[style*="#FAF8F5"] .checkmark-tick,
.color-swatch-pill[style*="#FAF5F0"] .checkmark-tick,
.color-swatch-pill[style*="#F6F8F5"] .checkmark-tick,
.color-swatch-pill[style*="#FFFFFF"] .checkmark-tick,
.color-swatch-pill[style*="#F9F9F9"] .checkmark-tick {
    color: var(--text-primary) !important;
}

.swatch-help-text {
    font-size: 11px;
    color: var(--text-light);
}

/* Luxury Top Floating Toast Bubble */
.luxury-toast {
    position: fixed;
    top: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(-25px);
    background-color: var(--text-primary);
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: var(--radius-round);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.16);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.luxury-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 9. AI SPACE VISUALIZER */
.visualizer-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px;
    border-radius: var(--radius-lg);
}

.visualizer-canvas-frame {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-color);
    aspect-ratio: 4 / 3;
}

.canvas-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.canvas-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.color-blend-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: background-color 0.8s ease, opacity 0.8s ease;
}

.visualizer-hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.visualizer-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 249, 245, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 50;
    gap: 15px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.spinner-circle {
    width: 44px;
    height: 44px;
    border: 3.5px solid var(--accent-sand);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.loader-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hud-scanning-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    animation: scanVertical 4s infinite linear;
}

.visualizer-container:hover .hud-scanning-line {
    opacity: 0.6;
}

@keyframes scanVertical {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

.hud-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(28, 27, 26, 0.7);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hud-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #55efc4;
    display: inline-block;
    box-shadow: 0 0 8px #55efc4;
    animation: pulseGlow 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.visualizer-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
}

.controls-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 5px;
}

.control-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 12px;
}

.room-selector-buttons {
    display: flex;
    gap: 10px;
}

.room-btn {
    flex: 1;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-snappy);
}

.room-btn:hover {
    border-color: var(--accent-sage);
}

.room-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.upload-dropzone {
    border: 1.5px dashed var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-snappy);
    position: relative;
}

.upload-dropzone:hover {
    border-color: var(--accent-sage);
    background-color: rgba(149, 86, 45, 0.04);
}

.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    color: var(--text-light);
    margin-bottom: 10px;
    transition: var(--transition-snappy);
}

.upload-dropzone:hover .upload-icon {
    color: var(--accent-sage);
    transform: translateY(-2px);
}

.upload-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.upload-subtext {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
}

.upload-feedback {
    background-color: rgba(85, 239, 196, 0.08);
    border: 1px solid rgba(85, 239, 196, 0.25);
    color: #1e272e;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 10. TIMELINE JOURNEY */
.timeline-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    margin-top: 46px;
}

.timeline-container::before {
    display: none;
}

.timeline-step {
    position: relative;
    z-index: 5;
    min-height: 245px;
    padding: 26px 22px 22px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-subtle);
}

.timeline-step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 48px;
    width: 30px;
    height: 30px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transform: rotate(45deg);
    background: var(--bg-primary);
    z-index: 2;
}

.step-num {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition-smooth);
    color: #95562d;
}

.timeline-step:hover .step-num {
    border-color: var(--text-primary);
    background-color: var(--accent-sand);
    transform: scale(1.05);
}

.step-title {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 11. DOCKED PERMANENT FOOTER */
.docked-footer {
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(190, 163, 130, 0.15);
    background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,249,245,0.96));
    padding: 16px 40px;
    z-index: 10;
}

.docked-footer .footer-layout {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo-mark {
    width: 42px;
    height: 42px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #95562d;
}

.footer-credits {
    font-size: 9px;
    color: #95562d;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.34em;
}

.footer-contact-details {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-icon-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.72);
    color: #95562d;
    transition: var(--transition-snappy);
}

.footer-icon-link:hover {
    transform: translateY(-2px);
    border-color: #95562d;
}

.whatsapp-footer-icon {
    color: #25d366;
}

.footer-social-handles {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-social-handles a:hover {
    color: var(--accent-terracotta);
}

/* 12. FLOATING DOCKED CONSULTATION CHATBOX WIDGET */
.chatbox-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chatbox-toggle-btn {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(28, 27, 26, 0.2);
    position: relative;
    transition: var(--transition-smooth);
}

.chatbox-toggle-btn:hover {
    background-color: var(--accent-sage);
    transform: scale(1.05);
}

.chatbox-toggle-btn .chat-open-icon,
.chatbox-toggle-btn .chat-close-icon {
    transition: var(--transition-snappy);
}

/* Portal Card Panel */
.chatbox-panel {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 360px;
    max-height: 520px;
    overflow-y: auto;
    padding: 30px;
    border-radius: var(--radius-md);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbox-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.chatbox-logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    display: block;
}

.chatbox-status {
    font-size: 11px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.pulse-green {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #2ecc71;
    display: inline-block;
    box-shadow: 0 0 6px #2ecc71;
    animation: pulseGlow 1.5s infinite;
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 15px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition-snappy);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--text-primary);
}

/* Live validation classes */
.form-group input.user-valid,
.form-group select.user-valid,
.form-group textarea.user-valid {
    border-color: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.15);
}

.form-group input.user-invalid,
.form-group select.user-invalid,
.form-group textarea.user-invalid {
    border-color: var(--accent-terracotta);
    box-shadow: 0 0 8px rgba(214, 162, 142, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 10px;
}

.whatsapp-alternative {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 5px;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.whatsapp-chat-link {
    font-weight: 700;
    color: #25d366;
    display: block;
    margin-top: 3px;
}

.whatsapp-chat-link:hover {
    color: #20ba59;
}

.ai-status-pill {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-round);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: var(--transition-snappy);
    width: 100%;
}

.ai-status-pill .status-indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-terracotta);
    display: inline-block;
}

.ai-status-pill.loading .status-indicator {
    background-color: #ffe066;
    animation: blinkIndicator 1.5s infinite;
}

.ai-status-pill.connected {
    border-color: var(--accent-sage);
    background-color: rgba(94, 109, 91, 0.06);
    color: var(--text-primary);
}

.ai-status-pill.connected .status-indicator {
    background-color: var(--accent-sage);
}

/* Contact form panel positioning context for absolute overlay */
.contact-form-panel {
    position: relative;
    overflow: hidden;
}

/* Success form panels */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-secondary);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    animation: fadeIn 0.5s ease forwards;
}

.success-icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.success-title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 10px;
}

.success-msg {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Project Inquiry Upgrade */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
    gap: 46px;
    align-items: start;
    max-width: 1180px;
    margin: 0 auto;
}

.contact-info-panel {
    padding: 26px 0;
}

.contact-title {
    font-size: 44px;
    font-weight: 400;
    line-height: 1.08;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.contact-lead-text {
    max-width: 520px;
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.project-intake-visual {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 28px 0;
    align-items: stretch;
}

.intake-card {
    position: relative;
    padding: 62px 18px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow-subtle);
}

.intake-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 50%;
    width: 22px;
    height: 1px;
    background: var(--border-color);
}

.intake-card:not(:last-child)::before {
    content: "";
    position: absolute;
    right: -19px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.intake-card.active {
    background: #1C1B1A;
    color: #FFFFFF;
    border-color: #1C1B1A;
}

.intake-number {
    position: absolute;
    left: 18px;
    top: 18px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(94, 109, 91, 0.12);
    color: var(--accent-sage);
}

.intake-card.active .intake-number {
    background: rgba(255, 255, 255, 0.12);
    color: var(--accent-ochre);
}

.intake-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.intake-card p {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.intake-card.active p {
    color: rgba(255, 255, 255, 0.72);
}

.contact-channels {
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.channel-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(94, 109, 91, 0.08);
    color: var(--accent-sage);
}

.instagram-qr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.qr-card {
    padding: 18px;
}

.qr-title {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.qr-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qr-accent-border {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--accent-sage);
    background: #FFFFFF;
}

.qr-handle {
    font-size: 11px;
    font-weight: 650;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.contact-form-panel {
    padding: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(246, 242, 235, 0.86)),
        var(--glass-bg);
}

.form-panel-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-kicker {
    display: block;
    font-size: 10.5px;
    font-weight: 750;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-sage);
    margin-bottom: 8px;
}

.form-panel-header h3 {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.18;
    margin-bottom: 8px;
}

.form-panel-header p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Smart Design Assistant */
.design-assistant-widget {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 2200;
    font-family: var(--font-sans);
}

.assistant-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 58px;
    height: 58px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #1C1B1A;
    color: #FFFFFF;
    box-shadow: 0 16px 40px rgba(28, 27, 26, 0.22);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-snappy);
}

.assistant-toggle > span:last-child {
    display: none;
}

.assistant-toggle:hover {
    transform: translateY(-2px);
    background: var(--accent-sage);
}

.assistant-toggle strong,
.assistant-toggle small {
    display: block;
    line-height: 1.15;
}

.assistant-toggle strong {
    font-size: 13px;
}

.assistant-toggle small {
    margin-top: 3px;
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.72);
}

.assistant-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2eadf url("assets/interior-veydaa-mark.png") center / 118% no-repeat;
    box-shadow: 0 0 0 7px rgba(224, 207, 169, 0.18);
    position: relative;
    overflow: hidden;
}

.assistant-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1C1B1A;
    font-size: 11px;
    font-weight: 800;
}

.assistant-panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(410px, calc(100vw - 32px));
    max-height: min(650px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(250, 249, 245, 0.98);
    box-shadow: 0 24px 70px rgba(28, 27, 26, 0.18);
}

.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    background: #1C1B1A;
    color: #FFFFFF;
}

.assistant-header strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
}

.assistant-kicker {
    display: block;
    font-size: 9.5px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ochre);
    margin-bottom: 4px;
}

.assistant-close {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: transparent;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.assistant-messages {
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.assistant-message {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-line;
}

.assistant-message.bot {
    align-self: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.assistant-message.user {
    align-self: flex-end;
    background: var(--accent-sage);
    color: #FFFFFF;
}

.assistant-suggestions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px 14px;
}

.assistant-suggestions button {
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 650;
    color: var(--text-secondary);
    cursor: pointer;
}

.assistant-suggestions button:hover,
.assistant-suggestions button:focus-visible {
    border-color: #95562d;
    color: #95562d;
    transform: translateY(-1px);
}

.assistant-suggestions button.primary-chip {
    background: #1C1B1A;
    border-color: #1C1B1A;
    color: #FFFFFF;
}

.assistant-input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: #FFFFFF;
}

.assistant-input-row input {
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 11px 13px;
    font-family: var(--font-sans);
    font-size: 13px;
    outline: none;
}

.assistant-input-row input:focus {
    border-color: var(--accent-sage);
}

.assistant-input-row button,
.assistant-brief-btn {
    border: none;
    border-radius: 999px;
    background: #1C1B1A;
    color: #FFFFFF;
    padding: 11px 15px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.assistant-brief-btn {
    margin: 0 16px 16px;
    background: var(--accent-sage);
}

.floating-whatsapp-widget {
    position: fixed;
    left: 28px;
    bottom: 28px;
    z-index: 2150;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #FFFFFF;
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.25);
}

.floating-whatsapp-widget .pulse-ring {
    position: absolute;
    inset: -7px;
    border: 1px solid rgba(37, 211, 102, 0.36);
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}

/* 13. RESPONSIVE MEDIA CONSTRAINTS */

@media (max-width: 1200px) {
    .hero-title { font-size: 52px; }
    .section-title { font-size: 36px; }
    .hero-container { gap: 40px; }
    .logo-main { font-size: 30px; }
}

@media (max-width: 991px) {
    html, body {
        height: auto;
        max-height: none;
        overflow-y: auto;
        overflow-x: hidden; /* ABSOLUTELY BLOCKS MOBILE SWIPE SHIFTS! */
    }
    
    body.menu-open {
        overflow: hidden !important;
        touch-action: none;
    }
    
    .console-view-container {
        height: auto;
        flex: none;
        overflow-x: hidden;
        padding-top: 160px;
    }
    
    .view-panel {
        display: none !important;
        opacity: 0 !important;
        transform: none !important;
        height: auto !important;
        overflow-y: visible !important;
        padding: 44px 0 70px;
        border-bottom: 1px solid var(--border-color);
        overflow-x: hidden;
    }

    .view-panel.active {
        display: block !important;
        opacity: 1 !important;
    }
    
    .main-header {
        position: fixed;
        background: rgba(250, 249, 245, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px 0;
    }
    
    .main-header.scrolled {
        padding: 15px 0;
    }
    
    .header-spacer-left { display: none; }
    .nav-links-wrapper {
        display: block !important;
        width: auto;
        margin-top: 0;
    }
    .mobile-toggle { display: flex; }
    
    .nav-btn-desktop { display: none; }
    /* Mobile Drawer slide */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-secondary);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.05);
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        z-index: 2000;
        padding: 40px;
        border-left: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateX(0);
        pointer-events: auto;
    }
    
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding-top: 0;
    }
    
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-cta-group { justify-content: center; }
    .floating-metric-card { left: 20px; }

    .view-panel .badge {
        display: none;
    }
    
    .slider-container { height: 420px; }

    .project-view-stage {
        display: block;
        max-width: 900px;
        margin-top: 22px;
        text-align: center;
    }

    .project-view-stage .room-selector-chips {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        margin: 0 0 18px;
        padding: 2px 4px 10px;
        position: static;
        scrollbar-width: thin;
    }

    .project-view-stage .chip {
        width: auto;
        flex: 0 0 auto;
        text-align: center;
        justify-content: center;
        border-radius: var(--radius-round);
        padding: 9px 16px;
    }
    
    .quiz-card-container { padding: 30px; }
    .results-layout { grid-template-columns: 1fr; gap: 40px; }
    .results-visuals { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 30px; }
    
    .visualizer-container { grid-template-columns: 1fr; }
    .portfolio-grid { gap: 30px; }
    .transformation-details-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .contact-info-panel {
        padding: 0;
    }
    .contact-title {
        font-size: 34px;
    }
    .contact-form-panel {
        padding: 22px;
    }
    
    .timeline-container { grid-template-columns: 1fr; gap: 18px; }
    .timeline-step {
        min-height: auto;
        padding: 22px 20px 22px 90px;
    }
    .timeline-step:not(:last-child)::after {
        right: auto;
        left: 44px;
        top: auto;
        bottom: -16px;
        transform: rotate(135deg);
        width: 22px;
        height: 22px;
    }
    .step-num {
        width: 54px;
        height: 54px;
        position: absolute;
        left: 20px;
        top: 22px;
        margin: 0;
    }
    
    .docked-footer .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
    .footer-social-handles {
        justify-content: center;
    }
    
    .chatbox-panel {
        width: calc(100vw - 60px);
        max-width: 360px;
    }

    .design-assistant-widget {
        right: 18px;
        bottom: 18px;
    }

    .assistant-toggle {
        width: 54px;
        height: 54px;
    }

    .assistant-toggle small {
        display: none;
    }

    .assistant-panel {
        right: 0;
        bottom: 70px;
        width: calc(100vw - 36px);
        max-height: calc(100vh - 100px);
    }

    .floating-whatsapp-widget {
        left: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 768px) {
    .logo-main {
        font-size: 24px;
        letter-spacing: 0.22em;
        text-indent: 0.22em;
    }
    .logo-sub {
        font-size: 8px;
        letter-spacing: 0.35em;
        text-indent: 0.35em;
    }
    .project-intake-visual {
        grid-template-columns: 1fr;
    }
    .intake-card:not(:last-child)::before,
    .intake-card:not(:last-child)::after {
        display: none;
    }
    .portfolio-grid { grid-template-columns: 1fr; }
    .portfolio-grid .portfolio-item:nth-child(even) { margin-top: 0; }
    
    .slider-container { height: 320px; }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .hero-title { font-size: 36px; }
    .hero-cta-group { flex-direction: column; gap: 12px; }
    .section-title { font-size: 28px; }
    .slider-container { height: 260px; }
    .chip { padding: 8px 16px; font-size: 11.5px; }
    .form-submit-row { flex-direction: column; gap: 12px; }
    .instagram-qr-grid {
        grid-template-columns: 1fr;
    }
    .project-intake-visual {
        margin: 22px 0;
    }
    .intake-card {
        padding: 16px 16px 16px 62px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .assistant-suggestions {
        gap: 7px;
        max-height: 118px;
        overflow-y: auto;
    }

    .assistant-suggestions button {
        font-size: 10.5px;
        padding: 8px 10px;
    }
}

/* Custom Form Submit Row with WhatsApp CTA */
.form-submit-row {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}
.whatsapp-form-btn {
    flex: 1;
    border-color: #25d366 !important;
    color: #25d366 !important;
    font-weight: 600;
}
.whatsapp-form-btn:hover {
    background-color: rgba(37, 211, 102, 0.05) !important;
    border-color: #20ba59 !important;
    color: #20ba59 !important;
}
