/* ============================================================
   Seye Abe — Portfolio
   Dark, premium, unique theme. Pure CSS (no build step).
   ============================================================ */

:root {
  --bg: #07070d;
  --bg-2: #0c0c15;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ecedf5;
  --muted: #9aa0b4;
  --accent: #38bdf8;   /* sky */
  --accent-2: #a855f7; /* purple */
  --accent-3: #34d399; /* emerald */
  --grad: linear-gradient(135deg, #38bdf8 0%, #a855f7 100%);
  --grad-soft: linear-gradient(135deg, rgba(56, 189, 248, .16), rgba(168, 85, 247, .16));
  --radius: 20px;
  --shadow: 0 30px 60px -25px rgba(0, 0, 0, .7);
  --maxw: 1200px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

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

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent), var(--accent-2)); border-radius: 10px; }

/* ============ BACKGROUND ============ */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 75%);
}
.bg-cursor-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 60%);
  filter: blur(30px); transform: translate(-50%, -50%);
  transition: opacity .3s;
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.orb-1 { width: 500px; height: 500px; background: rgba(56,189,248,.22); top: -120px; right: -120px; animation: float 14s ease-in-out infinite; }
.orb-2 { width: 460px; height: 460px; background: rgba(168,85,247,.18); bottom: -100px; left: -80px; animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(40px); } }

/* ============ CURSOR ============ */
.cursor-dot, .cursor-ring {
  pointer-events: none; position: fixed; z-index: 9999;
  border-radius: 50%; display: none;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent); top: -4px; left: -4px; }
.cursor-ring {
  width: 38px; height: 38px; top: -19px; left: -19px;
  border: 1.5px solid rgba(56,189,248,.6);
  transition: transform .18s ease, width .2s, height .2s, top .2s, left .2s, border-color .2s;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { display: block; }
body.cursor-on .cursor-ring.hovered {
  width: 62px; height: 62px; top: -31px; left: -31px;
  border-color: var(--accent-2); background: rgba(168,85,247,.12);
}
@media (hover: hover) and (pointer: fine) {
  .cursor-ring { transition: transform .15s ease, width .2s, height .2s, top .2s, left .2s, border-color .2s; }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  height: 76px; width: auto; object-fit: contain; margin: 0 auto; display: block;
  filter: brightness(1.15) saturate(1.05) drop-shadow(0 10px 28px rgba(56,189,248,.5))
          drop-shadow(0 0 18px rgba(168,85,247,.4));
}
.preloader-bar { width: 180px; height: 3px; margin: 20px auto 0; background: var(--border); border-radius: 3px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: var(--grad); animation: load 1.4s ease forwards; }
@keyframes load { to { width: 100%; } }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 9000; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--grad); }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 8000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 60px);
  transition: background .4s, box-shadow .4s, padding .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(7, 7, 13, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -20px rgba(0,0,0,.8);
  padding: 12px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; }
.logo-img {
  height: 46px; width: auto; object-fit: contain; display: block;
  filter: brightness(1.12) saturate(1.05) drop-shadow(0 0 10px rgba(56,189,248,.45))
          drop-shadow(0 4px 14px rgba(168,85,247,.35));
}
.nav-logo {
  padding: 5px 12px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(168,85,247,.14));
  border: 1px solid rgba(56,189,248,.25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Burger (mobile) */
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-burger span { width: 26px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #07070d; box-shadow: 0 12px 30px -12px rgba(56,189,248,.6); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(168,85,247,.7); }
.btn-outline { border: 1px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: var(--surface); transform: translateY(-3px); }
.btn-ghost { color: var(--text); background: var(--surface-2); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ============ SECTION BASICS ============ */
.section { padding: clamp(80px, 12vh, 130px) clamp(18px, 4vw, 60px); position: relative; }

/* Brand watermark */
.watermark {
  position: absolute; z-index: 0; pointer-events: none; user-select: none;
  object-fit: contain; opacity: .12;
  filter: grayscale(1) sepia(1) hue-rotate(182deg) saturate(4) brightness(.95)
          drop-shadow(0 0 12px rgba(56,189,248,.5));
}
.watermark--about { width: min(680px, 85vw); right: -30px; bottom: -20px; transform: rotate(-12deg); }
.watermark--skills { width: min(560px, 78vw); left: -40px; top: 10px; transform: rotate(10deg); }
.watermark--contact { width: min(820px, 92vw); left: 50%; bottom: -60px; transform: translateX(-50%) rotate(-7deg); }
.container { max-width: var(--maxw); margin: 0 auto; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--accent); background: var(--grad-soft); border: 1px solid rgba(56,189,248,.25);
}
.section-title { font-family: var(--font-head); font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; margin: 18px 0 12px; line-height: 1.1; }
.section-sub { color: var(--muted); max-width: 620px; }
.section-head { margin-bottom: clamp(36px, 6vw, 60px); }

/* ============ HERO ============ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; width: 100%; }
.hero-eyebrow {
  font-size: 1.1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--grad); }
.hero-title { font-family: var(--font-head); font-weight: 800; line-height: 1.02; }
.hero-title .name {
  display: block; font-size: clamp(2.8rem, 9vw, 5.4rem);
  letter-spacing: -1px;
}
.hero-title .title-line { display: block; font-size: clamp(1.3rem, 3.6vw, 2.2rem); margin-top: 10px; color: var(--muted); font-weight: 600; min-height: 1.3em; }
.hero-title .typed { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cursor-blink { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub { margin: 26px 0 32px; color: var(--muted); max-width: 540px; font-size: 1.08rem; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 52px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-value { display: inline-flex; align-items: baseline; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-plus { font-size: 1.2rem; color: var(--accent-2); }
.stat-label { color: var(--muted); font-size: .8rem; letter-spacing: .5px; }

/* Profile visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.portrait-frame { position: relative; width: min(420px, 78vw); aspect-ratio: 2 / 3; }
.portrait-frame img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 26px;
  box-shadow: var(--shadow); position: relative; z-index: 1;
  background: var(--surface); image-rendering: auto;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  -webkit-transform: translateZ(0); transform: translateZ(0);
}
.portrait-ring { position: absolute; inset: -16px; border-radius: 34px; border: 1.5px dashed rgba(56,189,248,.35); z-index: 0; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge-chip {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: .85rem; color: #07070d; background: var(--grad);
  box-shadow: 0 12px 24px -8px rgba(56,189,248,.5);
}
.badge-chip.top { top: 20px; right: -18px; animation: bob 3s ease-in-out infinite; }
.badge-chip.bottom { bottom: 24px; left: -20px; animation: bob 3s ease-in-out .6s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Scroll hint */
.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; }
.mouse { width: 26px; height: 42px; border: 2px solid var(--border); border-radius: 16px; display: flex; justify-content: center; padding-top: 7px; }
.wheel { width: 4px; height: 8px; background: var(--accent); border-radius: 4px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-text strong { color: var(--text); }
.about-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 30px; }
.info-item { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.info-item span { display: block; font-size: .75rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.info-item b { font-weight: 600; font-size: .95rem; }

.about-card { padding: 34px; border-radius: var(--radius); background: var(--grad-soft); border: 1px solid rgba(56,189,248,.2); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.about-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 12px; }
.about-card p { color: var(--muted); margin-bottom: 20px; }
.tick-list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text); }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-3); font-weight: 700; }

/* ============ SKILLS ============ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.skill-card { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.skill-card h3 { font-family: var(--font-head); margin-bottom: 24px; }
.skill { margin-bottom: 20px; }
.skill-top { font-size: .9rem; margin-bottom: 8px; color: var(--text); font-weight: 500; }
.skill-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.skill-bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width 1.2s ease; }

.tech-cloud { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; justify-content: center; }
.chip {
  padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: .9rem; transition: transform .25s, border-color .25s, background .25s; cursor: default;
}
.chip:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--grad-soft); }

/* ============ CAREER SUMMARY ============ */
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.career-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: transform .3s, border-color .3s, background .3s; }
.career-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,.4); background: var(--surface-2); }
.career-icon { font-size: 2rem; margin-bottom: 16px; display: inline-block; }
.career-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 12px; }
.career-card p { color: var(--muted); font-size: .95rem; }

/* ============ PORTFOLIO ============ */
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.p-item {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10; background: var(--surface-2); display: block;
  transform: translateZ(0);
}
.p-item img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform .5s ease;
}
.p-item:hover img { transform: scale(1.06); }
.p-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; font-weight: 600; font-size: .92rem; color: var(--text);
  background: linear-gradient(to top, rgba(7,7,13,.85), transparent); opacity: 0; transition: opacity .3s, transform .3s;
  transform: translateY(8px);
}
.p-item:hover .p-caption { opacity: 1; transform: translateY(0); }
.p-arrow { color: var(--accent); font-size: 1.1rem; }
.p-item[data-nolink] { cursor: default; }

/* ============ GALLERY ============ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.g-item {
  position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  cursor: zoom-in; aspect-ratio: 4 / 5; background: var(--surface-2);
  transform: translateZ(0);
}
.g-item img {
  width: 100%; height: 100%; object-fit: contain;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  transition: transform .5s ease;
}
.g-item:hover img { transform: scale(1.03); }
.g-item .g-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 16px; background: linear-gradient(to top, rgba(7,7,13,.6), transparent 55%);
  opacity: 0; transition: opacity .3s; color: var(--text); font-size: .82rem;
}
.g-item:hover .g-overlay { opacity: 1; }
.g-overlay .zoom { font-size: 1.2rem; }
.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--accent-2); }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 9500; display: none; align-items: center; justify-content: center;
  background: rgba(5,5,10,.94); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(88vw, 1100px); max-height: 82vh; border-radius: 14px; box-shadow: var(--shadow);
  object-fit: contain;
}
.lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: .9rem; text-align: center; max-width: 80vw;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 50%; width: 48px; height: 48px; font-size: 1.5rem; display: grid; place-items: center;
  cursor: pointer; transition: background .25s, transform .25s; line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); color: #07070d; transform: scale(1.08); }
.lightbox-close { top: 22px; right: 26px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.08); }

/* ============ PUBLICATIONS ============ */
.pub-card { display: flex; gap: 24px; align-items: flex-start; padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); flex-wrap: wrap; }
.pub-icon { font-size: 2.4rem; }
.pub-body { flex: 1 1 300px; }
.pub-body h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 10px; }
.pub-authors { color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.pub-journal { color: var(--muted); }
.pub-meta { margin-top: 26px; color: var(--muted); background: var(--grad-soft); border: 1px solid rgba(56,189,248,.2); padding: 22px 26px; border-radius: var(--radius); }
.pub-meta strong { color: var(--text); }

/* ============ AFFILIATIONS ============ */
.affil-head { text-align: center; margin: 56px 0 28px; }
.affil-title { font-family: var(--font-head); font-size: 1.7rem; }
.affil-desc { color: var(--muted); margin-top: 6px; }
.affil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.affil-card {
  display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); transition: transform .3s, border-color .3s;
}
.affil-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.4); }
.affil-badge {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: #fff; border: 1px solid var(--border);
}
.affil-badge img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.affil-fallback { display: none; }
.affil-badge.nologo { background: var(--grad); border: 0; }
.affil-badge.nologo .affil-fallback {
  display: block; font-family: var(--font-head); font-weight: 800; font-size: .72rem; color: #07070d; padding: 0 4px; text-align: center;
}
.affil-card b { display: block; font-size: .95rem; line-height: 1.3; }
.affil-card small { color: var(--accent); font-weight: 600; font-size: .78rem; letter-spacing: .5px; }

/* ============ CONTACT ============ */
.contact-wrap { padding: clamp(28px, 5vw, 60px); border-radius: 30px; background: var(--surface); border: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-top: 40px; }

.contact-cards { display: grid; gap: 16px; align-content: start; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s, border-color .25s; }
.contact-card:hover { transform: translateX(6px); border-color: var(--accent); }
.cc-icon { font-size: 1.5rem; }
.contact-card b { display: block; }
.contact-card small { color: var(--muted); }

.social-block h3 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 8px; }
.social-block p { color: var(--muted); margin-bottom: 28px; }
.social-icons { display: flex; gap: 18px; flex-wrap: wrap; }
.social-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s, background .25s, border-color .25s;
}
.social-icon svg { width: 26px; height: 26px; fill: var(--text); transition: fill .25s; }
.social-icon:hover { transform: translateY(-5px); background: var(--grad); border-color: transparent; }
.social-icon:hover svg { fill: #07070d; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); transition: color .25s; }
.footer-links a:hover { color: var(--accent); }

/* ============ BACK TO TOP ============ */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 9000;
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #07070d; box-shadow: 0 12px 30px -10px rgba(56,189,248,.6);
  opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top svg { width: 24px; height: 24px; fill: currentColor; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-stats { flex-wrap: wrap; }
  .hero-visual { order: -1; }
  .portrait-frame { width: min(300px, 85vw); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .career-grid, .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .affil-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) and (min-width: 0px) {
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .nav-links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100dvh; max-height: 100dvh;
    width: min(88vw, 340px);
    flex-direction: column; flex-wrap: wrap; align-content: flex-start;
    gap: 6px 10px;
    background: rgba(12,12,21,.98); backdrop-filter: blur(16px);
    padding: 84px 18px 30px; overflow-x: auto; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%); transition: transform .35s ease;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1rem; padding: 12px 14px; flex: 0 0 auto; min-width: 46%; width: auto; }
  .nav-burger { display: flex; z-index: 9000; }
  .nav-actions .btn-ghost { font-size: .9rem; padding: 8px 14px; }
  .logo-img { height: 30px; max-width: 56vw; filter: brightness(1.25) saturate(1.05) drop-shadow(0 0 8px rgba(56,189,248,.6)) drop-shadow(0 3px 10px rgba(168,85,247,.45)); }
  .nav-logo {
    flex-shrink: 0; padding: 5px 10px;
    background: linear-gradient(135deg, rgba(56,189,248,.35), rgba(168,85,247,.38));
    border: 1px solid rgba(56,189,248,.55);
  }
  .work-grid { grid-template-columns: 1fr; }
  .about-info { grid-template-columns: 1fr; }
  .gallery-grid, .career-grid, .skills-grid, .affil-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .social-icons { justify-content: center; }
  .contact-grid { text-align: center; }
  .social-block h3, .social-block p { text-align: center; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .p-caption { opacity: 1; transform: none; background: linear-gradient(to top, rgba(7,7,13,.85), transparent 55%); }
  .p-arrow { display: none; }
}
