/* =========================================================================
   Vikas Vijendrabhai Ajudiya — Freelance Software Developer
   "Midnight Aurora" design system. Dark premium theme: near-black canvas,
   cyan→violet aurora glows, glassmorphic cards, bold display type.
   Mobile-first. Single (dark) theme.
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  /* Canvas */
  --bg:            #06080f;   /* near-black page background */
  --bg-soft:       #0d1120;   /* recessed surface (inputs, tints) */
  --surface:       #0f1424;   /* solid card base under the glass layer */
  --glass:         rgba(255, 255, 255, 0.035);
  --glass-strong:  rgba(255, 255, 255, 0.06);

  /* Text — all checked for AA on --bg / --surface */
  --ink:           #f2f5ff;   /* headings + strong text */
  --muted:         #b2bcd6;   /* body copy */
  --faint:         #8b96b4;   /* placeholders, meta */

  /* Accents: electric cyan → violet aurora */
  --cyan:          #5ee9f7;
  --cyan-deep:     #22d3ee;
  --violet:        #a78bfa;
  --violet-deep:   #8b5cf6;
  --accent:        #7dd3fc;   /* link / icon colour, AA on dark */
  --grad:          linear-gradient(120deg, #5ee9f7 0%, #818cf8 52%, #c084fc 100%);
  --grad-soft:     linear-gradient(135deg, rgba(94, 233, 247, .10), rgba(192, 132, 252, .10));
  --tint:          rgba(125, 211, 252, 0.10);
  --ring:          rgba(125, 211, 252, 0.55);

  /* Hairlines */
  --border:        rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Depth: on a dark canvas glow carries elevation better than drop shadow */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 18px -8px rgba(0, 0, 0, .6);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 44px -20px rgba(0, 0, 0, .8);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, .5), 0 36px 80px -32px rgba(0, 0, 0, .9);
  --glow-cyan:   0 0 0 1px rgba(94, 233, 247, .28), 0 18px 48px -18px rgba(34, 211, 238, .38);
  --glow-violet: 0 0 0 1px rgba(192, 132, 252, .26), 0 18px 48px -18px rgba(139, 92, 246, .38);

  --display: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --body:    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --container: 1180px;
  --header-h:  64px;
  --header-gap: 14px;
  --pad: clamp(20px, 4vw, 44px);
}

/* ----- Reset / base ----------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--header-gap) + 24px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient aurora wash behind everything, fixed so it never scroll-jitters. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%,   rgba(34, 211, 238, .20), transparent 62%),
    radial-gradient(820px 600px at 92% 4%,    rgba(139, 92, 246, .22), transparent 62%),
    radial-gradient(1000px 700px at 50% 108%, rgba(99, 102, 241, .16), transparent 64%);
}

/* Faint grid so the dark field reads as a surface rather than a void. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(to right,  rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(1100px 760px at 50% 0%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(1100px 760px at 50% 0%, #000 12%, transparent 78%);
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cyan); }

ul { margin: 0; padding: 0; }

::selection { background: rgba(125, 211, 252, .3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Gradient text helper */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ----- Layout helpers --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(40px, 6vw, 68px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(94, 233, 247, .9);
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 700;
}

.section-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-lead {
  margin: 16px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: 1.04rem;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 14px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #06080f;
  font-weight: 700;
  transition: top .2s ease;
}

.skip-link:focus { top: 14px; color: #06080f; }

/* ----- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease,
              border-color .25s ease, color .2s ease;
}

.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { flex: none; }

/* Bright aurora fill with near-black ink — the highest-contrast pairing
   available on this canvas, so it reads as the one true call to action. */
.btn-primary {
  background: var(--grad);
  color: #05070d;
  box-shadow: 0 10px 30px -12px rgba(94, 233, 247, .55),
              0 10px 30px -14px rgba(167, 139, 250, .5);
}

.btn-primary:hover {
  color: #05070d;
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -14px rgba(94, 233, 247, .7),
              0 16px 44px -16px rgba(167, 139, 250, .62);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--border-strong);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  color: var(--ink);
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, .5);
  background: var(--tint);
}

.btn-block { width: 100%; }

/* ----- Header / floating pill nav --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: var(--header-gap);
}

.topbar { position: relative; }

.navbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--header-h);
  padding: 9px 10px 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 13, 24, 0.66);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.site-header.scrolled .navbar {
  border-color: var(--border-strong);
  background: rgba(8, 11, 20, 0.86);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
}

.brand:hover { color: var(--ink); }

.brand-badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #05070d;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 22px -10px rgba(94, 233, 247, .7);
}

.brand-text {
  font-size: .96rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On the narrowest screens the full legal name crowds out the toggle. */
@media (max-width: 559px) {
  .brand-text { max-width: 42vw; }
}

.nav-toggle {
  display: grid;
  place-items: center;
  /* Pin the rows to the bar height, otherwise they stretch to fill the button
     and the close-state translate no longer lands on an X. */
  align-content: center;
  grid-auto-rows: 2px;
  gap: 5px;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.nav-toggle:hover { border-color: rgba(125, 211, 252, .55); background: var(--tint); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: dropdown panel floating under the pill */
.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  /* Opaque — the page behind must not read through the open menu. */
  background: #0b0f1c;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.nav-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover {
  background: var(--tint);
  color: var(--ink);
}

.nav-cta { display: flex; }
.nav-cta .btn { width: 100%; padding-block: 14px; }

/* ----- Hero: centered intro + bento board -------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(52px, 9vw, 104px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}

/* Two soft aurora orbs that drift slowly behind the hero. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.hero::before {
  top: -120px;
  left: -90px;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(34, 211, 238, .34), transparent 68%);
  animation: float-a 16s ease-in-out infinite;
}

.hero::after {
  top: 40px;
  right: -120px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(167, 139, 250, .34), transparent 68%);
  animation: float-b 19s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(36px, 30px, 0) scale(1.08); }
}

@keyframes float-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-32px, 36px, 0) scale(1.1); }
}

.hero-intro {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(94, 233, 247, .3);
  border-radius: 999px;
  background: rgba(34, 211, 238, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .86rem;
  font-weight: 600;
  color: #a5f3fc;
}

.status-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px rgba(52, 211, 153, .9);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px rgba(52, 211, 153, .9); }
  50%      { box-shadow: 0 0 0 8px rgba(52, 211, 153, .05), 0 0 20px rgba(52, 211, 153, .55); }
}

.hero h1 {
  font-size: clamp(2.15rem, 6.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.hero-lead {
  margin: 20px auto 0;
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* Bento board */
.hero-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(44px, 7vw, 72px);
}

.board-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.board-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.board-portrait {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(94, 233, 247, .16), transparent 60%),
    var(--surface);
}

.portrait-fallback {
  position: absolute;
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: .5;
}

.board-portrait img {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: inherit;
}

/* A dark scrim over the photo so it settles into the palette instead of
   punching a bright hole in it. */
.board-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(6, 8, 15, .55) 0%, rgba(6, 8, 15, 0) 46%);
}

.board-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 28px;
}

.board-stat .stat-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--cyan);
}

.board-stat .stat-value {
  font-family: var(--display);
  font-size: clamp(1.45rem, 3.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.board-stat .stat-label {
  font-size: .92rem;
  color: var(--faint);
}

.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(32px, 5vw, 52px);
}

.tech-strip span {
  padding: 8px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--faint);
}

/* ----- About ------------------------------------------------------------ */
.about-intro {
  max-width: 820px;
  margin: 0 auto clamp(34px, 5vw, 52px);
  text-align: center;
  font-size: clamp(1.04rem, 2.3vw, 1.22rem);
  line-height: 1.8;
  color: var(--muted);
}

.about-intro strong { font-weight: 700; color: var(--ink); }

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

.about-panel {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.about-panel p { color: var(--muted); line-height: 1.9; }
.about-panel p:last-child { margin-bottom: 0; }
.about-panel p strong { color: var(--ink); font-weight: 700; }

/* The "how I work" aside carries the aurora edge so it reads as a highlight. */
.work-panel {
  position: relative;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(125, 211, 252, .22);
  border-radius: var(--r-lg);
  background:
    radial-gradient(140% 100% at 100% 0%, rgba(167, 139, 250, .14), transparent 62%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.work-panel h3 {
  margin-bottom: 18px;
  font-size: 1.16rem;
  font-weight: 600;
}

.work-list {
  display: grid;
  gap: 2px;
  list-style: none;
}

.work-list li {
  position: relative;
  padding: 11px 0 11px 34px;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--muted);
}

.work-list li + li { border-top: 1px solid var(--border); }

/* Gradient disc + punched-out check, drawn entirely in CSS. */
.work-list li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(94, 233, 247, .45);
}

.work-list li::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 6px;
  width: 10px;
  height: 5px;
  border-left: 2px solid #05070d;
  border-bottom: 2px solid #05070d;
  transform: rotate(-45deg);
}

/* ----- Services: icon card grid ------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  position: relative;
  padding: clamp(24px, 3.4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

/* Aurora hairline that wipes in along the top edge on hover. */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 211, 252, .3);
  background: var(--glass-strong);
  box-shadow: var(--shadow-lg), 0 24px 60px -30px rgba(34, 211, 238, .35);
}

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

.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--grad-soft);
  color: var(--cyan);
  transition: box-shadow .3s ease, transform .3s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.service-card h3 {
  font-size: 1.14rem;
  font-weight: 600;
}

.service-card p {
  margin: 0;
  font-size: .97rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ----- Skills: icon tile grid -------------------------------------------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.skill-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 19px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--display);
  font-size: .96rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.skill-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, .38);
  background: var(--glass-strong);
  box-shadow: var(--glow-violet);
}

.skill-tile .skill-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad-soft);
  color: var(--violet);
  transition: color .25s ease;
}

.skill-tile:hover .skill-icon { color: var(--cyan); }

/* ----- Contact ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.contact-panel {
  padding: clamp(10px, 2vw, 18px) clamp(20px, 3.4vw, 32px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.contact-row {
  display: flex;
  gap: 16px;
  padding-block: 20px;
}

.contact-row + .contact-row { border-top: 1px solid var(--border); }

.contact-row .ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--grad-soft);
  color: var(--cyan);
}

.contact-row .ci-body { min-width: 0; }

.contact-row .ci-label {
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-row .ci-value {
  display: block;
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
  transition: color .2s ease;
}

.contact-row a.ci-value { padding-block: 4px; }
.contact-row a.ci-value:hover { color: var(--cyan); }

.contact-row address {
  font-style: normal;
  font-size: .96rem;
  line-height: 1.65;
  color: var(--muted);
}

.contact-form {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 90% at 0% 0%, rgba(34, 211, 238, .10), transparent 58%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: rgba(6, 8, 15, .55);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(125, 211, 252, .7);
  background: rgba(6, 8, 15, .8);
  box-shadow: 0 0 0 4px rgba(125, 211, 252, .14);
}

.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

.form-note {
  margin: 0 0 16px;
  font-size: .85rem;
  color: var(--faint);
}

.form-status {
  margin: 14px 0 0;
  min-height: 1.2em;
  font-size: .9rem;
  font-weight: 600;
  color: var(--cyan);
}

/* ----- Footer: recessed glass panel -------------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 72px);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, rgba(10, 13, 24, .6), rgba(4, 6, 12, .9));
  color: var(--muted);
}

/* Aurora hairline along the very top of the footer. */
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 86%);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(94, 233, 247, .7), rgba(192, 132, 252, .7), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.footer-brand .brand { color: var(--ink); padding: 0; }
.footer-brand .brand:hover { color: var(--ink); }

.footer-brand > p {
  margin: 18px 0 0;
  max-width: 340px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--faint);
}

.footer-brand > .footer-gst {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
}

.footer-gst::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(94, 233, 247, .8);
}

.site-footer h4 {
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-contact,
.footer-links { list-style: none; display: grid; gap: 6px; font-size: .95rem; }

.footer-contact a,
.footer-links a {
  display: inline-block;
  padding-block: 4px;
  color: var(--faint);
  word-break: break-word;
  transition: color .2s ease;
}

.footer-contact a:hover,
.footer-links a:hover { color: var(--ink); }

.footer-contact address {
  margin-top: 6px;
  font-style: normal;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--faint);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--faint);
}

.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; gap: 22px; list-style: none; }
.footer-bottom-links a { display: inline-block; padding-block: 4px; color: var(--faint); }
.footer-bottom-links a:hover { color: var(--ink); }

/* ----- Legal pages ------------------------------------------------------ */
.legal {
  position: relative;
  padding-block: clamp(36px, 6vw, 64px) clamp(56px, 8vw, 90px);
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  padding: 10px 20px 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.back-home:hover {
  color: var(--ink);
  border-color: rgba(125, 211, 252, .5);
  background: var(--tint);
  transform: translateY(-2px);
}

.back-home svg { transition: transform .2s ease; }
.back-home:hover svg { transform: translateX(-3px); }

.legal-head {
  position: relative;
  margin-bottom: clamp(30px, 4vw, 44px);
  padding-bottom: 26px;
}

.legal-head::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 96px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 16px rgba(94, 233, 247, .55);
}

.legal-head h1 {
  font-size: clamp(1.95rem, 5vw, 2.9rem);
  font-weight: 700;
}

.legal-head .updated {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--faint);
}

.legal-body {
  max-width: 820px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

.legal-body > p:first-child { margin-top: 0; }

.legal-body h2 {
  position: relative;
  margin: 2.1rem 0 .7rem;
  padding-left: 18px;
  font-size: 1.16rem;
  font-weight: 600;
}

.legal-body h2::before {
  content: "";
  position: absolute;
  top: .18em;
  left: 0;
  width: 4px;
  height: 1em;
  border-radius: 4px;
  background: var(--grad);
}

.legal-body p,
.legal-body li { color: var(--muted); line-height: 1.85; }
.legal-body strong { color: var(--ink); }
.legal-body ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 8px; }

.legal-body address {
  margin-top: 10px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(6, 8, 15, .5);
  font-style: normal;
  line-height: 1.75;
  color: var(--muted);
}

.legal-body address a { display: inline-block; padding-block: 3px; }

/* ----- Reveal animation (progressive enhancement) ----------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ----- Responsive ------------------------------------------------------- */
@media (min-width: 560px) {
  .hero-board { grid-template-columns: 1.15fr 1fr; }
  .board-portrait { grid-row: 1 / 3; min-height: 0; }
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
  .work-list { grid-template-columns: 1fr 1fr; }
  .work-list li + li { border-top: 0; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  .about-grid { grid-template-columns: 1.25fr 1fr; }
  .work-list { grid-template-columns: 1fr; }
  .work-list li + li { border-top: 1px solid var(--border); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1.1fr .9fr; }
}

@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .service-card { grid-column: span 2; }
  .service-card:nth-child(4) { grid-column: 2 / 4; }
  .service-card:nth-child(5) { grid-column: 4 / 6; }
  .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  /* Desktop: inline nav inside the pill */
  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav-links {
    flex-direction: row;
    gap: 2px;
  }
  .nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: .92rem;
  }
  .nav-cta { margin-left: 8px; }
  .nav-cta .btn { width: auto; padding: 12px 22px; font-size: .88rem; }
}
