/* ═══════════════════════════════════════════════════════
   DGH Desenvolvimento de Software — Portfolio Stylesheet
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────────── */
:root {
  --neon:          #0A84FF;
  --electric:      #007BFF;
  --deep-black:    #0A0F1C;
  --night-blue:    #050A14;
  --tech-white:    #EAF2FF;
  --surface:       rgba(14, 22, 42, 0.7);
  --surface-hover: rgba(10, 132, 255, 0.08);
  --border:        rgba(10, 132, 255, 0.18);
  --border-hover:  rgba(10, 132, 255, 0.45);
  --text-primary:  #EAF2FF;
  --text-muted:    rgba(234, 242, 255, 0.55);
  --text-faint:    rgba(234, 242, 255, 0.30);
  --glow-sm:       0 0 12px rgba(10, 132, 255, 0.35);
  --glow-md:       0 0 28px rgba(10, 132, 255, 0.45);
  --glow-lg:       0 0 60px rgba(10, 132, 255, 0.35);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background-color: var(--night-blue);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────── */
.section-overline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--tech-white);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 0.9rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--neon) 0%, #60AFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ── Layout Utilities ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-desc {
  margin: 0.9rem auto 0;
}

.hidden-mobile { display: inline; }

/* ── Glass Card ─────────────────────────────────────────── */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(10, 132, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-sm);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--neon);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover::after { opacity: 1; }

.btn-primary:hover {
  background: #1a8fff;
  transform: translateY(-2px);
}

.glow-btn {
  box-shadow: 0 0 20px rgba(10, 132, 255, 0.5), 0 4px 20px rgba(10, 132, 255, 0.25);
}

.glow-btn:hover {
  box-shadow: 0 0 35px rgba(10, 132, 255, 0.7), 0 6px 28px rgba(10, 132, 255, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--tech-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--neon);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

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

/* ── Fade-in (hero) ─────────────────────────────────────── */
/* Default: content is always visible (no-JS / screenshot fallback).
   When JS is running, the <html> element gets .js-animate and the
   elements are hidden + animated in smoothly. */
.js-animate .fade-in {
  opacity: 0;
  animation: fadeUp 0.85s cubic-bezier(0.4,0,0.2,1) both;
}

.js-animate .delay-1.fade-in { animation-delay: 0.15s; }
.js-animate .delay-2.fade-in { animation-delay: 0.3s; }
.js-animate .delay-3.fade-in { animation-delay: 0.45s; }
.js-animate .delay-4.fade-in { animation-delay: 0.65s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--tech-white);
}

.logo-icon {
  font-size: 1.3rem;
  color: var(--neon);
  filter: drop-shadow(0 0 8px rgba(10,132,255,0.7));
}

.logo-accent { color: var(--neon); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links li a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.nav-links li a:hover { color: var(--tech-white); background: rgba(255,255,255,0.05); }

.nav-links li a.nav-cta {
  background: var(--neon);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(10,132,255,0.4);
  margin-left: 8px;
}

.nav-links li a.nav-cta:hover {
  background: #1a8fff;
  box-shadow: 0 0 28px rgba(10,132,255,0.6);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tech-white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(10,132,255,0.14) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(0,123,255,0.08) 0%, transparent 50%),
              linear-gradient(180deg, #050A14 0%, #0A0F1C 100%);
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,132,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,132,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(10,132,255,0.12);
  border: 1px solid rgba(10,132,255,0.3);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--neon);
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--tech-white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(10, 132, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  backdrop-filter: blur(12px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 0 20px rgba(10,132,255,0.5);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--neon));
  animation: scrollAnim 2.2s ease-in-out infinite;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ══════════════════════════════════════════════════════════
   ABOUT
   ══════════════════════════════════════════════════════════ */
.about {
  background: linear-gradient(180deg, #0A0F1C 0%, #060C1A 100%);
}

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

.about-text {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 16px;
  line-height: 1.75;
}

.about-text strong { color: var(--tech-white); font-weight: 700; }

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 36px;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(10,132,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background var(--transition);
}

.pillar-item:hover {
  border-color: var(--border-hover);
  background: rgba(10,132,255,0.1);
}

.pillar-icon { font-size: 1.3rem; line-height: 1; margin-top: 2px; }

.pillar-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pillar-item strong {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--tech-white);
}

.pillar-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* About visual / code block */
.about-card { padding: 28px; }
.about-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.code-block { margin-bottom: 24px; }

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.code-dot.red    { background: #FF5F57; }
.code-dot.yellow { background: #FEBC2E; }
.code-dot.green  { background: #28C840; }

.code-filename {
  margin-left: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
}

.code-content {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #94a3b8;
  overflow-x: auto;
}

.c-keyword { color: #60a5fa; }
.c-var     { color: #e2e8f0; }
.c-op      { color: #94a3b8; }
.c-func    { color: #a78bfa; }
.c-str     { color: #94a3b8; }
.c-prop    { color: #7dd3fc; }
.c-bool    { color: #f97316; }
.c-comment { color: #475569; font-style: italic; }

.card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.metric { text-align: center; }
.metric-value { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.metric-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════
   SPECIALTIES
   ══════════════════════════════════════════════════════════ */
.specialties {
  background: linear-gradient(180deg, #060C1A 0%, #050A14 100%);
}

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

.specialty-card {
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  animation-delay: var(--delay, 0s);
}

.specialty-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow-md);
}

.specialty-icon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.specialty-icon {
  font-size: 2.2rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.3) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

.specialty-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--tech-white);
  margin-bottom: 10px;
}

.specialty-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tags li {
  padding: 3px 10px;
  background: rgba(10,132,255,0.1);
  border: 1px solid rgba(10,132,255,0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.03em;
}

/* ══════════════════════════════════════════════════════════
   TECHNOLOGIES
   ══════════════════════════════════════════════════════════ */
.technologies {
  background: linear-gradient(180deg, #050A14 0%, #0A0F1C 100%);
  position: relative;
}

.technologies::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  opacity: 0.4;
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.tech-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color var(--transition);
}

.tech-category:hover { border-color: var(--border-hover); }

.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.cat-icon { font-size: 1.2rem; }

.tech-cat-header h3 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(10,132,255,0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: default;
  transition: all var(--transition);
}

.tech-pill:hover {
  border-color: var(--border-hover);
  background: rgba(10,132,255,0.15);
  color: var(--neon);
  transform: translateY(-2px);
  box-shadow: var(--glow-sm);
}

.tech-logo {
  font-size: 0.85rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.react-logo  { color: #61DAFB; }
.vue-logo    { color: #41B883; }
.ts-logo     { color: #3178C6; background: #3178C6; color: #fff; border-radius: 3px; padding: 1px 3px; font-size: 0.7rem; }
.node-logo   { color: #6EC945; }
.py-logo     { color: #3776AB; background: linear-gradient(#3776AB, #FFD43B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.go-logo     { color: #00ACD7; }
.flutter-logo { color: #54C5F8; }
.aws-logo    { color: #FF9900; font-size: 0.7rem; font-weight: 900; }
.az-logo     { color: #0089D6; font-size: 0.75rem; font-weight: 800; }
.gcp-logo    { color: #4285F4; font-size: 0.85rem; font-weight: 800; }
.pg-logo     { color: #336791; font-size: 0.65rem; font-weight: 900; }
.mongo-logo  { color: #47A248; font-weight: 900; }
.redis-logo  { color: #DC382D; font-weight: 900; }
.docker-logo { font-size: 0.9rem; }
.k8s-logo    { color: #326CE5; }
.tf-logo     { color: #7B42BC; font-size: 0.65rem; font-weight: 900; }

/* ══════════════════════════════════════════════════════════
   CASES
   ══════════════════════════════════════════════════════════ */
.cases {
  background: linear-gradient(180deg, #0A0F1C 0%, #060C1A 100%);
}

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

.case-card {
  padding: 32px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(10,132,255,0.2), var(--glow-sm);
  border-color: var(--border-hover);
}

.case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.case-tag {
  padding: 4px 12px;
  background: rgba(10,132,255,0.15);
  border: 1px solid rgba(10,132,255,0.3);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.case-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tech-white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.case-card > p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(10,132,255,0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.case-metric { text-align: center; }

.case-metric-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--neon);
  letter-spacing: -0.02em;
}

.case-metric-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.case-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tech-stack span {
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.case-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,132,255,0.06);
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--neon);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.case-card:hover .case-hover-overlay { opacity: 1; }

/* ══════════════════════════════════════════════════════════
   DIFFERENTIALS
   ══════════════════════════════════════════════════════════ */
.differentials {
  background: linear-gradient(180deg, #060C1A 0%, #050A14 100%);
  position: relative;
  overflow: hidden;
}

.differentials::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,132,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.diff-card {
  padding: 36px 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-sm);
  border-color: var(--border-hover);
}

.diff-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(10,132,255,0.1);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.diff-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.diff-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tech-white);
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════ */
.contact {
  background: linear-gradient(180deg, #050A14 0%, #0A0F1C 100%);
}

.contact-wrap {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  position: relative;
}

.contact-glow-top {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.8;
}

.contact-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-icon { font-size: 1.1rem; }

.contact-item a {
  color: var(--neon);
  transition: opacity var(--transition);
}

.contact-item a:hover { opacity: 0.7; }

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

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%230A84FF' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option {
  background: #0A0F1C;
  color: var(--text-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(10,132,255,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #EF4444;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: -4px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.footer {
  background: var(--night-blue);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }

.footer-brand > p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--neon); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-faint);
  transition: color var(--transition);
}

.footer-legal a:hover { color: var(--neon); }

/* ══════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(10, 132, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  z-index: 9999;
  box-shadow: var(--glow-md);
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), opacity 0.45s;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 1rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid          { grid-template-columns: 1fr; gap: 48px; }
  .specialties-grid    { grid-template-columns: repeat(2, 1fr); }
  .tech-categories     { grid-template-columns: repeat(2, 1fr); }
  .cases-grid          { grid-template-columns: repeat(2, 1fr); }
  .diff-grid           { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap        { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .footer-top          { grid-template-columns: 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(5, 10, 20, 0.97);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px 28px;
    gap: 4px;
    z-index: 999;
  }

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

  .nav-links li a { display: block; padding: 12px 16px; }

  .nav-links li a.nav-cta {
    text-align: center;
    margin-left: 0;
    margin-top: 8px;
  }

  .nav-burger { display: flex; }

  .section        { padding: 72px 0; }

  .specialties-grid  { grid-template-columns: 1fr; }
  .tech-categories   { grid-template-columns: 1fr; }
  .cases-grid        { grid-template-columns: 1fr; }
  .diff-grid         { grid-template-columns: 1fr; }

  .hero-stats {
    gap: 0;
    padding: 20px 16px;
  }

  .stat-item    { padding: 0 16px; }
  .stat-number  { font-size: 1.5rem; }

  .form-row     { grid-template-columns: 1fr; }

  .contact-wrap { padding: 28px 20px; }

  .footer-links { grid-template-columns: 1fr 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .hidden-mobile { display: none; }
}

@media (max-width: 480px) {
  .hero-title     { font-size: 2.2rem; }
  .hero-actions   { flex-direction: column; width: 100%; }
  .btn-primary,
  .btn-ghost      { width: 100%; justify-content: center; }
  .hero-stats     { flex-direction: column; gap: 16px; }
  .stat-divider   { width: 60px; height: 1px; }
  .footer-links   { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--night-blue); }
::-webkit-scrollbar-thumb {
  background: rgba(10,132,255,0.4);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(10,132,255,0.7); }

/* ══════════════════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════════════════ */
::selection {
  background: rgba(10,132,255,0.35);
  color: var(--tech-white);
}
