/* ===================================================
   JOATMON — Jack of all trades, master of none
   Global Styles
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
  --green:        #2d7a38;
  --green-light:  #3faa4e;
  --green-glow:   rgba(45, 122, 56, 0.18);
  --green-border: rgba(45, 122, 56, 0.35);

  --bg:           #0c0c0c;
  --bg-elevated:  #141414;
  --bg-card:      #1a1a1a;
  --bg-card-hover:#1f1f1f;

  --text:         #e4e4e0;
  --text-muted:   #737370;
  --text-subtle:  #4a4a47;
  --border:       #222222;
  --border-light: #2e2e2e;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);

  --nav-height:   90px;
  --radius:       12px;
  --radius-lg:    20px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }
ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.nav__inner .nav__logo   { justify-self: start; }
.nav__inner .nav__links  { justify-self: center; }
.nav__inner .nav__hamburger { justify-self: end; }

/* Logo */
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  position: relative;
  cursor: pointer;
  /* Gradient shimmer text */
  background: linear-gradient(90deg, #e4e4e0 0%, #3faa4e 50%, #e4e4e0 100%);
  background-size: 250%;
  background-position: 0%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background-position 0.7s var(--ease-out), letter-spacing 0.35s var(--ease-out);
}

.nav__logo:hover {
  background-position: 100%;
  letter-spacing: 0.10em;
}

.nav__logo span {
  display: block;
  height: 2px;
  width: 28px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  box-shadow: 0 0 6px var(--green), 0 0 16px rgba(63,170,78,0.35);
  margin-top: 5px;
  border-radius: 2px;
  transition: width 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav__logo:hover span {
  width: 100%;
  box-shadow: 0 0 10px var(--green-light), 0 0 28px rgba(63,170,78,0.55);
}

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 52px;
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  height: 1px;
  width: 0;
  background: var(--green);
  transition: width 0.3s var(--ease-out);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav__mobile {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
  z-index: 999;
}

.nav__mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.nav__mobile .nav__link { font-size: 1.1rem; }

/* ===================================================
   HERO — HOME
   =================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
  padding-bottom: var(--nav-height);
}

/* Background orbs */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite alternate;
}

.hero__orb--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2d7a38 0%, transparent 70%);
  top: -100px; left: -100px;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #1a4d22 0%, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -4s;
}

.hero__orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #2d7a38 0%, transparent 70%);
  top: 50%; left: 60%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

/* Grid overlay */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

/* Eyebrow */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero__eyebrow::before,
.hero__eyebrow::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: var(--green-light);
  opacity: 0.6;
}

/* Main Title */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 24px;
  overflow: hidden;
  cursor: default;
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: wordReveal 0.9s var(--ease-out) forwards;
}

.hero__title .word:nth-child(1) { animation-delay: 0.4s; }

/* Green accent line */
.hero__line {
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  margin: 0 auto 40px;
  border-radius: 2px;
  animation: lineGrow 0.8s var(--ease-out) 1s forwards;
}

@keyframes lineGrow {
  to { width: 60%; }
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.1s forwards;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.3s forwards;
}

/* Buttons */
.hero__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 1.5s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn--primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 122, 56, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-light);
}

.btn--secondary:hover {
  border-color: var(--green-border);
  background: var(--green-glow);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease 2s forwards;
  cursor: pointer;
}

.hero__scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-subtle), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.3; }
}

/* ===================================================
   PAGE HERO (inner pages)
   =================================================== */
.page-hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(45, 122, 56, 0.12) 0%, transparent 70%);
}

.page-hero__label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 16px;
  font-weight: 500;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* ===================================================
   SECTION SHARED
   =================================================== */
section { padding: 100px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--green-light);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
}

/* ===================================================
   ABOUT STRIP
   =================================================== */
.about {
  background: var(--bg-elevated);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__text p:last-child { margin-bottom: 0; }

.about__text strong { color: var(--text); font-weight: 500; }

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.3s ease;
}

.stat:hover { border-color: var(--green-border); }

.stat__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-light);
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================================================
   SERVICES
   =================================================== */
.services__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 60px;
  gap: 24px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out), background 0.3s ease;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transition: width 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

.service-card:hover::before { width: 100%; }

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s ease;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--green-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-card__icon {
  background: rgba(45, 122, 56, 0.28);
}

/* ── Service icon hover animations ── */
.service-card__icon svg {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.3s var(--ease-out);
}

/* Montage PC — engrenage qui tourne */
.service-card[data-service="montage-pc"]:hover .service-card__icon svg {
  animation: iconGearSpin 1.4s linear infinite;
}

/* Dépannage PC — clé qui se balance */
.service-card[data-service="depannage-pc"]:hover .service-card__icon svg {
  animation: iconWrenchSwing 0.45s ease-in-out infinite alternate;
  transform-origin: 70% 70%;
}

/* Montage Vidéo — caméra qui tremble */
.service-card[data-service="montage-video"]:hover .service-card__icon svg {
  animation: iconCameraShake 0.25s ease infinite;
}

/* Animations 3D — cube qui flotte et tourne */
.service-card[data-service="anim-3d"]:hover .service-card__icon svg {
  animation: iconCubeFloat 1.8s ease-in-out infinite;
}

/* Développement — brackets qui pulsent */
.service-card[data-service="dev"]:hover .service-card__icon svg {
  animation: iconCodePulse 0.7s ease-in-out infinite alternate;
}

/* Impression 3D — mouvement d'impression */
.service-card[data-service="print-3d"]:hover .service-card__icon svg {
  animation: iconPrintMove 0.9s ease-in-out infinite;
}

@keyframes iconGearSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes iconWrenchSwing {
  from { transform: rotate(-28deg); }
  to   { transform: rotate(16deg); }
}

@keyframes iconCameraShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%       { transform: translate(-2px, -1px) rotate(-2deg); }
  75%       { transform: translate(2px, 1px) rotate(2deg); }
}

@keyframes iconCubeFloat {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50%       { transform: translateY(-4px) rotate(8deg) scale(1.06); }
}

@keyframes iconCodePulse {
  from { transform: scaleX(1); }
  to   { transform: scaleX(1.18); }
}

@keyframes iconPrintMove {
  0%, 100% { transform: translateY(0); }
  35%       { transform: translateY(-5px); }
  65%       { transform: translateY(2px); }
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================================================
   CTA BAND
   =================================================== */
.cta-band {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
  text-align: center;
}

.cta-band__inner {
  max-width: 600px;
  margin: 0 auto;
}

.cta-band__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-band__desc {
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ===================================================
   PORTFOLIO
   =================================================== */
.portfolio-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.filter-btn:hover {
  border-color: var(--border-light);
  color: var(--text);
}

.filter-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: var(--border-light);
}

.portfolio-item--tall { grid-row: span 2; aspect-ratio: unset; }
.portfolio-item--wide { grid-column: span 2; aspect-ratio: 16/9; }

.portfolio-item__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.portfolio-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
}

.portfolio-item__placeholder svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-subtle);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-item:hover .portfolio-item__thumb { transform: scale(1.05); }

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }

.portfolio-item__cat {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.portfolio-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-section {
  padding: 80px 0 120px;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info__desc {
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.contact-detail:last-child { border-bottom: 1px solid var(--border); }

.contact-detail__icon {
  width: 38px;
  height: 38px;
  background: var(--green-glow);
  border: 1px solid var(--green-border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--green-light);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
  margin-bottom: 4px;
}

.contact-detail__value {
  font-size: 0.95rem;
  color: var(--text);
}

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 20px;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-subtle);
}

.form__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737370' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form__select option { background: var(--bg-elevated); }

.form__textarea {
  resize: vertical;
  min-height: 140px;
}

.form__submit {
  width: 100%;
  padding: 16px;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 10px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form__submit:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(45, 122, 56, 0.35);
}

.form__submit svg {
  width: 18px; height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.form__submit:hover svg { transform: translateX(4px); }

.form__success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form__success.show { display: block; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer__logo span {
  display: block;
  height: 2px;
  width: 50%;
  background: var(--green);
  margin-top: 3px;
  border-radius: 1px;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__link:hover { color: var(--text); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ===================================================
   MODE SWITCH
   =================================================== */
.mode-switch {
  display: flex;
  position: fixed;
  top: calc(var(--nav-height) / 2);
  right: 24px;
  transform: translateY(-50%);
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
  z-index: 10001;
  user-select: none;
}

.mode-switch__btn {
  position: relative;
  z-index: 1;
  padding: 5px 11px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 7px;
  font-family: var(--font-body);
  transition: color 0.25s ease;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.mode-switch__btn.active { color: var(--text); }


.mode-switch__indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  height: calc(100% - 6px);
  width: 60px; /* overridden by JS */
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out);
  z-index: 0;
  pointer-events: none;
}

/* Nav sits above canvas overlays */
.nav {
  z-index: 1000 !important;
}

/* Content sits above particle canvas (z-index: 1) */
section,
.about,
.cta-band,
.footer,
.page-hero,
.contact-section,
.portfolio-filter {
  position: relative;
  z-index: 2;
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===================================================
   KEYFRAMES
   =================================================== */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

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

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .services__header { flex-direction: column; align-items: flex-start; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-item--wide { grid-column: span 2; }
  .portfolio-item--tall { grid-row: span 1; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  section { padding: 72px 0; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .mode-switch { top: calc(var(--nav-height) / 2); right: 56px; transform: translateY(-50%); }
  .mode-switch__btn { padding: 4px 7px; font-size: 0.65rem; }

  .hero__title { font-size: clamp(3rem, 15vw, 5rem); }
  .hero__orb--1 { width: 300px; height: 300px; }
  .hero__orb--2 { width: 250px; height: 250px; }

  .services__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }

  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item--wide { grid-column: span 1; aspect-ratio: 4/3; }

  .form__row { grid-template-columns: 1fr; }
  .form { padding: 28px 24px; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .contact-inner { gap: 32px; }
}
