/* ══════════════════════════════════════════════════════
   style.css — Jefferson P. Emradora Portfolio
   Cinematic dark-minimal aesthetic
   Author: Claude (for Jefferson)
══════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES (THEME TOKENS) ─────────────────── */
:root {
  /* Dark theme (default) */
  --bg:          #030810;
  --bg-2:        #060e1c;
  --bg-card:     #0a1628;
  --bg-card-h:   #0d1d36;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.07);

  --text:        #dde6f5;
  --text-2:      #7b94b8;
  --text-muted:  #3d5070;
  --accent:      #63b3ed;       /* Blue accent */
  --accent-dim:  rgba(99,179,237,0.12);
  --accent-glow: rgba(99,179,237,0.28);
  --gold:        #c9a96e;       /* Secondary warm accent */

  --border:      rgba(255,255,255,0.06);
  --border-a:    rgba(99,179,237,0.22);

  --nav-bg:      rgba(3,8,16,0.82);
  --shadow:      0 12px 48px rgba(0,0,0,0.7);
  --shadow-sm:   0 4px 20px rgba(0,0,0,0.45);

  /* Gradients */
  --grad-hero: linear-gradient(
    160deg,
    rgba(3,8,16,0.25) 0%,
    rgba(3,8,16,0.65) 50%,
    rgba(3,8,16,1)    100%
  );

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Motion */
  --ease:      cubic-bezier(0.4,0,0.2,1);
  --t:         0.28s;
  --t-slow:    0.55s;
}

/* Light mode overrides */
.light-mode {
  --bg:          #f0ede8;
  --bg-2:        #e8e4de;
  --bg-card:     #ffffff;
  --bg-card-h:   #f7f5f2;
  --surface:     rgba(0,0,0,0.04);
  --surface-h:   rgba(0,0,0,0.07);

  --text:        #0d1826;
  --text-2:      #3d5070;
  --text-muted:  #8a9bb8;
  --accent:      #2b7cc4;
  --accent-dim:  rgba(43,124,196,0.10);
  --accent-glow: rgba(43,124,196,0.22);
  --gold:        #9a6f2a;

  --border:      rgba(0,0,0,0.08);
  --border-a:    rgba(43,124,196,0.28);

  --nav-bg:      rgba(240,237,232,0.88);
  --shadow:      0 12px 48px rgba(0,0,0,0.10);
  --shadow-sm:   0 4px 20px rgba(0,0,0,0.07);

  --grad-hero: linear-gradient(
    160deg,
    rgba(3,8,16,0.38) 0%,
    rgba(3,8,16,0.72) 55%,
    #f0ede8           100%
  );
}

/* ── 2. RESET & BASE ─────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;               /* replaced by custom cursor on desktop */
  transition: background var(--t-slow) var(--ease),
              color      var(--t-slow) var(--ease);
  min-height: 100svh;
}

/* Restore cursor on mobile / touch */
@media (hover:none) { body { cursor: auto; } }

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

/* ── 3. GRAIN OVERLAY ───────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainShift 0.12s steps(1) infinite;
}
.light-mode .grain { opacity: 0.018; }

@keyframes grainShift {
  0%  { transform:translate(0,0); }
  25% { transform:translate(-2%,3%); }
  50% { transform:translate(3%,-1%); }
  75% { transform:translate(-1%,-3%); }
}

/* ── 4. CUSTOM CURSOR ───────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%,-50%);
}

.cursor-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  transition: transform 0.08s;
  top: 0; left: 0;
}

.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--accent-glow);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
  top: 0; left: 0;
}

body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent);
}

@media (hover:none) {
  .cursor-dot, .cursor-ring { display:none; }
}

/* ── 5. LAYOUT ──────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section { padding: 7rem 0; }

/* ── 6. NAVBAR ──────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background var(--t) var(--ease),
              box-shadow  var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  z-index: 1001;
}

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

/* Desktop nav links */
.nav-links {
  display: flex;
  gap: 2.4rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--t);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  height: 1px; width: 0;
  background: var(--accent);
  transition: width var(--t) var(--ease);
}

.nav-link:hover,
.nav-link.active { color: var(--text); }

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Nav right actions */
.nav-right { display:flex; align-items:center; gap:0.75rem; }

.theme-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items:center; justify-content:center;
  font-size: 0.95rem;
  transition: background var(--t), transform var(--t);
  z-index: 1001;
}

.theme-btn:hover { background:var(--surface-h); transform:rotate(18deg); }

/* Hamburger */
.ham-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
}

.ham-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t);
}

.ham-btn.open .ham-bar:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.ham-btn.open .ham-bar:nth-child(2) { opacity:0; }
.ham-btn.open .ham-bar:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

/* ── 7. MOBILE MENU ─────────────────────────────────── */
.mob-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.mob-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.mob-menu ul { display:flex; flex-direction:column; gap:2rem; text-align:center; }

.mob-link {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-2);
  transition: color var(--t);
}

.mob-link:hover { color: var(--text); }

/* ── 8. HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.06);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform:scale(1.06); }
  to   { transform:scale(1.14); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, transparent 25%, rgba(3,8,16,0.72) 100%);
}

/* Blue ambient light */
.hero-light {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw; height: 50vw;
  background: radial-gradient(ellipse, rgba(99,179,237,0.08) 0%, transparent 65%);
  pointer-events: none;
  animation: lightPulse 7s ease-in-out infinite;
}

@keyframes lightPulse {
  0%,100% { opacity:0.5; transform:translateX(-50%) scale(1); }
  50%      { opacity:1;   transform:translateX(-50%) scale(1.08); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 820px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.6rem;
}

.eyebrow-line {
  display: inline-block;
  width: 32px; height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.hero-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.9;
  margin-bottom: 1.8rem;
}

.name-line {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 11vw, 8.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.035em;
  display: block;
}

/* Serif italic line for the last name */
.name-line--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7rem);
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Role badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 2.2rem;
  backdrop-filter: blur(6px);
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0.3; }
}

/* CTA buttons */
.hero-ctas {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  animation: fadeUp 1.2s 1.8s both;
}

.scroll-track {
  width: 1px; height: 44px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}

.scroll-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  opacity: 0.5;
  animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
  0%   { top:0; opacity:0.5; }
  100% { top:100%; opacity:0; }
}

/* ── 9. BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              background var(--t),
              border-color var(--t),
              color var(--t);
}

.btn--primary {
  background: var(--accent);
  color: #030810;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}

.btn--outline:hover {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--surface-h);
  color: var(--text);
}

.btn--sm { padding:0.5rem 1.2rem; font-size:0.68rem; }
.btn--full { width:100%; }

/* ── 10. SECTION HEADERS ────────────────────────────── */
.sec-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.sec-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.sec-title em {
  font-style: italic;
  color: var(--accent);
}

.sec-header { margin-bottom: 3.5rem; }
.sec-header--center { text-align:center; max-width:640px; margin-left:auto; margin-right:auto; }

.sec-sub {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.75;
}

/* ── 11. PROJECTS SECTION ───────────────────────────── */
.proj-section {
  background: var(--bg-2);
  position: relative;
}

.proj-section::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background:linear-gradient(to right, transparent, var(--border-a), transparent);
}

/* 2-col grid, drops to 1-col on mobile */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Card */
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              border-color var(--t);
}

.proj-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-a);
  border-color: var(--border-a);
}

/* Screenshot preview */
.proj-preview {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.proj-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease), filter var(--t-slow);
  filter: brightness(0.9) saturate(0.85);
}

.proj-card:hover .proj-preview img {
  transform: scale(1.04);
  filter: brightness(1) saturate(1);
}

/* Overlay on hover */
.proj-preview-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3,8,16,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  backdrop-filter: blur(2px);
  transition: opacity var(--t) var(--ease);
}

.proj-card:hover .proj-preview-overlay { opacity:1; }

/* Card body */
.proj-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.proj-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.proj-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.proj-desc {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-2);
  flex: 1;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.proj-stack span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 3px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border-a);
}

.proj-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* ── 12. ABOUT SECTION ──────────────────────────────── */
.about-section { background: var(--bg); position:relative; overflow:hidden; }

.about-section::before {
  content: 'ABOUT';
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-serif);
  font-size: 8rem;
  font-weight: 700;
  font-style: italic;
  color: var(--border);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.04em;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

/* Photo */
.about-photo-col { position:relative; }

.photo-frame {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 360px;
}

.about-photo {
  width:100%; height:100%;
  object-fit: cover;
  object-position: top;
  filter: grayscale(10%) contrast(1.04);
  transition: filter var(--t-slow);
}

.photo-frame:hover .about-photo { filter:grayscale(0) contrast(1); }

.photo-border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-a);
  border-radius: 6px;
  pointer-events: none;
}

/* Floating stat card */
.stat-card {
  position: absolute;
  bottom: -1.2rem; right: -1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-a);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 1.5;
}

/* Text column */
.about-text-col .sec-tag { margin-bottom:0.75rem; }

.about-p {
  font-size: 0.975rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}

.about-p strong { color:var(--text); font-weight:600; }

/* Skills */
.skills-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.skill-col h4 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-col li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t);
}

.skill-col li:hover { color:var(--text); }

/* ── 13. CONTACT SECTION ────────────────────────────── */
.contact-section { background: var(--bg-2); }

.contact-wrap { max-width:960px; }

.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

/* Contact info */
.cinfo-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color var(--t);
}

.cinfo-item:hover { color:var(--text); }

.cinfo-icon {
  font-size: 1rem;
  color: var(--accent);
  width: 20px;
  flex-shrink: 0;
}

/* Availability badge */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(72,199,116,0.1);
  border: 1px solid rgba(72,199,116,0.25);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #48c774;
}

.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #48c774;
  animation: blink 2s ease-in-out infinite;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field-group input,
.field-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--t), background var(--t);
  resize: vertical;
}

.field-group input::placeholder,
.field-group textarea::placeholder { color:var(--text-muted); }

.field-group input:focus,
.field-group textarea:focus {
  outline: none;
  border-color: var(--border-a);
  background: var(--bg-card-h);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  color: var(--accent);
  min-height: 1.2rem;
}

/* ── 14. FOOTER ─────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-copy,
.footer-made {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ── 15. PWA INSTALL BANNER ─────────────────────────── */
.pwa-strip {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-a);
  border-radius: 8px;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow);
  z-index: 2000;
  font-size: 0.83rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: transform var(--t-slow) var(--ease);
}

.pwa-strip.show {
  transform: translateX(-50%) translateY(0);
}

/* ── 16. SCROLL REVEAL ANIMATIONS ───────────────────── */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.js-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance animations (CSS-driven, no JS needed) */
.anim-rise {
  animation: fadeUp 0.75s var(--ease) both;
}

.delay-1 { animation-delay:0.15s; transition-delay:0.10s; }
.delay-2 { animation-delay:0.28s; transition-delay:0.20s; }
.delay-3 { animation-delay:0.42s; transition-delay:0.30s; }
.delay-4 { animation-delay:0.56s; transition-delay:0.40s; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(28px); }
  to   { opacity:1; transform:translateY(0); }
}

@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}

/* ── 17. RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .proj-grid { grid-template-columns:1fr; }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .photo-frame { max-width:280px; margin:0 auto; }

  .about-section::before { display:none; }

  .contact-cols {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  .nav-links { display:none; }
  .ham-btn   { display:flex; }

  .section { padding:5rem 0; }

  .hero-ctas { flex-direction:column; align-items:center; }

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

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

@media (max-width: 480px) {
  .stat-card { right:0; bottom:-0.8rem; }
  .pwa-strip { flex-wrap:wrap; text-align:center; justify-content:center; left:1rem; right:1rem; transform:translateY(100px); }
  .pwa-strip.show { transform:translateY(0); }
}

/* ── 18. SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar           { width:5px; }
::-webkit-scrollbar-track     { background:var(--bg); }
::-webkit-scrollbar-thumb     { background:var(--border-a); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--accent); }

/* ── 19. SELECTION ──────────────────────────────────── */
::selection {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ── 20. FOCUS VISIBLE (accessibility) ──────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
