/* ============================================================
   Virginia Home Tech — Professional local business styling
   ============================================================ */

/* --- CSS Custom Properties (Theme Tokens) --- */
:root {
  --white: #fffefe;
  --navy: #0a1a55;
  --navy-hover: #0d2280;
  --navy-soft: rgba(10, 26, 85, 0.08);
  --navy-muted: rgba(10, 26, 85, 0.55);
  --bg-deep: #fffefe;
  --bg-primary: #fffefe;
  --bg-secondary: #f4f5f8;
  --bg-services: #f7f8fb;
  --bg-about: #fffefe;
  --bg-contact: #f4f5f8;
  --bg-card: #fffefe;
  --bg-card-hover: #fffefe;
  --text-primary: #0a1a55;
  --text-secondary: #3d4a6b;
  --text-muted: #5c6888;
  --accent: #0a1a55;
  --accent-hover: #0d2280;
  --accent-soft: rgba(10, 26, 85, 0.08);
  --accent-teal: #0a1a55;
  --accent-teal-soft: rgba(10, 26, 85, 0.06);
  --accent-purple: #0a1a55;
  --accent-purple-soft: rgba(10, 26, 85, 0.06);
  --accent-orange: #0a1a55;
  --accent-orange-soft: rgba(10, 26, 85, 0.06);
  --accent-rose: #0a1a55;
  --accent-rose-soft: rgba(10, 26, 85, 0.06);
  --accent-cyan: #0a1a55;
  --accent-blue: #0a1a55;
  --accent-green: #0a1a55;
  --brand: #0a1a55;
  --brand-hover: #0d2280;
  --gradient-hero: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(10, 26, 85, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(10, 26, 85, 0.04) 0%, transparent 50%);
  --border-subtle: rgba(10, 26, 85, 0.12);
  --border-glow: rgba(10, 26, 85, 0.28);
  --nav-bg: #0a1a55;
  --nav-bg-solid: #0a1a55;
  --shadow-card: 0 4px 24px rgba(10, 26, 85, 0.07);
  --shadow-card-hover: 0 8px 30px rgba(10, 26, 85, 0.12);
  --radius-card: 20px;
  --radius-btn: 999px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --section-padding: clamp(4rem, 10vw, 6.5rem);
  --nav-height: 120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

/* --- Performance: lightweight visuals for all devices --- */
.geo-shapes,
.scanlines,
.crt-vignette,
.loader-canvas,
.hero-canvas,
.matrix-canvas,
.card-border-glow {
  display: none !important;
}

.glass-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg-card);
}

.navbar,
.nav-links.open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav-links.open {
  background: var(--nav-bg-solid);
}


.scan-animation,
.net-line,
.net-node,
.app-progress-bar,
.about-ring,
.about-glow,
.geo-shape,
.logo-icon {
  animation: none !important;
}

.service-card:hover,
.project-card:hover {
  box-shadow: var(--shadow-card-hover);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--safe-top) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

/* Mouse-follow effects disabled — kept minimal for performance */
.cursor-glow,
.cursor-dot,
.mouse-light {
  display: none !important;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; }
input, textarea, select { font-family: inherit; touch-action: manipulation; }

.hidden { display: none !important; }

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: max(clamp(1rem, 4vw, 1.5rem), var(--safe-left)) max(clamp(1rem, 4vw, 1.5rem), var(--safe-right));
}

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.loader-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-highlights {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-bottom: 2rem;
  padding: 0;
}

.hero-highlights li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
}

.contact-panel-header {
  padding: 1.75rem 2rem 0;
}

.contact-panel-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.contact-panel-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.contact-panel .contact-tab-panel {
  padding: 1.25rem 2rem 2rem;
}

.project-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.contact-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--accent);
}

.contact-link:hover {
  color: var(--accent-hover);
  text-shadow: none;
}

.hero-scroll {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-panel {
  overflow: hidden;
  border-radius: var(--radius-card);
}

.contact-panel-header {
  padding: 1.75rem 2rem 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}


.service-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.loader-logo {
  margin-bottom: 2rem;
  width: min(92vw, 960px);
  margin-inline: auto;
}

.loader-logo-img {
  height: clamp(200px, 42vw, 320px);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.loader-bar {
  width: 200px;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 1rem;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--brand);
  border-radius: 999px;
  transition: width 0.1s linear;
  box-shadow: none;
}

.loader-percent {
  display: none;
}

.loader-status {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Scanlines & CRT --- */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.2;
}

.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}


/* --- Custom Cursor (disabled) --- */
.cursor-glow {
  display: none;
}

.cursor-dot {
  display: none;
}

/* --- Mouse-follow light (disabled) --- */
.mouse-light {
  display: none;
}

/* --- Floating geometric shapes --- */
.geo-shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo-shape {
  position: absolute;
  opacity: 0.04;
  border: 1px solid var(--accent-cyan);
}

.geo-hex {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 10%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: floatGeo 20s ease-in-out infinite;
}

.geo-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--accent-cyan);
  bottom: 20%;
  left: 5%;
  animation: floatGeo 25s ease-in-out infinite reverse;
}

.geo-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: 60%;
  right: 20%;
  animation: floatGeo 18s ease-in-out infinite 2s;
}

.geo-square {
  width: 60px;
  height: 60px;
  top: 30%;
  left: 15%;
  transform: rotate(45deg);
  animation: floatGeo 22s ease-in-out infinite 1s;
}

@keyframes floatGeo {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: calc(0.85rem + var(--safe-top)) 0 0.85rem;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 254, 254, 0.12);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}

.navbar.scrolled {
  background: var(--nav-bg-solid);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  padding: 0.65rem 0;
}

.nav-bar-main {
  width: 100%;
}

.nav-container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding-inline: max(clamp(1rem, 4vw, 1.5rem), var(--safe-left)) max(clamp(1rem, 4vw, 1.5rem), var(--safe-right));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.5rem;
  position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  grid-column: 1;
}

.nav-logo-img {
  height: 88px;
  width: auto;
  display: block;
}

.nav-phone-cta {
  grid-column: 2;
  justify-self: center;
  align-self: center;
  min-width: 0;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.2s ease;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
  z-index: 1;
}

.nav-phone-cta:hover {
  opacity: 0.88;
}

.nav-phone-number {
  font-size: inherit;
  font-weight: 700;
}

.nav-end {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: flex-end;
}

.logo-icon {
  color: var(--accent-cyan);
  font-size: 1.3rem;
  animation: pulse 3s ease-in-out infinite;
}

.brand-accent {
  color: var(--brand);
}

.logo-text .brand-accent {
  color: var(--brand);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 254, 254, 0.82);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.25s var(--transition-smooth);
}

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

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

.nav-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  background: var(--accent-soft);
  box-shadow: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop {
  display: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--safe-top) + 2rem) 0 calc(2.5rem + var(--safe-bottom));
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gradient-hero), var(--bg-deep);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  text-align: left;
  max-width: 560px;
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  min-height: clamp(280px, 38vw, 420px);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  border: 1px solid var(--border-glow);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.5rem;
  background: var(--accent-soft);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 0 1.75rem;
  line-height: 1.75;
}

.hero-typing {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.typing-text {
  color: var(--accent-cyan);
  font-weight: 500;
}

.typing-cursor {
  color: var(--accent-cyan);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-phone {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Buttons --- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(10, 26, 85, 0.22);
}

.btn-primary:hover {
  background: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(10, 26, 85, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--brand);
  border: 2px solid var(--border-glow);
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand-hover);
  background: var(--accent-soft);
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ripple-btn:hover .btn-glow { opacity: 1; }

.hero-scroll {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2.5rem;
  text-align: center;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border-subtle);
  border-radius: 12px;
  position: relative;
  background: var(--bg-card);
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.glow-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-glow), transparent);
  opacity: 0.8;
  margin: 0 auto;
  max-width: min(900px, 90%);
}

/* --- Sections --- */
.section {
  position: relative;
  padding: var(--section-padding) 0;
  z-index: 1;
}

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

.services-section {
  background: var(--bg-services);
}

.about-section {
  background: var(--bg-about);
}

.why-section {
  background: var(--navy);
  color: var(--white);
}

.why-section .section-label {
  color: var(--white);
  background: rgba(255, 254, 254, 0.12);
}

.why-section .section-title {
  color: var(--white);
  text-align: center;
}

.why-section .brand-accent {
  color: var(--white);
}

.why-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.why-lead {
  color: rgba(255, 254, 254, 0.85);
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0.75rem 0 0;
}

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

.why-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-card);
  background: rgba(255, 254, 254, 0.08);
  border: 1px solid rgba(255, 254, 254, 0.14);
  text-align: center;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.why-card p {
  color: rgba(255, 254, 254, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.contact-section {
  background: var(--bg-contact);
}

.section-label {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brand);
  margin-bottom: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-btn);
  background: var(--accent-soft);
}

#contact .section-label {
  color: var(--brand);
  background: var(--accent-soft);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
}

.pricing-callout {
  max-width: 620px;
  margin: 1.25rem auto 0;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
}

.contact-info .pricing-callout {
  text-align: left;
  margin: 1rem 0 1.25rem;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transform: none;
  }
}

/* --- Cards --- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-card-hover);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.service-card:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
}

.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-cta {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.service-card:hover .service-cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-group select.field-highlight {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-icon svg { width: 26px; height: 26px; }

.service-card .service-icon {
  background: var(--accent-soft);
  color: var(--brand);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

.service-tag {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--accent-green);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.card-border-glow {
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: var(--brand);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
}

.service-card:hover .card-border-glow { opacity: 0.5; }

/* --- Projects Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
}

.project-card {
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--border-glow);
}

.project-preview {
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  overflow: hidden;
  position: relative;
}

.project-card .project-preview {
  background: var(--bg-secondary);
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* Terminal mini preview */
.terminal-mini {
  width: 90%;
  background: #0d0d12;
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.65rem;
}

.terminal-mini-bar {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: #1a1a22;
}

.terminal-mini-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.terminal-mini-bar span:nth-child(1) { background: #ff5f57; }
.terminal-mini-bar span:nth-child(2) { background: #febc2e; }
.terminal-mini-bar span:nth-child(3) { background: #28c840; }

.terminal-mini pre {
  padding: 12px;
  color: #00ff88;
  line-height: 1.5;
}

/* Vuln assessment preview */
.project-preview-alt {
  background: linear-gradient(135deg, #0a0a12, #12121f);
}

.scan-animation {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.vuln-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  z-index: 1;
}

.vuln-high { color: #ff4444; }
.vuln-med { color: #ffaa00; }
.vuln-low { color: #00ff88; }

/* Code snippet preview */
.code-snippet {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: left;
  width: 90%;
}

.code-line { display: block; line-height: 1.6; }
.code-kw { color: var(--accent-purple); }
.code-str { color: var(--accent-green); }

/* App mockup */
.app-mockup {
  width: 70%;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}

.app-header {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.app-progress {
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.app-progress-bar {
  height: 100%;
  width: 75%;
  background: var(--brand);
  border-radius: 3px;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { width: 75%; }
  50% { width: 85%; }
}

.app-content {
  font-size: 0.75rem;
  color: var(--accent-green);
}

/* Network SVG preview */
.network-svg { width: 80%; height: auto; }

.net-line {
  stroke: rgba(0, 212, 255, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  animation: dashFlow 2s linear infinite;
}

.net-node {
  fill: var(--accent-cyan);
  filter: drop-shadow(0 0 4px var(--accent-cyan));
}

.net-node:first-of-type { animation: nodePulse 2s ease-in-out infinite; }

@keyframes dashFlow {
  to { stroke-dashoffset: -8; }
}

@keyframes nodePulse {
  0%, 100% { r: 6; opacity: 1; }
  50% { r: 8; opacity: 0.7; }
}

/* --- About Section --- */
/* --- About & Team --- */
.about-intro {
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.team-card {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-glow);
  margin-bottom: 1.25rem;
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.team-card:nth-child(1) .team-photo {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.team-card:nth-child(2) .team-photo {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.team-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-card:nth-child(1) .team-headshot {
  transform: scale(1.1) translateX(5%);
  object-position: 40% 60%;
}

.team-card:nth-child(2) .team-headshot {
  transform: scale(1.8) translateX(2.5%);
}

.team-placeholder {
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.5rem;
}

.team-placeholder svg {
  width: 48px;
  height: 48px;
}

.team-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.team-role {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.team-info .team-role:last-of-type {
  margin-bottom: 0.75rem;
}

.team-card:nth-child(1) .team-role,
.team-card:nth-child(2) .team-role {
  color: var(--brand);
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

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

.stat-static {
  font-size: 1.75rem !important;
}

.service-tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.about-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-glow);
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.profile-placeholder svg { width: 80px; height: 80px; }

.about-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px dashed rgba(0, 212, 255, 0.2);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.about-bio {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.stat-item {
  padding: 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  text-align: center;
}

.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.stat-item {
  border-top: 3px solid var(--brand);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--brand);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* --- Terminal Section --- */
.terminal {
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.terminal-line {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.terminal-welcome { color: var(--accent-green); }

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.2);
}

.terminal-prompt {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.terminal-output-success { color: var(--accent-green); }
.terminal-output-info { color: var(--accent-cyan); }
.terminal-output-warn { color: #ffaa00; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-benefits {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-benefits li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1rem;
  position: relative;
}

.contact-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

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

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: text-shadow 0.3s;
  word-break: break-word;
  max-width: 100%;
  min-height: 44px;
  padding: 0.25rem 0;
  -webkit-tap-highlight-color: transparent;
}

.contact-link svg { width: 20px; height: 20px; }

.contact-link:hover {
  text-shadow: var(--glow-cyan);
}

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

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  color: var(--accent-cyan);
  border-color: var(--border-glow);
}

/* Contact panel with tabs */
.contact-panel {
  overflow: hidden;
}

.contact-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
}

.contact-tab {
  flex: 1;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.contact-tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.contact-tab-panel {
  display: none;
  padding: 1.75rem 2rem 2rem;
}

.contact-tab-panel.active {
  display: block;
}

.form-intro,
.terminal-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.terminal-intro {
  margin-bottom: 1rem;
}

/* Contact Form — clear labels for all users */
.contact-form {
  padding: 0;
  position: relative;
}

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

.form-label {
  display: block;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2rem;
}

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

.form-submit { width: 100%; margin-top: 0.5rem; }

.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 14px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--accent-green);
  font-size: 0.95rem;
  animation: successPop 0.5s var(--transition-smooth);
}

.form-success svg { width: 24px; height: 24px; }

.form-error {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 14px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  color: var(--accent-rose);
  font-size: 0.95rem;
  text-align: center;
}

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

/* --- Discount Cards --- */
.discounts-section {
  background: var(--bg-secondary);
  padding-bottom: calc(var(--section-padding) * 0.75);
}

.discount-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.discount-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 2px dashed var(--brand);
  box-shadow: var(--shadow-card);
}

.discount-card-alt {
  border-style: solid;
  background: var(--brand);
}

.discount-card-inner {
  padding: 2rem 1.75rem;
  text-align: center;
}

.discount-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.discount-card-alt .discount-label {
  color: rgba(255, 254, 254, 0.85);
}

.discount-amount {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.discount-card-alt .discount-amount {
  color: var(--white);
}

.discount-detail {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.discount-card-alt .discount-detail {
  color: rgba(255, 254, 254, 0.8);
}

.discount-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0 auto 1rem;
  max-width: 80%;
}

.discount-card-alt .discount-divider {
  background: rgba(255, 254, 254, 0.25);
}

.discount-code {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.discount-card-alt .discount-code {
  color: rgba(255, 254, 254, 0.7);
}

.discount-fine-print {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: 2rem 0 calc(2rem + var(--safe-bottom));
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--white);
}

.footer-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  text-wrap: balance;
}

.footer-inner a {
  color: var(--brand);
  font-weight: 500;
}

.footer-inner a:hover {
  color: var(--brand-hover);
}

.footer-hint {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  opacity: 0.5;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

/* --- Pulse animation --- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* --- Easter egg overlay --- */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  animation: glitchIn 0.5s ease;
}

.easter-egg-overlay p {
  color: var(--accent-green);
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--accent-green);
}

@keyframes glitchIn {
  0% { opacity: 0; transform: scale(1.1); filter: hue-rotate(90deg); }
  100% { opacity: 1; transform: scale(1); filter: hue-rotate(0); }
}

/* --- Responsive --- */

/* Touch devices: skip hover lift (feels sticky on mobile) */
@media (hover: none) {
  .service-card:hover,
  .project-card:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .service-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .btn-primary:active,
  .btn-secondary:active {
    transform: scale(0.98);
  }
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-phone-cta {
    font-size: 1.15rem;
    white-space: normal;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  :root {
    --section-padding: clamp(3rem, 8vw, 4.5rem);
    --nav-height: 148px;
  }

  .navbar {
    padding: 0;
    background: var(--white);
    border-bottom: none;
    box-shadow: none;
  }

  .navbar.scrolled {
    padding: 0;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-bar-main {
    background: var(--nav-bg);
    border-bottom: none;
    padding: calc(0.65rem + var(--safe-top)) 0 0;
  }

  .nav-container::after {
    content: '';
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: end;
    height: 0;
    border-bottom: 1px solid rgba(255, 254, 254, 0.12);
    pointer-events: none;
  }

  .navbar.scrolled .nav-bar-main {
    background: var(--nav-bg-solid);
  }

  .nav-container {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.5rem 0.75rem;
  }

  .nav-logo {
    grid-column: 1;
    grid-row: 1;
    max-width: min(72vw, 280px);
    padding-bottom: 0.65rem;
  }

  .nav-end {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding-bottom: 0.65rem;
  }

  .nav-phone-cta {
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    transform: none;
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: calc(-1 * max(clamp(1rem, 4vw, 1.5rem), var(--safe-left))) calc(-1 * max(clamp(1rem, 4vw, 1.5rem), var(--safe-right)));
    color: var(--navy);
    background: var(--white);
    font-size: 1.05rem;
    text-align: center;
    line-height: 1.45;
    padding: 0.65rem max(clamp(1rem, 4vw, 1.5rem), var(--safe-right)) 0.65rem max(clamp(1rem, 4vw, 1.5rem), var(--safe-left));
    white-space: normal;
    min-height: 44px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-phone-cta:hover {
    opacity: 1;
    color: var(--navy-hover);
  }

  .nav-phone-number {
    color: var(--navy);
    font-weight: 700;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
  }

  .contact-link {
    font-size: 1rem;
  }

  .why-cards {
    max-width: none;
    width: 100%;
  }

  .hero-highlights {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

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

  .hero-content {
    text-align: center;
    max-width: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: min(340px, 88vw);
    margin: 0 auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .about-grid,
  .contact-grid,
  .team-grid,
  .why-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-visual {
    order: -1;
    max-width: min(400px, 90vw);
    margin: 0 auto;
  }

  .why-cards {
    max-width: 420px;
    margin: 0 auto;
  }

  .discount-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .about-values {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .about-image-wrap { order: -1; }

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

  .section-desc,
  .pricing-callout {
    font-size: 1rem;
  }

  .contact-panel-header {
    padding: 1.25rem 1.25rem 0.5rem;
  }

  .contact-panel-header h3 {
    font-size: 1.05rem;
  }

  .contact-tab-panel {
    padding: 1rem 1.25rem 1.5rem;
  }

  .contact-tab {
    padding: 0.85rem 0.75rem;
    font-size: 0.82rem;
  }

  .contact-info .section-title {
    text-align: left;
  }

  .contact-info .section-desc,
  .contact-info .pricing-callout {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1001;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .nav-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100%;
    height: 100dvh;
    flex-direction: column;
    flex: none;
    justify-content: flex-start;
    background: var(--nav-bg-solid);
    padding: calc(var(--nav-height) + var(--safe-top) + 0.75rem) calc(1.5rem + var(--safe-right)) calc(2rem + var(--safe-bottom)) calc(1.5rem + var(--safe-left));
    gap: 0.25rem;
    transition: transform 0.35s var(--transition-smooth);
    border-left: 1px solid var(--border-subtle);
    z-index: 1002;
    transform: translateX(100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    min-height: 44px;
    line-height: 1.4;
  }

  .nav-link::after {
    bottom: 0.5rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1003;
    position: relative;
    flex-shrink: 0;
  }

  .nav-logo-img {
    height: 72px;
  }

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

  .team-card {
    padding: 1.5rem 1.25rem;
  }

  .team-photo {
    width: 120px;
    height: 120px;
  }

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

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .stat-item {
    padding: 1rem 0.85rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  :root {
    --section-padding: clamp(2.5rem, 7vw, 3.5rem);
  }

  body {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1.5rem);
    padding-bottom: calc(2rem + var(--safe-bottom));
  }

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

  .hero-content {
    text-align: center;
    max-width: none;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-highlights {
    justify-content: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    max-width: min(320px, 85vw);
    margin: 0 auto;
    min-height: 0;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    line-height: 1.4;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.5vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 0;
    width: 100%;
  }

  .btn {
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 0.9rem 1.5rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .stats-grid,
  .about-values {
    grid-template-columns: 1fr 1fr;
  }

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

  .project-info {
    padding: 1.25rem;
  }

  .project-preview {
    height: 140px;
  }

  .contact-grid {
    gap: 1.75rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px;
    padding: 0.9rem 1rem;
  }

  .form-submit {
    min-height: 48px;
  }

  .form-success,
  .form-error {
    font-size: 0.9rem;
    text-align: left;
  }

  .contact-link {
    font-size: 0.85rem;
  }

  .footer-inner p {
    font-size: 0.8rem;
    line-height: 1.6;
    padding-inline: 0.5rem;
  }

  .loader-logo {
    margin-bottom: 1.5rem;
    width: min(94vw, 960px);
  }

  .loader-logo-img {
    height: clamp(180px, 52vw, 280px);
  }

  .loader-bar {
    width: min(200px, 70vw);
  }
}

@media (max-width: 380px) {
  .about-values {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav-logo-img {
    height: 56px;
  }

  .nav-logo {
    max-width: min(68vw, 240px);
  }

  .nav-phone-cta {
    font-size: 0.92rem;
    line-height: 1.35;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .hero-badge {
    font-size: 0.75rem;
  }

  .discount-card-inner {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --nav-height: 104px;
  }

  .loader-logo-img {
    height: clamp(100px, 28vh, 160px);
  }

  .loader {
    padding: 1rem;
  }

  .nav-logo-img {
    height: 56px;
  }

  .nav-phone-cta {
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--safe-top) + 1rem);
  }
}
