/* ═══════════════════════════════════════════
   ALEX RIVERA — PORTFOLIO  |  style.css
   Dark Editorial Aesthetic
═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:          #0a0a0c;
  --bg-alt:      #0f0f12;
  --bg-card:     #141418;
  --bg-card2:    #1a1a20;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(196,164,100,0.3);

  --gold:        #c4a464;
  --gold-light:  #e2c990;
  --gold-dim:    rgba(196,164,100,0.15);
  --teal:        #5ecfbf;
  --teal-dim:    rgba(94,207,191,0.12);
  --cream:       #f5f0e8;

  --text-pri:    #f0ece4;
  --text-sec:    #9c968a;
  --text-dim:    #5a5550;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h:       72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-pri);
  overflow-x: hidden;
  line-height: 1.7;
  /* cursor: none; */
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%;}
ul { list-style: none; }

/* ── Custom Cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.05s ease;
}
.cursor.hovered { width: 56px; height: 56px; border-color: var(--teal); }

/* ── Noise Overlay ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Nav ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s ease;
}
#navbar.scrolled { box-shadow: 0 4px 40px rgba(0,0,0,0.5); }

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-pri);
}
.logo-bracket { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 2.2rem;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-sec);
  transition: color 0.3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--text-pri); }
.nav-link:hover::after { width: 100%; }

.cta-link {
  border: 1px solid var(--gold);
  padding: 6px 18px;
  border-radius: 4px;
  color: var(--gold) !important;
  font-size: 0.78rem;
}
.cta-link:hover { background: var(--gold); color: var(--bg) !important; }
.cta-link::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-pri);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 8% 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(196,164,100,0.06);
  letter-spacing: 0.15em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-pri);
  margin-bottom: 1.8rem;
}
.hero-title .line { display: block; }
.hero-title .italic { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-sec);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none; cursor: none;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-light);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(196,164,100,0.3); }

.btn-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 32px;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: none;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 40px; right: 8%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── Sections ── */
.section {
  padding: 100px 8%;
  position: relative;
  z-index: 1;
}
.section-alt { background: var(--bg-alt); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text-pri);
  margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--gold-light); }

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo-col { display: flex; justify-content: center; }

.photo-frame {
  position: relative;
  width: 280px; height: 280px;
}
.photo-ring {
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0.4;
  animation: ringRotate 12s linear infinite;
}
.photo-ring::before {
  content: '';
  position: absolute; top: 10px; left: 50%;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
}
@keyframes ringRotate { to { transform: rotate(360deg); } }

.photo-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(196,164,100,0.25);
}
.profile-photo {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-frame:hover .profile-photo { transform: scale(1.05); }

.photo-badge {
  position: absolute; bottom: 10px; right: -10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.about-desc {
  color: var(--text-sec);
  font-size: 1.02rem;
  font-weight: 300;
  margin-bottom: 1.2rem;
  line-height: 1.85;
}
.about-desc strong { color: var(--text-pri); font-weight: 500; }

.about-stats {
  display: flex; gap: 2.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Skills ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.skill-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.skill-card:hover::before { transform: scaleX(1); }

.skill-icon {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: block;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-pri);
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(196,164,100,0.2);
  border-radius: 20px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.skill-bars { display: flex; flex-direction: column; gap: 1.4rem; }
.bar-label {
  display: flex; justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-sec);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}
/* .project-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(196,164,100,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
} */
.project-card:hover { border-color: var(--border-glow); box-shadow: 0 24px 60px rgba(0,0,0,0.35); }
.project-card:hover::after { opacity: 1; }
.project-card.featured { border-color: rgba(196,164,100,0.25); background: var(--bg-card2); }

.project-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.project-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.project-card.featured .project-tag {
  color: var(--gold);
  background: var(--gold-dim);
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-pri);
}
.project-card p {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 3px;
}
.project-link {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  font-weight: 500;
  transition: gap 0.3s ease;
  display: inline-flex; gap: 0.3rem;
}
.project-link:hover { text-decoration: underline; }

/* ── Certificates ── */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex; align-items: center; gap: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}
.cert-card:hover { border-color: var(--border-glow); transform: translateX(4px); }

.cert-logo {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cert-info { flex: 1; }
.cert-card h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-pri);
  margin-bottom: 0.3rem;
}
.cert-issuer {
  font-size: 0.78rem;
  color: var(--text-sec);
  margin-bottom: 0.2rem;
}
.cert-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}
.cert-badge {
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid rgba(196,164,100,0.3);
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.cert-badge:hover { background: var(--gold); color: var(--bg); }

/* ── CV ── */
.cv-section { text-align: center; }
.cv-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cv-desc {
  color: var(--text-sec);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}
.cv-btn { margin: 0 auto; }
.dl-icon {
  display: inline-flex;
  width: 20px; height: 20px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.cv-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 1.2rem;
  letter-spacing: 0.05em;
}

/* ── Education ── */
.timeline {
  max-width: 700px;
  position: relative;
  padding-left: 3rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.6rem;
  top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(196,164,100,0.1);
  transition: all 0.3s ease;
}
.timeline-item:hover .tl-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(196,164,100,0.15), 0 0 16px rgba(196,164,100,0.4);
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.tl-content h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-pri);
  margin-bottom: 0.3rem;
}
.tl-place {
  font-size: 0.85rem;
  color: var(--teal);
  margin-bottom: 0.6rem;
  font-weight: 400;
}
.tl-desc {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.35s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(94,207,191,0.25); }
.service-card:hover::before { transform: scaleX(1); }

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-pri);
  margin-bottom: 0.8rem;
}
.service-card p {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ── Contact ── */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-text p {
  color: var(--text-sec);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}
.contact-item:hover { border-color: var(--border-glow); transform: translateX(4px); }
.ci-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.contact-item span:last-child { font-size: 0.88rem; color: var(--text-sec); }

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text-pri);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: none;
  cursor: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(196,164,100,0.5);
  box-shadow: 0 0 0 3px rgba(196,164,100,0.08);
}
.form-submit { align-self: flex-start; }
.form-success {
  font-size: 0.82rem;
  color: var(--teal);
  display: none;
  margin-top: 0.5rem;
  font-weight: 500;
}
.form-success.show { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Footer ── */
#footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 8% 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-sec);
  font-style: italic;
}
.footer-links {
  display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }
.footer-socials {
  display: flex; gap: 1.2rem;
}
.footer-socials a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  letter-spacing: 0;
}
.footer-socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-col { order: -1; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,12,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { font-size: 1rem; }

  #hero { padding: calc(var(--nav-h) + 20px) 6% 60px; }
  .hero-bg-text { display: none; }
  .section { padding: 70px 6%; }

  .about-stats { gap: 1.5rem; }
  .scroll-indicator { display: none; }

  .projects-grid,
  .certs-grid,
  .skills-grid,
  .services-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 14vw, 5rem); }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .form-submit { width: 100%; justify-content: center; }
  .section { padding: 60px 5%; }
}

/* ── Active Nav Link ── */
.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* ── Selection ── */
::selection { background: rgba(196,164,100,0.25); color: var(--text-pri); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }