/* ============================================
   NEMESIS CORE IT — Design System v2
   Aesthetic: Premium Corporate Dark + Industrial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --brand-red: #8e0e00;
  --brand-red-light: #b91c1c;
  --brand-dark: #0b0d11;
  --brand-blue: #0662b5;
  --brand-blue-light: #2b87da;
  --brand-navy: #0f172a;
  --brand-accent: #cc2b5e;

  --gradient-hero: linear-gradient(160deg, #0b0d11 0%, #111827 40%, #0f172a 70%, #0b0d11 100%);
  --gradient-brand: linear-gradient(135deg, #8e0e00, #cc2b5e, #0662b5);
  --gradient-cta: linear-gradient(135deg, #2b87da 0%, #0662b5 50%, #044a8a 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-red-subtle: linear-gradient(135deg, rgba(142,14,0,0.08), rgba(204,43,94,0.05));
  --gradient-blue-subtle: linear-gradient(135deg, rgba(6,98,181,0.08), rgba(43,135,218,0.05));

  --text-primary: #f1f5f9;
  --text-secondary: rgba(241,245,249,0.6);
  --text-muted: rgba(241,245,249,0.35);
  --text-accent: #38bdf8;

  --surface-glass: rgba(255,255,255,0.03);
  --surface-glass-hover: rgba(255,255,255,0.06);
  --surface-border: rgba(255,255,255,0.06);
  --surface-border-hover: rgba(255,255,255,0.12);
  --surface-card: rgba(15,23,42,0.6);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;

  --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-elevated: 0 24px 64px rgba(0,0,0,0.4);
  --shadow-glow-blue: 0 0 60px rgba(6,98,181,0.15);
  --shadow-glow-red: 0 0 60px rgba(142,14,0,0.12);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-base: 0.35s var(--ease-out-expo);
  --transition-slow: 0.6s var(--ease-out-expo);
  --transition-spring: 0.5s var(--ease-spring);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); background: var(--brand-dark); color: var(--text-primary); overflow-x: hidden; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--brand-dark); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ── Layout ── */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--space-lg); }
.section { position: relative; padding: var(--space-3xl) 0; overflow: hidden; }

/* ══════════════════════════
   BACKGROUND EFFECTS
   ══════════════════════════ */
.bg-noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}
.orb--red { width: 500px; height: 500px; background: rgba(142,14,0,0.12); }
.orb--blue { width: 450px; height: 450px; background: rgba(6,98,181,0.1); }
.orb--purple { width: 400px; height: 400px; background: rgba(133,43,130,0.08); }

#particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}

/* ══════════════════════════
   LOADING SCREEN
   ══════════════════════════ */
.loader {
  position: fixed; inset: 0;
  background: var(--brand-dark);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  margin-bottom: var(--space-md);
}
.loader__logo img {
  height: 36px;
  margin: 0 auto;
}
.loader__bar {
  width: 200px; height: 2px;
  background: var(--surface-border);
  border-radius: 2px; overflow: hidden;
  margin: 0 auto;
}
.loader__progress {
  width: 0%; height: 100%;
  background: var(--gradient-brand);
  border-radius: 2px;
  animation: load 1.8s var(--ease-out-expo) forwards;
}
@keyframes load {
  0% { width: 0%; }
  40% { width: 60%; }
  100% { width: 100%; }
}

/* ══════════════════════════
   NAVIGATION
   ══════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: var(--space-sm) 0;
  transition: all var(--transition-base);
}
.nav.scrolled {
  padding: 0.4rem 0;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(11,13,17,0.88);
  border-bottom: 1px solid var(--surface-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.nav__logo { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo-img {
  height: 28px; width: auto;
  transition: all var(--transition-base);
}
.nav__logo:hover .nav__logo-img { filter: drop-shadow(0 0 8px rgba(142,14,0,0.5)); }
.nav__logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding-left: 0.6rem;
  border-left: 1px solid var(--surface-border);
}

/* Nav Menu */
.nav__menu {
  display: flex; align-items: center; gap: var(--space-md); list-style: none;
}
.nav__link {
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  position: relative; letter-spacing: 0.01em;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 50%; width: 0; height: 2px;
  background: var(--gradient-brand);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 1px;
}
.nav__link:hover { color: var(--text-primary); }
.nav__link:hover::after { width: 100%; }

.nav__cta {
  padding: 0.55rem 1.4rem;
  background: var(--gradient-cta);
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; color: white;
  transition: all var(--transition-spring);
  box-shadow: 0 2px 15px rgba(43,135,218,0.25);
  border: 1px solid rgba(43,135,218,0.3);
}
.nav__cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 25px rgba(43,135,218,0.4);
}

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; z-index: 1001;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
  border-radius: 2px;
}
.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════
   HERO SECTION
   ══════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.3) brightness(0.5);
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,17,0.4) 0%, rgba(11,13,17,0.7) 60%, var(--bg-deep) 100%);
}

/* ── Animated Mesh Gradient ── */
.hero__mesh {
  position: absolute; inset: -50%; width: 200%; height: 200%;
  z-index: 0;
  background:
    radial-gradient(circle 600px at 20% 40%, rgba(43,135,218,0.12) 0%, transparent 70%),
    radial-gradient(circle 500px at 75% 30%, rgba(142,14,0,0.10) 0%, transparent 65%),
    radial-gradient(circle 450px at 50% 80%, rgba(100,50,200,0.07) 0%, transparent 60%);
  animation: mesh-drift 20s ease-in-out infinite;
  filter: blur(60px);
}
@keyframes mesh-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3%, -3%) rotate(2deg); }
  50% { transform: translate(-2%, 4%) rotate(-1deg); }
  75% { transform: translate(4%, 1%) rotate(3deg); }
}

.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}
.hero__content { position: relative; z-index: 2; max-width: 680px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: badge-shimmer 3s ease-in-out infinite;
}
@keyframes badge-shimmer {
  0%, 100% { border-color: rgba(255,255,255,0.08); }
  50% { border-color: rgba(43,135,218,0.2); }
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34,197,94,0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(34,197,94,0.3); }
}
.hero__badge-pulse {
  position: absolute; inset: -3px; border-radius: inherit;
  border: 1px solid rgba(34,197,94,0.3);
  animation: badge-ring 2.5s ease-out infinite;
}
@keyframes badge-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 0; }
}

/* ── Scan Line ── */
.hero__scan-line {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(43,135,218,0.4), rgba(142,14,0,0.3), transparent);
  animation: scan-move 4s linear infinite;
  z-index: 3; pointer-events: none;
  box-shadow: 0 0 20px rgba(43,135,218,0.15);
}
@keyframes scan-move {
  0% { top: 0; }
  100% { top: 100%; }
}

/* ── Floating Tech Icons ── */
.hero__floaters {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}
.hero__float-icon {
  position: absolute; left: var(--x); top: var(--y);
  font-size: 1.6rem; opacity: 0.15;
  animation: float-orbit 8s ease-in-out infinite;
  animation-delay: var(--delay);
  filter: blur(0.5px);
  transition: opacity 0.3s;
}
.hero:hover .hero__float-icon { opacity: 0.3; }
@keyframes float-orbit {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(15px, -20px) rotate(5deg) scale(1.1); }
  50% { transform: translate(-10px, -35px) rotate(-3deg) scale(0.95); }
  75% { transform: translate(20px, -10px) rotate(8deg) scale(1.05); }
}

/* ── Glitch Effect ── */
.hero__glitch {
  position: relative;
}
.hero__glitch::before,
.hero__glitch::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  background: var(--bg-deep);
  -webkit-background-clip: text; background-clip: text;
  overflow: hidden;
}
.hero__glitch::before {
  animation: glitch-1 3s infinite linear;
  -webkit-text-fill-color: rgba(43,135,218,0.7);
  clip-path: inset(0 0 65% 0);
}
.hero__glitch::after {
  animation: glitch-2 3s infinite linear;
  -webkit-text-fill-color: rgba(142,14,0,0.7);
  clip-path: inset(65% 0 0 0);
}
@keyframes glitch-1 {
  0%, 92%, 100% { transform: translate(0); }
  93% { transform: translate(-3px, 1px); }
  95% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, 2px); }
}
@keyframes glitch-2 {
  0%, 90%, 100% { transform: translate(0); }
  91% { transform: translate(2px, 1px); }
  94% { transform: translate(-3px, -1px); }
  96% { transform: translate(1px, -2px); }
}

/* ── Typing Cursor ── */
.hero__cursor {
  display: inline-block;
  color: var(--brand-blue);
  font-weight: 300;
  animation: cursor-blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Glow Button ── */
.btn--glow {
  animation: btn-glow-pulse 3s ease-in-out infinite;
}
@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 2px 20px rgba(43,135,218,0.25); }
  50% { box-shadow: 0 4px 40px rgba(43,135,218,0.5), 0 0 60px rgba(43,135,218,0.15); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.hero__title-gradient {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease-in-out infinite;
}
@keyframes gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  line-height: 1.75; margin-bottom: var(--space-xl);
  max-width: 520px;
}
.hero__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  transition: all var(--transition-spring);
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0; transition: opacity var(--transition-base);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--gradient-cta); color: white;
  box-shadow: 0 2px 20px rgba(43,135,218,0.25);
  border: 1px solid rgba(43,135,218,0.3);
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 35px rgba(43,135,218,0.4);
}
.btn--outline {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(10px);
}
.btn--outline:hover {
  background: var(--surface-glass-hover);
  border-color: var(--surface-border-hover);
  transform: translateY(-3px);
}
.btn__icon {
  font-size: 1rem;
  transition: transform var(--transition-spring);
}
.btn:hover .btn__icon { transform: translateX(4px); }

/* Hero Stats */
.hero__stats {
  display: flex; gap: var(--space-xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-border);
}
.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease-in-out infinite;
  line-height: 1.2;
}
.hero__stat-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

/* ══════════════════════════
   SECTION HEADERS
   ══════════════════════════ */
.section-header { text-align: center; margin-bottom: var(--space-2xl); position: relative; z-index: 2; }
.section-header__label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-accent);
  text-transform: uppercase; letter-spacing: 0.18em;
  margin-bottom: var(--space-sm);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.section-header__label::before, .section-header__label::after {
  content: ''; width: 24px; height: 1px;
  background: var(--text-accent); opacity: 0.4;
}
.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin-bottom: var(--space-sm);
}
.section-header__desc {
  font-size: 1.02rem; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto; line-height: 1.7;
}
/* Left-aligned variant */
.section-header--left { text-align: left; }
.section-header--left .section-header__label { justify-content: flex-start; }
.section-header--left .section-header__label::before { display: none; }
.section-header--left .section-header__desc { margin: 0; }

/* ══════════════════════════
   SERVICES GRID
   ══════════════════════════ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative; z-index: 2;
}
.service-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  transition: all var(--transition-slow);
  position: relative; overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.service-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--card-accent, var(--gradient-brand));
  opacity: 0; transition: opacity var(--transition-base);
}
.service-card::after {
  content: ''; position: absolute;
  bottom: -50%; right: -50%; width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--card-glow, rgba(43,135,218,0.03));
  transition: all var(--transition-slow);
  pointer-events: none;
}
.service-card:hover {
  background: var(--surface-glass-hover);
  border-color: var(--surface-border-hover);
  transform: translateY(-10px);
  box-shadow: var(--shadow-card);
}
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { opacity: 1; transform: scale(2); }

.service-card--red { --card-accent: linear-gradient(90deg, #8e0e00, #cc2b5e); --card-glow: rgba(142,14,0,0.05); }
.service-card--blue { --card-accent: linear-gradient(90deg, #0662b5, #2b87da); --card-glow: rgba(6,98,181,0.05); }
.service-card--purple { --card-accent: linear-gradient(90deg, #852b82, #cc2b5e); --card-glow: rgba(133,43,130,0.05); }
.service-card--dark { --card-accent: linear-gradient(90deg, #1f2d44, #0662b5); --card-glow: rgba(31,45,68,0.05); }
.service-card--green { --card-accent: linear-gradient(90deg, #059669, #10b981); --card-glow: rgba(16,185,129,0.05); }
.service-card--amber { --card-accent: linear-gradient(90deg, #d97706, #f59e0b); --card-glow: rgba(245,158,11,0.05); }
.service-card--teal { --card-accent: linear-gradient(90deg, #0d9488, #14b8a6); --card-glow: rgba(20,184,166,0.05); }
.service-card--indigo { --card-accent: linear-gradient(90deg, #4f46e5, #818cf8); --card-glow: rgba(79,70,229,0.05); }

.service-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: var(--space-md);
  transition: transform var(--transition-spring);
}
.service-card:hover .service-card__icon { transform: scale(1.1) rotate(-5deg); }

.service-card--red .service-card__icon { background: rgba(142,14,0,0.12); }
.service-card--blue .service-card__icon { background: rgba(6,98,181,0.12); }
.service-card--purple .service-card__icon { background: rgba(133,43,130,0.12); }
.service-card--dark .service-card__icon { background: rgba(31,45,68,0.2); }
.service-card--green .service-card__icon { background: rgba(16,185,129,0.12); }
.service-card--amber .service-card__icon { background: rgba(245,158,11,0.12); }
.service-card--teal .service-card__icon { background: rgba(20,184,166,0.12); }
.service-card--indigo .service-card__icon { background: rgba(79,70,229,0.12); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  margin-bottom: 0.4rem; letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6;
  margin-bottom: var(--space-sm);
}
.service-card__link {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-accent);
  display: inline-flex; align-items: center; gap: 0.3rem;
  transition: all var(--transition-base);
}
.service-card__link:hover { gap: 0.6rem; }

/* ══════════════════════════
   FEATURE ROWS
   ══════════════════════════ */
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); align-items: center;
  position: relative; z-index: 2;
}
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }

.feature__content { max-width: 500px; }
.feature__label {
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  color: var(--text-accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}
.feature__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: var(--space-md);
}
.feature__desc {
  font-size: 0.98rem; color: var(--text-secondary);
  line-height: 1.8; margin-bottom: var(--space-lg);
}
.feature__image {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature__image img {
  width: 100%; border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease-out-expo);
}
.feature__image:hover img { transform: scale(1.04); }
.feature__image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,13,17,0.4));
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.feature__image-glow {
  position: absolute; width: 150%; height: 150%;
  top: -25%; left: -25%;
  background: radial-gradient(circle, rgba(6,98,181,0.06) 0%, transparent 50%);
  pointer-events: none; z-index: -1;
}

/* ══════════════════════════
   GUARANTEE CARDS
   ══════════════════════════ */
.guarantees__grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md); position: relative; z-index: 2;
}
.guarantee-card {
  background: var(--gradient-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-slow);
  position: relative; overflow: hidden;
  backdrop-filter: blur(10px);
}
.guarantee-card::before {
  content: ''; position: absolute;
  top: -100px; right: -100px; width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,135,218,0.06), transparent 70%);
  pointer-events: none;
  transition: all var(--transition-slow);
}
.guarantee-card:hover { transform: translateY(-6px); border-color: var(--surface-border-hover); box-shadow: var(--shadow-card); }
.guarantee-card:hover::before { transform: scale(1.5); }

.guarantee-card__icon { font-size: 2.2rem; margin-bottom: var(--space-md); }
.guarantee-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin-bottom: var(--space-xs); letter-spacing: -0.01em;
}
.guarantee-card__desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ══════════════════════════
   CTA SECTION
   ══════════════════════════ */
.cta-section { text-align: center; }
.cta__card {
  background: linear-gradient(135deg, rgba(6,98,181,0.1), rgba(142,14,0,0.06));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative; overflow: hidden; z-index: 2;
}
.cta__card::before {
  content: ''; position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(43,135,218,0.04), transparent 50%);
  animation: cta-glow 10s ease-in-out infinite alternate;
}
@keyframes cta-glow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(5%, -3%) rotate(5deg); }
}
.cta__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(43,135,218,0.08);
  border: 1px solid rgba(43,135,218,0.15);
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-accent); margin-bottom: var(--space-lg);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}
.cta__desc {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto var(--space-xl); line-height: 1.7;
}

/* ══════════════════════════
   CONTACT SECTION
   ══════════════════════════ */
.contact__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl); position: relative; z-index: 2;
}
.contact__info { display: flex; flex-direction: column; gap: var(--space-lg); }
.contact__info-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.contact__info-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }
.contact__detail { display: flex; align-items: flex-start; gap: var(--space-sm); }
.contact__detail-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  transition: all var(--transition-base);
}
.contact__detail:hover .contact__detail-icon {
  border-color: var(--surface-border-hover);
  background: var(--surface-glass-hover);
  transform: scale(1.05);
}
.contact__detail-text { display: flex; flex-direction: column; }
.contact__detail-label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
.contact__detail-value { font-size: 0.92rem; color: var(--text-primary); font-weight: 500; }

/* Contact Form */
.contact__form {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
}
.form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-sm); margin-bottom: var(--space-sm);
}
.form__group { margin-bottom: var(--space-sm); }
.form__label {
  display: block; font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.form__input, .form__textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: all var(--transition-base);
  outline: none;
}
.form__input:focus, .form__textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(6,98,181,0.12);
  background: rgba(255,255,255,0.05);
}
.form__input::placeholder, .form__textarea::placeholder { color: var(--text-muted); }
select.form__input { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.form__input option { background: #0f172a; color: #f1f5f9; padding: 0.5rem; }
select.form__input option:hover, select.form__input option:checked { background: #1e293b; }
.form__textarea { resize: vertical; min-height: 110px; }
.form__submit {
  width: 100%; padding: 0.85rem 2rem;
  background: var(--gradient-cta); color: white;
  font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-spring);
  box-shadow: 0 2px 15px rgba(43,135,218,0.2);
  border: 1px solid rgba(43,135,218,0.3);
  margin-top: var(--space-xs);
}
.form__submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(43,135,218,0.35);
}

/* ══════════════════════════
   FOOTER
   ══════════════════════════ */
.footer {
  border-top: 1px solid var(--surface-border);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl); margin-bottom: var(--space-xl);
}
.footer__brand { max-width: 300px; }
.footer__brand-logo { height: 24px; opacity: 0.8; margin-bottom: var(--space-sm); }
.footer__brand-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-md); }
.footer__nrg-brand {
  display: inline-block;
  transition: all var(--transition-base);
}
.footer__nrg-logo {
  height: 28px; width: auto;
  opacity: 0.6;
  transition: all var(--transition-base);
}
.footer__nrg-brand:hover .footer__nrg-logo {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.3));
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-primary); margin-bottom: var(--space-md);
}
.footer__col-list { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__col-list a {
  font-size: 0.88rem; color: var(--text-secondary);
  transition: all var(--transition-base);
}
.footer__col-list a:hover { color: var(--text-primary); transform: translateX(4px); display: inline-block; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--surface-border);
  font-size: 0.78rem; color: var(--text-muted);
}
.footer__nws {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--text-accent);
  transition: all var(--transition-base);
}
.footer__nws:hover { color: var(--text-primary); }
.footer__nws-logo {
  height: 20px; width: auto;
  opacity: 0.7;
  transition: all var(--transition-base);
}
.footer__nws:hover .footer__nws-logo {
  opacity: 1;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.4));
}
.footer__eco-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.footer__eco-logo {
  height: 18px; width: auto;
  opacity: 0.7;
  transition: all var(--transition-base);
}
.footer__eco-link:hover .footer__eco-logo {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.3));
}

/* ══════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════ */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-70px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(70px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(0.88); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.4s; }
.delay-6 { transition-delay: 0.48s; }
.delay-7 { transition-delay: 0.56s; }
.delay-8 { transition-delay: 0.64s; }

/* ══════════════════════════
   SCROLL-TO-TOP
   ══════════════════════════ */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-cta); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; z-index: 900;
  opacity: 0; transform: translateY(20px);
  transition: all var(--transition-spring);
  box-shadow: 0 4px 20px rgba(43,135,218,0.25);
  border: 1px solid rgba(43,135,218,0.3);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-5px) scale(1.08); box-shadow: 0 8px 30px rgba(43,135,218,0.4); }

/* ══════════════════════════
   SERVICE PAGE HEADER (Compact)
   ══════════════════════════ */
.page-header {
  padding: calc(var(--space-3xl) + 60px) 0 var(--space-2xl);
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-brand);
  background-size: 300% 100%;
  animation: gradient-bar-flow 6s ease-in-out infinite;
}
.page-header__content {
  position: relative; z-index: 2;
  max-width: 640px;
}
.page-header__breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-header__breadcrumb a {
  color: var(--text-accent);
  transition: color var(--transition-base);
}
.page-header__breadcrumb a:hover {
  color: var(--text-primary);
}
.page-header__breadcrumb span {
  opacity: 0.4;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: var(--space-sm);
}
.page-header__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
}

/* ══════════════════════════
   SERVICE DETAIL PAGE SECTIONS
   ══════════════════════════ */
.service-detail__features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md); position: relative; z-index: 2;
}
.feature-item {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-slow);
  backdrop-filter: blur(8px);
}
.feature-item:hover {
  transform: translateY(-6px);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-card);
}
.feature-item__icon { font-size: 1.6rem; margin-bottom: var(--space-sm); }
.feature-item__title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  margin-bottom: 0.3rem;
}
.feature-item__desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ══════════════════════════
   MARQUEE / TICKER
   ══════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: var(--space-sm) 0;
  position: relative; z-index: 2;
}
.ticker__track {
  display: flex; gap: var(--space-xl);
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}
.ticker__item {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex; align-items: center; gap: 0.5rem;
}
.ticker__item-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--text-accent); opacity: 0.5;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════
   HERO DUAL BACKGROUND
   ══════════════════════════ */
.hero__bg--front {
  z-index: 0;
  clip-path: polygon(0 0, 55% 0, 45% 100%, 0 100%);
}
.hero__bg--front img {
  opacity: 0.3;
  filter: saturate(0.6) brightness(0.5);
}
.hero__gradient-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px; z-index: 3;
  background: var(--gradient-brand);
  background-size: 300% 100%;
  animation: gradient-bar-flow 6s ease-in-out infinite;
}
@keyframes gradient-bar-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ══════════════════════════
   INDUSTRIES SECTION
   ══════════════════════════ */
.industries__grid {
  display: flex; flex-direction: column;
  gap: var(--space-xl);
  position: relative; z-index: 2;
}
.industry-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-xl);
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  transition: all var(--transition-slow);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.industry-card:hover {
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.industry-card--reverse {
  grid-template-columns: 1.3fr 1fr;
}
.industry-card--reverse .industry-card__img {
  order: 2;
}
.industry-card--reverse .industry-card__content {
  order: 1;
}
.industry-card__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.industry-card__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.8s var(--ease-out-expo);
}
.industry-card:hover .industry-card__img img {
  transform: scale(1.05);
}
.industry-card__img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,13,17,0.3));
  border-radius: var(--radius-lg);
  pointer-events: none;
}
.industry-card__content {
  padding: var(--space-sm) 0;
}
.industry-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}
.industry-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}
.industry-card__list {
  display: flex; flex-direction: column;
  gap: 0.5rem;
}
.industry-card__list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.industry-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-weight: 600;
}

/* ══════════════════════════
   RESPONSIVE
   ══════════════════════════ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: rgba(11,13,17,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center;
    align-items: flex-start;
    padding: var(--space-2xl); gap: var(--space-lg);
    transition: right var(--transition-slow);
    border-left: 1px solid var(--surface-border);
  }
  .nav__menu.open { right: 0; }
  .nav__hamburger { display: flex; }
  .nav__link { font-size: 1.15rem; }

  .hero__stats { flex-direction: column; gap: var(--space-md); }
  .hero__bg--front { clip-path: none; }
  .feature-row, .feature-row--reverse { grid-template-columns: 1fr; gap: var(--space-xl); direction: ltr; }
  .services__grid { grid-template-columns: 1fr; }
  .guarantees__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
  .industry-card, .industry-card--reverse { grid-template-columns: 1fr; }
  .industry-card--reverse .industry-card__img { order: 0; }
  .industry-card--reverse .industry-card__content { order: 0; }
  .industry-card__img img { height: 200px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.1rem; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
