/* ============ Variables — original gold/black/white theme ============ */
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #f4f4f4;
  --surface-strong: #ececec;
  --border: #e8e8ea;
  --text-color: #1a1a1f;
  --text-color-two: #ffffff;
  --text-dim: #5c5c66;
  --text-dimmer: #8a8a99;

  --accent-1: #ffcd42;
  --accent-2: #ff9a3c;
  --accent-3: #ffd35c;
  --accent-gold: #ffcd42;
  --gradient-brand: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --gradient-warm: linear-gradient(120deg, var(--accent-3), var(--accent-gold));

  --shadow: 0 10px 40px rgba(0, 0, 0, .14);
  --glow: 0 14px 34px -14px rgba(255, 205, 66, .5);

  --weight-semibold: 600;
  --weight-bold: 800;
  --width-medium: 1100px;

  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --font-mono: "Outfit", "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #000000;
  --surface: #111111;
  --surface-strong: #1a1a1a;
  --border: #232326;
  --text-color: #ffffff;
  --text-color-two: #1a1a1f;
  --text-dim: #a3a3ad;
  --text-dimmer: #6d6d7a;
  --shadow: 0 2px 10px rgba(255, 255, 255, .1);
  --glow: 0 14px 34px -14px rgba(255, 205, 66, .35);
}

html { font-size: 100%; scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }
a { text-decoration: none; color: var(--text-color); }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.5;
  transition: background .4s, color .4s;
  overflow-x: hidden;
}

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

.container { max-width: var(--width-medium); margin: 0 auto; padding: 1rem 2rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .85rem 1.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: var(--weight-semibold);
  letter-spacing: .03em;
  transition: .3s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--gradient-brand); color: #111; }
.btn-primary:hover { background: var(--accent-3); }
.btn-secondary { background: var(--text-color); color: var(--bg); }
.btn-secondary:hover { opacity: .8; }
.btn-block { width: 100%; justify-content: center; text-align: center; }
.arrow { font-style: normal; margin-left: .3rem; }

/* ============ Section chrome ============ */
.section { padding-top: .5rem; padding-bottom: .5rem; position: relative; }
.division {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 25%, var(--border) 75%, transparent);
  margin: 3.5rem 0 2rem;
}
.content-text { text-align: center; margin: 1.5rem auto; max-width: 640px; }
.hero-text .content-text { text-align: left; margin-left: 0; margin-right: 0; max-width: none; }
.content-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: var(--weight-bold);
}
.content-text p { padding: .5rem; color: var(--text-dim); }
.highlight { color: var(--accent-1); }

.pill-tag {
  font-family: var(--font-body);
  font-size: .74rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  transition: background .4s;
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
#logo a { display: flex; align-items: center; gap: 8px; }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1rem; }
.logo-text em { font-style: normal; color: var(--accent-2); }

.nav-menu { display: flex; align-items: center; }
.nav-menu li { margin: 0 .3rem; }
.nav-link {
  margin: 0 1rem;
  font-size: .8rem;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--text-color);
  opacity: .8;
  transition: opacity .2s, color .2s;
}
.nav-link:not(.btn):hover { opacity: 1; color: var(--accent-2); }
.nav-menu .btn { margin: 0 0 0 .5rem; }

/* Theme toggle */
.theme-switch { margin-left: 1.2rem; display: flex; align-items: center; }
#switch { display: none; }
.toggle-icons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s;
}
.toggle-icons:hover { border-color: var(--accent-1); transform: translateY(-1px); }
.toggle-icons svg {
  position: absolute;
  width: 18px; height: 18px;
  stroke: var(--text-color);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity .3s ease, transform .4s ease;
}
.icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
.icon-moon { opacity: 0; transform: rotate(-90deg) scale(.5); }
#switch:checked + .toggle-icons .icon-sun { opacity: 0; transform: rotate(90deg) scale(.5); }
#switch:checked + .toggle-icons .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Hamburger */
.hamburger { display: none; cursor: pointer; padding: .2rem .4rem; z-index: 101; }
.hamburger.active { border: 1px dotted var(--text-dim); border-radius: 4px; }
.bar {
  display: block;
  width: 23px; height: 3px;
  margin: 4px auto;
  border-radius: 30px;
  background-color: var(--text-color);
  transition: all .3s ease-in-out;
}
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
#hero { display: flex; flex-direction: column; }
.header-container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
  max-width: var(--width-medium);
  margin: 6rem auto 0;
  padding: 1rem 2rem 3rem;
}
.hero-text { text-align: left; }
.hero-text > * + * { margin-top: 1rem; }
.hero-text h1 { font-family: var(--font-display); font-weight: var(--weight-bold); }

.wave { display: inline-block; animation: waveHand 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes waveHand { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(18deg); } 75% { transform: rotate(-10deg); } }

.hero-cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.ig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 3.6rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: var(--weight-semibold);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  will-change: transform;
}
.ig-btn-follow {
  background: #0095f6;
  color: #fff;
  border: 1px solid transparent;
  animation: followPulse 2.6s ease-in-out infinite;
}
.ig-btn-follow:hover {
  background: #1877c9;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px -10px rgba(0, 149, 246, .65);
  animation-play-state: paused;
}
@keyframes followPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 149, 246, .45); }
  50% { box-shadow: 0 0 0 12px rgba(0, 149, 246, 0); }
}
.ig-btn-message {
  background: var(--surface-strong);
  color: var(--text-color);
  border: 1px solid var(--border);
  animation: messagePulse 2.6s ease-in-out infinite;
  animation-delay: 1.3s;
}
.ig-btn-message:hover {
  background: var(--border);
  border-color: var(--accent-1);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 30px -12px rgba(255, 205, 66, .5);
  animation-play-state: paused;
}
@keyframes messagePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 205, 66, .4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 205, 66, 0); }
}

/* ============ Phone mockup — 3D glass iPhone with glow + parallax ============ */
.phone-mockup {
  position: relative;
  display: block;
  width: clamp(190px, 18vw, 220px);
  justify-self: center;
  perspective: 1400px;
}
.phone-glow {
  position: absolute;
  inset: -48px;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  filter: blur(50px);
  opacity: .45;
  border-radius: 50%;
  animation: glowSpin 8s linear infinite;
}
@keyframes glowSpin { to { transform: rotate(360deg); } }

.phone-3d {
  display: block;
  transform: rotateY(-16deg) rotateX(5deg);
  transform-style: preserve-3d;
  transition: transform .4s ease;
  will-change: transform;
}

.phone-frame {
  display: block;
  position: relative;
  background: linear-gradient(155deg, #f4f4f6 0%, #d7d7dc 42%, #f1f1f3 55%, #cacace 100%);
  border-radius: 38px;
  padding: 11px;
  animation: phoneFloat 3.2s ease-in-out infinite alternate;
  box-shadow:
    0 45px 90px -25px rgba(0, 0, 0, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .7),
    inset 0 0 14px rgba(0, 0, 0, .1);
}
.phone-frame::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 38px;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  pointer-events: none;
}
@keyframes phoneFloat { from { transform: translateY(0) translateZ(0); } to { transform: translateY(-10px) translateZ(0); } }

.phone-btn { position: absolute; background: linear-gradient(90deg, #c7c7cc, #eeeeef); border-radius: 3px; z-index: 0; }
.phone-btn-action   { left: -3px; top: 86px; width: 3px; height: 21px; }
.phone-btn-vol-up   { left: -3px; top: 125px; width: 3px; height: 27px; }
.phone-btn-vol-down { left: -3px; top: 160px; width: 3px; height: 27px; }
.phone-btn-power    { right: -3px; top: 125px; width: 3px; height: 46px; }

.phone-island {
  position: absolute;
  top: 19px; left: 50%;
  transform: translateX(-50%);
  width: 68px; height: 19px;
  background: #000;
  border-radius: 13px;
  z-index: 3;
}

.phone-screen {
  display: block;
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 30px 8px 7px;
  overflow: hidden;
  font-family: var(--font-body);
  box-shadow: inset 0 0 0 2px #0b0b0d;
}
.phone-shine {
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: shineSweep 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 6;
}
@keyframes shineSweep {
  0%, 40% { left: -60%; }
  70%, 100% { left: 140%; }
}

.ig-status-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 5px; }
.ig-time { font-size: .54rem; font-weight: var(--weight-bold); color: #111; }
.ig-battery { width: 16px; height: 8px; border: 1px solid #111; border-radius: 2px; padding: 1px; position: relative; }
.ig-battery::after { content: ""; position: absolute; right: -2px; top: 2px; width: 2px; height: 3px; background: #111; border-radius: 0 1px 1px 0; }
.ig-battery-fill { display: block; width: 80%; height: 100%; background: #111; border-radius: 1px; }

.ig-mock-topbar {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: #111; font-size: .6rem; font-weight: var(--weight-bold);
  padding: 2px 2px 6px; border-bottom: 1px solid #efefef; position: relative;
}
.ig-lock { width: 9px; height: 9px; fill: none; stroke: #111; stroke-width: 1.8; }
.ig-mock-dots { position: absolute; right: 2px; color: #444; font-weight: 400; }

.ig-mock-profile { display: flex; align-items: center; gap: 10px; padding: 8px 2px 0; }
.ig-avatar-ring { padding: 2px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-gold), var(--accent-3), var(--accent-1)); flex-shrink: 0; }
.ig-mock-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.ig-mock-stats { display: flex; gap: 10px; flex: 1; }
.ig-mock-stat { display: flex; flex-direction: column; align-items: center; font-size: .5rem; color: #666; line-height: 1.3; }
.ig-mock-stat strong { font-size: .7rem; color: #111; font-weight: var(--weight-bold); }

.ig-mock-bio { display: flex; flex-direction: column; gap: 2px; padding: 6px 2px 0; text-align: left; }
.ig-mock-bio strong { font-size: .62rem; color: #111; }
.ig-mock-bio span { font-size: .54rem; color: #555; }
.ig-mock-link { color: #00376b !important; }

.ig-highlights { display: flex; gap: 10px; padding: 6px 2px 0; }
.ig-highlight { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .46rem; color: #444; }
.hl-circle {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f4f4f4; border: 1px solid #eee;
  display: flex; align-items: center; justify-content: center; font-size: .68rem;
}

.ig-mock-actions { position: relative; display: flex; gap: 5px; padding: 8px 2px 5px; }
.ig-mock-follow, .ig-mock-message, .ig-mock-more {
  text-align: center; font-size: .6rem; font-weight: var(--weight-bold);
  padding: 6px 0; border-radius: 7px; position: relative; overflow: hidden;
}
.ig-mock-follow, .ig-mock-message { flex: 1; }
.ig-mock-more { flex: 0 0 22px; background: #efefef; color: #111; }
.ig-mock-message { background: #efefef; color: #111; }
.ig-mock-follow { background: #0095f6; color: #fff; }
.ig-mock-follow .state-follow, .ig-mock-follow .state-following { display: block; transition: opacity .25s; }
.ig-mock-follow .state-following { position: absolute; inset: 0; padding-top: 6px; opacity: 0; }

.ig-tabs { display: flex; border-top: 1px solid #efefef; margin-top: 3px; }
.ig-tab { flex: 1; text-align: center; padding: 6px 0 5px; font-size: .7rem; color: #bbb; border-bottom: 1.5px solid transparent; }
.ig-tab.active { color: #111; border-bottom-color: #111; }

.ig-mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.mg { aspect-ratio: 1; }
.mg-1 { background: linear-gradient(155deg, var(--accent-gold), #ff9a3c); }
.mg-2 { background: linear-gradient(155deg, #222, #444); }
.mg-3 { background: linear-gradient(155deg, #ffd35c, var(--accent-gold)); }
.mg-4 { background: linear-gradient(155deg, #444, #111); }
.mg-5 { background: linear-gradient(155deg, #ff9a3c, var(--accent-gold)); }
.mg-6 { background: linear-gradient(155deg, #111, #333); }

/* Floating notification chips around the phone */
.float-chip {
  position: absolute;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-color);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  white-space: nowrap;
  z-index: 7;
}
.chip-1 { top: 8%; left: -14%; animation: chipFloat1 9s ease-in-out infinite; }
.chip-2 { top: 46%; right: -20%; animation: chipFloat2 9s ease-in-out infinite; animation-delay: 3s; }
.chip-3 { bottom: 10%; left: -18%; animation: chipFloat3 9s ease-in-out infinite; animation-delay: 6s; }

@keyframes chipFloat1 {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(.9); }
  15%, 32% { opacity: 1; transform: translateY(0) scale(1); }
  40%, 100% { opacity: 0; transform: translateY(-10px) scale(.9); }
}
@keyframes chipFloat2 {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(.9); }
  15%, 32% { opacity: 1; transform: translateY(0) scale(1); }
  40%, 100% { opacity: 0; transform: translateY(-10px) scale(.9); }
}
@keyframes chipFloat3 {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(.9); }
  15%, 32% { opacity: 1; transform: translateY(0) scale(1); }
  40%, 100% { opacity: 0; transform: translateY(-10px) scale(.9); }
}

/* Animated finger tap on "Follow" — pure CSS loop */
.phone-cursor { position: absolute; right: 6%; bottom: -24px; width: 24px; height: 24px; pointer-events: none; z-index: 5; animation: cursorMove 4s cubic-bezier(.5, 0, .2, 1) infinite; }
.tap-point { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(30, 30, 34, .4), rgba(30, 30, 34, 0) 72%); }
.tap-point::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(0, 149, 246, .65); opacity: 0;
  animation: tapRipple 4s cubic-bezier(.5, 0, .2, 1) infinite;
}
@keyframes tapRipple {
  0%, 58% { transform: scale(.35); opacity: 0; }
  62% { transform: scale(.45); opacity: .9; }
  78% { transform: scale(1.7); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes cursorMove {
  0%, 42% { right: 6%; bottom: -24px; opacity: 0; transform: scale(1); }
  48%     { right: 6%; bottom: -24px; opacity: 1; transform: scale(1); }
  55%     { right: 76%; bottom: 10px; opacity: 1; transform: scale(1); }
  61%     { right: 76%; bottom: 6px;  opacity: 1; transform: scale(.85); }
  66%     { right: 76%; bottom: 10px; opacity: 1; transform: scale(1); }
  94%     { right: 76%; bottom: 10px; opacity: 1; transform: scale(1); }
  99%     { right: 6%; bottom: -24px; opacity: 0; transform: scale(1); }
  100%    { right: 6%; bottom: -24px; opacity: 0; transform: scale(1); }
}
@keyframes followSwap { 0%, 62% { opacity: 1; } 66%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes followSwapIn { 0%, 62% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes followBg { 0%, 62% { background: #0095f6; color: #fff; } 66%, 96% { background: #efefef; color: #111; } 100% { background: #0095f6; color: #fff; } }
.ig-mock-follow { animation: followBg 4s cubic-bezier(.5, 0, .2, 1) infinite; }
.ig-mock-follow .state-follow { animation: followSwap 4s cubic-bezier(.5, 0, .2, 1) infinite; }
.ig-mock-follow .state-following { animation: followSwapIn 4s cubic-bezier(.5, 0, .2, 1) infinite; }

/* ============ About — plain bio + connecting timeline ============ */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  margin-top: 2rem;
  align-items: start;
}
.about-copy p { color: var(--text-dim); max-width: 52ch; margin-bottom: 14px; }
.about-copy p:last-of-type { margin-bottom: 0; }

.about-timeline { position: relative; display: flex; flex-direction: column; gap: 30px; padding: 4px 0 4px 0; }
.about-timeline::before {
  content: "";
  position: absolute; left: 23px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; display: flex; gap: 18px; align-items: flex-start; }
.timeline-node {
  position: relative; z-index: 1;
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  font-size: 1.25rem;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.timeline-item:hover .timeline-node { border-color: var(--accent-1); box-shadow: var(--glow); transform: scale(1.06); }
.timeline-content { display: flex; flex-direction: column; gap: 3px; padding-top: 8px; }
.timeline-content strong { font-size: 1rem; font-family: var(--font-display); font-weight: var(--weight-bold); }
.timeline-content > span { font-size: .82rem; color: var(--text-dim); }

.stat-num { font-family: var(--font-display); font-weight: var(--weight-bold); }
.stat-suffix { font-family: var(--font-display); font-weight: var(--weight-bold); color: var(--accent-1); }

/* ============ Filter row (used by Projects) ============ */
.filter-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 1.5rem 0; }
.filter-btn {
  font-family: var(--font-body);
  font-size: .78rem;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: .25s;
}
.filter-btn:hover { color: var(--text-color); border-color: var(--accent-1); }
.filter-btn.active { background: var(--gradient-brand); color: #111; border-color: transparent; font-weight: var(--weight-semibold); }

/* ============ Projects — glass tilt cards ============ */
.project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: .9rem;
  margin-top: 1rem;
  perspective: 1000px;
}
.card {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .12s linear, border-color .3s, box-shadow .3s;
  transform-style: preserve-3d;
}
.card.hide { display: none; }
.card .tag-row { margin-top: auto; }
.card:hover { border-color: var(--accent-1); box-shadow: var(--glow); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.card-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: var(--gradient-brand);
  color: #111;
  font-size: 1.3rem;
}
.card-icon svg { width: 22px; height: 22px; fill: currentColor; }
.card-external {
  color: var(--text-dim);
  font-size: 1.2rem;
  line-height: 1;
  transition: .2s;
}
.card:hover .card-external { color: var(--accent-1); transform: translate(2px, -2px); }
.card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; }
.card > p { color: var(--text-dim); font-size: .88rem; margin-bottom: 18px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-body);
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--text-dim);
}

/* ============ Contact ============ */
.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-1);
  margin-bottom: 10px;
}
.contact-header { text-align: left; margin-left: 0; margin-right: 0; max-width: 640px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-top: 1.5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; }
.contact-info h3, .contact-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  margin-bottom: 14px;
}

.connect-card { display: flex; flex-direction: column; }
.connect-list { display: flex; flex-direction: column; }
.connect-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-weight: var(--weight-semibold);
  transition: .2s;
}
.connect-item:last-child { border-bottom: none; }
.connect-item:hover { color: var(--accent-1); padding-left: 6px; }
.connect-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-1);
}
.connect-icon svg {
  width: 24px; height: 24px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.connect-icon svg.icon-fill { fill: currentColor; stroke: none; }

.availability {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--text-dim);
  width: fit-content;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-1); box-shadow: 0 0 0 0 rgba(255, 205, 66, .6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 205, 66, .55); } 70% { box-shadow: 0 0 0 10px rgba(255, 205, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 205, 66, 0); } }

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
}
.contact-form .btn-block {
  background: var(--accent-1);
  color: #111;
  border-radius: 10px;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.contact-form .btn-block:hover { background: var(--accent-3); }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin-bottom: 7px;
}
.req { color: #e0455b; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  padding: 10px 2px;
  color: var(--text-color);
  outline: none;
  transition: border-color .25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus { border-color: var(--accent-1); }
.field.error input, .field.error textarea { border-color: var(--accent-3); }
.form-status { font-size: .85rem; text-align: center; min-height: 1.2em; color: var(--text-dim); }
.form-status.success { color: #2fb872; }
.form-status.error { color: var(--accent-3); }

/* ============ Footer ============ */
#footer { background: transparent; margin-top: 2rem; border-top: 1px solid var(--border); }
.footer-grid {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px;
  color: var(--text-color);
  min-height: 70px;
  padding: 1.25rem 2rem;
}
.footer-copy, .footer-credit { font-size: .82rem; color: var(--text-dim); }
.footer-credit .heart { color: var(--accent-1); }
#footer a { font-size: .8rem; color: var(--text-color); }
#footer a:hover { opacity: .7; }
#footer .social { display: flex; gap: .9rem; }
#footer .social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: .25s;
}
#footer .social a:hover { border-color: var(--accent-1); box-shadow: var(--glow); opacity: 1; transform: translateY(-2px); }
#footer .social svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--text-color); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
#footer .social svg.icon-fill { fill: var(--text-color); stroke: none; }

/* ============ Loading screen: laptop logging into Instagram ============ */
body.is-loading { overflow: hidden; }
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
  transition: opacity .6s ease, transform .6s ease, visibility .6s ease;
}
.loading-screen.hide { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }

.loading-laptop { display: flex; flex-direction: column; align-items: center; }
.laptop-screen {
  position: relative;
  width: clamp(280px, 80vw, 380px);
  aspect-ratio: 16 / 10.4;
  background: linear-gradient(155deg, #2e2e32, #101012);
  border-radius: 14px 14px 2px 2px;
  padding: 18px 12px 10px;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .5);
}
.laptop-cam {
  position: absolute; top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07);
}
.screen-stage { position: relative; width: 100%; height: 100%; border-radius: 4px; overflow: hidden; }

.login-box, .feed-box {
  position: absolute; inset: 0;
  background: #ffffff;
}
.login-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px;
  padding: 12px;
  animation: boxFadeOut .4s ease forwards;
  animation-delay: 2.1s;
}
@keyframes boxFadeOut { to { opacity: 0; transform: scale(.96); } }

.login-logo { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1.15rem; color: #111; margin-bottom: 2px; }
.login-field {
  width: 100%; max-width: 190px;
  display: flex; flex-direction: column;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 4px;
}
.login-field-label { font-size: .56rem; color: #999; text-transform: uppercase; letter-spacing: .03em; }
.login-field-value { font-size: .76rem; color: #111; font-weight: var(--weight-semibold); }
.login-dots { display: flex; gap: 5px; padding-top: 3px; height: 10px; }
.login-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #111;
  opacity: 0;
  transform: scale(.3);
  animation: dotPop .25s ease forwards;
}
.login-dots i:nth-child(1) { animation-delay: .3s; }
.login-dots i:nth-child(2) { animation-delay: .48s; }
.login-dots i:nth-child(3) { animation-delay: .66s; }
.login-dots i:nth-child(4) { animation-delay: .84s; }
.login-dots i:nth-child(5) { animation-delay: 1.02s; }
.login-dots i:nth-child(6) { animation-delay: 1.2s; }
@keyframes dotPop { to { opacity: 1; transform: scale(1); } }

.login-btn {
  margin-top: 5px;
  width: 100%; max-width: 190px;
  text-align: center;
  font-size: .8rem;
  font-weight: var(--weight-bold);
  padding: 7px 0;
  border-radius: 6px;
  background: #b2dffc;
  color: #fff;
  animation: loginActivate .45s ease forwards;
  animation-delay: 1.55s;
}
@keyframes loginActivate {
  0% { background: #b2dffc; transform: scale(1); }
  55% { background: #0095f6; transform: scale(1.05); }
  100% { background: #0095f6; transform: scale(1); }
}

/* Logged-in Instagram feed view */
.feed-box {
  display: flex; flex-direction: column;
  opacity: 0;
  animation: boxFadeIn .5s ease forwards;
  animation-delay: 2.3s;
}
@keyframes boxFadeIn { to { opacity: 1; } }
.feed-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid #efefef;
}
.feed-logo { font-family: var(--font-display); font-weight: var(--weight-bold); color: #111; font-size: .8rem; flex-shrink: 0; }
.feed-search { flex: 1; max-width: 110px; background: #f0f0f0; color: #999; border-radius: 999px; padding: 3px 10px; font-size: .56rem; }
.feed-icons { display: flex; align-items: center; gap: 8px; color: #111; font-size: .7rem; flex-shrink: 0; }
.feed-avatar { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), var(--accent-3)); display: inline-block; }

.feed-post {
  width: 168px;
  margin: 12px auto 0;
  border: 1px solid #efefef;
  border-radius: 6px;
  overflow: hidden;
}
.feed-post-head { display: flex; align-items: center; gap: 6px; padding: 6px 7px; }
.feed-post-avatar { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-1), #ff9a3c); flex-shrink: 0; }
.feed-username { font-size: .58rem; font-weight: var(--weight-bold); color: #111; flex: 1; }
.feed-more { font-size: .6rem; color: #999; }
.feed-photo { width: 100%; aspect-ratio: 1; background: linear-gradient(155deg, var(--accent-1), var(--accent-3), #7c5cff); }
.feed-actions { display: flex; align-items: center; gap: 7px; padding: 6px 7px 2px; font-size: .68rem; color: #111; }
.feed-actions span:first-child { color: #ed4956; }
.feed-save { margin-left: auto; }
.feed-likes { font-size: .56rem; font-weight: var(--weight-bold); color: #111; padding: 3px 7px 0; }
.feed-caption { font-size: .56rem; color: #333; padding: 2px 7px 7px; }
.feed-caption strong { font-weight: var(--weight-bold); }

.laptop-base {
  position: relative;
  width: clamp(310px, 85vw, 420px);
  height: 14px;
  background: linear-gradient(#dcdce0, #b7b7bd);
  border-radius: 0 0 9px 9px;
}
.laptop-notch {
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 54px; height: 6px;
  background: #9d9da3;
  border-radius: 0 0 7px 7px;
}

.loading-text { font-family: var(--font-display); font-size: .85rem; color: var(--text-dim); }
.loading-text strong { color: var(--text-color); font-weight: var(--weight-bold); }

/* ============ Reveal-on-scroll ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .project { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .header-container { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-text { text-align: center; }
  .hero-text .content-text { text-align: center; margin-left: auto; margin-right: auto; }
  .chip-1, .chip-2, .chip-3 { display: none; }
}

@media (max-width: 768px) {
  .header-container { margin-top: 5.5rem; }
  .division { margin: 2.25rem 0 1.5rem; }
  .footer-grid { flex-direction: column; text-align: center; }
}

@media (max-width: 670px) {
  .nav-menu {
    position: fixed;
    right: -100vw;
    top: 4.5rem;
    flex-direction: column;
    align-items: flex-start;
    width: calc(80% - 10px);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: .3s;
    box-shadow: var(--shadow);
    padding: 2rem;
    border-radius: 16px;
    z-index: 100;
  }
  .nav-menu.active { right: 20px; }
  .nav-menu li { margin: 0 0 .9rem; width: 100%; }
  .nav-menu .nav-link { font-size: .9rem; }
  .nav-menu .btn { width: 100%; text-align: center; }
  .theme-switch { margin: .5rem 0 0; }
  .hamburger { display: block; }
}

@media (max-width: 600px) {
  .project { grid-template-columns: 1fr; }
  .hero-cta-row { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
