/* ============================================
   PNX | style.css  –  v2
   ============================================ */

/* ============ RESET & VARIABLES ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary:      #0d0d0d;
  --bg-secondary:    #141414;
  --bg-card:         #1c1c1c;
  --bg-card-hover:   #242424;
  --accent:          #FFD700;
  --accent-dim:      rgba(255, 215, 0, 0.10);
  --accent-glow:     rgba(255, 215, 0, 0.22);
  --accent-hover:    #FFC800;
  --text-primary:    #f0f0f0;
  --text-secondary:  #888;
  --text-muted:      #404040;
  --border:          rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(255, 255, 255, 0.14);
  --border-accent:   rgba(255, 215, 0, 0.32);
  --shadow:          0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:       0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-accent:   0 0 40px rgba(255, 215, 0, 0.12);
  --radius:          12px;
  --radius-lg:       18px;
  --radius-xl:       26px;
  --ease:            cubic-bezier(0.4, 0, 0.2, 1);
  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:      72px;
  --section-pad:     clamp(64px, 9vw, 120px);
  --container-max:   1200px;
  --container-px:    clamp(20px, 5vw, 48px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.9s var(--ease) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.25s; }
.fade-up:nth-child(3) { animation-delay: 0.4s; }
.fade-up:nth-child(4) { animation-delay: 0.55s; }

/* Hero image column animates slightly later */
.hero__image.fade-up { animation-delay: 0.3s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.services__grid .reveal:nth-child(2),
.projects__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3),
.projects__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4),
.projects__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.10s; }
.services__grid .reveal:nth-child(6) { transition-delay: 0.18s; }
.services__grid .reveal:nth-child(7) { transition-delay: 0.26s; }
.services__grid .reveal:nth-child(8) { transition-delay: 0.20s; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn--full { width: 100%; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.4);
}
.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}
.nav__logo-pnx {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}
.nav__link--cta {
  background: var(--accent);
  color: #000 !important;
  font-weight: 600;
  margin-left: 8px;
}
.nav__link--cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
}
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--transition);
}
.nav__toggle:hover { background: rgba(255,255,255,0.07); }
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-primary);
}
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 60%, rgba(255,215,0,0.055) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 25%, rgba(255,215,0,0.035) 0%, transparent 45%),
    radial-gradient(rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px;
  pointer-events: none;
}

/* Two-column inner layout */
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 52px) var(--container-px) 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Text column */
.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Image column */
.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__image-frame {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-accent);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.08),
    0 24px 64px rgba(0,0,0,0.5),
    0 0 80px rgba(255,215,0,0.07);
  transition: box-shadow var(--transition);
}
.hero__image-frame:hover {
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.15),
    0 28px 72px rgba(0,0,0,0.55),
    0 0 100px rgba(255,215,0,0.10);
}
.hero__image-frame-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero__image-label {
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  user-select: none;
}

/* Badge, title, subtitle, actions – same as before */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 12px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.75); }
}
.hero__title {
  font-size: clamp(2.6rem, 5.5vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.hero__subtitle {
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid var(--border-hover);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 22px; }
}

/* ============ SECTIONS ============ */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-secondary); }

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section__desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ============ SERVICE CARDS ============ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow), var(--shadow-accent);
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 50px;
  height: 50px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.card__icon svg { width: 24px; height: 24px; color: var(--accent); transition: color var(--transition); }
.card:hover .card__icon { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.card:hover .card__icon svg { color: #000; }

.card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.card__text {
  font-size: 0.855rem;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ============ PROJECTS ============ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}
.project-card__img {
  height: 180px;
  position: relative;
  overflow: hidden;
}
.project-card__img--1 { background: linear-gradient(135deg, #1a1510 0%, #2a2218 50%, #150f08 100%); }
.project-card__img--2 { background: linear-gradient(135deg, #0d1520 0%, #182235 50%, #0a0f18 100%); }
.project-card__img--3 { background: linear-gradient(135deg, #15101e 0%, #221530 50%, #0f0a14 100%); }
.project-card__img--4 { background: linear-gradient(135deg, #0c1610 0%, #152018 50%, #080d0a 100%); }

.project-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.04) 0%, transparent 55%);
}
.project-card__img::after {
  content: 'BILD FOLGT';
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.18);
  font-weight: 600;
}
.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding: 14px;
}
.project-card__tag {
  padding: 4px 11px;
  background: rgba(0,0,0,0.65);
  color: var(--accent);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.project-card__body { padding: 18px 20px 22px; }
.project-card__title { font-size: 0.97rem; font-weight: 700; margin-bottom: 7px; }
.project-card__desc  { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.55; }

/* ============ ABOUT ============ */
.about { background: var(--bg-primary); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__content .section__label,
.about__content .section__title { text-align: left; }
.about__content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 0.97rem;
}
.about__values {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}
.about__values li {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  text-align: center;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}
.stat-card__value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-card__label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ============ CONTACT ============ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 6px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,215,0,0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 19px; height: 19px; color: var(--accent); }
.contact-item__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}
.contact-item__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition);
}
a.contact-item__value:hover { color: var(--accent); }
.contact__note {
  padding: 18px 20px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  margin-top: 4px;
}
.contact__note p {
  font-size: 0.87rem;
  color: var(--accent);
  font-weight: 500;
  line-height: 1.5;
}

/* Form */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-label-opt {
  font-weight: 400;
  color: var(--text-muted);
}
.form-input {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.93rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--accent);
  background: rgba(255,215,0,0.03);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.08);
}
.form-input::placeholder { color: var(--text-muted); }
.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}
.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(34, 197, 94, 0.09);
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: var(--radius);
  color: #4ade80;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-success.show { display: flex; }

/* ============ FOOTER ============ */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 14px;
}
.footer__links h4,
.footer__contact h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 11px; }
.footer__links a,
.footer__contact p,
.footer__contact a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer__contact p { margin-bottom: 9px; }
.footer__links a:hover,
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p { font-size: 0.83rem; color: var(--text-muted); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a {
  font-size: 0.83rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--text-secondary); }

/* ============ WHATSAPP BUTTON ============ */
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  font-weight: 600;
  width: 100%;
  gap: 10px;
}
.btn--whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  color: #fff;
}
.contact-item__icon--wa {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.25) !important;
  color: #25D366;
}
.contact-item__icon--wa svg { width: 20px; height: 20px; }

/* Form error state */
.form-error {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.09);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: var(--radius);
  color: #f87171;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-error svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-error.show { display: flex; }

/* ============ SCROLL TO TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(255,215,0,0.3);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  z-index: 990;
}
.scroll-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 28px rgba(255,215,0,0.4);
}
.scroll-top svg { width: 20px; height: 20px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .services__grid  { grid-template-columns: repeat(3, 1fr); }
  .projects__grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about__grid   { grid-template-columns: 1fr; gap: 44px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }

  /* Mobile nav */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 20px 16px;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .nav__menu.open { transform: translateX(0); }
  .nav__link { padding: 14px 16px; font-size: 1rem; border-radius: var(--radius); }
  .nav__link--cta { margin-left: 0; margin-top: 8px; text-align: center; border-radius: 50px; padding: 14px; }

  /* Hero: stack vertically, image below text */
  .hero__inner {
    grid-template-columns: 1fr;
    padding-bottom: 60px;
  }
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.8rem); }
  .hero__subtitle { max-width: 100%; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__image { order: 2; }        /* image goes below text on mobile */
  .hero__text  { order: 1; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact__form { padding: 24px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .services__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .hero__scroll-hint { display: none; }
}
