/* ============================================================
   ABDUR RAHMAN AIMAN · PORTFOLIO
   Professional Light Theme · Consistent Glowing Tags
   ============================================================ */

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

:root {
  /* Light theme (default) */
  --bg:          #f8fafc;
  --bg-2:        #f1f5f9;
  --bg-3:        #e2e8f0;
  --surface:     rgba(255, 255, 255, 0.85);
  --surface-2:   rgba(255, 255, 255, 0.95);
  --border:      rgba(0, 0, 0, 0.06);
  --border-h:    rgba(15, 118, 110, 0.25);
  --accent:      #0f766e;
  --accent-light:#14b8a6;
  --accent-g:    rgba(15, 118, 110, 0.08);
  --accent-glow: rgba(15, 118, 110, 0.15);
  --violet:      #6d28d9;
  --violet-g:    rgba(109, 40, 217, 0.08);
  --violet-glow: rgba(109, 40, 217, 0.15);
  --amber:       #d97706;
  --amber-glow:  rgba(217, 119, 6, 0.15);
  --text:        #1e293b;
  --text-m:      #475569;
  --text-d:      #94a3b8;
  --white:       #0f172a;
  
  /* Professional Fonts */
  --f-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "SF Mono", "JetBrains Mono", "Fira Code", monospace;
  
  /* Spacing & effects */
  --r:          12px;
  --r-lg:       20px;
  --ease:       cubic-bezier(0.2, 0.9, 0.4, 1.1);
  --t:          0.25s;
  --nav-h:      72px;
  --max-w:      1200px;
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.03), 0 1px 6px -1px rgba(0,0,0,0.02);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-lg:  0 12px 32px -8px rgba(0,0,0,0.08);
  --shadow-xl:  0 24px 48px -12px rgba(0,0,0,0.12);
}

/* Dark mode */
[data-theme="dark"] {
  --bg:          #0f172a;
  --bg-2:        #1e293b;
  --bg-3:        #334155;
  --surface:     rgba(30, 41, 59, 0.85);
  --surface-2:   rgba(30, 41, 59, 0.95);
  --border:      rgba(255, 255, 255, 0.06);
  --border-h:    rgba(94, 234, 212, 0.25);
  --accent:      #5eead4;
  --accent-light:#99f6e4;
  --accent-g:    rgba(94, 234, 212, 0.08);
  --accent-glow: rgba(94, 234, 212, 0.12);
  --violet:      #a78bfa;
  --violet-g:    rgba(167, 139, 250, 0.08);
  --violet-glow: rgba(167, 139, 250, 0.12);
  --amber:       #fbbf24;
  --amber-glow:  rgba(251, 191, 36, 0.12);
  --text:        #f1f5f9;
  --text-m:      #cbd5e1;
  --text-d:      #64748b;
  --white:       #f8fafc;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* ─── FLOATING GRID OVERLAY (fixed background) ───────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

[data-theme="dark"] body::before {
  opacity: 0.1;
}

/* Section-specific grid backgrounds */
.section-grid-bg, .hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  opacity: 0.5;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, .section-title, .project-card__title, .timeline__title {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section-title {
  font-weight: 700;
}

/* ─── SCROLLBAR ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--text-d); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection {
  background: var(--accent-g);
  color: var(--accent);
}

/* ─── CUSTOM CURSOR (desktop only) ───────────────────────── */
@media (min-width: 768px) {
  body, a, button, .btn, .project-card, .nav__link, .contact-card {
    cursor: none;
  }
  
  #cursor-dot, #cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
  }
  #cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
  }
  #cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    transition: all 0.2s ease;
  }
  body.cursor-hover #cursor-ring {
    width: 48px;
    height: 48px;
    opacity: 0.8;
    border-color: var(--violet);
  }
  body.cursor-hover #cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--violet);
  }
}

/* ─── PROGRESS BAR ───────────────────────────────────────── */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  z-index: 10000;
  width: 0%;
  transition: width 0.1s linear;
}

/* ─── UTILITIES ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ─── SECTION HEADERS ────────────────────────────────────── */
.section-header {
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.section-line {
  display: block;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  margin-top: 20px;
  border-radius: 3px;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all var(--t) var(--ease);
  backdrop-filter: blur(0px);
}
.nav.scrolled {
  background: var(--surface-2);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav__logo {
  font-family: var(--f-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  gap: 40px;
}
.nav__link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-m);
  text-decoration: none;
  transition: color var(--t);
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t) var(--ease);
  border-radius: 2px;
}
.nav__link:hover, .nav__link.active {
  color: var(--accent);
}
.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__cv-btn {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-m);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t);
}
.nav__cv-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-g);
  transform: translateY(-1px);
}

.nav__resume {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--accent);
  border-radius: 10px;
  padding: 8px 20px;
  text-decoration: none;
  transition: all var(--t);
}
.nav__resume:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile menu */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}
.nav__mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__mobile-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav__mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--surface-2);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-link {
  padding: 14px 28px;
  color: var(--text-m);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  transition: all var(--t);
}
.nav__mobile-link:hover {
  color: var(--accent);
  padding-left: 36px;
  background: var(--accent-g);
}

@media (max-width: 768px) {
  .nav__links, .nav__cv-btn, .nav__resume { display: none; }
  .nav__mobile-toggle { display: flex; }
}

/* ─── THEME TOGGLE ───────────────────────────────────────── */
.theme-toggle {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  cursor: pointer;
  padding: 0;
  transition: all var(--t);
}
.theme-toggle__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme="light"] .theme-toggle__knob {
  transform: translateX(24px);
}
.theme-toggle__icon {
  position: absolute;
  width: 12px;
  height: 12px;
  transition: opacity 0.2s;
}
.theme-toggle__icon--sun { opacity: 0; }
.theme-toggle__icon--moon { opacity: 1; }
[data-theme="light"] .theme-toggle__icon--sun { opacity: 1; }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 0; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--t) var(--ease);
  border: none;
  cursor: pointer;
}
.btn--primary {
  background: var(--accent);
  color: white;
}
.btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--ghost:hover {
  background: var(--accent-g);
  transform: translateY(-2px);
}
.btn--cv {
  background: transparent;
  color: var(--text-m);
  border: 1.5px solid var(--border);
}
.btn--cv:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-g);
  transform: translateY(-2px);
}

/* ─── HERO SECTION ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 60px 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  border-bottom: 3px solid var(--accent);
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-m);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero photo frame */
.hero__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero__photo-frame {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__arc--outer { animation: spin 25s linear infinite; }
.hero__arc--inner {
  inset: 30px;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  animation: spin 15s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__photo-glow {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, var(--accent-g) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero__photo-circle {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-xl);
  background: var(--surface);
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.hero__photo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: var(--accent-g);
}
.hero__photo-initials {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__photo-badge {
  position: absolute;
  bottom: 20px;
  left: -10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 14px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero__photo-badge-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero__photo-chip {
  position: absolute;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 12px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.hero__photo-chip--tl {
  top: 20px;
  left: -15px;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero__photo-chip--br {
  bottom: 50px;
  right: -15px;
  animation: floatBadge 4s ease-in-out infinite 1s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Stats row */
.hero__stats {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  text-align: center;
  flex: 1;
  transition: all var(--t);
  backdrop-filter: blur(12px);
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.stat-card__num {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-card__label {
  font-size: 0.8rem;
  color: var(--text-m);
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr 340px; gap: 40px; }
  .hero__photo-frame { width: 300px; height: 300px; }
  .hero__photo-circle { width: 220px; height: 220px; }
}
@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__right { order: -1; }
  .hero__photo-frame { margin: 0 auto; width: 280px; height: 280px; }
  .hero__photo-circle { width: 200px; height: 200px; }
  .hero__actions { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
}

/* ─── SECTION DIVIDER ────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 40%, var(--border) 60%, transparent);
}

/* ─── ABOUT ──────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.about__text p {
  color: var(--text-m);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__text p strong {
  color: var(--text);
  font-weight: 600;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 20px;
}
.info-card__row {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.info-card__row:last-child { border-bottom: none; }
.info-card__label {
  font-size: 0.75rem;
  font-family: var(--f-mono);
  color: var(--text-d);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.info-card__value {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}
.info-card__link {
  color: var(--accent);
  text-decoration: none;
}
.info-card__link:hover { text-decoration: underline; }

.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px;
}
.edu-card__year {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.edu-card__school {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.edu-card__degree {
  font-size: 0.85rem;
  color: var(--text-m);
  margin-bottom: 20px;
}

/* ─── TAGS (consistent subtle glow + pop on hover, no color change) ───── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  font-size: 0.7rem;
  font-family: var(--f-mono);
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: all 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
  /* Subtle glow always present */
  box-shadow: 0 0 6px var(--accent-glow);
}

/* Hover state - ONLY pop up, no color changes */
.tag:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
  /* NO background color change */
  /* NO text color change */
  cursor: pointer;
}

/* Accent tags - same behavior */
.tag--accent {
  background: var(--accent-g);
  border: 1px solid var(--accent);
  color: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.tag--accent:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
  /* NO background color change */
  /* NO text color change */
}

@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── TIMELINE / EXPERIENCE ──────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 0 24px;
  margin-left: -32px;
  margin-bottom: 48px;
}
.timeline__item:last-child { margin-bottom: 0; }
.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline__dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--accent-g);
  z-index: 1;
  transition: all 0.25s ease;
}
.timeline__item:hover .timeline__dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.timeline__line {
  flex: 1;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  margin-top: 8px;
}
.timeline__item:last-child .timeline__line { display: none; }
.timeline__content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  transition: all var(--t);
}
.timeline__content:hover {
  transform: translateX(6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.timeline__date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--accent);
}

/* Timeline type badges - consistent with tag behavior */
.timeline__type {
  font-size: 0.6rem;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.timeline__type--edu {
  background: var(--violet-g);
  color: var(--violet);
  border: 1px solid var(--violet);
  box-shadow: 0 0 4px var(--violet-glow);
}

.timeline__type--edu:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--violet-glow);
  /* No color change on hover */
}

.timeline__type--project {
  background: var(--accent-g);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 4px var(--accent-glow);
}

.timeline__type--project:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
  /* No color change on hover */
}

.timeline__type--work {
  background: rgba(217, 119, 6, 0.1);
  color: var(--amber);
  border: 1px solid var(--amber);
  box-shadow: 0 0 4px var(--amber-glow);
}

.timeline__type--work:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--amber-glow);
  /* No color change on hover */
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.timeline__org {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--f-mono);
  margin-bottom: 12px;
}
.timeline__desc {
  font-size: 0.88rem;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .timeline { padding-left: 20px; }
  .timeline__item { grid-template-columns: 24px 1fr; gap: 0 16px; margin-left: -20px; }
  .timeline__content { padding: 18px 20px; }
}

/* ─── PROJECTS ───────────────────────────────────────────── */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all var(--t);
  backdrop-filter: blur(12px);
}
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
}
.project-card--featured { grid-column: 1 / 8; }
.project-card:nth-child(2) { grid-column: 8 / 13; }
.project-card:nth-child(3) { grid-column: 1 / 5; }
.project-card:nth-child(4) { grid-column: 5 / 9; }
.project-card:nth-child(5) { grid-column: 9 / 13; }

.project-card__header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: 20px;
}
.project-card__links {
  display: flex;
  gap: 14px;
}
.icon-link {
  color: var(--text-d);
  transition: all var(--t);
  display: flex;
  align-items: center;
}
.icon-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
.project-card__badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 0 4px var(--accent-glow);
}
.project-card__badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
}
.project-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  transition: color var(--t);
}
.project-card--featured .project-card__title { font-size: 1.6rem; }
.project-card:hover .project-card__title { color: var(--accent); }
.project-card__desc {
  font-size: 0.88rem;
  color: var(--text-m);
  line-height: 1.7;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .project-card--featured { grid-column: 1 / -1; }
  .project-card:nth-child(2) { grid-column: 1 / 7; }
  .project-card:nth-child(3) { grid-column: 7 / 13; }
  .project-card:nth-child(4) { grid-column: 1 / 7; }
  .project-card:nth-child(5) { grid-column: 7 / 13; }
}
@media (max-width: 768px) {
  .projects__grid { grid-template-columns: 1fr; }
  .project-card { grid-column: 1 / -1 !important; }
}

/* ─── SKILLS ─────────────────────────────────────────────── */
.skills__legend {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--f-mono);
  color: var(--text-m);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.legend-dot--proficient { background: var(--accent); }
.legend-dot--familiar { background: var(--violet); }
.legend-dot--exposure { background: var(--text-d); }

.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: all var(--t);
}
.skill-group:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.skill-group__title {
  font-size: 0.75rem;
  font-family: var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.skill-item:last-child { border-bottom: none; }
.skill-item__name {
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
}

/* Skill level badges - consistent behavior */
.skill-level {
  font-size: 0.65rem;
  font-family: var(--f-mono);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-level--proficient {
  background: var(--accent-g);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 0 4px var(--accent-glow);
}

.skill-level--proficient:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
  /* No color change */
}

.skill-level--familiar {
  background: var(--violet-g);
  color: var(--violet);
  border: 1px solid var(--violet);
  box-shadow: 0 0 4px var(--violet-glow);
}

.skill-level--familiar:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--violet-glow);
  /* No color change */
}

.skill-level--exposure {
  background: rgba(0,0,0,0.04);
  color: var(--text-m);
  border: 1px solid var(--border);
}

.skill-level--exposure:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  /* No color change */
}

[data-theme="dark"] .skill-level--exposure {
  background: rgba(255,255,255,0.06);
}

@media (max-width: 1024px) {
  .skills__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .skills__grid { grid-template-columns: 1fr; }
}

/* ─── CERTIFICATIONS ─────────────────────────────────────── */
.certs__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 20px;
  align-items: start;
  transition: all var(--t);
}
.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cert-card__icon-wrap {
  width: 56px;
  height: 56px;
  background: var(--accent-g);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.cert-card__name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.cert-card__issuer {
  font-size: 0.7rem;
  font-family: var(--f-mono);
  color: var(--accent);
  margin-bottom: 8px;
}
.cert-card__desc {
  font-size: 0.82rem;
  color: var(--text-m);
  line-height: 1.6;
}

/* Certification badges - consistent */
.cert-card__badge {
  font-size: 0.6rem;
  font-family: var(--f-mono);
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 0 4px var(--accent-glow);
}

.cert-card__badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 12px var(--accent-glow);
  /* No color change */
}

@media (max-width: 768px) {
  .certs__grid { grid-template-columns: 1fr; }
  .cert-card { grid-template-columns: 48px 1fr; }
  .cert-card__badge { grid-column: 2; justify-self: start; margin-top: 8px; }
}

/* ─── CONTACT ────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact__text p {
  color: var(--text-m);
  line-height: 1.8;
  margin-bottom: 32px;
}
.contact__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: all var(--t);
}
.contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  background: var(--accent-g);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-card__label {
  font-size: 0.65rem;
  font-family: var(--f-mono);
  text-transform: uppercase;
  color: var(--text-d);
  margin-bottom: 4px;
}
.contact-card__value {
  font-size: 0.82rem;
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact__cards { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy, .footer__credit {
  font-size: 0.8rem;
  color: var(--text-d);
  font-family: var(--f-mono);
}
.footer__credit a {
  color: var(--accent);
  text-decoration: none;
}
.footer__credit a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ─── BACK TO TOP ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: all var(--t);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  z-index: 100;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.35s; }

/* ─── TYPED CURSOR ───────────────────────────────────────── */
.typed-cursor {
  color: var(--accent);
  animation: blink 0.8s infinite;
  font-weight: 300;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ─── HIGHLIGHT ──────────────────────────────────────────── */
.hl { color: var(--accent); font-weight: 600; }
.hl-v { color: var(--violet); font-weight: 600; }