:root {
  --bg-hsl: 215 16% 91%;
  --bg: hsl(var(--bg-hsl));
  --bg-soft-hsl: 215 16% 85%;
  --bg-soft: hsl(var(--bg-soft-hsl));
  --panel-hsl: 0 0% 100%;
  --panel: hsla(var(--panel-hsl) / 0.7);
  --panel-hover: hsla(var(--panel-hsl) / 0.9);
  --border-hsl: 220 12% 75%;
  --border: hsla(var(--border-hsl) / 0.5);
  --border-active: hsla(200 100% 40% / 0.25);
  --text-hsl: 220 30% 12%;
  --text: hsl(var(--text-hsl));
  --muted-hsl: 220 12% 38%;
  --muted: hsl(var(--muted-hsl));
  --dim: hsl(220 10% 55%);
  --cyan-hsl: 195 90% 36%;
  --cyan: hsl(var(--cyan-hsl));
  --blue-hsl: 222 85% 44%;
  --blue: hsl(var(--blue-hsl));
  --purple-hsl: 265 80% 48%;
  --purple: hsl(var(--purple-hsl));
  --max: 1200px;
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Space Grotesk", var(--font-sans);
}

/* Base resets & scrollbar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: hsla(var(--border-hsl) / 0.8);
  border: 2px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: hsla(var(--cyan-hsl) / 0.5);
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Background elements & grids */
.site-shell {
  min-height: 100vh;
  position: relative;
  background: 
    radial-gradient(circle at 10% 20%, hsla(var(--cyan-hsl) / 0.05), transparent 45rem),
    radial-gradient(circle at 90% 80%, hsla(var(--purple-hsl) / 0.05), transparent 50rem),
    linear-gradient(to bottom, #ebedf0, #e2e5ea 50%, #d5dae2);
}

/* Futuristic background grid */
.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, hsla(var(--text-hsl) / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, hsla(var(--text-hsl) / 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 85%);
}

/* Mouse cursor glow tracker */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, hsla(var(--cyan-hsl) / 0.03) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Header & navigation */
.site-header {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  width: min(calc(100% - 48px), var(--max));
  min-height: 68px;
  padding: 8px 12px 8px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.03),
    0 1px 2px rgba(0, 0, 0, 0.02),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  transform: translateX(-50%);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header:hover {
  border-color: hsla(var(--cyan-hsl) / 0.2);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.04),
    0 0 20px hsla(var(--cyan-hsl) / 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  position: relative;
  border-radius: 50%;
  background: url("assets/nenya-logo.webp") no-repeat center/contain;
  mix-blend-mode: multiply;
  box-shadow: 0 0 10px hsla(var(--cyan-hsl) / 0.15);
}

.brand-mark::after {
  content: none;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.92rem;
  font-weight: 550;
}

.nav-links a {
  color: var(--muted);
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover, .nav-links a.is-active {
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after, .nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-toggle:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 10px hsla(var(--cyan-hsl) / 0.1);
}

/* Button & interactive components */
.btn, .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.9rem;
  height: 46px;
  padding: 0 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.header-cta, .btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #ffffff;
  box-shadow: 0 4px 20px hsla(var(--cyan-hsl) / 0.2);
  font-weight: 700;
}

.header-cta::before, .btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.header-cta:hover::before, .btn-primary:hover::before {
  opacity: 1;
}

.header-cta > *, .btn-primary > * {
  position: relative;
  z-index: 2;
}

.header-cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(var(--cyan-hsl) / 0.3);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: hsla(var(--cyan-hsl) / 0.3);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: all 0.3s ease;
}

/* Sections & layouts */
.section {
  position: relative;
  padding: 140px 0;
  z-index: 5;
}

.section-inner {
  position: relative;
  z-index: 10;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* Hero Section Styles */
.hero {
  min-height: 100vh;
  padding-top: 180px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, var(--bg) 40%, #080c14 70%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 4;
  pointer-events: none;
}

.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.hero-visual {
  position: absolute;
  top: 50%;
  right: -15%;
  transform: translateY(-50%) scale(1.35);
  width: 85%;
  max-width: 1300px;
  height: auto;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  filter: contrast(1.1) saturate(1.25);
  mix-blend-mode: screen;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, hsla(var(--cyan-hsl) / 0.15), transparent 45rem);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

h1 {
  font-family: var(--font-mono);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text) 50%, hsla(var(--text-hsl) / 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  place-items: center;
  z-index: 10;
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% { transform: translateY(-8px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Two column section */
.two-column, .section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

h2 {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 50%, hsla(var(--text-hsl) / 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-copy {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Metrics & Stats Section */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.metric {
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.02),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.metric:hover {
  background: var(--panel-hover);
  border-color: hsla(var(--cyan-hsl) / 0.3);
  transform: translateY(-4px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.05),
    0 0 20px hsla(var(--cyan-hsl) / 0.01),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.metric span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 24px;
  opacity: 0.85;
}

.metric strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

/* Page Hero layout */
.page-hero {
  padding-top: 190px;
  padding-bottom: 80px;
  background: radial-gradient(circle at 50% 0%, hsla(var(--cyan-hsl) / 0.04), transparent 30rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

/* Card grids & items */
.service-grid, .service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.service-detail-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-card, .service-detail-card {
  padding: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.02),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
}

.service-detail-card {
  min-height: 380px;
}

.service-detail-card.wide {
  grid-column: span 2;
}

.service-card:hover, .service-detail-card:hover {
  background: var(--panel-hover);
  border-color: hsla(var(--cyan-hsl) / 0.4);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.06),
    0 0 30px hsla(var(--cyan-hsl) / 0.02),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

/* Custom glow element behind cards updated by JS */
.card-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, hsla(var(--cyan-hsl) / 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .card-glow,
.service-detail-card:hover .card-glow,
.case-card:hover .card-glow,
.metric:hover .card-glow,
.contact-card:hover .card-glow,
.product-card:hover .card-glow {
  opacity: 1;
}

.icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid hsla(var(--cyan-hsl) / 0.3);
  background: hsla(var(--cyan-hsl) / 0.06);
  display: grid;
  place-items: center;
  margin-bottom: 32px;
  box-shadow: 0 0 15px hsla(var(--cyan-hsl) / 0.05);
  position: relative;
  z-index: 2;
}

.icon-box::before, .icon-box::after {
  content: "";
  position: absolute;
}

.code-icon::before {
  width: 20px;
  height: 14px;
  border-left: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: skewX(-15deg);
}

.ai-icon::before {
  width: 24px;
  height: 24px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
}

.ai-icon::after {
  width: 32px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -8px 0 var(--cyan), 0 8px 0 var(--cyan);
}

.cloud-icon::before {
  width: 28px;
  height: 16px;
  border: 2px solid var(--cyan);
  border-radius: 99px;
  background: hsla(var(--cyan-hsl) / 0.15);
}

.iot-icon::before {
  width: 24px;
  height: 24px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  animation: pulseIot 2s infinite ease-in-out;
}

@keyframes pulseIot {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 1; }
}

.security-icon::before {
  width: 20px;
  height: 24px;
  border: 2px solid var(--cyan);
  clip-path: polygon(50% 0, 100% 20%, 100% 70%, 50% 100%, 0 70%, 0 20%);
}

.service-card h3, .service-detail-card h2 {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.service-card p, .service-detail-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
  position: relative;
  z-index: 2;
  flex-grow: 1;
}

/* Tag list inside service cards */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 2;
}

.tag-row span {
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-detail-card:hover .tag-row span {
  border-color: hsla(var(--cyan-hsl) / 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}

.centered-action {
  text-align: center;
  margin-top: 56px;
}

/* Project Showcase & Portfolio */
.project-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.case-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.025),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: all 0.4s ease;
}

.case-card:hover::before {
  border-color: hsla(var(--cyan-hsl) / 0.35);
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(10%) brightness(0.98);
  border-bottom: 1px solid var(--border);
}

.case-card:hover img {
  transform: scale(1.03);
  filter: grayscale(0%) brightness(1.02);
}

.case-content {
  padding: 32px;
  position: relative;
  z-index: 5;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.98));
}

.project-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.project-meta span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: hsla(var(--cyan-hsl) / 0.08);
  border: 1px solid hsla(var(--cyan-hsl) / 0.15);
  color: var(--cyan);
}

.case-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 12px;
}

.case-content p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.05),
    0 0 30px hsla(var(--cyan-hsl) / 0.02);
}

/* Contact layout & form */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px;
  border-radius: 28px;
  background: radial-gradient(circle at 100% 0%, hsla(var(--cyan-hsl) / 0.05), transparent 30rem), var(--panel);
  border: 1px solid var(--border);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.contact-card {
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.contact-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.contact-card a {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 15px hsla(var(--cyan-hsl) / 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Premium footer */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: #f4f6fa;
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 555;
}

.footer-links a:hover {
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(255, 255, 255, 0.5);
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px hsla(var(--cyan-hsl) / 0.05);
}

.copyright {
  text-align: center;
  color: var(--dim);
  font-size: 0.85rem;
  border-top: 1px solid hsla(var(--border-hsl) / 0.2);
  padding-top: 32px;
}

/* Fade and Slide Reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive breakdowns */
@media (max-width: 1060px) {
  .site-header {
    width: calc(100% - 32px);
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
  }
  
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 0;
  }
  
  .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  @media (max-width: 480px) {
    .header-call-btn span {
      display: none !important;
    }
    .header-call-btn {
      padding: 0 !important;
      width: 42px !important;
      height: 42px !important;
      justify-content: center !important;
      border-radius: 50% !important;
    }
  }
  
  .nav-links {
    position: fixed;
    top: 92px;
    left: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    flex-direction: column;
    gap: 0;
    padding: 24px 16px;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  }
  
  .nav-links.is-open {
    display: flex;
  }
  
  .nav-links a {
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 1.05rem;
  }
  
  .nav-links a:hover {
    background: rgba(0, 0, 0, 0.03);
  }

  .nav-links a::after {
    display: none;
  }
  
  .two-column, .section-heading, .metrics-grid, .service-grid, .service-detail-grid, .project-showcase-grid, .contact-panel {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-detail-card.wide {
    grid-column: auto;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 16px;
    min-height: 60px;
  }
  
  .brand {
    font-size: 1.1rem;
  }
  
  .brand-mark {
    width: 24px;
    height: 24px;
  }
  
  .header-cta {
    display: none;
  }
  
  .section {
    padding: 90px 0;
  }
  
  .hero {
    padding-top: 150px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .contact-panel {
    padding: 32px 20px;
  }
  
  .contact-card {
    padding: 24px;
  }
  
  .contact-card a {
    font-size: 1.3rem;
  }
}

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

/* Product portfolio and richer service visuals */
.products-section {
  padding-top: 72px;
  background: transparent;
}

.product-filter {
  position: sticky;
  top: 104px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 800 0.82rem Inter, sans-serif;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--cyan);
  background: hsla(var(--cyan-hsl) / 0.08);
  color: var(--text);
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: opacity 220ms ease, transform 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
}

.product-card.is-hidden {
  display: none;
}

.product-card img {
  position: relative;
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.product-overlay {
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.powered {
  display: none !important;
}

.product-card h2 {
  margin-bottom: 4px;
  font-size: 1.5rem;
  color: var(--text);
  font-family: var(--font-mono);
}

.product-card p {
  max-width: 100%;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  opacity: 1 !important;
  max-height: none !important;
  margin-top: 8px !important;
  overflow: visible !important;
  transform: none !important;
}

.product-tags span {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.product-card:hover img {
  transform: scale(1.04);
}

.visual-service {
  padding-top: 0;
}

.service-visual {
  display: block;
  width: calc(100% + 56px);
  height: 210px;
  margin: -28px -28px 26px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  filter: saturate(0.92) contrast(1.04);
}

.visual-service .icon-box {
  margin-bottom: 24px;
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-filter {
    position: relative;
    top: auto;
  }

  .filter-btn {
    flex: 1 1 auto;
  }

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

  .product-card {
    min-height: 380px;
  }

  .product-overlay {
    padding: 22px;
  }
}

/* --- Dark Theme & Header Scroll Enhancements --- */

/* Theme Dark Overrides */
body.theme-dark {
  --bg-hsl: 222 24% 8%; /* Deep navy/black */
  --bg: hsl(var(--bg-hsl));
  --bg-soft-hsl: 222 24% 12%;
  --bg-soft: hsl(var(--bg-soft-hsl));
  --panel-hsl: 222 24% 10%;
  --panel: hsla(var(--panel-hsl) / 0.75);
  --panel-hover: hsla(var(--panel-hsl) / 0.9);
  --border-hsl: 222 20% 25%;
  --border: hsla(var(--border-hsl) / 0.4);
  --border-active: hsla(195 90% 50% / 0.45);
  --text-hsl: 210 20% 98%; /* White/light gray */
  --text: hsl(var(--text-hsl));
  --muted-hsl: 215 15% 75%; /* Muted light gray */
  --muted: hsl(var(--muted-hsl));
  --dim: hsl(215 10% 60%);
  
  --cyan-hsl: 190 95% 50%; /* Brighter cyan for dark bg */
  --cyan: hsl(var(--cyan-hsl));
}

/* Dark theme specific layouts */
.theme-dark .site-shell {
  background: 
    radial-gradient(circle at 10% 20%, hsla(var(--cyan-hsl) / 0.12), transparent 50rem),
    radial-gradient(circle at 90% 80%, hsla(var(--purple-hsl) / 0.12), transparent 50rem),
    linear-gradient(to bottom, #080c14, #0d131f 50%, #05070a);
}

.theme-dark .site-header {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.65);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.theme-dark .site-header:hover {
  border-color: hsla(var(--cyan-hsl) / 0.3);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.4),
    0 0 20px hsla(var(--cyan-hsl) / 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.theme-dark .lang-toggle,
.theme-dark .menu-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.theme-dark .lang-toggle:hover,
.theme-dark .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cyan);
  color: var(--text);
}

.theme-dark .brand-mark {
  mix-blend-mode: normal;
  filter: brightness(1.2) drop-shadow(0 0 8px hsla(var(--cyan-hsl) / 0.3));
}

.theme-dark .page-hero {
  background: radial-gradient(circle at 50% 0%, hsla(var(--cyan-hsl) / 0.15), transparent 45rem);
}

.theme-dark .products-section {
  background: transparent;
  padding-top: 40px;
}

.theme-dark .site-footer {
  background: #06090e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.theme-dark .social-links a {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.theme-dark .social-links a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--cyan);
  color: var(--text);
}

/* Header Scroll Behavior */
.site-header.scrolled {
  top: 12px;
  min-height: 58px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-color: hsla(var(--cyan-hsl) / 0.25);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(255, 255, 255, 0.95);
}

.theme-dark .site-header.scrolled {
  border-color: hsla(var(--cyan-hsl) / 0.35);
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

/* Dark mode responsive navigation override */
@media (max-width: 1060px) {
  .theme-dark .nav-links {
    background: rgba(8, 12, 20, 0.98);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  }
  .theme-dark .nav-links a {
    color: var(--muted);
  }
  .theme-dark .nav-links a:hover,
  .theme-dark .nav-links a.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Header Call Button Style */
.header-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: hsla(var(--cyan-hsl) / 0.08);
  border: 1px solid hsla(var(--cyan-hsl) / 0.15);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px hsla(var(--cyan-hsl) / 0.04);
}

.header-call-btn:hover {
  background: hsla(var(--cyan-hsl) / 0.15);
  border-color: hsla(var(--cyan-hsl) / 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsla(var(--cyan-hsl) / 0.08);
}

.header-call-btn .phone-icon {
  color: var(--cyan);
  transition: transform 0.3s ease;
}

.header-call-btn:hover .phone-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Premium Grid Footer Styles */
.footer-inner {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 48px !important;
  flex-wrap: wrap !important;
  max-width: var(--max);
  margin: 0 auto 40px auto;
  padding: 0 24px;
}

.footer-brand-section {
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-brand-section .brand {
  justify-content: flex-start;
}

.footer-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links-grid {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 2px 0;
}

.footer-column a:hover {
  color: var(--cyan);
}

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

@media (max-width: 991px) {
  .site-footer {
    padding: 40px 0 24px !important;
  }
  .footer-inner {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 30px !important;
    margin-bottom: 20px !important;
  }
  .footer-brand-section {
    max-width: 100% !important;
    align-items: center !important;
    text-align: center !important;
    gap: 12px !important;
  }
  .footer-brand-section .brand {
    justify-content: center !important;
  }
  .footer-links-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    width: 100% !important;
  }
  .footer-column {
    align-items: center !important;
    text-align: center !important;
    min-width: 140px;
  }
  .copyright-container {
    margin-top: 24px auto 0 auto !important;
    padding-top: 20px !important;
  }
}

@media (max-width: 580px) {
  .footer-description {
    display: none !important;
  }
  .footer-inner {
    gap: 24px !important;
  }
  .footer-links-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px 16px !important;
  }
  .footer-links-grid .footer-column {
    min-width: auto !important;
  }
  .footer-links-grid .footer-column:last-child {
    grid-column: span 2 !important;
    border-top: 1px solid var(--border);
    padding-top: 16px !important;
    margin-top: 8px !important;
  }
  .footer-links-grid .footer-column:last-child h4 {
    margin-bottom: 4px !important;
  }
  .footer-links-grid .footer-column:last-child a {
    display: inline-block !important;
    margin: 4px 8px !important;
  }
}

