/* ==========================================================================
   MAVİ KEDİ - PERMANENT CYBER VIOLET & CREATIVE ORCHID DESIGN SYSTEM
   Lüks & Kreatif Mor / Fuşya Tasarım Sistemi (0% Lacivert)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* PERMANENT THEME: Cyber Violet & Orchid (Mistik Koyu Zemin & Pastel Mor / Fuşya) */
  --bg-dark: #0E0C14;        /* Mistik Nötr Gece */
  --bg-surface: #171420;     /* Koyu Yüzey */
  --bg-card: #201C2E;        /* Koyu Mor-Grafit Kart */
  --bg-card-hover: #2B263D;  /* Hafif Aydınlık Hover */
  --bg-glass: rgba(32, 28, 46, 0.82);
  
  --cyan: #C084FC;           /* Pastel Parlak Orkide Moru */
  --cyan-dark: #9333EA;
  --cyan-glow: rgba(192, 132, 252, 0.35);
  --cyan-subtle: rgba(192, 132, 252, 0.12);

  --blue: #818CF8;           /* Elektrik İndigo */
  --blue-dark: #4F46E5;
  
  --violet: #F472B6;         /* Pastel Pembe Gül / Fuşya */
  --violet-glow: rgba(244, 114, 182, 0.35);
  
  --emerald: #34D399;        /* Nane Vurgusu */
  --amber: #FBBF24;          /* Sıcak Sarı */
  --rose: #FB7185;           /* Pastel Mercan */

  --text-main: #FAF5FF;
  --text-muted: #A8A29E;
  --text-dim: #78716C;

  --border-subtle: rgba(192, 132, 252, 0.14);
  --border-glow: rgba(192, 132, 252, 0.4);
  --border-active: #C084FC;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
}

/* Ambient Background Grid & Radial Glow */
.bg-ambient-grid {
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, var(--cyan-glow) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, var(--violet-glow) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: -1;
}

/* Luxury Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: var(--radius-full);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, var(--cyan) 70%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--cyan); }
.text-violet { color: var(--violet); }
.text-emerald { color: var(--emerald); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cyan-subtle);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(14, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(14, 12, 20, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--border-glow);
}

/* Scroll Margins for Anchor Section Navigation */
section[id],
div[id],
main[id] {
  scroll-margin-top: 90px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

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

.brand-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.18), rgba(56, 189, 248, 0.25)) !important;
  border: 1.5px solid #00D2FF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00D2FF !important;
  font-size: 1.35rem;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4) !important;
  transition: var(--transition-bounce);
}

.brand-logo:hover .brand-icon-wrapper {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.7) !important;
}

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

.brand-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.brand-title span {
  color: #00D2FF !important;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #0099CC 100%);
  color: #060911;
  box-shadow: 0 4px 20px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 255, 0.45);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-glow {
  background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  color: #FFF;
  box-shadow: 0 4px 20px var(--violet-glow);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #FFF;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1001;
}

.mobile-toggle:hover,
.mobile-toggle:focus {
  background: var(--cyan-subtle);
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 5rem 0 6rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  margin-bottom: 1.5rem;
  animation: pulseGlow 3s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 210, 255, 0.2); }
  50% { box-shadow: 0 0 25px rgba(0, 210, 255, 0.5); }
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   APPLE-STYLE INTERACTIVE AI PROJECT STUDIO & ANIMATED PERSONA
   ========================================================================== */
.apple-ai-studio-window {
  background: rgba(23, 20, 32, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px var(--cyan-glow);
  overflow: hidden;
  transition: var(--transition);
}

.ai-studio-header {
  background: rgba(14, 12, 20, 0.9);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

/* Animated Apple-Style Memoji Persona */
.ai-persona-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ai-memoji-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C084FC, #F472B6, #818CF8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px var(--cyan-glow);
  animation: memojiBob 3s ease-in-out infinite alternate;
  position: relative;
  user-select: none;
}

.ai-memoji-avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), transparent, var(--violet));
  z-index: -1;
  animation: spinHalo 6s linear infinite;
}

@keyframes memojiBob {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
  100% { transform: translateY(2px) rotate(-3deg); }
}

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

.ai-persona-info h4 {
  font-size: 1rem;
  color: #FFF;
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ai-persona-info p {
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
}

.ai-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid var(--emerald);
  color: var(--emerald);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.ai-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* AI Studio Interactive Body */
.ai-studio-body {
  padding: 1.75rem;
}

.ai-speech-bubble {
  background: rgba(32, 28, 46, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: #F1F5F9;
  line-height: 1.6;
  position: relative;
  transition: var(--transition);
}

.ai-speech-bubble::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: rgba(32, 28, 46, 0.9);
  border-top: 1px solid var(--border-subtle);
  border-left: 1px solid var(--border-subtle);
  transform: rotate(45deg);
}

/* Quick Idea Chips */
.ai-chips-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.ai-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ai-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-chip-btn:hover {
  background: var(--cyan-subtle);
  border-color: var(--cyan);
  color: #FFF;
  transform: translateY(-2px);
}

/* Custom Idea Input Bar */
.ai-input-group {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.ai-input-field {
  flex-grow: 1;
  background: rgba(14, 12, 20, 0.9);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: #FFF;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.ai-input-field:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 18px var(--cyan-glow);
}

.ai-plan-btn {
  background: linear-gradient(135deg, var(--cyan), #9333EA);
  border: none;
  color: #FFF;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-bounce);
  white-space: nowrap;
}

.ai-plan-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px var(--cyan-glow);
}

/* Generated 3-Phase Roadmap Box */
.ai-roadmap-result {
  background: rgba(14, 12, 20, 0.95);
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 1rem;
  animation: fadeIn 0.4s ease;
}

.ai-roadmap-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.roadmap-stages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.roadmap-stage-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(32, 28, 46, 0.5);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--cyan);
}

.stage-num {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--cyan-subtle);
  color: var(--cyan);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.stage-text strong {
  display: block;
  font-size: 0.88rem;
  color: #FFF;
  margin-bottom: 0.15rem;
}

.stage-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 210, 255, 0.1);
}

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

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--cyan-subtle);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.5rem;
  transition: var(--transition-bounce);
}

.service-card:hover .service-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--cyan);
  color: #060911;
  box-shadow: 0 0 20px var(--cyan);
}

.service-badge {
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-weight: 700;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.service-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.service-features-list li {
  font-size: 0.85rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-features-list li i {
  color: var(--cyan);
  font-size: 0.75rem;
}

/* ==========================================================================
   BENEFITS & GUARANTEES GRIDS
   ========================================================================== */
.benefits-grid,
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.home-blog-grid,
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ==========================================================================
   PORTFOLIO / SHOWCASE SECTION
   ========================================================================== */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #060911;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 210, 255, 0.15);
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid var(--border-glow);
}

.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

.project-card:hover .project-title {
  color: var(--cyan);
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #CBD5E1;
  font-family: var(--font-mono);
}

/* ==========================================================================
   INTERACTIVE COST ESTIMATOR / PROJECT WIZARD
   ========================================================================== */
.estimator-container {
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.9), rgba(17, 27, 48, 0.95));
  border: 1.5px solid var(--cyan-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px var(--cyan-glow);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
}

.estimator-step-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.estimator-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.option-chip {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.option-chip:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.option-chip.selected {
  background: var(--cyan-subtle);
  border-color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.option-chip i {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--cyan);
}

.option-chip span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  display: block;
}

.feature-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  color: #E2E8F0;
}

.feature-check-item.active {
  border-color: var(--cyan);
  background: var(--cyan-subtle);
  color: var(--cyan);
  font-weight: 600;
}

/* Estimator Live Summary Card */
.estimator-summary-card {
  background: #080C16;
  border: 1.5px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.summary-price-box {
  text-align: center;
  padding: 1.5rem;
  background: rgba(0, 210, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px dashed var(--cyan);
  margin-bottom: 1.5rem;
}

.summary-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-price-val {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan);
  font-family: var(--font-mono);
  margin: 0.25rem 0;
}

.summary-timeline {
  font-size: 0.85rem;
  color: var(--emerald);
  font-weight: 600;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

/* ==========================================================================
   TECH STACK GRID
   ========================================================================== */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.25rem;
}

.tech-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.75rem;
  text-align: center;
  transition: var(--transition-bounce);
}

.tech-box:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 10px 25px rgba(0, 210, 255, 0.2);
}

.tech-box i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.tech-box span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #CBD5E1;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem auto;
  border: 2.5px solid var(--cyan);
  box-shadow: 0 0 25px var(--cyan-glow), 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: var(--transition-bounce);
  display: block;
}

.team-card:hover .team-avatar {
  transform: scale(1.06);
  border-color: var(--violet);
  box-shadow: 0 0 35px var(--violet-glow), 0 12px 30px rgba(0, 0, 0, 0.6);
}

.team-name {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--cyan);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.team-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

/* ==========================================================================
   CONTACT SECTION & FOOTER
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--cyan-subtle);
  border: 1px solid var(--border-glow);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--cyan);
}

.footer {
  background: #04060B;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
  margin-top: 6rem;
}

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

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-surface);
  border: 1.5px solid var(--cyan-dark);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px var(--cyan-glow);
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #FFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--rose);
  transform: rotate(90deg);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: #FFF;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: slideInRight 0.3s ease;
}

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

/* ==========================================================================
   CATEGORIZED TECH STACK STYLING
   ========================================================================== */
.tech-categories-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tech-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  transition: var(--transition);
}

.tech-cat-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tech-cat-header i {
  font-size: 1.35rem;
  color: var(--cyan);
}

.tech-cat-header h3 {
  font-size: 1.2rem;
  color: #FFF;
}

.tech-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1rem;
}

.tech-pill-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-bounce);
}

.tech-pill-box:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 20px var(--cyan-glow);
}

.tech-pill-box i {
  font-size: 1.8rem;
  display: block;
}

.tech-pill-box span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #E2E8F0;
}

.tech-pill-box small {
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* Heritage Experience Banner */
.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(0, 210, 255, 0.15));
  border: 1px solid var(--emerald);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  color: #FFF;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & RESPONSIVE DESIGN SYSTEM
   Breakpoints: 1200px (Desktop), 992px (Tablet/Laptop), 768px (Tablet/Mobile), 480px (Mobile)
   ========================================================================== */

/* 1. Large Tablets & Small Laptops (<= 1200px) */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .hero-title {
    font-size: 2.9rem;
  }

  .estimator-grid {
    gap: 2rem;
  }
}

/* 2. Tablets & Medium Screens (<= 992px) */
@media screen and (max-width: 992px) {
  body {
    padding-top: 72px;
  }

  section[id],
  div[id],
  main[id] {
    scroll-margin-top: 80px;
  }

  /* Navigation & Mobile Drawer Menu */
  .nav-container {
    height: 72px;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(14, 12, 20, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1.5px solid var(--border-glow);
    padding: 1.75rem 1.5rem 2.25rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    z-index: 999;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    animation: slideDownMenu 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes slideDownMenu {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    font-size: 1.05rem;
    font-weight: 700;
    color: #F1F5F9;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--cyan-subtle);
    border-color: var(--cyan);
    color: var(--cyan);
  }

  .nav-link::after {
    display: none;
  }

  .nav-actions .btn {
    display: none; /* Keep header clean on tablet/mobile, use toggle and in-menu CTA */
  }

  /* Hero Section */
  .hero-section {
    padding: 3.5rem 0 4.5rem 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.2rem, 5vw, 2.9rem);
  }

  /* Section Spacing & Headers */
  .section {
    padding: 4.5rem 0;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  }

  /* Estimator Grid to Single Column */
  .estimator-container {
    padding: 2.25rem 1.75rem;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer Columns */
  .footer > .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 2.5rem !important;
  }
}

/* 3. Mobile Phones & Small Tablets (<= 768px) */
@media screen and (max-width: 768px) {
  body {
    padding-top: 66px;
  }

  section[id],
  div[id],
  main[id] {
    scroll-margin-top: 72px;
  }

  /* Prevent horizontal scrolling universally */
  html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .container {
    padding: 0 1.15rem;
  }

  /* Typography Scale */
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.3rem; }

  /* Navbar */
  .nav-container {
    height: 66px;
  }

  .nav-links {
    top: 66px;
    max-height: calc(100vh - 66px);
  }

  .brand-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .mobile-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2.25rem 0 3.5rem 0;
  }

  .heritage-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.2;
    margin-bottom: 1.15rem;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 2.25rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    padding-top: 1.5rem;
  }

  .stat-item h3 {
    font-size: 1.4rem;
  }

  .stat-item p {
    font-size: 0.75rem;
  }

  /* AI Studio Terminal Window */
  .apple-ai-studio-window {
    border-radius: var(--radius-md);
  }

  .ai-studio-header {
    padding: 1rem 1.15rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .ai-memoji-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .ai-persona-info h4 {
    font-size: 0.92rem;
  }

  .ai-persona-info p {
    font-size: 0.72rem;
  }

  .ai-studio-body {
    padding: 1.25rem 1.15rem;
  }

  .ai-speech-bubble {
    font-size: 0.88rem;
    padding: 0.95rem 1.1rem;
  }

  .ai-chips-wrapper {
    gap: 0.45rem;
    margin-bottom: 1.15rem;
  }

  .ai-chip-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
    min-height: 38px;
  }

  .ai-input-group {
    flex-direction: column;
    gap: 0.65rem;
  }

  .ai-input-field {
    width: 100%;
    font-size: 16px; /* Prevents iOS auto-zoom */
    padding: 0.85rem 1rem;
  }

  .ai-plan-btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    min-height: 44px;
  }

  .roadmap-stage-item {
    flex-direction: column;
    gap: 0.4rem;
  }

  /* Services, Benefits & Guarantees Grids */
  .services-grid,
  .benefits-grid,
  .guarantees-grid,
  .home-blog-grid,
  .blog-list-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card,
  .benefits-grid > div,
  .guarantees-grid > div {
    padding: 1.6rem 1.35rem;
  }

  /* Portfolio Grid & Filters */
  .portfolio-filters {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    min-height: 38px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-img-wrapper {
    height: 190px;
  }

  .project-body {
    padding: 1.35rem;
  }

  .project-title {
    font-size: 1.15rem;
  }

  /* Cost Estimator */
  .estimator-container {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .estimator-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .option-chip {
    padding: 0.85rem 0.6rem;
  }

  .option-chip i {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .option-chip span {
    font-size: 0.78rem;
  }

  .feature-checkbox-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .feature-check-item {
    font-size: 0.82rem;
    padding: 0.75rem 0.85rem;
    min-height: 44px;
  }

  .estimator-summary-card {
    padding: 1.35rem;
  }

  .summary-price-val {
    font-size: 1.85rem;
  }

  /* Form Elements (iOS Safe Font Size) */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    font-size: 16px !important;
    min-height: 44px;
  }

  /* Contact Section */
  .contact-info-card,
  .contact-form-card {
    padding: 1.6rem 1.25rem;
  }

  .contact-item {
    gap: 0.9rem;
    margin-bottom: 1.35rem;
  }

  .contact-icon {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }

  /* Tech Stack Grid */
  .tech-cat-card {
    padding: 1.5rem 1.25rem;
  }

  .tech-cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .tech-pill-box {
    padding: 0.85rem 0.6rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
  }

  .footer > .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    align-items: center;
  }

  .footer-bottom > div:last-child {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  /* Modals */
  .modal-overlay {
    padding: 1rem;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    padding: 1.75rem 1.25rem !important;
    border-radius: var(--radius-md);
  }

  .modal-close-btn {
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
  }
}

/* 4. Very Small Phones (<= 480px) */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 1.95rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    background: rgba(32, 28, 46, 0.5);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.1rem;
  }

  .stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
  }

  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .stat-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
  }

  .stat-item p {
    font-size: 0.8rem;
    margin-bottom: 0;
  }

  .estimator-options-grid {
    grid-template-columns: 1fr;
  }

  .badge-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
  }
}



