/* ==========================================================================
   THE EL DESIGN HOUSE — LUXURY ARCHITECTURAL DESIGN SYSTEM
   "Where Art, Function and Life Meet."
   ========================================================================== */

:root {
  /* Core Dark Luxury Palette */
  --color-noir: #09090b;
  --color-surface: #111115;
  --color-surface-elevated: #17171e;
  --color-surface-card: #131318;
  --color-border-subtle: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(197, 160, 89, 0.45);
  
  /* Brand Champagne Gold & Bronze */
  --color-gold: #c5a059;
  --color-gold-light: #e5cb93;
  --color-gold-dark: #947435;
  --color-gold-glow: rgba(197, 160, 89, 0.22);
  
  /* Typography & Accent Text */
  --color-platinum: #f5f2eb;
  --color-muted: #8e8d94;
  --color-muted-light: #b3b2b8;

  /* Typography Fonts */
  --font-times: 'Times New Roman', Times, 'Cormorant Garamond', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-cormorant: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  /* Shadows & Glassmorphism */
  --glass-bg: rgba(17, 17, 21, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-luxe: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 35px rgba(197, 160, 89, 0.18);

  /* Spacing */
  --section-padding: 7.5rem 0;
  --container-max-width: 1360px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-noir);
  color: var(--color-platinum);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-noir);
  color: var(--color-platinum);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

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

/* Custom Luxury Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--color-noir);
}
::-webkit-scrollbar-thumb {
  background: #2a2a35;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Typography Utilities */
.font-times { font-family: var(--font-times); }
.font-cinzel { font-family: var(--font-cinzel); }
.font-cormorant { font-family: var(--font-cormorant); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

.hero-title {
  font-family: var(--font-times) !important;
  color: #ffffff !important;
  letter-spacing: 0.16em !important;
}

.text-gold { color: var(--color-gold); }
.text-platinum { color: var(--color-platinum); }
.text-muted { color: var(--color-muted); }
.bg-noir { background-color: var(--color-noir); }
.bg-surface { background-color: var(--color-surface); }
.bg-surface-elevated { background-color: var(--color-surface-elevated); }
.border-border-subtle { border-color: var(--color-border-subtle); }

/* Ambient Lighting Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #c5a059 0%, transparent 70%);
}

.glow-2 {
  top: 45%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, #7e632b 0%, transparent 70%);
}

.glow-3 {
  bottom: -10%;
  left: 20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #c5a059 0%, transparent 70%);
}

/* Layout Utilities */
.container-wide {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
}

.section-padding {
  padding: 6.5rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 4.5rem 0;
  }
}

/* ==========================================================================
   NAVIGATION & HEADER
   ========================================================================== */

.site-header {
  background: rgba(9, 9, 11, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.92);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  height: 80px;
}

.nav-link {
  font-family: var(--font-cinzel);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #b8b7be;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--color-gold);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.mobile-nav-link {
  font-family: var(--font-cinzel);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #c9c8ce;
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--color-gold);
  padding-left: 0.5rem;
}

/* ==========================================================================
   LUXURY BUTTONS & BADGES
   ========================================================================== */

.btn-luxe-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.85rem;
  font-family: var(--font-cinzel);
  font-size: 0.78125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #09090b;
  background: linear-gradient(135deg, #e8ce96 0%, #c5a059 50%, #b28a3f 100%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-luxe-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.6s;
}

.btn-luxe-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197, 160, 89, 0.45);
  color: #000;
}

.btn-luxe-gold:hover::before {
  left: 100%;
}

.btn-luxe-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.85rem;
  font-family: var(--font-cinzel);
  font-size: 0.78125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-platinum);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-luxe-outline:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.75rem;
  color: #cfced5;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.pill-badge:hover {
  border-color: var(--color-gold);
  color: var(--color-platinum);
}

.badge-tag {
  font-family: var(--font-cinzel);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-platinum);
}

.social-icon-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  min-height: 100vh;
}

.hero-overlay {
  background: linear-gradient(
    180deg, 
    rgba(9, 9, 11, 0.75) 0%, 
    rgba(9, 9, 11, 0.5) 45%, 
    rgba(9, 9, 11, 0.95) 90%, 
    #09090b 100%
  );
}

.hero-blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(197, 160, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 160, 89, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.text-stroke-gold {
  -webkit-text-stroke: 1px #c5a059;
  color: transparent;
  text-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
}

.metric-card {
  display: flex;
  flex-col: column;
  align-items: center;
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.animate-slow-zoom {
  animation: slowZoom 25s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.animate-scroll-bounce {
  animation: scrollBounce 2s infinite ease-in-out;
}

/* ==========================================================================
   PROCESS CARDS
   ========================================================================== */

.process-card {
  min-height: 380px;
  background: linear-gradient(180deg, rgba(23, 23, 30, 0.7) 0%, rgba(17, 17, 21, 0.5) 100%);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.12);
}

.process-watermark {
  position: absolute;
  bottom: -20px;
  right: 0px;
  font-size: 8rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  user-select: none;
  transition: color 0.4s ease;
}

.process-card:hover .process-watermark {
  color: rgba(197, 160, 89, 0.07);
}

/* ==========================================================================
   PORTFOLIO & WORKS
   ========================================================================== */

.portfolio-filter-tabs {
  gap: 0.35rem;
}

.filter-tab {
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: transparent;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  opacity: 0.6;
}

.filter-tab.active {
  background: var(--color-gold);
  color: #09090b;
  font-weight: 700;
}

.filter-tab.active .filter-count {
  opacity: 0.9;
}

.project-card {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.1) 0%, rgba(9, 9, 11, 0.85) 100%);
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 0.85;
}

.project-hover-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.project-card:hover .project-hover-action {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.btn-quick-view {
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-gold);
  color: var(--color-platinum);
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-cinzel);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-quick-view:hover {
  background: var(--color-gold);
  color: #09090b;
  font-weight: 600;
}

/* ==========================================================================
   BEFORE & AFTER INTERACTIVE SLIDER
   ========================================================================== */

.before-after-container {
  touch-action: none;
  background: #000;
  max-height: 580px;
}

.before-after-container img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .before-after-container img {
    height: 360px;
  }
}

.before-image-wrap {
  width: 50%;
  border-right: 1px solid rgba(197, 160, 89, 0.5);
}

.slider-handle {
  left: 50%;
  width: 40px;
  transform: translateX(-50%);
}

.slider-badge {
  position: absolute;
  top: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-platinum);
  z-index: 10;
  pointer-events: none;
}

.before-badge { left: 1.25rem; }
.after-badge { right: 1.25rem; }

/* ==========================================================================
   SCOPE ESTIMATOR & CALCULATOR
   ========================================================================== */

.calc-btn {
  padding: 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-muted-light);
  font-family: var(--font-cinzel);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calc-btn:hover {
  border-color: rgba(197, 160, 89, 0.4);
  color: var(--color-platinum);
}

.calc-btn.active {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--color-gold);
  color: var(--color-platinum);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
}

.custom-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: #23232c;
  outline: none;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  border: 3px solid #09090b;
  box-shadow: 0 0 12px rgba(197, 160, 89, 0.6);
  transition: transform 0.2s ease;
}

.custom-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

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

.form-label {
  font-family: var(--font-cinzel);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c0bfc7;
  margin-bottom: 0.45rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--color-platinum);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-gold);
  background: #16161c;
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.form-input::placeholder {
  color: #5d5c64;
}

select.form-input option {
  background-color: #121217;
  color: #f4f2eb;
}

/* ==========================================================================
   REVIEWS & TESTIMONIALS
   ========================================================================== */

.review-card {
  background: linear-gradient(180deg, rgba(23, 23, 30, 0.65) 0%, rgba(17, 17, 21, 0.5) 100%);
  border: 1px solid var(--color-border-subtle);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.review-quote-mark {
  font-family: var(--font-cormorant);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(197, 160, 89, 0.25);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #252530;
  border: 1px solid rgba(197, 160, 89, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-cinzel);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gold);
}

/* Star rating interactivity in modal */
.star-item {
  transition: transform 0.2s ease, color 0.2s ease;
}

.star-item:hover {
  transform: scale(1.2);
}

/* ==========================================================================
   MODALS
   ========================================================================== */

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-item {
  background: #15151c;
  border: 1px solid var(--color-gold);
  color: var(--color-platinum);
  padding: 0.9rem 1.4rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(197, 160, 89, 0.2);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  pointer-events: auto;
  animation: slideToast 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
