/* ============================================================
   DESIGN SYSTEM — Polychoral Ltd
   Dark navy + electric blue / teal / purple accent palette
   ============================================================ */

:root {
  /* Background layers */
  --bg:          #040B1E;
  --surface:     #07112E;
  --card:        rgba(13, 24, 54, 0.92);
  --card-hover:  rgba(18, 32, 68, 0.96);

  /* Borders */
  --border:       rgba(79, 139, 245, 0.11);
  --border-hover: rgba(79, 139, 245, 0.35);

  /* Accent palette */
  --blue:   #4B8BF5;
  --cyan:   #06C8C8;
  --purple: #A855F7;
  --green:  #34D399;
  --amber:  #FBBF24;

  /* Text */
  --text:       #EFF2FF;
  --text-muted: #7B91B9;
  --text-dim:   #3E5078;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, var(--blue),   var(--cyan));
  --grad-secondary: linear-gradient(135deg, var(--blue),   var(--purple));
  --grad-full:      linear-gradient(135deg, var(--blue) 0%, var(--cyan) 45%, var(--purple) 100%);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container:   1200px;
  --gutter:      clamp(1rem, 4vw, 2rem);

  /* Shape */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  /* Transitions */
  --t:     0.2s ease;
  --t-mid: 0.35s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-heading {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.section-header { margin-bottom: 3.5rem; }

.section-divider {
  width: 36px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin-top: 1rem;
}

.gradient-text {
  background: var(--grad-full);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 0 22px rgba(75, 139, 245, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(75, 139, 245, 0.46);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  background: var(--card);
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 1.25rem 0;
  transition: background var(--t-mid), padding var(--t), border-color var(--t);
}

.nav.scrolled {
  background: rgba(4, 11, 30, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}

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

.nav-cta {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--grad-primary);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: opacity var(--t), transform var(--t) !important;
}

.nav-cta:hover { opacity: 0.88; transform: translateY(-1px) !important; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  font-size: 1.5rem;
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(4, 11, 30, 0.97);
  backdrop-filter: blur(16px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

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

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}

.nav-mobile a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--section-pad) + 4rem) 0 var(--section-pad);
  overflow: hidden;
}

/* Radial glow background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 52%, rgba(75, 139, 245, 0.14) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 18%, rgba(6, 200, 200, 0.09)  0%, transparent 52%),
    radial-gradient(ellipse at 62% 88%, rgba(168, 85, 247, 0.09) 0%, transparent 52%);
  pointer-events: none;
}

/* Subtle dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(75, 139, 245, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan);
  border: 1px solid rgba(6, 200, 200, 0.28);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  background: rgba(6, 200, 200, 0.05);
  margin-bottom: 1.75rem;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

.hero-title span { display: block; }

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* Key stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about { background: var(--surface); }

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

.about-body p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about-body p:last-child { margin-bottom: 0; }

.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}

.highlight-item:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}

.h-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.h-icon.blue   { background: rgba(75, 139, 245, 0.14); }
.h-icon.cyan   { background: rgba(6, 200, 200, 0.12);  }
.h-icon.purple { background: rgba(168, 85, 247, 0.12); }
.h-icon.green  { background: rgba(52, 211, 153, 0.12); }
.h-icon.amber  { background: rgba(251, 191, 36, 0.12); }

.h-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.h-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 !important;
  line-height: 1.5;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--t);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-mid);
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.service-card:hover::after { transform: scaleX(1); }

.s-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
}

.s-icon.blue   { background: rgba(75, 139, 245, 0.12); }
.s-icon.cyan   { background: rgba(6, 200, 200, 0.11);  }
.s-icon.purple { background: rgba(168, 85, 247, 0.11); }
.s-icon.green  { background: rgba(52, 211, 153, 0.11); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: rgba(75, 139, 245, 0.09);
  color: var(--blue);
  border: 1px solid rgba(75, 139, 245, 0.2);
}

/* ============================================================
   TECH STACK
   ============================================================ */

.tech { background: var(--surface); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 1rem;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.4rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t);
  user-select: none;
}

.tech-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.tech-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Brand colours */
.tech-logo.ts    { background: rgba(49, 120, 198, 0.16); color: #4F9DDE; font-size: 1rem; }
.tech-logo.react { background: rgba(97, 218, 251, 0.12); color: #61DAFB; font-size: 1.6rem; }
.tech-logo.node  { background: rgba(104, 160, 99, 0.14); color: #68A063; }
.tech-logo.aws   { background: rgba(255, 153, 0, 0.13);  color: #FF9900; font-size: 0.72rem; }
.tech-logo.next  { background: rgba(255,255,255,0.06);   color: #fff;    font-size: 1.3rem; }
.tech-logo.docker{ background: rgba(36, 150, 237, 0.13); color: #2496ED; font-size: 0.75rem; }
.tech-logo.pg    { background: rgba(51, 103, 145, 0.15); color: #4F8FB5; font-size: 0.75rem; }
.tech-logo.git   { background: rgba(240, 80, 50, 0.13);  color: #F05032; font-size: 1rem; }

.tech-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   PROJECTS  (loaded via HTMX)
   ============================================================ */

.projects-wrap {
  min-height: 240px;
  position: relative;
}

.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 240px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}

.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t);
}

.proj-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.36);
}

.proj-accent {
  height: 4px;
  flex-shrink: 0;
}

.proj-accent.a1 { background: var(--grad-primary); }
.proj-accent.a2 { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.proj-accent.a3 { background: linear-gradient(90deg, var(--cyan), var(--green));  }
.proj-accent.a4 { background: linear-gradient(90deg, var(--amber), #EF4444);      }

.proj-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proj-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.proj-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding: 0.22rem 0.6rem;
  background: rgba(6, 200, 200, 0.07);
  border: 1px solid rgba(6, 200, 200, 0.22);
  border-radius: 4px;
}

.proj-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.proj-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.proj-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.proj-tech span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Accordion toggle via CSS — no JS needed for expanding */
.proj-details-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--blue);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--t);
}

.proj-details-toggle:hover {
  border-color: var(--blue);
  background: rgba(75, 139, 245, 0.07);
}

.proj-details {
  display: none;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}

.proj-details.open { display: block; }

.proj-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.proj-outcome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--green);
  padding: 0.6rem 0.875rem;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact { background: var(--surface); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.c-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--t);
}

.c-item:hover {
  border-color: var(--border-hover);
  transform: translateX(5px);
}

.c-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.c-icon.blue   { background: rgba(75, 139, 245, 0.14); }
.c-icon.cyan   { background: rgba(6, 200, 200, 0.12);  }
.c-icon.purple { background: rgba(168, 85, 247, 0.12); }
.c-icon.green  { background: rgba(52, 211, 153, 0.12); }

.c-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.12rem;
}

.c-value {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

/* Company registration bar */
.reg-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.reg-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.reg-item strong { color: var(--text-muted); }

/* Contact form card */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-card > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

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

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.7rem 0.9rem;
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(75, 139, 245, 0.12);
}

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

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

.form-submit { width: 100%; justify-content: center; }

/* HTMX success/error feedback */
#form-result {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  display: none;
}

#form-result.visible { display: block; }

#form-result.success {
  color: var(--green);
  padding: 0.6rem 0.875rem;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

#form-result.error {
  color: #F87171;
  padding: 0.6rem 0.875rem;
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  background: var(--grad-primary);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--t);
}

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

/* Inline code snippets (used within project detail text) */
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--cyan);
  background: rgba(6, 200, 200, 0.07);
  padding: 0.1em 0.35em;
  border-radius: 3px;
  border: 1px solid rgba(6, 200, 200, 0.18);
}

.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-hamburger{ display: block; }

  .projects-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .hero-stats    { gap: 1.5rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn          { justify-content: center; }

  .tech-grid    { grid-template-columns: repeat(4, 1fr); }
  .services-grid{ grid-template-columns: 1fr; }
}
