/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: #04070f;
  color: #e8edf5;
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #04070f; }
::-webkit-scrollbar-thumb { background: rgba(0,201,255,0.28); border-radius: 2px; }

/* ===== KEYFRAMES ===== */
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.65; }
}

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-right-in {
  from { opacity: 0; transform: translateX(44px); }
  to   { opacity: 1; transform: translateX(0); }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Premium heading font */
@font-face {
  font-family: 'Clash Display';
  src: url('https://cdn.jsdelivr.net/gh/feathericons/font-files/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}


/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HELPERS ===== */
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #00c9ff;
}

.dot-grid {
  background-image: radial-gradient(circle, rgba(0,201,255,0.13) 1px, transparent 1px);
  background-size: 30px 30px;
}

.gradient-text {
  background: linear-gradient(130deg, #ffffff 0%, #00c9ff 45%, #7b61ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  filter: drop-shadow(0 0 28px rgba(0,201,255,0.45));
}

/* ===== NAV ===== */
nav {
  position: fixed; /* optional if you want it to stay visible */
  top: 0;
  left: 0;
  right: 0; /* ensures no gap on the right */
  width: 100% !important;
  background: #05070d; /* match your dark theme */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  box-sizing: border-box;
  z-index: 1000;
}


.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: #e8edf5;
  user-select: none;
}

.nav-logo .bracket { color: #00c9ff; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8499;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #00c9ff; }

.nav-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #00c9ff;
  text-decoration: none;
  border: 1px solid #00c9ff61;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: #00c9ff14; }
.nav-cta svg { width: 12px; height: 12px; stroke: currentColor; }

/* Base layout */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  margin: auto;
  padding: 20px 33px;
}

/* Logo + text */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  height: 62px;
  width: auto;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #00cfff;
}

/* CTA button */
.nav-cta {
  background: #00cfff;
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: #e0e0e0;
  border-radius: 3px;
  transition: 0.3s ease;
}
.nav-fehr {
  color: #ffffff;
  font-weight: 600;
}

.nav-dev {
  color:  #4f8cff;; /* your brand blue */
  font-weight: 600;
  margin-left: 2px; /* tiny spacing so it doesn’t look glued */
}

.nav-text {
  display: flex;
  align-items: center;
  gap: 0px;
}

/* Hamburger animation */
.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}




/* ===== HERO ===== */
/* ─────────────────────────────── */
/* PAGE WRAPPER */
/* ─────────────────────────────── */
/* ─────────────────────────────── */
/* PAGE WRAPPER */
/* ─────────────────────────────── */
.page {
  width: 100%;
  overflow-x: hidden;
  background: #05080d;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* ─────────────────────────────── */
/* HERO SECTION */
/* ─────────────────────────────── */
.hero {
  position: relative;
  min-height: 125vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Glow orbs */
.hero-glow-1,
.hero-glow-2 {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  z-index: 0;
}

.hero-glow-1 {
  background: #6f4cff;
  top: -120px;
  left: -120px;
}

.hero-glow-2 {
  background: #00c9ff;
  bottom: -140px;
  right: -140px;
}

/* Dot grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ffffff10 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.25;
  z-index: 0;
}

/* Glow behind text */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,201,255,0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  filter: blur(120px);
  z-index: 1;
}

/* Content wrapper */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ─────────────────────────────── */
/* STATUS PILL */
/* ─────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00c9ff;
  border-radius: 50%;
}

/* ─────────────────────────────── */
/* HERO HEADING */
/* ─────────────────────────────── */
.hero-heading {
  font-family: 'Clash Display', sans-serif;
  
  font-weight: 750;
  line-height: 1.05;
  margin: 40px 0 20px;
}


.line-plain {
  display: block;
  color: #fff;
  font-size: 7rem;
}

.line-gradient {
  display: block;
  font-size: 5rem;
  background: linear-gradient(
    90deg,
    #00eaff 0%,
    #00c9ff 20%,
    #ffffff 50%,
    #8a6cff 75%,
    #6f4cff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ─────────────────────────────── */
/* HERO DESCRIPTION */
/* ─────────────────────────────── */
.hero-desc {
  max-width: 700px;
  margin: 0 auto 0;
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.85;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0; /* instead of -1 */
  overflow: hidden;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}



/* ─────────────────────────────── */
/* CTA BUTTONS */
/* ─────────────────────────────── */
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 40px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, #00c9ff 0%, #6f4cff 100%);
  box-shadow: 0 0 20px rgba(111, 76, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(111, 76, 255, 0.5);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ─────────────────────────────── */
/* STACK BADGES */
/* ─────────────────────────────── */
.stack {
  text-align: center;
  margin-top: 10px;
}

.stack-label {
  font-size: 14px;
  letter-spacing: 0.15em;
  opacity: 0.6;
  margin-bottom: 16px;
}

.stack-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(118, 3, 135, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #cfd9ff;
  font-family: 'JetBrains Mono', monospace;
  transition: 0.25s ease;
}

.badge:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ─────────────────────────────── */
/* STATS SECTION */
/* ─────────────────────────────── */
.stats {
  background: #05080d;
  padding: 24px 0; /* tighter */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
  padding: 12px 0; /* much tighter */
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 38px; /* slightly smaller */
  font-weight: 700;
  background: linear-gradient(90deg, #00c9ff 0%, #6f4cff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-top: 4px; /* tighter */
}


/* ─────────────────────────────── */
/* RESPONSIVE */
/* ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-heading {
    font-size: 5rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-heading {
    font-size: 3.5rem;
  }
  .hero-desc {
    font-size: 16px;
  }
  .hero-ctas {
    flex-direction: column;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}



/* Terminal */
.hero-right {
  position: relative;
  animation: fade-right-in 0.85s cubic-bezier(0.22,1,0.36,1) 0.22s both;
}

.terminal-float {
  position: relative;
  animation: float-slow 7s ease-in-out infinite;
}

.terminal-window {
  background: #0a0f1e;
  border: 1px solid rgba(0,201,255,0.18);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,201,255,0.18),
    0 8px 60px rgba(0,201,255,0.1),
    0 24px 80px rgba(0,0,0,0.5);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #0d1220;
  border-bottom: 1px solid rgba(0,201,255,0.1);
}

.chrome-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.chrome-dot.red    { background: #ff5f57; }
.chrome-dot.yellow { background: #febc2e; }
.chrome-dot.green  { background: #28c840; }

.chrome-title {
  margin-left: 1rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #7a8499;
}



.terminal-body {
  padding: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.75rem;
  min-height: 18rem;
  min-width: 60rem;
  transform: translateX(70px);
}

.t-comment { color: #4a5568; }
.t-keyword  { color: #7b61ff; }
.t-var      { color: #00c9ff; }
.t-plain    { color: #e8edf5; }
.t-prop     { color: #7a8499; }
.t-val      { color: #00ff94; }
.t-success  { color: #00ff94; }

.cursor {
  display: inline-block;
  width: 0.5rem;
  height: 1.125rem;
  background: #00c9ff;
  border-radius: 0.125rem;
  vertical-align: middle;
  animation: blink 0.8s infinite;
}




.cursor.hidden { opacity: 0; }

.float-badge {
  position: absolute;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background: #0a0f1e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.float-badge.green {
  top: -1rem; right: -1rem;
  border: 1px solid rgba(0,255,148,0.3);
  box-shadow: 0 0 20px rgba(0,255,148,0.08);
  color: #00ff94;
}

.float-badge.purple {
  bottom: -1rem; left: -1rem;
  border: 1px solid rgba(123,97,255,0.3);
  box-shadow: 0 0 20px rgba(123,97,255,0.08);
  color: #7b61ff;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-hint span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8499;
}

.scroll-line {
  width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, rgba(0,201,255,0.4), transparent);
}

/* ===== STATS ===== */
.stats-section {
  background: #070c18;
  border-top: 1px solid rgba(0,201,255,0.08);
  border-bottom: 1px solid rgba(0,201,255,0.08);
}

.stats-grid {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(0,201,255,0.08);
}
.stat-item:last-child { border-right: none; }


.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 2.5rem;
  color: #00c9ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a8499;
}

/* ===== SHARED SECTION ===== */
.section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 8rem 2.5rem;
}

.section-inner { padding: 5rem 1.5rem; }

.section-header { margin-bottom: 1rem; }

.section-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #e8edf5;
  margin: 1rem 0;
}

.section-desc {
  font-size: 1.125rem;
  color: #7a8499;
  max-width: 36rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: #0a0f1e;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem;
  padding: 1.5rem;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(0,201,255,0.35);
  box-shadow: 0 0 28px rgba(0,201,255,0.1), inset 0 0 20px rgba(0,201,255,0.03);
  transform: translateY(-2px);
}

.service-icon {
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.375rem;
  background: rgba(0,201,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.2s;
}
.service-card:hover .service-icon { background: rgba(0,201,255,0.15); }
.service-icon svg { width: 1.25rem; height: 1.25rem; stroke: #00c9ff; }

.service-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #e8edf5;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #7a8499;
  margin-bottom: 1rem;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.badge-sm {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 10px;
  color: #00c9ff;
  font-family: 'JetBrains Mono', monospace;
  transition: 0.25s ease;
}

/* ===== WORK ===== */
.work-section { background: #070c18; }

/* PROJECTS GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

/* CARD CONTAINER */
.project-card {
  display: flex;
  flex-direction: column;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(0,201,255,0.15);
}

/* IMAGE */
.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}

/* BADGE */
.project-type-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0,201,255,0.15);
  border: 1px solid rgba(0,201,255,0.3);
  border-radius: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: #00c9ff;
  backdrop-filter: blur(6px);
}

/* BODY */
.project-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-name {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  color: #e8edf5;
}
.project-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #7a8499;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
  .project-image { height: 180px; }
  .project-body { padding: 1.25rem; }
  .project-name { font-size: 1.1rem; }
  .project-desc { font-size: 0.9rem; }
}



.project-image {
  flex: 1;
  height: auto;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.project-body {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,201,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-overlay svg { stroke: #ffffff; width: 1.5rem; height: 1.5rem; }

.project-type-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(4,7,15,0.88);
  border: 1px solid rgba(0,201,255,0.2);
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.625rem;
  color: #00c9ff;
}

/* ===== PROCESS ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5rem;
  position: relative;
  align-items: center;
}

.process-connector {
  display: block;
  position: absolute;
  height: 1px;
  top: 1.75rem;
  left: 4%; right: 14%;
  background: linear-gradient(
  to right,
  rgba(0, 201, 255, 0.1),
  rgba(0, 201, 255, 0.6),
  rgba(0, 201, 255, 0.1)
);
box-shadow:
  0 0 8px rgba(0, 201, 255, 0.4),
  0 0 16px rgba(0, 201, 255, 0.3),
  0 0 24px rgba(0, 201, 255, 0.2);

}

.process-step-num {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  border: 1px solid rgba(0,201,255,0.3);
  background: #0a0f1e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.process-step-num span {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  color: #00c9ff;
}

.process-step-title {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: #e8edf5;
  margin-bottom: 0.75rem;
}

.process-step-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #7a8499;
}

/* ===== CONTACT ===== */
.contact-section {
  background: #070c18;
  border-top: 1px solid rgba(0,201,255,0.08);
}

.contact-inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 8rem 2.5rem;
  text-align: center;
}

.contact-heading {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 5rem);
  color: #e8edf5;
  line-height: 1.1;
  margin: 1rem 0 1.5rem;
}

.contact-desc {
  font-size: 1.25rem;
  color: #7a8499;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact-form {
  max-width: 28rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: #0a0f1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.375rem;
  color: #e8edf5;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea { resize: none; }

.contact-alt {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-alt a {
  color: #7a8499;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.contact-alt a:hover { color: #00c9ff; }

.footer-motto {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.75rem;
  letter-spacing: 1px;
  color: #00dcff;
  justify-content: center;
  transform: translateY(-24px);

  margin-top: -92px; /* reduce vertical spacing */
  padding: 0;       /* remove internal padding */
  opacity: 0.9;
}



/* ===== FOOTER ===== */
footer { border-top: 1px solid rgba(0,201,255,0.08); }

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.875rem;
  color: #e8edf5;
}
.footer-logo .bracket { color: #00c9ff; }

.footer-copy {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #7a8499;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #7a8499;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #00c9ff; }

/* SERVICES VIDEO BG */
.services-section { position: relative; overflow: hidden; }

.services-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.services-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-right {
  display: flex;
  justify-content: center; /* centers horizontally */
  align-items: center;
  margin: 55px auto;
  width: 100%;
  transform: none !important; /* cancels any previous offset */
  
}


/* MOBILE + MODERN PHONE SIZE */


/* ===== SMALLER MOBILE SCALE (Samsung S25 / Modern Phones) ===== */


/* ===================================================
   MOBILE & RESPONSIVE SCALING
   =================================================== */

/* ── Tablet (≤ 900px) ─────────────────────────────── */
@media (max-width: 900px) {

  /* Nav */
  nav { padding: 16px 24px; }

  .nav-links { display: none; }

  .nav-toggle { display: flex; }

  /* Show mobile menu when open */
  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #05070d;
    border-top: 1px solid rgba(0,201,255,0.1);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    z-index: 999;
  }

  /* Hero */
  .hero { min-height: 100vh; padding: 100px 0 60px; }

  .hero-inner { padding: 0 1.5rem; }

  .line-plain  { font-size: clamp(3.5rem, 11vw, 6rem); }
  .line-gradient { font-size: clamp(2.5rem, 9vw, 5rem); }

  .hero-desc { font-size: 16px; max-width: 100%; }

  /* Hide terminal on tablet and below */
  .hero-right { display: none; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(0,201,255,0.08); border-top: 1px solid rgba(0,201,255,0.08); }
  .stat-item:nth-child(4) { border-right: none; border-top: 1px solid rgba(0,201,255,0.08); }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process */
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .process-connector { display: none; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}

/* ── Mobile (≤ 600px) ─────────────────────────────── */
@media (max-width: 600px) {

  /* Nav */
  nav { padding: 14px 20px; }

  .nav-logo { font-size: 0.875rem; }
  .nav-logo-img { height: 44px; }

  /* Hero */
  .hero { min-height: 100svh; padding: 90px 0 48px; }

  .hero-inner { padding: 0 1.25rem; }

  .status-pill { font-size: 11px; padding: 6px 14px; }

  .line-plain   { font-size: clamp(2.8rem, 14vw, 4rem); }
  .line-gradient { font-size: clamp(2.2rem, 12vw, 3.2rem); }

  .hero-heading { margin: 24px 0 16px; }

  .hero-desc {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.8;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 32px;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .stack-badges { gap: 8px; }
  .badge { font-size: 12px; padding: 6px 12px; }

  /* Stats — single column */
  .stats-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
  }

  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(0,201,255,0.08);
    padding: 1.25rem 0;
  }
  .stat-item:last-child { border-bottom: none; }

  .stat-value { font-size: 2rem; }

  /* Section spacing */
  .section-inner { padding: 4rem 1.25rem; }

  .section-title { font-size: clamp(1.6rem, 7vw, 2.25rem); }
  .section-desc  { font-size: 0.95rem; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; gap: 0.875rem; }

  /* Process — single column */
  .process-grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Contact */
  .contact-inner { padding: 4rem 1.25rem; }

  .contact-heading { font-size: clamp(2rem, 10vw, 3rem); }
  .contact-desc    { font-size: 1rem; }

  .contact-form { max-width: 100%; }

  .contact-alt { gap: 1.25rem; }

  /* Footer */
  .footer-inner { padding: 2rem 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }

  /* Footer motto */
  .footer-motto {
    font-size: 1.25rem;
    margin-top: -60px;
  }
}

/* ── Very small phones (≤ 390px — iPhone SE, Galaxy A series) ── */
@media (max-width: 390px) {

  .line-plain    { font-size: clamp(2.4rem, 15vw, 2.8rem); }
  .line-gradient { font-size: clamp(1.9rem, 13vw, 2.4rem); }

  .btn-primary,
  .btn-secondary { font-size: 14px; padding: 13px 16px; }

  .stat-value { font-size: 1.75rem; }

  .section-inner { padding: 3rem 1rem; }

  .contact-inner { padding: 3rem 1rem; }

  .footer-inner { padding: 1.75rem 1rem; }
}

/* =====================================================
   MOBILE CSS — FehrDevelopment
   Keeps grids intact, avoids full stacking
   ===================================================== */

/* ── Nav: hamburger menu ─────────────────────────────── */
@media (max-width: 768px) {

  .nav-container {
    position: relative;
    padding: 14px 20px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 3;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid rgba(0,201,255,0.1);
    margin-top: 12px;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .nav-toggle { display: flex; }

  .nav-cta { display: none; }

  .nav-logo-img { height: 44px; }
}

/* ── Hero ────────────────────────────────────────────── */
@media (max-width: 768px) {

  .hero {
    min-height: 100svh;
    padding: 80px 0 48px;
  }

  .hero-inner {
    padding: 0 20px;
    text-align: center;
  }

  /* Scale headings with clamp — stays bold, doesn't overflow */
  .line-plain    { font-size: clamp(2.6rem, 13vw, 4.5rem); }
  .line-gradient { font-size: clamp(2rem,   11vw, 3.8rem); }

  .hero-heading { margin: 20px 0 16px; }

  .hero-desc {
    font-size: 15px;
    max-width: 100%;
    opacity: 0.8;
  }

  /* Keep buttons side-by-side until very tight */
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 22px 0 30px;
  }

  .btn-primary,
  .btn-secondary {
    flex: 1 1 140px;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }

  .stack-badges { gap: 8px; }
  .badge { font-size: 11px; padding: 5px 11px; }
}

/* ── Stats: keep 2×2 grid ────────────────────────────── */
@media (max-width: 768px) {

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
  }

  .stat-item {
    padding: 20px 12px;
    border-right: 1px solid rgba(0,201,255,0.08);
    border-bottom: 1px solid rgba(0,201,255,0.08);
  }

  /* Remove right border on even items (2nd column) */
  .stat-item:nth-child(2n) { border-right: none; }

  /* Remove bottom border on last row */
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .stat-value { font-size: 1.8rem; }
  .stat-label { font-size: 0.6rem; }
}

/* ── Services: 2-col grid on mobile ─────────────────── */
@media (max-width: 768px) {

  .section-inner { padding: 3.5rem 20px; }

  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-desc  { font-size: 0.9rem; }

  /* Keep 2-column — only go 1-col on very small phones */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .service-card { padding: 1.125rem; }

  .service-name { font-size: 0.8rem; }
  .service-desc { font-size: 0.775rem; }
}

/* ── Projects: 2-col on tablet, 1-col only below 480px ── */
@media (max-width: 768px) {

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .project-image { height: 160px; }

  .project-body { padding: 1rem; }

  .project-name { font-size: 0.95rem; }
  .project-desc { font-size: 0.8rem; }
}

/* ── Process: keep 2×2 grid ─────────────────────────── */
@media (max-width: 768px) {

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .process-connector { display: none; }

  /* Hide terminal on mobile */
  .hero-right { display: none; }

  .process-step-title { font-size: 0.95rem; }
  .process-step-desc  { font-size: 0.8rem; }
}

/* ── Footer ──────────────────────────────────────────── */
@media (max-width: 768px) {

  .footer-inner {
    padding: 1.5rem 20px;
    gap: 1rem;
  }

  /* Keep logo + copyright side by side, links below */
  .footer-inner { flex-wrap: wrap; }

  .footer-logo { flex: 0 0 auto; }
  .footer-copy { flex: 1 1 auto; text-align: right; font-size: 0.65rem; }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
    gap: 1.25rem;
    border-top: 1px solid rgba(0,201,255,0.06);
    padding-top: 1rem;
  }

  .footer-motto {
    font-size: 1.1rem;
    margin-top: -8px;
  }

  .nav-logo-img { height: 36px; }
}

/* ── Very small phones (< 480px) ─────────────────────── */
@media (max-width: 480px) {

  /* Hero buttons stack only at this width */
  .hero-ctas { flex-direction: column; }

  .btn-primary,
  .btn-secondary { flex: none; width: 100%; }

  /* Services drop to 1-col only here */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects 1-col */
  .projects-grid { grid-template-columns: 1fr; }

  .project-image { height: 200px; }
}
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* move content up */
    padding-top: 10px !important; /* adjust top spacing */
  }

  .hero-inner {
    padding: 0 10px !important;
    margin-top: 0 !important;
  }

  /* optional: tighten buttons and stack spacing */
  .hero-ctas {
    margin-top: 20px !important;
  }
}
/* ── Services: horizontal swipe carousel ─────────────── */
@media (max-width: 768px) {

  .services-section { overflow: hidden; }

  .services-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.875rem;
    padding: 0.5rem 20px 1.25rem;
    /* Bleed past section padding */
    margin: 0 -20px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .services-grid::-webkit-scrollbar { display: none; }

  .service-card {
    flex: 0 0 72vw;
    max-width: 300px;
    scroll-snap-align: start;
    /* Prevent height collapse */
    height: auto;
  }
}

/* ── Projects: horizontal swipe carousel ─────────────── */
@media (max-width: 768px) {

  .work-section { overflow: hidden; }

  .projects-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    padding: 0.5rem 20px 1.25rem;
    margin: 0 -20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .projects-grid::-webkit-scrollbar { display: none; }

  .project-card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
  }

  .project-image { height: 180px; }
}