/* ============================================================
   CLEMENT KARIKU PORTFOLIO — Main Stylesheet
   Dark Tech Aesthetic | Syne + DM Mono + Outfit
   ============================================================ */

:root {
  --bg: #080B12;
  --bg2: #0D1117;
  --bg3: #111827;
  --surface: #161D2B;
  --surface2: #1E2A3D;
  --border: rgba(0, 201, 167, 0.12);
  --accent: #00C9A7;
  --accent2: #4FC3F7;
  --accent3: #FFB300;
  --text: #E8ECEF;
  --text2: #8A97AA;
  --text3: #4A5568;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-body: 'Outfit', sans-serif;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  --glow: 0 0 40px rgba(0, 201, 167, 0.15);
  --glow-strong: 0 0 80px rgba(0, 201, 167, 0.25);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── CURSOR ─── */
.cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s, opacity 0.3s;
  transform: translate(-50%, -50%);
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(0,201,167,0.4);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.15s ease, opacity 0.3s;
  transform: translate(-50%, -50%);
}
.cursor.expanded { transform: translate(-50%, -50%) scale(2.5); opacity: 0.5; }

/* ─── LOADER ─── */
.loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-bar {
  width: 200px; height: 2px;
  background: var(--surface2);
  border-radius: 2px;
  margin: 0 auto 16px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute; left: 0; top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  animation: loadBar 1.8s cubic-bezier(0.23,1,0.32,1) forwards;
}
@keyframes loadBar { to { width: 100%; } }
.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text2);
}
.loader-dots { animation: dots 1s infinite; }
@keyframes dots {
  0%, 33% { content: '.'; }
  34%, 66% { content: '..'; }
  67%, 100% { content: '...'; }
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 40px;
  display: flex; align-items: center; gap: 40px;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(8,11,18,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 40px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-right: auto;
}
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text2);
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); }
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text);
  transition: var(--transition);
}
.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); }

.mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 280px; height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 999;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 32px;
  transition: right 0.4s cubic-bezier(0.23,1,0.32,1);
}
.mobile-menu.open { right: 0; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text2);
  transition: color 0.3s;
}
.mobile-link:hover { color: var(--accent); }

/* ─── ACCENT ─── */
.accent { color: var(--accent); }

/* ─── SECTION COMMON ─── */
.section { padding: 120px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 60px;
  letter-spacing: -1px;
}
.section-title em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23,1,0.32,1), transform 0.8s cubic-bezier(0.23,1,0.32,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.2s;
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,201,167,0.35);
  transform: translateY(-2px);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.full-width { width: 100%; justify-content: center; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 100px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
#hero-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}
.hero-bg-text {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 300px);
  font-weight: 800;
  color: rgba(255,255,255,0.018);
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  letter-spacing: -5px;
  pointer-events: none;
  z-index: 0;
  white-space: nowrap;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: 100px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInDown 0.8s 0.3s both;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,167,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,201,167,0); }
}
.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}
.hero-first {
  display: block;
  font-size: clamp(52px, 8vw, 96px);
  animation: slideRight 0.8s 0.4s both;
}
.hero-last {
  display: block;
  font-size: clamp(52px, 8vw, 96px);
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
  animation: slideRight 0.8s 0.5s both;
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title-wrapper {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text2);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s 0.6s both;
}
.hero-title-static { font-weight: 300; }
.hero-title-dynamic {
  color: var(--accent2);
  font-weight: 600;
  border-right: 2px solid var(--accent2);
  padding-right: 4px;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text3);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
  animation: fadeInUp 0.8s 0.7s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeInUp 0.8s 0.8s both;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  animation: fadeInUp 0.8s 0.9s both;
}
.stat {
  display: flex; flex-direction: column; align-items: flex-start;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text3);
  margin-top: 4px;
}
.stat-divider {
  width: 1px; height: 40px;
  background: var(--border);
}

/* HERO VISUAL */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 500px;
  z-index: 1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 6s ease-in-out infinite;
}
.orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,201,167,0.15), transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}
.orb-2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(79,195,247,0.12), transparent 70%);
  bottom: 50px; right: 20px;
  animation-delay: -2s;
}
.orb-3 {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(255,179,0,0.1), transparent 70%);
  bottom: 0; left: 10px;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.floating-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  backdrop-filter: blur(10px);
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite;
  white-space: nowrap;
}
.card-icon { font-size: 16px; }
.card-1 { top: 60px; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 100px; left: -30px; animation-delay: -1.5s; }
.card-3 { top: 180px; right: -10px; animation-delay: -3s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* 3D CUBE */
.scene-3d {
  width: 140px; height: 140px;
  perspective: 600px;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.cube {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 12s linear infinite;
}
@keyframes rotateCube {
  from { transform: rotateX(15deg) rotateY(0deg); }
  to { transform: rotateX(15deg) rotateY(360deg); }
}
.face {
  position: absolute;
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  border: 1px solid rgba(0,201,167,0.25);
  background: rgba(0,201,167,0.04);
  backdrop-filter: blur(4px);
  border-radius: 8px;
}
.front  { transform: translateZ(70px); }
.back   { transform: rotateY(180deg) translateZ(70px); }
.left   { transform: rotateY(-90deg) translateZ(70px); }
.right  { transform: rotateY(90deg) translateZ(70px); }
.top    { transform: rotateX(90deg) translateZ(70px); }
.bottom { transform: rotateX(-90deg) translateZ(70px); }

.scroll-indicator {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text3);
  animation: fadeInUp 1s 1.5s both;
  grid-column: 1 / -1;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1px solid var(--text3);
  border-radius: 12px;
  display: flex; justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ─── ABOUT ─── */
.about { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-body {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.about-body strong { color: var(--text); }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text3);
}
.about-links { display: flex; gap: 20px; flex-wrap: wrap; }
.about-link {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text2);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.about-link:hover { color: var(--accent); border-color: var(--accent); }

/* Profile Card 3D */
.about-card-side { display: flex; align-items: center; justify-content: center; }
.about-card-3d {
  width: 300px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s;
  transform-style: preserve-3d;
}
.about-card-3d:hover { box-shadow: var(--glow-strong); }
.profile-glow {
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,201,167,0.15), transparent 70%);
  top: -60px; right: -60px;
  border-radius: 50%;
}
.profile-initial {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--bg);
  margin-bottom: 20px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.profile-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.profile-loc {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 24px;
}
.profile-badges { display: flex; flex-direction: column; gap: 8px; }
.pbadge {
  font-size: 12px;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 8px 12px;
}
.card-shine {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
  border-radius: 24px;
  transition: opacity 0.2s;
}

/* ─── SKILLS ─── */
.skills { background: var(--bg2); }
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.skill-card:hover {
  border-color: rgba(0,201,167,0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.skill-card-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 20px;
}
.skill-category {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}
.skill-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(0,201,167,0.07);
  border: 1px solid rgba(0,201,167,0.15);
  border-radius: 100px;
  color: var(--text2);
  transition: background 0.3s, color 0.3s;
}
.skill-pill:hover {
  background: rgba(0,201,167,0.15);
  color: var(--accent);
}

/* ─── TIMELINE ─── */
.experience { background: var(--bg); }
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: '';
  position: absolute; left: 16px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 48px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -48px; top: 0;
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.timeline-item:hover .timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0,201,167,0.2);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.timeline-item:hover .timeline-card {
  border-color: rgba(0,201,167,0.2);
  transform: translateX(4px);
}
.tl-period {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 8px;
}
.tl-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tl-company {
  font-size: 14px;
  color: var(--accent2);
  margin-bottom: 12px;
  font-weight: 500;
}
.tl-desc {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ─── PROJECTS ─── */
.projects { background: var(--bg2); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(var(--accent), 0.1);
}
.project-glow {
  position: absolute; top: -40px; right: -40px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.08;
  transition: opacity 0.3s;
}
.project-card:hover .project-glow { opacity: 0.18; }
.project-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.1em;
}
.project-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}
.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  flex: 1;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  background: rgba(0,201,167,0.06);
  border: 1px solid rgba(0,201,167,0.12);
  border-radius: 100px;
  color: var(--text3);
}
.project-arrow {
  position: absolute; top: 20px; right: 20px;
  color: var(--text3);
  transition: color 0.3s, transform 0.3s;
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}
.project-url {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text3);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.project-card:hover .project-url { color: var(--accent2); }

/* ─── EDUCATION ─── */
.education { background: var(--bg); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.edu-card:hover {
  border-color: rgba(0,201,167,0.25);
  transform: translateY(-4px);
}
.edu-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}
.edu-degree {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.edu-school {
  font-size: 13px;
  color: var(--text2);
}

/* ─── CONTACT ─── */
.contact { background: var(--bg2); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text p {
  font-size: 17px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.ci-icon {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.ci-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text3);
  margin-bottom: 4px;
}
.ci-val {
  font-size: 14px;
  color: var(--text2);
  transition: color 0.3s;
}
.ci-val:hover { color: var(--accent); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { position: relative; }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: none;
}
.form-input::placeholder { color: var(--text3); }
.form-input:focus {
  border-color: rgba(0,201,167,0.4);
  box-shadow: 0 0 0 3px rgba(0,201,167,0.06);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text3);
  letter-spacing: 0.05em;
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent); }

/* ─── HIRE ME MODAL ─── */
button.nav-cta {
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}
button.nav-cta:hover { background: var(--accent); color: var(--bg); }

.hire-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.hire-overlay.active { opacity: 1; visibility: visible; }
.hire-overlay.active .hire-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.hire-modal {
  background: var(--surface);
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 580px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.23,1,0.32,1), opacity 0.35s ease;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 60px rgba(0,201,167,0.07);
}
.hire-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none;
  color: var(--text3);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.hire-close:hover { color: var(--text); transform: rotate(90deg); }
.hire-header { margin-bottom: 32px; }
.hire-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0,201,167,0.08);
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 20px;
}
.hire-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.hire-title em {
  font-style: normal;
  -webkit-text-stroke: 1px var(--accent);
  color: transparent;
}
.hire-sub {
  font-size: 14px;
  color: var(--text2);
}
.hire-form { display: flex; flex-direction: column; gap: 14px; }
.hire-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hire-actions {
  display: flex; align-items: center; gap: 20px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.hire-direct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text3);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.hire-direct:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 520px) {
  .hire-modal { padding: 32px 24px; }
  .hire-row { grid-template-columns: 1fr; }
}

/* ─── NOISE TEXTURE 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='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)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 9990;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .scroll-indicator { display: none; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
}
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 100px 20px 60px; }
  .container { padding: 0 20px; }
  .about-grid, .contact-grid, .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .timeline { padding-left: 30px; }
  .about-card-side { display: none; }
  .navbar.scrolled { padding: 12px 20px; }
  .section { padding: 80px 0; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 20px; }
}
