/* ============================================================
   John Paul Bantillo — Portfolio
   Theme: modern developer / tech (dark, neon-gradient accents)
   ============================================================ */

:root {
  --bg:        #0a0e17;
  --bg-2:      #0d1320;
  --surface:   #111827;
  --surface-2: #161f30;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #e8edf6;
  --muted:     #93a1bd;
  --faint:     #64748b;

  --accent:    #38e1c4;   /* teal */
  --accent-2:  #6c8cff;   /* indigo */
  --accent-3:  #b06cff;   /* violet */
  --grad:      linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      1140px;

  --shadow:    0 24px 60px -20px rgba(0, 0, 0, 0.6);
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: #06121a; padding: 10px 18px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { left: 16px; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---------- Animated background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(108, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -1; inset: 0;
  background:
    radial-gradient(600px 400px at 12% 8%, rgba(56, 225, 196, 0.14), transparent 60%),
    radial-gradient(620px 460px at 88% 18%, rgba(176, 108, 255, 0.13), transparent 60%);
  pointer-events: none;
}
/* Cursor-following spotlight */
.cursor-glow {
  position: fixed; z-index: -1; top: 0; left: 0;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 140, 255, 0.10), transparent 65%);
  transform: translate(-50%, -50%); pointer-events: none;
  transition: opacity .4s; opacity: 0; will-change: transform;
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 14, 23, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: url("assets/john-paul-bantillo.jpg") center / cover no-repeat;
  color: transparent; font-size: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px -6px rgba(56, 225, 196, 0.6);
}
.brand-name { font-size: 18px; letter-spacing: -0.01em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active:not(.nav-cta), .nav-links a.current:not(.nav-cta) { color: var(--accent); }
.nav-cta {
  background: var(--grad) !important; color: #06121a !important; font-weight: 600 !important;
  box-shadow: 0 6px 18px -8px rgba(56, 225, 196, 0.6);
}
.nav-cta:hover { filter: brightness(1.08); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .2s, box-shadow .2s, filter .2s, background .2s; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #06121a; box-shadow: 0 14px 30px -12px rgba(56, 225, 196, 0.55); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 20px 40px -14px rgba(56, 225, 196, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 16px; margin-top: 6px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero-content, .hero-card { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; color: var(--accent);
  padding: 7px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  background: rgba(56, 225, 196, 0.06); margin-bottom: 22px;
  max-width: 100%; white-space: normal;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(56,225,196,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,225,196,.5);} 70% { box-shadow: 0 0 0 10px rgba(56,225,196,0);} 100% { box-shadow: 0 0 0 0 rgba(56,225,196,0);} }

.hero-title { font-family: var(--font-head); font-size: clamp(40px, 6vw, 70px); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.grad-anim { background-size: 220% auto; animation: gradShift 6s ease infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
.hero-role { font-family: var(--font-mono); font-size: clamp(16px, 2.3vw, 22px); color: var(--muted); margin-top: 14px; }
.type-prefix { color: var(--accent-3); }
.caret { color: var(--accent); font-weight: 400; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--muted); font-size: 17px; max-width: 520px; margin-top: 22px; }
.hero-desc strong { color: var(--text); }

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); transition: color .2s; }
a.meta-item:hover { color: var(--accent); }
.meta-ico { opacity: .9; }

/* Code window */
.hero-card { perspective: 1000px; }
.code-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transform: rotateY(-4deg) rotateX(2deg);
  transition: transform .4s ease;
  max-width: 100%;
}
.hero-card:hover .code-window { transform: rotateY(0) rotateX(0); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.cdot { width: 12px; height: 12px; border-radius: 50%; }
.cdot.red { background: #ff5f57; } .cdot.yellow { background: #febc2e; } .cdot.green { background: #28c840; }
.code-file { margin-left: 10px; font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); }
.code-body { padding: 22px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; overflow-x: auto; }
.c-key { color: #b06cff; } .c-var { color: #38e1c4; } .c-prop { color: #6c8cff; }
.c-str { color: #f7c984; } .c-bool { color: #ff7a90; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-2); border-radius: 14px; display: grid; place-items: start center; padding-top: 8px; }
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { margin: -20px 0 10px; overflow: hidden; position: relative; width: 100%; border-block: 1px solid var(--border); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 18px; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-mono); font-size: 15px; color: var(--muted); transition: color .2s; }
.marquee-track i { color: var(--accent); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0 auto 30px; }
.stat {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center;
  position: relative;
}
.stat-num { font-family: var(--font-head); font-size: 38px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-suffix { font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--accent); }
.stat-label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(13, 19, 32, 0.6), transparent); }
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-tag { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.section-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; line-height: 1.12; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 16.5px; }

/* ---------- Multi-page layout ---------- */
.page-hero { padding: 142px 0 72px; border-bottom: 1px solid var(--border); }
.page-hero-inner { max-width: 860px; }
.page-kicker { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.page-title { font-family: var(--font-head); font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.03em; margin-top: 14px; }
.page-lead { color: var(--muted); font-size: 18px; max-width: 760px; margin-top: 20px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.split-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: start; }
.content-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.content-panel:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.content-panel h2, .content-panel h3 { font-family: var(--font-head); line-height: 1.2; }
.content-panel h2 { font-size: 30px; margin-bottom: 14px; }
.content-panel h3 { font-size: 20px; margin-bottom: 10px; }
.content-panel p { color: var(--muted); margin-top: 10px; }
.detail-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; color: var(--muted); }
.detail-list li { padding-left: 20px; position: relative; }
.detail-list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; min-height: 100%; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature-card h3 { font-family: var(--font-head); font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 15px; }
.page-cta {
  margin-top: 48px; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.page-cta h2 { font-family: var(--font-head); font-size: 26px; }
.page-cta p { color: var(--muted); margin-top: 6px; }
.project-link { display: block; color: inherit; height: 100%; }
.project-card .btn { margin-top: 20px; padding: 10px 16px; font-size: 13px; }
.project-detail {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 28px; align-items: start;
  padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.project-detail + .project-detail { margin-top: 24px; }
.project-detail-media img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg-2);
}
.project-detail-body h2 { font-family: var(--font-head); font-size: clamp(25px, 4vw, 36px); line-height: 1.12; }
.project-detail-body p { color: var(--muted); margin-top: 12px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.project-meta span { font-family: var(--font-mono); font-size: 12px; color: var(--accent); border: 1px solid rgba(56,225,196,0.24); background: rgba(56,225,196,0.08); border-radius: 999px; padding: 6px 10px; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.mini-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; background: rgba(255,255,255,0.03); }
.mini-card strong { display: block; font-family: var(--font-head); margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: 14px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 16.5px; }
.about-text strong { color: var(--text); }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.about-tags span { padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 13.5px; color: var(--muted); background: rgba(255,255,255,0.02); }

.about-side { display: flex; flex-direction: column; gap: 18px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: border-color .3s, transform .3s; }
.info-card:hover { border-color: var(--border-2); transform: translateY(-3px); }
.info-card h3 { font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); font-weight: 500; margin-bottom: 12px; }
.info-main { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.info-sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.info-meta { color: var(--faint); font-size: 13.5px; margin-top: 8px; }
.info-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.badge { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--muted); }
.badge-accent { background: rgba(56, 225, 196, 0.12); border-color: rgba(56, 225, 196, 0.3); color: var(--accent); }

/* ---------- Skills ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.skill-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.skill-ico { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(108,140,255,0.1); border: 1px solid var(--border-2); font-size: 22px; color: var(--accent); margin-bottom: 18px; font-family: var(--font-mono); }
.skill-card h3 { font-family: var(--font-head); font-size: 18px; margin-bottom: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; font-size: 13px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); transition: .2s; }
.skill-card:hover .chips li { border-color: var(--border-2); }

.bars { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 48px; }
.bar-label { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 8px; color: var(--muted); }
.bar-label span:last-child { color: var(--accent); font-family: var(--font-mono); font-size: 13px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.bar.animate i { width: var(--w); }

/* ---------- Projects ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 30px; }
.category-pills span {
  padding: 8px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--accent); background: rgba(56, 225, 196, 0.08); border: 1px solid rgba(56, 225, 196, 0.22);
}
.project-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover { transform: translateY(-5px); border-color: var(--border-2); }
.project-feature { grid-column: 1 / -1; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border-color: rgba(56,225,196,0.2); }
.project-image {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--border); margin-bottom: 22px;
  background: var(--bg-2);
}
.project-tagline { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; margin-bottom: 12px; }
.project-card h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.project-feature h3 { font-size: 30px; }
.project-card p { color: var(--muted); font-size: 15.5px; max-width: 640px; }
.project-card p strong { color: var(--text); }
.project-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.project-stack li { font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 7px; background: rgba(108,140,255,0.08); border: 1px solid var(--border); color: var(--muted); }
.project-glow { position: absolute; top: -40%; right: -10%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(56,225,196,0.18), transparent 65%); pointer-events: none; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 32px; max-width: 820px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-3)); opacity: .5; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -32px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(56,225,196,0.15); }
.tl-content h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 6px; background: rgba(176,108,255,0.12); color: var(--accent-3); border: 1px solid rgba(176,108,255,0.25); }
.tl-content p { color: var(--muted); font-size: 15.5px; }

/* ---------- Awards ---------- */
.awards { margin-top: 64px; }
.awards-title { font-family: var(--font-head); font-size: 22px; margin-bottom: 22px; }
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.award { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; transition: transform .25s, border-color .25s; }
.award:hover { transform: translateX(4px); border-color: var(--border-2); }
.award-ico { font-size: 20px; }

/* ---------- Contact ---------- */
.contact-card { background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-2); border-radius: 24px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 280px at 50% -10%, rgba(56,225,196,0.12), transparent 70%); pointer-events: none; }
.contact-head { max-width: 560px; margin: 0 auto 36px; }
.contact-sub { color: var(--muted); font-size: 16.5px; margin-top: 14px; }
.contact-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 640px; margin: 0 auto 12px; text-align: left; }
.contact-link { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: transform .25s, border-color .25s, background .25s; }
a.contact-link:hover { transform: translateY(-3px); border-color: var(--border-2); background: rgba(255,255,255,0.06); }
.cl-ico { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: rgba(56,225,196,0.1); border: 1px solid var(--border-2); font-size: 19px; }
.contact-link span:last-child { display: flex; flex-direction: column; font-size: 15px; color: var(--text); }
.contact-link strong { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 500; margin-bottom: 2px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--faint); font-size: 14px; }
.back-top { color: var(--muted); font-size: 14px; transition: color .2s; }
.back-top:hover { color: var(--accent); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* ---------- Profile photo ---------- */
.profile-photo {
  margin: 0 0 4px; position: relative; border-radius: var(--radius);
  padding: 6px; background: var(--grad);
  box-shadow: var(--shadow);
}
.profile-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center top;
  border-radius: calc(var(--radius) - 6px);
  background: var(--surface);
}
.profile-photo figcaption {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(6, 12, 20, 0.62); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text);
  text-align: center;
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.service-ico {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  font-size: 26px; background: rgba(56, 225, 196, 0.10); border: 1px solid rgba(56, 225, 196, 0.22);
  margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.services-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
  margin-top: 32px; padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface), var(--bg-2)); border: 1px solid var(--border-2);
}
.services-cta-text { font-family: var(--font-head); font-size: 18px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 4px 22px; transition: border-color .3s;
}
.faq-item[open] { border-color: var(--border-2); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-head);
  font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1;
  transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); font-size: 15.5px; padding: 0 0 20px; margin: 0; }
.faq-item a { color: var(--accent); }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .split-grid, .project-detail { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .bars { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; top: 72px; right: 0; left: 0; flex-direction: column; gap: 4px; padding: 16px 24px 24px; background: rgba(10,14,23,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s ease; align-items: stretch; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 14px; }
  .nav-toggle { display: flex; }
  .hero-card { max-width: 100%; }
  .code-window { transform: none; }
  .hero-card:hover .code-window { transform: none; }
  .projects-grid, .awards-grid, .contact-links { grid-template-columns: 1fr; }
  .feature-grid, .mini-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 122px 0 56px; }
  .page-cta { padding: 26px; }
  .project-detail { padding: 18px; }
  .project-feature h3 { font-size: 24px; }
  .contact-card { padding: 36px 22px; }
  .section { padding: 72px 0; }
}
@media (max-width: 460px) {
  .skills-grid, .stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
