/* ==========================================================================
   Luxury Persian Legal Design System
   Stack: Vanilla CSS, Glassmorphism, 3D WebGL Integration, RTL Typography
   ========================================================================== */

:root {
  --bg-dark: #070b19;
  --bg-alt: #0b1126;
  --bg-card: rgba(13, 20, 41, 0.75);
  --bg-card-hover: rgba(22, 33, 63, 0.85);
  
  --gold-primary: #d4af37;
  --gold-light: #f5e5c9;
  --gold-dark: #a6841c;
  --gold-glow: rgba(212, 175, 55, 0.35);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-blue: #3b82f6;
  
  --border-glass: rgba(212, 175, 55, 0.18);
  --border-glass-hover: rgba(212, 175, 55, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-lux: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.1);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.4);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

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

::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-dark);
}

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

/* Custom Magnetic Cursor & 3D Interactive Feedback */
.cursor-dot,
.cursor-outline,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-primary);
}

.cursor-outline,
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold-glow);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  transition: transform 0.15s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.cursor-outline.magnetic-active,
.cursor-ring.magnetic-active {
  width: 64px;
  height: 64px;
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.cursor-dot.magnetic-active {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: var(--gold-light);
}

body:hover .cursor-dot,
body:hover .cursor-outline,
body:hover .cursor-ring {
  opacity: 1;
}

/* Helper Utilities */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.padding-y {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.bg-alt {
  background-color: var(--bg-alt);
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Typography & Colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 40%, var(--gold-primary) 80%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Gold Foil Text Effect */
.gold-foil-text {
  background: linear-gradient(135deg, #FFF6D6 0%, #F3E0A2 25%, #D4AF37 50%, #AA7C11 75%, #FFF6D6 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s linear infinite;
  filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.3));
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(1.4rem, 3.5vw + 0.5rem, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.section-line {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-primary), transparent);
  margin: 1rem auto 2.5rem;
  border-radius: var(--radius-full);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

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

.align-center {
  align-items: center;
}

.gap-large {
  gap: 4rem;
}

/* Glassmorphism & Marble Cards Components */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lux), inset 0 0 20px rgba(255, 255, 255, 0.05);
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.marble-card {
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 70%),
              linear-gradient(135deg, rgba(13, 20, 41, 0.85) 0%, rgba(22, 33, 63, 0.75) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.marble-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(245, 229, 201, 0.04) 0%, transparent 40%),
                    radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: skewX(-25deg);
  transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.glass-card:hover::before {
  left: 200%;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-lux), var(--shadow-glow), 0 20px 40px rgba(0,0,0,0.8);
}

/* Gold Border Pulse Animation for Scroll Highlights */
.gold-border-highlight {
  border-color: var(--gold-primary) !important;
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.5), inset 0 0 15px rgba(212, 175, 55, 0.2) !important;
  animation: goldBorderPulse 2s infinite alternate;
}

@keyframes goldBorderPulse {
  0% { border-color: rgba(212, 175, 55, 0.4); box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); }
  100% { border-color: rgba(212, 175, 55, 0.9); box-shadow: 0 0 35px rgba(212, 175, 55, 0.6); }
}

/* Badge Highlight Animations */
.badge-glow {
  position: relative;
  background: rgba(13, 20, 41, 0.85);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
  animation: badgeGlowPulse 3s infinite alternate;
}

@keyframes badgeGlowPulse {
  0% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.2); }
  100% { box-shadow: 0 0 28px rgba(212, 175, 55, 0.6); }
}

.glass-header {
  background: rgba(7, 11, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  font-family: inherit;
}

.btn-primary.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--gold-dark) 100%);
  color: #070b19;
  box-shadow: 0 10px 25px -5px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(212, 175, 55, 0.6);
  filter: brightness(1.1);
}

.btn-secondary.glass-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary.glass-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

.pulse-glow {
  animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  }
  100% {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.6rem 0;
  background: rgba(7, 11, 25, 0.95);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070b19;
  box-shadow: 0 0 15px var(--gold-glow);
}

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

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.brand-title {
  font-size: 0.75rem;
  color: var(--gold-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link i {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.12);
}

.nav-link.active {
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 2px;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  border-radius: 2px;
}

.highlight-link {
  color: var(--gold-primary);
  border: 1px dashed var(--border-glass-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--gold-glow);
  color: var(--text-main);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section & 3D Canvas */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(7, 11, 25, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.webgl-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#hero3dCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 20, 41, 0.8);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge i {
  color: var(--gold-primary);
}

.hero-title {
  font-size: clamp(1.75rem, 5vw + 0.5rem, 4.5rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.hero-stats {
  max-width: 850px;
  margin: 0 auto;
}

.stat-card {
  padding: 1.8rem;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 0.3rem;
  font-family: inherit;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* Legal Ticker */
.legal-ticker-container {
  background: rgba(212, 175, 55, 0.08);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  white-space: nowrap;
  font-size: 0.9rem;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  white-space: nowrap;
  animation: tickerSlide 25s linear infinite;
}

.ticker-item {
  color: var(--text-muted);
  font-size: 0.9rem;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
/* Timeline Section */
.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, var(--gold-primary) 50%, rgba(212, 175, 55, 0.1) 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 15px var(--gold-glow);
}

.timeline-item {
  position: relative;
  width: 50%;
  margin-bottom: 3rem;
  padding: 0 2.5rem;
}

.timeline-item.left {
  left: 0;
  text-align: center !important;
}

.timeline-item.right {
  left: 50%;
  text-align: center !important;
}

.timeline-dot {
  position: absolute;
  top: 1.5rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 15px var(--gold-primary);
  z-index: 5;
}

.timeline-item.left .timeline-dot {
  right: -9px;
}

.timeline-item.right .timeline-dot {
  left: -9px;
}

.timeline-content {
  padding: 2.5rem 4.5rem !important; /* Large 4.5rem (72px) padding on right & left so text is completely clear of rounded corners */
  border-radius: 18px !important; /* Balanced corner curvature so it does not clip content */
  margin-bottom: 1.5rem;
  text-align: center !important;
}

.timeline-content h3 {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-right: 0.75rem !important; /* Inner safety offset from right border */
  padding-left: 0.75rem !important;
  text-align: center !important;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin: 0;
  padding-right: 0.75rem !important; /* Inner safety offset from right border */
  padding-left: 0.75rem !important;
  text-align: center !important;
}

/* Biography & About */
.about-image-wrapper {
  position: relative;
}

.image-frame {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lawyer-avatar-container {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-alt);
}

.lawyer-avatar-svg {
  width: 100%;
  height: auto;
  display: block;
}

.experience-badge {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  background: rgba(7, 11, 25, 0.95);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lux);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.badge-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bio-heading {
  font-size: clamp(1.3rem, 2.5vw + 0.5rem, 2rem);
  margin-bottom: 1.2rem;
  color: var(--gold-light);
}

.bio-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.qualifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.qual-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.qual-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.qual-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.qual-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Practice Areas Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(212, 175, 55, 0.05));
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag-sm {
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-link {
  color: var(--gold-primary);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
  gap: 0.8rem;
}

/* Estimator & Wizard */
.estimator-card {
  padding: 3rem;
}

.estimator-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.estimator-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #070b19;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--gold-glow);
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  background: var(--bg-dark);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.step.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.step.active span {
  background: var(--gold-primary);
  color: #070b19;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.option-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.option-card:hover, .option-card.selected {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-3px);
}

.option-card i {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
}

.range-selector {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.range-selector label {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.range-selector input[type=range] {
  width: 100%;
  accent-color: var(--gold-primary);
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.8rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.urgency-toggle {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1.2rem 1.8rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.urgency-toggle label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  color: #fca5a5;
  font-weight: 500;
}

.wizard-nav-btns {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.estimate-result-box {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

/* Articles & Knowledge Base */
.filter-controls {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 1.05rem;
  width: 100%;
  font-family: inherit;
}

.filter-tabs {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.tab-btn:hover, .tab-btn.active {
  background: var(--gold-primary);
  color: #070b19;
  font-weight: 600;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.article-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.article-category {
  font-size: 0.8rem;
  color: var(--gold-primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-snippet {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Booking Form */
.booking-form-card, .office-info-card {
  padding: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(7, 11, 25, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

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

.consult-type-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
}

.radio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 1rem 0.6rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  transition: all var(--transition-fast);
}

.radio-card input {
  display: none;
}

.radio-card.active, .radio-card:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item i {
  width: 24px;
  height: 24px;
  color: var(--gold-primary);
}

.contact-item a {
  color: var(--gold-light);
  text-decoration: none;
}

.map-preview-box {
  height: 180px;
  background: radial-gradient(circle, #162447 0%, #070b19 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
}

.map-pin-anim {
  width: 32px;
  height: 32px;
  color: var(--gold-primary);
  animation: mapPinBounce 1.5s infinite alternate;
}

@keyframes mapPinBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  position: relative;
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  -webkit-overflow-scrolling: touch;
}

.modal-content h2, .modal-content .modal-header {
  padding-left: 2.5rem;
}

.wide-modal {
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-icon {
  font-size: 3.5rem;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
}

.receipt-code-box {
  background: rgba(212, 175, 55, 0.15);
  border: 1px dashed var(--gold-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 1.2rem;
}

/* Footer */
.footer {
  background: #040711;
  border-top: 1px solid var(--border-glass);
}

.footer-grid {
  margin-bottom: 4rem;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 1.2rem 0;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--gold-primary);
  color: #070b19;
}

.footer-col h4 {
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.8rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
  
  .hamburger-btn {
    display: block;
  }

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

@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-menu {
    gap: 0.75rem;
  }
  .nav-link {
    padding: 0.35rem 0.5rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .wizard-steps {
    flex-direction: column;
    gap: 1rem;
  }
  
  .wizard-steps::before {
    display: none;
  }
  
  .consult-type-selector {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  /* Timeline Mobile Adjustments */
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 0;
    padding-right: 50px; /* Space for the dot */
    margin-bottom: 2rem;
  }
  
  .timeline-item.left, .timeline-item.right {
    left: 0;
  }
  
  .timeline-item.left .timeline-dot, .timeline-item.right .timeline-dot {
    left: 11px;
    right: auto;
  }
  
  .timeline-content {
    padding: 2rem 3.5rem !important; /* Slightly smaller padding on mobile but still generous */
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .modal-overlay {
    padding: 0.75rem;
  }

  .modal-content, .wide-modal, .receipt-modal {
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .modal-close {
    top: 1rem;
    left: 1rem;
    width: 32px;
    height: 32px;
  }

  .navbar {
    padding: 0.75rem 1rem;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .estimator-card, .booking-form-card, .office-info-card {
    padding: 1.25rem;
  }

  .consult-type-selector {
    grid-template-columns: 1fr;
  }

  .range-labels {
    font-size: 0.75rem;
  }
}
