/*-----------------------------------*\
  #anipsanata.com — Portfolio
  Modern dark theme. Project-first.
\*-----------------------------------*/

/*-----------------------------------*\
  #CUSTOM PROPERTIES
\*-----------------------------------*/

:root {
  /* surfaces */
  --bg:            hsl(222, 34%, 5%);
  --bg-2:          hsl(222, 30%, 7%);
  --surface:       hsl(222, 26%, 9%);
  --surface-2:     hsl(222, 22%, 12%);
  --glass:         hsla(222, 30%, 10%, 0.72);

  /* borders */
  --border:        hsla(220, 30%, 70%, 0.10);
  --border-strong: hsla(220, 30%, 75%, 0.18);

  /* text */
  --text:          hsl(220, 30%, 96%);
  --text-muted:    hsl(220, 14%, 70%);
  --text-dim:      hsl(220, 12%, 52%);

  /* accents (portfolio) */
  --accent:        hsl(255, 92%, 70%);
  --accent-2:      hsl(200, 96%, 62%);
  --accent-grad:   linear-gradient(100deg, var(--accent), var(--accent-2));

  /* default per-card brand (overridden inline) */
  --brand:         var(--accent);
  --brand-2:       var(--accent-2);

  /* type */
  --font-display: 'Space Grotesk', 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
  --font-mono:    ui-monospace, 'SFMono-Regular', 'SF Mono', Menlo, Consolas, monospace;

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* shadow */
  --shadow-sm: 0 4px 16px hsla(222, 60%, 3%, 0.4);
  --shadow-md: 0 18px 44px hsla(222, 60%, 3%, 0.5);
  --shadow-lg: 0 32px 70px hsla(222, 70%, 2%, 0.6);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-1: 0.25s var(--ease);
  --t-2: 0.45s var(--ease);
}


/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font: inherit; width: 100%; }
strong { font-weight: 600; color: var(--text); }

::selection { background: var(--accent); color: #fff; }

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


/*-----------------------------------*\
  #AMBIENT BACKGROUND
\*-----------------------------------*/

.bg-mesh, .bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.bg-mesh {
  background:
    radial-gradient(46rem 46rem at 12% -8%, hsla(255, 92%, 60%, 0.20), transparent 60%),
    radial-gradient(40rem 40rem at 100% 8%, hsla(200, 96%, 55%, 0.14), transparent 55%),
    radial-gradient(50rem 40rem at 60% 120%, hsla(268, 80%, 55%, 0.12), transparent 60%);
}

.bg-grid {
  z-index: -1;
  background-image:
    linear-gradient(hsla(220, 40%, 80%, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, hsla(220, 40%, 80%, 0.035) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}


/*-----------------------------------*\
  #LAYOUT HELPERS
\*-----------------------------------*/

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 22px;
}

.section { padding-block: 88px; position: relative; }

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, hsla(222, 40%, 8%, 0.55), transparent);
  z-index: -1;
}

.section-head { max-width: 640px; margin-bottom: 52px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 14px;
  text-transform: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 17px;
}

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

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


/*-----------------------------------*\
  #BUTTONS & PILLS
\*-----------------------------------*/

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  transition: transform var(--t-1), box-shadow var(--t-1), background var(--t-1), border-color var(--t-1);
  white-space: nowrap;
}

.btn ion-icon { font-size: 18px; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 30px hsla(255, 90%, 55%, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px hsla(255, 90%, 55%, 0.5); }

.btn-ghost {
  background: hsla(220, 30%, 80%, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: hsla(255, 90%, 65%, 0.10); }

.btn-brand {
  background: color-mix(in srgb, var(--brand) 88%, #fff 0%);
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 45%, transparent);
}
.btn-brand:hover { transform: translateY(-2px); box-shadow: 0 16px 36px color-mix(in srgb, var(--brand) 60%, transparent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: hsla(220, 30%, 80%, 0.04);
}

.pill-status { color: hsl(150, 65%, 72%); border-color: hsla(150, 65%, 50%, 0.3); background: hsla(150, 65%, 45%, 0.08); }

.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: hsl(150, 70%, 55%);
  box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0.6);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0.6); }
  70%  { box-shadow: 0 0 0 9px hsla(150, 70%, 55%, 0); }
  100% { box-shadow: 0 0 0 0 hsla(150, 70%, 55%, 0); }
}


/*-----------------------------------*\
  #HEADER / NAV
\*-----------------------------------*/

.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  transition: background var(--t-1), border-color var(--t-1), box-shadow var(--t-1);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--accent-grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
  box-shadow: 0 6px 18px hsla(255, 90%, 55%, 0.4);
}

.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }

.nav-list { display: flex; align-items: center; gap: 4px; }

.nav-link {
  position: relative;
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--t-1), background var(--t-1);
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: hsla(220, 30%, 80%, 0.06); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: hsla(220, 30%, 80%, 0.05);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  transition: color var(--t-1), border-color var(--t-1), background var(--t-1);
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); background: hsla(255, 90%, 65%, 0.10); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 22px;
  place-items: center;
}


/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  min-height: 100svh;
  padding-top: 120px;
  padding-bottom: 70px;
}

.hero-copy > * + * { margin-top: 22px; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 48ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 40px !important;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; max-width: 190px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 12.5px; color: var(--text-dim); line-height: 1.35; }

/* hero visual */
.hero-visual { display: grid; place-items: center; }

.avatar-orb {
  position: relative;
  width: min(360px, 78vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.orb-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, hsla(255, 92%, 65%, 0.55), hsla(200, 96%, 55%, 0.28) 55%, transparent 72%);
  filter: blur(26px);
  animation: floaty 6s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(circle at 50% 120%, hsla(255, 90%, 60%, 0.18), transparent 60%),
    var(--surface);
  box-shadow: inset 0 1px 0 hsla(220, 40%, 90%, 0.08), var(--shadow-lg);
}

.avatar-img {
  position: relative;
  z-index: 2;
  width: 86%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 50%;
  border: 1px solid hsla(220, 40%, 90%, 0.16);
  box-shadow:
    0 26px 60px hsla(222, 70%, 2%, 0.6),
    inset 0 0 0 5px hsla(222, 30%, 8%, 0.55);
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.float-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border-radius: 17px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: floaty 4.5s ease-in-out infinite;
}
.float-badge img { width: 40px; border-radius: 10px; }
.float-badge--1 { top: 6%; right: 2%; animation-delay: 0.2s; }
.float-badge--2 { bottom: 14%; left: -3%; animation-delay: 1.1s; }
.float-badge--3 { bottom: 2%; right: 16%; animation-delay: 0.6s; }


/*-----------------------------------*\
  #PROJECTS
\*-----------------------------------*/

.projects-list { display: flex; flex-direction: column; gap: 30px; }

.project-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--t-2), border-color var(--t-2), box-shadow var(--t-2);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent);
}
.project-card--reverse .project-visual { order: 2; }

/* visual side */
.project-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 42px 30px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.project-card--reverse .project-visual { border-right: none; border-left: 1px solid var(--border); }

.project-visual-glow {
  position: absolute;
  width: 240px; height: 240px;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 55%, transparent), transparent 68%);
  filter: blur(30px);
  opacity: 0.7;
}

.device-badge {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 128px; height: 128px;
  border-radius: 30px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md), inset 0 1px 0 hsla(220, 40%, 90%, 0.06);
  transition: transform var(--t-2);
}
.project-card:hover .device-badge { transform: translateY(-4px) scale(1.03); }
.device-badge img { border-radius: 22px; box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 40%, transparent); }

.platform-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 280px;
}
.platform-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  background: hsla(220, 30%, 90%, 0.06);
  border: 1px solid var(--border-strong);
}
.platform-chips ion-icon { font-size: 14px; color: color-mix(in srgb, var(--brand) 70%, #fff); }

/* content side */
.project-body { padding: 40px 36px; }

.project-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }

.project-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 7px;
}

.project-domain {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: color-mix(in srgb, var(--brand) 65%, #fff);
  transition: opacity var(--t-1);
}
.project-domain:hover { opacity: 0.75; }
.project-domain ion-icon { font-size: 14px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: hsl(150, 65%, 74%);
  background: hsla(150, 65%, 45%, 0.10);
  border: 1px solid hsla(150, 65%, 50%, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge--down {
  color: hsl(35, 90%, 70%);
  background: hsla(35, 90%, 50%, 0.10);
  border-color: hsla(35, 90%, 55%, 0.32);
}
.status-badge--down .status-dot { background: hsl(35, 90%, 60%); animation: none; box-shadow: none; }

.status-line {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 15px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: hsl(150, 55%, 72%);
  background: hsla(150, 65%, 45%, 0.07);
  border: 1px solid hsla(150, 65%, 50%, 0.22);
}
.status-line--warn {
  color: hsl(35, 90%, 72%);
  background: hsla(35, 90%, 50%, 0.08);
  border-color: hsla(35, 90%, 55%, 0.28);
}

.project-tagline {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 12px;
}

.project-desc { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 22px;
}
.feature-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px color-mix(in srgb, var(--brand) 70%, transparent);
}

.tech-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tech-chips li {
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: hsla(220, 30%, 80%, 0.045);
  border: 1px solid var(--border);
  transition: color var(--t-1), border-color var(--t-1), background var(--t-1);
}
.project-card:hover .tech-chips li { border-color: color-mix(in srgb, var(--brand) 22%, var(--border)); }

.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }

.link-quiet {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color var(--t-1);
}
.link-quiet:hover { color: var(--text); }
.link-quiet ion-icon { font-size: 16px; }


/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

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

.about-copy .section-title { margin-block: 14px 22px; }
.about-text { color: var(--text-muted); margin-bottom: 18px; }
.about-copy .btn { margin-top: 8px; }

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

.do-card {
  padding: 24px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t-1), border-color var(--t-1), box-shadow var(--t-1);
}
.do-card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }

.do-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 24px;
  color: var(--accent);
  background: hsla(255, 90%, 65%, 0.10);
  border: 1px solid hsla(255, 90%, 65%, 0.22);
}
.do-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.do-card p { font-size: 14px; color: var(--text-muted); }


/*-----------------------------------*\
  #TECH STACK
\*-----------------------------------*/

.stack-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.stack-group {
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--t-1), box-shadow var(--t-1);
}
.stack-group:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

.stack-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.stack-label ion-icon { font-size: 19px; color: var(--accent); }

.stack-group .tech-chips { margin-bottom: 0; }
.stack-group .tech-chips li { font-size: 12.5px; color: var(--text-muted); }


/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-copy .section-title { margin-block: 14px 20px; }

.channels { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

.channel {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--t-1), border-color var(--t-1), box-shadow var(--t-1);
}
a.channel:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
a.channel--wa:hover { border-color: hsla(150, 65%, 50%, 0.5); }
a.channel--mail:hover { border-color: var(--accent); }

.channel-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  font-size: 22px;
  flex-shrink: 0;
  background: hsla(220, 30%, 90%, 0.06);
}
.channel--wa .channel-icon { color: hsl(150, 65%, 60%); background: hsla(150, 65%, 45%, 0.12); }
.channel--mail .channel-icon { color: var(--accent); background: hsla(255, 90%, 65%, 0.12); }
.channel--loc .channel-icon { color: var(--accent-2); background: hsla(200, 96%, 55%, 0.12); }

.channel-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.channel-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); }
.channel-value { font-size: 15px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-arrow { margin-left: auto; font-size: 18px; color: var(--text-dim); transition: transform var(--t-1), color var(--t-1); }
a.channel:hover .channel-arrow { transform: translateX(4px); color: var(--accent); }

/* form */
.contact-form {
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.form-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.form-hint { font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea {
  padding: 13px 15px;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  transition: border-color var(--t-1), box-shadow var(--t-1);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px hsla(255, 90%, 65%, 0.14);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }


/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding-top: 44px;
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 30px;
}

.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.footer-tag { font-size: 13px; color: var(--text-dim); }

.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 14.5px; color: var(--text-muted); transition: color var(--t-1); }
.footer-nav a:hover { color: var(--accent); }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  font-size: 20px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  transition: transform var(--t-1), color var(--t-1), border-color var(--t-1);
}
.footer-social a:hover { transform: translateY(-3px); color: var(--accent); border-color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding-block: 20px 26px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}


/*-----------------------------------*\
  #SCROLL REVEAL
\*-----------------------------------*/

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.js [data-reveal].revealed { opacity: 1; transform: none; }


/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; text-align: left; min-height: auto; padding-top: 108px; }
  .hero-visual { order: -1; }
  .avatar-orb { width: min(300px, 66vw); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .section { padding-block: 66px; }

  /* mobile nav */
  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    padding: 16px 22px 22px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform var(--t-2);
  }
  .nav.open { transform: translateY(0); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-link { padding: 12px 14px; font-size: 16px; border-radius: var(--r-sm); }
  .nav-link.active::after { display: none; }
  .nav-toggle { display: grid; }
  .brand-text { display: none; }

  /* project cards stack */
  .project-card, .project-card--reverse { grid-template-columns: 1fr; }
  .project-card--reverse .project-visual { order: 0; border-left: none; }
  .project-visual { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 24px; }
  .project-body { padding: 30px 24px; }

  .do-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 440px) {
  .container { padding-inline: 18px; }
  .hero-stats { gap: 16px 22px; }
  .stat-num { font-size: 28px; }
  .project-name { font-size: 24px; }
  .btn { padding: 12px 18px; }
}


/*-----------------------------------*\
  #REDUCED MOTION
\*-----------------------------------*/

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