/* ============================================================
   GEORGIA HARRELL — PORTFOLIO
   Custom design · Purple theme · Performance-first
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --bg:          #07070f;
  --bg-2:        #0d0d1c;
  --surface:     #111127;
  --surface-2:   #161637;

  --p900: #2e1065;
  --p800: #3b0764;
  --p700: #4c1d95;
  --p600: #5b21b6;
  --p500: #7c3aed;
  --p400: #8b5cf6;
  --p300: #a78bfa;
  --p200: #c4b5fd;
  --p100: #ede9fe;

  --pink:  #ec4899;
  --cyan:  #22d3ee;

  --text:    #f1f5f9;
  --text-2:  #cbd5e1;
  --text-3:  #94a3b8;
  --text-4:  #475569;

  --border:       rgba(139,92,246,.12);
  --border-hover: rgba(139,92,246,.45);

  --grad-primary: linear-gradient(135deg, var(--p500) 0%, var(--pink) 100%);
  --grad-subtle:  linear-gradient(135deg, rgba(124,58,237,.14) 0%, rgba(236,72,153,.05) 100%);

  --glow-sm: 0 0 16px rgba(124,58,237,.35);
  --glow-md: 0 0 40px rgba(124,58,237,.25);
  --shadow:  0 4px 28px rgba(0,0,0,.55);

  --ff-sans:    'Inter', system-ui, sans-serif;
  --ff-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ff-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 72px;
  --max-w: 1100px;

  --ease:   cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

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

img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---- Animated background orbs ---- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .18;
  animation: orbFloat 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--p500), transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--p700), transparent 70%);
  top: 40%; right: -150px;
  animation-delay: -7s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -14s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 20px) scale(.95); }
}

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
.section {
  padding: 4.5rem 0;
}
.section-header {
  margin-bottom: 3.5rem;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.6rem;
  border-radius: 9999px;
  font-family: var(--ff-sans);
  font-size: .9rem;
  font-weight: 500;
  transition: all .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,.5);
}
.btn-ghost {
  color: var(--p300);
  border: 1.5px solid var(--border-hover);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(139,92,246,.1);
  border-color: var(--p400);
  color: var(--p200);
  transform: translateY(-2px);
}
.btn-sm  { padding: .5rem 1.2rem; font-size: .825rem; }
.btn-lg  { padding: .9rem 2.2rem; font-size: 1rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .3s var(--ease);
}
#navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  padding: 0 2rem;
  transition: all .3s var(--ease);
}
#header.scrolled #navbar {
  background: rgba(7,7,15,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,.4);
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-letters { color: var(--text); }
.logo-dot     { color: var(--p400); }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-link {
  font-size: .875rem;
  color: var(--text-3);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--grad-primary);
  transition: width .25s var(--ease);
  border-radius: 2px;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-cta { margin-left: 1rem; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger-line {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all .25s var(--ease);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(13,13,28,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-nav-link {
  display: block;
  padding: .75rem 0;
  color: var(--text-2);
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav-link:hover { color: var(--p300); }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Left side */
.hero-content { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .8rem;
  color: var(--p300);
  font-family: var(--ff-mono);
  letter-spacing: .05em;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero-name {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.hero-tagline {
  font-family: var(--ff-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-2);
  min-height: 2rem;
}
.tagline-prefix { margin-right: .25rem; }
.typing-wrapper  { display: inline-flex; align-items: center; gap: 2px; }
.typing-text     { color: var(--p300); font-weight: 500; }
.typing-cursor {
  display: inline-block;
  width: 2px; height: 1.2em;
  background: var(--p400);
  border-radius: 1px;
  animation: blink .9s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: .75rem;
}
.social-link {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--border);
  transition: all .25s var(--ease);
}
.social-link:hover {
  color: var(--p300);
  border-color: var(--border-hover);
  background: rgba(139,92,246,.12);
  transform: translateY(-3px);
  box-shadow: var(--glow-sm);
}

/* Right side — code card */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.code-card {
  background: #13132a;
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--glow-md);
}
.code-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.2rem;
  background: rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(139,92,246,.12);
}
.code-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.code-card-filename {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--text-4);
  margin-left: .5rem;
}
.code-card-body { padding: 1.25rem 1.5rem; }
.code-block {
  font-family: var(--ff-mono);
  font-size: .8rem;
  line-height: 1.75;
  white-space: pre;
}
/* Syntax colors */
.ck  { color: #c792ea; }   /* keyword */
.cv  { color: #82aaff; }   /* variable */
.cp  { color: #89ddff; }   /* punctuation */
.cpr { color: #f07178; }   /* property */
.cs  { color: #c3e88d; }   /* string */
.cb  { color: #ff9cac; }   /* boolean */

.hero-stats {
  display: flex;
  gap: .75rem;
}
.stat-pill {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .75rem .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color .25s;
}
.stat-pill:hover { border-color: var(--border-hover); }
.stat-num {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .7rem;
  color: var(--text-4);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 2px;
}


/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-image-wrap { position: relative; }
.about-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--border-hover);
  box-shadow: var(--glow-md), var(--shadow);
  aspect-ratio: 4/5;
  background: var(--surface);
}
.about-image {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image-placeholder {
  display: none;
  place-items: center;
  width: 100%; height: 100%;
  font-family: var(--ff-display);
  font-size: 4rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}

.about-badge {
  position: absolute;
  bottom: -1.25rem; right: -1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1.2rem;
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  box-shadow: var(--shadow), var(--glow-sm);
}
.badge-emoji { font-size: 1.5rem; }
.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.badge-text strong { font-size: .9rem; color: var(--text); }
.badge-text span   { font-size: .75rem; color: var(--text-3); }

.about-body { display: flex; flex-direction: column; gap: 1.25rem; padding-top: .5rem; }
.about-p { color: var(--text-2); line-height: 1.75; }
.about-p strong { color: var(--p300); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1.25rem;
  background: var(--grad-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--text-2);
}
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(124,58,237,.2);
  flex-shrink: 0;
}
.check-icon::before {
  content: '';
  display: block;
  width: 9px; height: 6px;
  border-left: 2px solid var(--p300);
  border-bottom: 2px solid var(--p300);
  transform: rotate(-45deg) translateY(-1px);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.skill-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-sm);
}
.skill-card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(139,92,246,.15);
  color: var(--p300);
  margin-bottom: 1rem;
}
.skill-card-title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .9rem;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.stag {
  padding: .3rem .75rem;
  border-radius: 9999px;
  font-size: .75rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: all .2s var(--ease);
}
.stag:hover { border-color: var(--border-hover); color: var(--p200); }
.stag--hi {
  background: rgba(139,92,246,.18);
  border-color: rgba(139,92,246,.4);
  color: var(--p200);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  border-radius: 9999px;
  font-size: .8rem;
  color: var(--text-3);
  border: 1px solid var(--border);
  background: transparent;
  transition: all .2s var(--ease);
}
.filter-btn:hover { color: var(--p200); border-color: var(--border-hover); }
.filter-btn.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
}

/* Featured project */
.project-featured {
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow), var(--glow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.project-featured:hover {
  border-color: var(--p400);
  box-shadow: var(--shadow), var(--glow-md);
}
.featured-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.featured-badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--p300);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.project-title {
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .9rem;
}
.project-desc {
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.project-desc strong { color: var(--p300); }
.featured-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .35rem .75rem;
  margin-bottom: 1.25rem;
  padding-left: 0;
}
.featured-features li {
  font-size: .825rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.featured-features li::before {
  content: '▸';
  color: var(--p400);
  font-size: .65rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.ttag {
  padding: .25rem .7rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-family: var(--ff-mono);
  background: rgba(139,92,246,.15);
  border: 1px solid rgba(139,92,246,.35);
  color: var(--p200);
}
.project-links { display: flex; gap: .75rem; }

/* CSS phone mockup */
.featured-mockup { flex-shrink: 0; }
.phone-frame {
  width: 190px; height: 360px;
  background: var(--bg-2);
  border-radius: 32px;
  border: 2px solid rgba(139,92,246,.4);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--glow-md);
  padding: 18px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 5px;
  background: rgba(139,92,246,.3);
  border-radius: 3px;
}
.phone-screen {
  flex: 1;
  background: var(--surface-2);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  margin-top: 14px;
}
.app-topbar {
  font-size: .5rem;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--p200);
  text-align: center;
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--border);
}
.app-listing {
  height: 64px;
  background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(236,72,153,.08));
  border-radius: 10px;
  border: 1px solid var(--border);
}
.app-listing--sm { height: 42px; }
.app-nav-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 0 0;
  margin-top: auto;
}
.app-nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-hover);
}
.app-nav-dot.active { background: var(--p400); }

/* Project grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: all .3s var(--ease);
}
.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-sm);
  transform: translateY(-4px);
}
.project-card[data-hidden] { display: none; }

.pcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pcard-emoji { font-size: 1.75rem; line-height: 1; }
.pcard-gh {
  color: var(--text-4);
  transition: color .2s;
}
.pcard-gh:hover { color: var(--p300); }
.pcard-coming {
  font-family: var(--ff-mono);
  font-size: .62rem;
  color: var(--text-4);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: .15rem .5rem;
  letter-spacing: .06em;
  cursor: default;
}
.pcard-title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.pcard-desc {
  font-size: .85rem;
  color: var(--text-3);
  line-height: 1.65;
  flex: 1;
}

/* ============================================================
   BROWSER MOCKUP (RiverRob featured)
   ============================================================ */
.browser-frame {
  width: 320px;
  background: #13132a;
  border-radius: 12px;
  border: 1px solid rgba(139,92,246,.35);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), var(--glow-md);
  flex-shrink: 0;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem .75rem;
  background: rgba(0,0,0,.4);
  border-bottom: 1px solid rgba(139,92,246,.15);
}
.browser-url {
  flex: 1;
  margin-left: .3rem;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  height: 18px;
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  font-family: var(--ff-mono);
  font-size: .6rem;
  color: var(--text-4);
}
.browser-screen { padding: .75rem; }
.site-hero-mock {
  background: linear-gradient(160deg, rgba(10,45,25,.95) 0%, rgba(5,25,15,.98) 100%);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 200px;
}
.site-nav-mock {
  height: 7px; width: 75%;
  background: rgba(255,255,255,.18);
  border-radius: 4px;
}
.site-heading-mock {
  height: 13px; width: 60%;
  background: rgba(255,255,255,.28);
  border-radius: 4px;
  margin-top: .5rem;
}
.site-sub-mock {
  height: 7px; width: 45%;
  background: rgba(255,255,255,.13);
  border-radius: 4px;
}
.site-btns-mock {
  display: flex;
  gap: .4rem;
  margin-top: .25rem;
}
.site-btn-mock {
  height: 18px; width: 58px;
  background: rgba(34,120,60,.65);
  border-radius: 9px;
}
.site-btn-mock.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
}
.site-cards-mock {
  display: flex;
  gap: .4rem;
  margin-top: .5rem;
}
.site-card-mock {
  flex: 1;
  height: 48px;
  background: rgba(255,255,255,.07);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
}

/* ============================================================
   EDUCATION / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--p500), transparent);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
}
.tl-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: var(--glow-sm);
  flex-shrink: 0;
}

.tl-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  flex: 1;
  transition: border-color .3s;
}
.tl-body:hover { border-color: var(--border-hover); }
.tl-period {
  font-family: var(--ff-mono);
  font-size: .7rem;
  color: var(--p300);
  letter-spacing: .1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: .4rem;
}
.tl-school {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem;
}
.tl-degree {
  font-size: .875rem;
  color: var(--p300);
  font-weight: 500;
  margin-bottom: .85rem;
}
.tl-desc {
  font-size: .875rem;
  color: var(--text-3);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.tl-courses { display: flex; flex-wrap: wrap; gap: .4rem; }
.ctag {
  padding: .2rem .65rem;
  border-radius: 9999px;
  font-size: .7rem;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text-4);
}
.grad-badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 500;
  background: var(--grad-primary);
  color: #fff;
  margin-left: .25rem;
  vertical-align: middle;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--grad-subtle);
  border: 1px solid var(--border-hover);
  border-radius: 32px;
  box-shadow: var(--shadow), var(--glow-sm);
}
.contact-card .section-title { margin-bottom: 1rem; }
.contact-text {
  font-size: 1.05rem;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: .825rem;
  color: var(--text-4);
}
.footer-socials { display: flex; gap: .75rem; }
.footer-social {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  color: var(--text-4);
  border: 1px solid var(--border);
  transition: all .2s;
}
.footer-social:hover {
  color: var(--p300);
  border-color: var(--border-hover);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-up    { transform: translateY(32px); }
.reveal-left  { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* Stagger children of section-header/grids */
.section-header .section-title { transition-delay: .08s; }
.skills-grid      .skill-card:nth-child(1) { transition-delay: 0s; }
.skills-grid      .skill-card:nth-child(2) { transition-delay: .07s; }
.skills-grid      .skill-card:nth-child(3) { transition-delay: .14s; }
.skills-grid      .skill-card:nth-child(4) { transition-delay: .21s; }
.skills-grid      .skill-card:nth-child(5) { transition-delay: .28s; }
.projects-grid    .project-card:nth-child(1) { transition-delay: 0s; }
.projects-grid    .project-card:nth-child(2) { transition-delay: .06s; }
.projects-grid    .project-card:nth-child(3) { transition-delay: .12s; }
.projects-grid    .project-card:nth-child(4) { transition-delay: .18s; }
.projects-grid    .project-card:nth-child(5) { transition-delay: .24s; }
.projects-grid    .project-card:nth-child(6) { transition-delay: .30s; }
.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: .12s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-bio     { margin: 0 auto; }
  .hero-visual  { order: -1; align-items: center; }
  .hero-stats   { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image-wrap { max-width: 320px; margin: 0 auto; }

  .skills-grid { grid-template-columns: 1fr; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }

  .featured-inner { grid-template-columns: 1fr; }
  .featured-mockup { display: none; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 5rem 0; }

  .nav-links, .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-name { font-size: 3rem; }

  .code-card { font-size: .7rem; }

  .projects-grid { grid-template-columns: 1fr; }

  .timeline { padding-left: 1.25rem; }

  .contact-card { padding: 3rem 1.25rem; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal-up, .reveal-left, .reveal-right {
    opacity: 1; transform: none;
  }
  .hero-visual { animation: none; }
  .orb { animation: none; }
}
