:root {
  --bg: #0c0f14;
  --card: rgba(255, 255, 255, 0.06);
  --text: #e6ebf5;
  --muted: #9fb0c7;
  --accent: #7ddaff;
  --accent-2: #e7c6ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --gradient: linear-gradient(135deg, #5f9bff 0%, #7ddaff 40%, #e7c6ff 100%);
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 18% 20%, rgba(127, 188, 255, 0.12), transparent 30%),
              radial-gradient(circle at 82% 0%, rgba(231, 198, 255, 0.18), transparent 28%),
              linear-gradient(180deg, #0c0f14 0%, #0a0e13 60%, #0f1620 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
  padding: 24px;
  overflow-x: hidden;
}
body.overlay-open { overflow: hidden; }

.noise {
  position: fixed;
  inset: 0;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="160" height="160" viewBox="0 0 160 160"%3E%3Cfilter id="n" x="0" y="0" width="100%25" height="100%25"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.12"/%3E%3C/svg%3E');
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  animation: fade 5s ease-in-out infinite alternate;
}

@keyframes fade {
  from { opacity: 0.25; }
  to { opacity: 0.45; }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  background: rgba(12, 15, 20, 0.75);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.nav-top { display: flex; align-items: center; gap: 16px; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav nav { display: flex; gap: 14px; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.nav a.active {
  color: var(--text);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.nav-link-button {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-link-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.about-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(125,218,255,0.25), rgba(231,198,255,0.2));
  border-color: rgba(125,218,255,0.5);
  box-shadow: 0 10px 35px rgba(125,218,255,0.25), 0 0 0 1px rgba(231,198,255,0.12);
}

.about-cta::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 55%);
  animation: aboutPulse 3s ease-in-out infinite;
}

.about-cta span,
.about-cta { position: relative; z-index: 1; }

@keyframes aboutPulse {
  0% { transform: scale(0.8) translateX(-6%); opacity: 0.5; }
  50% { transform: scale(1.1) translateX(6%); opacity: 0.9; }
  100% { transform: scale(0.8) translateX(-6%); opacity: 0.5; }
}



.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.brand-mark { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.4); }
.brand-name { font-size: 20px; }

.logo { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.5px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

main { display: flex; flex-direction: column; gap: 72px; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) * 1.2);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.glow {
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(125,218,255,0.18) 0%, rgba(12,15,20,0) 55%);
  top: -140px;
  right: -200px;
  filter: blur(5px);
}

.hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; }
.hero .accent { color: var(--accent); }
.hero .lead { color: var(--muted); max-width: 640px; }

.eyebrow { color: var(--accent); letter-spacing: 1px; font-size: 14px; text-transform: uppercase; font-weight: 700; }
.lead { font-size: 18px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.logo-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03); box-shadow: var(--shadow); max-width: 420px; }
.logo-preview { width: 52px; height: 52px; border-radius: 14px; object-fit: contain; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary { background: var(--gradient); color: #0b1220; box-shadow: 0 12px 40px rgba(125,218,255,0.35); }
.btn.ghost { color: var(--text); border-color: rgba(255,255,255,0.18); }
.btn:hover { transform: translateY(-2px); }

.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 10px; }
.hero-stats .number { display: block; font-size: 32px; font-weight: 800; color: var(--accent); }
.hero-stats .label { color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }

.hero-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius) * 1.2);
  padding: 20px;
  box-shadow: 0 20px 80px rgba(13, 24, 44, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 14px;
}

.status { width: 10px; height: 10px; border-radius: 50%; display: inline-flex; }
.status.online { background: #7dffb3; box-shadow: 0 0 12px rgba(125,255,179,0.6); }
.pill { padding: 4px 10px; border-radius: 999px; background: rgba(125,218,255,0.16); color: var(--accent); font-weight: 700; font-size: 12px; }

.chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; margin: 12px 0; }
.bar {
  flex: 1;
  height: var(--value);
  background: var(--gradient);
  border-radius: 12px;
  box-shadow: inset 0 -12px 24px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.card-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.strong { font-weight: 800; }

.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.mini-card { background: rgba(255,255,255,0.04); padding: 12px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06); }

.tech-marquee {
  position: relative;
  flex: 1;
  overflow: visible;
  border-radius: var(--radius);
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  padding: 12px;
  display: grid;
}

.tech-placeholder {
  color: var(--muted);
  text-align: center;
  width: 100%;
  font-size: 13px;
  padding: 0 12px;
  place-self: center;
}

.tech-placeholder code {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1px 6px;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
}

.logo-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.tech-logo {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  padding: 12px;
  gap: 8px;
}

.tech-logo img { width: 100%; height: 100%; object-fit: contain; max-height: 120px; }

.tech-logo span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.tech-logo.tech-fallback {
  border-style: dashed;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
}


.section { display: flex; flex-direction: column; gap: 24px; }
.section-title h2 { font-size: clamp(26px, 4vw, 38px); }
.section-title .description { color: var(--muted); max-width: 720px; }

.grid { display: grid; gap: 18px; }
.services { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.projects { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.service-card ul { list-style: none; margin-top: 8px; color: var(--muted); display: grid; gap: 6px; }
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.category-card {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  justify-items: center;
  text-align: center;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(125,218,255,0.12), rgba(231,198,255,0.12));
  opacity: 0.2;
  z-index: 0;
}
.category-visual {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), var(--shadow);
}
.category-card > * { position: relative; z-index: 1; }
.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  position: relative;
}
.category-title span {
  position: relative;
  background: linear-gradient(120deg, var(--accent-2), #bde3ff, var(--accent));
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 6px 24px rgba(125, 218, 255, 0.4);
}
.category-title span::after {
  content: '';
  position: absolute;
  inset: 100% 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(125, 218, 255, 0.9), rgba(231, 198, 255, 0.9), rgba(125, 218, 255, 0.9));
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.85;
  animation: shimmer 3.5s ease-in-out infinite;
}
.category-description { color: var(--muted); }
.category-description { color: var(--muted); }
.category-list { list-style: none; display: grid; gap: 8px; color: var(--muted); }
.category-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1px;
  text-align: center;
  line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 10px 30px rgba(0,0,0,0.18);
  min-width: 110px;
  max-width: 240px;
  width: fit-content;
  white-space: normal;
  word-break: break-word;
}
.tech-stack {
  display: grid;
  gap: 10px;
  position: relative;
  width: 100%;
  justify-self: stretch;
}
.tech-tags { gap: 8px; }
.tech-tags.dynamic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  justify-content: stretch;
  align-content: start;
  justify-items: center;
  width: 100%;
  max-width: 100%;
  gap: 10px;
  min-height: 92px;
  padding: 6px;
  border-radius: 12px;
  background: radial-gradient(circle at 16% 24%, rgba(125,218,255,0.12), rgba(255,255,255,0)), rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: max-height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tech-tags.dynamic { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); min-height: 92px; padding: 6px; border-radius: 12px; background: radial-gradient(circle at 16% 24%, rgba(125,218,255,0.12), rgba(255,255,255,0)), rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); overflow: hidden; transition: max-height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.tech-tags.dynamic::after { content: ''; position: absolute; inset: auto 0 0 0; height: 36px; background: linear-gradient(180deg, rgba(9,11,19,0) 0%, rgba(9,11,19,0.9) 100%); pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }.tech-tags.dynamic.expanded { grid-template-columns: repeat(auto-fit, minmax(140px, max-content)); max-height: none; background: linear-gradient(120deg, rgba(125,218,255,0.08), rgba(231,198,255,0.08)); box-shadow: 0 18px 60px rgba(0,0,0,0.35); }.tech-tags.dynamic.expanded { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); max-height: none; background: linear-gradient(120deg, rgba(125,218,255,0.08), rgba(231,198,255,0.08)); box-shadow: 0 18px 60px rgba(0,0,0,0.35); }
.tech-tags.dynamic.expanded::after { opacity: 0; }
.tech-tags.dynamic:not(.expanded) { max-height: 140px; }
.tech-tags.dynamic:not(.expanded)::after { opacity: 1; }
.tech-tags.dynamic.pulse { box-shadow: 0 0 0 1px rgba(125,218,255,0.3), 0 18px 50px rgba(125,218,255,0.2); }
.pill-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.pill-toggle { border: 1px solid rgba(255,255,255,0.22); background: linear-gradient(120deg, rgba(125,218,255,0.18), rgba(231,198,255,0.18)); color: var(--text); border-radius: 999px; padding: 8px 14px; font-weight: 800; letter-spacing: 0.3px; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.pill-toggle:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(125,218,255,0.25); }
.pill-toggle:active { transform: translateY(0); }
.pill-hint { color: var(--muted); font-size: 12px; }
.seo-list { position: absolute; opacity: 0; height: 1px; overflow: hidden; pointer-events: none; }
.small-label { font-size: 12px; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); font-weight: 800; }

@keyframes shimmer {
  0% { transform: scaleX(0.85); opacity: 0.7; }
  50% { transform: scaleX(1.05); opacity: 1; }
  100% { transform: scaleX(0.85); opacity: 0.7; }
}

.muted-section { background: rgba(255,255,255,0.02); border-radius: calc(var(--radius) * 1.1); padding: 26px; border: 1px solid rgba(255,255,255,0.06); box-shadow: var(--shadow); }
.project-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags span { background: rgba(255,255,255,0.06); padding: 6px 10px; border-radius: 10px; font-size: 12px; color: var(--muted); }

.region-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.region-card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}

.gradient-section {
  background: radial-gradient(circle at 20% 20%, rgba(127, 188, 255, 0.24), rgba(0,0,0,0) 32%),
              radial-gradient(circle at 80% 0%, rgba(231, 198, 255, 0.18), rgba(0,0,0,0) 36%),
              linear-gradient(120deg, rgba(125,218,255,0.12), rgba(231,198,255,0.12));
  border-radius: calc(var(--radius) * 1.2);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 26px;
  box-shadow: var(--shadow);
}

.gradient-section .cta {
  align-items: center;
  text-align: center;
}


.individual-section {
  background: rgba(255,255,255,0.02);
  border-radius: calc(var(--radius) * 1.1);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
  padding: 28px;
}

.individual-section .section-title {
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.individual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.individual-card {
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.individual-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125,218,255,0.18), rgba(231,198,255,0.2));
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.location-section {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: calc(var(--radius) * 1.1);
  padding: 28px;
  background: linear-gradient(135deg, rgba(125,218,255,0.08), rgba(231,198,255,0.06));
  box-shadow: var(--shadow);
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.location-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.location-pin {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}


.cta { display: flex; flex-direction: column; gap: 18px; }
.cta-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cta-stat .number { font-size: 36px; font-weight: 800; color: var(--accent-2); }

.contact { gap: 14px; }
.contact-form { display: grid; gap: 12px; }
.contact-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: var(--card);
  color: var(--text);
  appearance: none;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-blend-mode: screen;
}

.contact-form select option {
  background: #0f1620;
  color: #e6ebf5;
}

body.light .contact-form select {
  border: 1px solid rgba(15,23,42,0.12);
  background: white;
  color: #0f172a;
}

body.light .contact-form select option {
  background: white;
  color: #0f172a;
}

body.light .contact-form input,
body.light .contact-form textarea {
  border: 1px solid rgba(15,23,42,0.12);
  background: white;
  color: #0f172a;
}

body.light .contact-form label { color: #111827; }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.switch input { display: none; }
.slider {
  width: 44px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s ease;
}
.slider::after {
  content: '';
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 2px; left: 2px;
  transition: transform 0.2s ease;
}
.switch input:checked + .slider { background: var(--gradient); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch-label { font-size: 14px; }

.devis-overlay {
  position: relative;
}

.maintenance-blur {
  filter: blur(4px);
  opacity: 0.6;
  pointer-events: none;
}

.maintenance-message {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-weight: 800;
  font-size: 20px;
  color: white;
  background: rgba(15, 23, 42, 0.68);
  border-radius: var(--radius);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

body.light .maintenance-message {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.legal-section { margin-top: 48px; }
.legal-card {
  display: grid;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.legal-item h3 { margin-bottom: 6px; font-size: 16px; }

.about-overlay,
.contact-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 20;
  padding: 24px 12px;
  align-content: flex-start;
  overflow-y: auto;
  justify-items: center;
  align-items: flex-start;
}

.about-overlay.active,
.contact-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.about-backdrop,
.contact-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(125,218,255,0.15), transparent 30%),
              radial-gradient(circle at 80% 30%, rgba(231,198,255,0.12), transparent 32%),
              rgba(5,5,10,0.75);
  backdrop-filter: blur(10px);
}

body.light .about-backdrop,
body.light .contact-backdrop {
  background: radial-gradient(circle at 20% 20%, rgba(14,165,233,0.16), transparent 30%),
              radial-gradient(circle at 80% 30%, rgba(168,85,247,0.14), transparent 32%),
              rgba(255,255,255,0.72);
}


.about-panel,
.contact-panel {
  position: relative;
  width: min(900px, 92vw);
  background: linear-gradient(135deg, rgba(24,32,45,0.9), rgba(15,14,29,0.92));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-overlay.active .about-panel,
.contact-overlay.active .contact-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.about-panel::before,
.contact-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(125,218,255,0.12), rgba(231,198,255,0.08));
  opacity: 0.3;
  pointer-events: none;
}

body.light .about-panel,
body.light .contact-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(245,247,251,0.98));
  border-color: rgba(15,23,42,0.12);
  box-shadow: 0 24px 70px rgba(0,0,0,0.12);
}

body.light .about-panel::before,
body.light .contact-panel::before { opacity: 0.12; }


.about-close,
.contact-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.about-close:hover,
.contact-close:hover { transform: scale(1.05); background: rgba(255,255,255,0.1); }

.about-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-avatar {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(125,218,255,0.22), rgba(231,198,255,0.22));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.about-grid p { margin: 0; }

.contact-header { position: relative; z-index: 1; display: grid; gap: 6px; margin-bottom: 16px; justify-items: center; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  margin: 0 auto;
}

.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125,218,255,0.4);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 20px;
  background: linear-gradient(135deg, rgba(125,218,255,0.2), rgba(231,198,255,0.16));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

.contact-cta {
  background: linear-gradient(120deg, rgba(125,218,255,0.2), rgba(99,102,241,0.22));
  border-color: rgba(125,218,255,0.4);
  box-shadow: 0 12px 28px rgba(99,102,241,0.28);
  position: relative;
  overflow: hidden;
  animation: contact-pulse 3s ease-in-out infinite;
}

@keyframes contact-pulse {
  0% { box-shadow: 0 12px 28px rgba(99,102,241,0.28); }
  50% { box-shadow: 0 12px 36px rgba(125,218,255,0.45); }
  100% { box-shadow: 0 12px 28px rgba(99,102,241,0.28); }
}

.footer {
  margin-top: 60px;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  color: var(--muted);
}
.footer a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer .socials {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.socials {
  flex-direction: column;
  align-items: center;
}

.legal-link {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(125,218,255,0.12);
  color: var(--text);
  text-decoration: underline;
  font-weight: 700;
}

.social-button {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.social-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.28);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

@media (max-width: 720px) {
  body { padding: 16px; }
  .nav {
    position: sticky;
    top: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nav-top { width: 100%; justify-content: space-between; }
  .nav-actions { gap: 8px; }

  .nav nav {
    display: none;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
  }

  .nav.nav-open nav { display: flex; }

  .nav a,
  .nav-link-button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .menu-toggle { display: flex; }
  .hero { padding: 24px; }
  .about-panel { padding: 18px; }
  .about-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .about-avatar { margin-bottom: 8px; }
}

/* Light theme */
body.light {
  --bg: #f5f7fb;
  --card: rgba(255, 255, 255, 0.8);
  --text: #0f172a;
  --muted: #4b5563;
  --accent: #0ea5e9;
  --accent-2: #a855f7;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
  color-scheme: light;
  background: radial-gradient(circle at 10% 20%, rgba(14,165,233,0.12), transparent 26%),
              radial-gradient(circle at 90% 10%, rgba(168,85,247,0.16), transparent 28%),
              #f5f7fb;
}
body.light .noise { display: none; }
body.light .hero-card, body.light .muted-section, body.light .card, body.light .region-card { background: rgba(255,255,255,0.92); }
body.light .btn.primary { color: white; }
body.light .btn.ghost { border-color: rgba(15,23,42,0.1); color: #0f172a; }
body.light .nav { background: rgba(255,255,255,0.92); }
body.light .footer { color: #4b5563; }
