/* ============================================================
   JOEL INDRA PORTFOLIO — WEB3 PREMIUM LIGHT THEME
   Offensive Security & AI Engineer
   ============================================================ */

/* ============================================================
   1. DESIGN SYSTEM TOKENS
   ============================================================ */
:root {
  /* Background Palette */
  --bg-base:        #f8faff;
  --bg-elevated:    #ffffff;
  --bg-subtle:      #f0f4ff;
  --bg-overlay:     rgba(248, 250, 255, 0.88);
  --bg-invert:      #0f172a;

  /* Brand Colors */
  --brand-indigo:   #4f46e5;
  --brand-indigo-l: #6366f1;
  --brand-indigo-d: #3730a3;
  --brand-violet:   #7c3aed;
  --brand-violet-l: #8b5cf6;
  --brand-cyan:     #0891b2;
  --brand-cyan-l:   #06b6d4;
  --brand-emerald:  #059669;
  --brand-rose:     #e11d48;
  --brand-amber:    #d97706;

  /* Gradients */
  --grad-brand:        linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #0891b2 100%);
  --grad-brand-soft:   linear-gradient(135deg, rgba(79,70,229,0.12) 0%, rgba(124,58,237,0.08) 100%);
  --grad-hero-title:   linear-gradient(135deg, #4338ca 0%, #6366f1 35%, #7c3aed 65%, #06b6d4 100%);
  --grad-indigo-v:     linear-gradient(135deg, #4f46e5, #7c3aed);
  --grad-violet-c:     linear-gradient(135deg, #7c3aed, #06b6d4);
  --grad-shimmer:      linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);

  /* Text */
  --text-primary:   #0f172a;
  --text-secondary: #334155;
  --text-tertiary:  #64748b;
  --text-muted:     #94a3b8;
  --text-inverse:   #ffffff;
  --text-brand:     #4f46e5;

  /* Borders */
  --border-subtle:  rgba(79, 70, 229, 0.10);
  --border-medium:  rgba(79, 70, 229, 0.22);
  --border-strong:  rgba(79, 70, 229, 0.45);
  --border-card:    rgba(79, 70, 229, 0.12);

  /* Shadows */
  --shadow-xs:    0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm:    0 4px 12px rgba(15,23,42,0.08), 0 1px 4px rgba(15,23,42,0.04);
  --shadow-md:    0 8px 24px rgba(15,23,42,0.09), 0 2px 8px rgba(15,23,42,0.05);
  --shadow-lg:    0 16px 40px rgba(15,23,42,0.10), 0 6px 16px rgba(15,23,42,0.05);
  --shadow-xl:    0 24px 56px rgba(15,23,42,0.12), 0 10px 24px rgba(15,23,42,0.06);
  --shadow-glow-i: 0 0 0 1px rgba(79,70,229,0.18), 0 8px 32px rgba(79,70,229,0.22);
  --shadow-glow-v: 0 0 0 1px rgba(124,58,237,0.18), 0 8px 32px rgba(124,58,237,0.2);
  --shadow-glow-c: 0 0 0 1px rgba(6,182,212,0.18), 0 8px 32px rgba(6,182,212,0.18);

  /* Animation Timing */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-enter:  cubic-bezier(0, 0, 0.2, 1);
  --ease-exit:   cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:    150ms;
  --dur-base:    250ms;
  --dur-slow:    400ms;
  --dur-xl:      700ms;
}

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

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

::selection {
  background: rgba(79,70,229,0.18);
  color: var(--brand-indigo-d);
}

body {
  font-family: 'Inter', 'Space Grotesk', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
  html { min-height: -webkit-fill-available; }
}

/* Dot grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(79,70,229,0.11) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

/* Grain texture overlay */
body::after {
  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)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   3. ANIMATED BLOB BACKGROUND
   ============================================================ */
.blob-container {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.5) 0%, rgba(139,92,246,0.3) 60%, transparent 100%);
  top: -15%;
  left: -10%;
  animation: blobFloat1 14s ease-in-out infinite alternate;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, rgba(99,102,241,0.25) 60%, transparent 100%);
  top: -5%;
  right: -8%;
  animation: blobFloat2 18s ease-in-out infinite alternate;
}

.blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6,182,212,0.4) 0%, rgba(79,70,229,0.2) 60%, transparent 100%);
  bottom: 10%;
  left: 25%;
  animation: blobFloat3 22s ease-in-out infinite alternate;
}

.blob-4 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, rgba(6,182,212,0.2) 60%, transparent 100%);
  bottom: -10%;
  right: 5%;
  animation: blobFloat4 16s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, 30px) scale(1.08); }
  66%  { transform: translate(-20px, 50px) scale(0.95); }
  100% { transform: translate(30px, -20px) scale(1.05); }
}
@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-50px, 40px) scale(1.1); }
  66%  { transform: translate(30px, 60px) scale(0.9); }
  100% { transform: translate(-25px, -30px) scale(1.05); }
}
@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-60px, -40px) scale(1.12); }
  100% { transform: translate(50px, 30px) scale(0.92); }
}
@keyframes blobFloat4 {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(40px, -50px) scale(1.08); }
  100% { transform: translate(-30px, 25px) scale(0.95); }
}

/* ============================================================
   4. SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-brand);
  z-index: 9999;
  transition: width 0.05s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(79,70,229,0.6);
}

/* ============================================================
   5. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 0;
  background: rgba(248,250,255,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: all var(--dur-slow) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}

.navbar.scrolled {
  background: rgba(248,250,255,0.95);
  backdrop-filter: blur(32px) saturate(200%);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border-subtle);
  padding: 0.75rem 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-bounce);
  text-decoration: none;
}

.logo:hover { transform: scale(1.04); }

.logo-icon {
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  background: var(--grad-indigo-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  line-height: 1;
}

.logo-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Space Grotesk', sans-serif;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  position: relative;
  transition: all var(--dur-base) var(--ease-smooth);
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-link:hover {
  color: var(--brand-indigo);
  background: rgba(79,70,229,0.08);
}

.nav-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-bounce);
  flex-shrink: 0;
}

.nav-link:hover .nav-icon { transform: scale(1.2); }

.nav-link.active {
  color: #fff;
  background: var(--grad-indigo-v);
  font-weight: 600;
  box-shadow: var(--shadow-glow-i);
}

.nav-link.active .nav-icon { color: #fff; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--brand-indigo);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-smooth);
  display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8rem 2rem 5rem;
  overflow: hidden;
  z-index: 2;
}

.hero-content {
  max-width: 1280px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem 0.45rem 0.7rem;
  background: rgba(79,70,229,0.08);
  border: 1px solid rgba(79,70,229,0.22);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-indigo);
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  animation: fadeInDown 0.6s var(--ease-enter) both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-indigo);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.badge-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(79,70,229,0.3);
  animation: badgePing 1.5s ease-in-out infinite;
}
@keyframes badgePing {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.8); opacity: 0; }
}

.hero-text { animation: fadeInUp 0.8s var(--ease-enter) 0.1s both; }

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  min-height: 2.2em;
  display: flex;
  align-items: center;
}

.title-line { display: block; }

.title-line.highlight {
  background: var(--grad-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: gradientShift 5s ease-in-out infinite alternate;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  line-height: 1.75;
  max-width: 560px;
  min-height: 3.5rem;
}

/* Typed text cursor */
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--brand-indigo);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.85s step-end infinite;
  border-radius: 1px;
}
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Hero chips */
.hero-chips {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: #fff;
  border: 1px solid var(--border-medium);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-base) var(--ease-smooth);
}
.chip:hover {
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero contact row */
.hero-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

.contact-link {
  color: var(--brand-indigo);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-smooth);
  padding: 0.2rem 0;
  position: relative;
}
.contact-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--grad-indigo-v);
  transition: width var(--dur-base) var(--ease-smooth);
  border-radius: 2px;
}
.contact-link:hover { color: var(--brand-violet); }
.contact-link:hover::after { width: 100%; }
.contact-separator { color: var(--text-muted); }

/* Hero buttons */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.85rem 2.2rem;
  border: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-slow) var(--ease-bounce);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
  font-family: 'Space Grotesk', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-shimmer);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-smooth);
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: var(--grad-indigo-v);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,70,229,0.4), 0 1px 6px rgba(79,70,229,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(79,70,229,0.5), 0 2px 8px rgba(79,70,229,0.25);
}
.btn-primary:active { transform: translateY(-1px) scale(0.99); }

.btn-secondary {
  background: transparent;
  color: var(--brand-indigo);
  border: 1.5px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: rgba(79,70,229,0.06);
  border-color: var(--brand-indigo);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Hero Visual — Floating Code Card */
.hero-visual {
  position: relative;
  animation: fadeInRight 0.9s var(--ease-enter) 0.2s both;
}

.floating-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(15,23,42,0.22), 0 8px 24px rgba(79,70,229,0.15), 0 0 0 1px rgba(99,102,241,0.15);
  animation: cardFloat 6s ease-in-out infinite;
  transition: box-shadow var(--dur-slow) var(--ease-smooth);
}
.floating-card:hover {
  box-shadow: 0 40px 80px rgba(15,23,42,0.28), 0 16px 40px rgba(79,70,229,0.25), 0 0 0 1px rgba(99,102,241,0.3);
}

@keyframes cardFloat {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  33%      { transform: translateY(-12px) rotate(0.5deg); }
  66%      { transform: translateY(-6px) rotate(-0.3deg); }
}

/* Code card tab bar */
.card-tab-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.tab-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tab-dot.red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.5); }
.tab-dot.yellow { background: #febc2e; box-shadow: 0 0 6px rgba(254,188,46,0.5); }
.tab-dot.green  { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.5); }

.tab-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-left: auto;
}

.card-content { padding: 1.75rem; }

.card-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.8), transparent);
  pointer-events: none;
}
.card-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.4) 0%, transparent 70%);
  filter: blur(10px);
}

/* Code snippet syntax */
.code-snippet {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 0.82rem;
  line-height: 2;
  letter-spacing: 0.3px;
}
.code-comment  { color: #636e7b; font-style: italic; }
.code-keyword  { color: #c792ea; font-weight: 600; }
.code-var      { color: #82aaff; }
.code-property { color: #7fdbca; }
.code-string   { color: #c3e88d; }
.code-function { color: #82aaff; font-weight: 600; }
.code-number   { color: #f78c6c; }

.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #82aaff;
  margin-left: 1px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: cursorBlink 0.85s step-end infinite;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: scrollBounce 2s ease-in-out infinite;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur-base);
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-chevrons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.scroll-chevron {
  width: 12px;
  height: 6px;
  border-right: 2px solid var(--brand-indigo);
  border-bottom: 2px solid var(--brand-indigo);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevronFade 1.5s ease-in-out infinite;
}
.scroll-chevron:nth-child(1) { animation-delay: 0s; }
.scroll-chevron:nth-child(2) { animation-delay: 0.2s; }
.scroll-chevron:nth-child(3) { animation-delay: 0.4s; }

@keyframes chevronFade {
  0%,100% { opacity: 0; transform: rotate(45deg) translateY(-4px); }
  50%      { opacity: 1; transform: rotate(45deg) translateY(0); }
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   7. SECTIONS BASE
   ============================================================ */
section {
  position: relative;
  padding: 6rem 0;
  z-index: 2;
}

section:nth-child(even) { background: rgba(240,244,255,0.5); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
  position: relative;
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--brand-indigo);
  letter-spacing: 4px;
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  background: rgba(79,70,229,0.07);
  border: 1px solid var(--border-medium);
  border-radius: 100px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.title-line-decoration {
  width: 48px;
  height: 4px;
  background: var(--grad-indigo-v);
  margin: 0 auto;
  border-radius: 2px;
  position: relative;
  overflow: visible;
}
.title-line-decoration::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 8px;
  height: 8px;
  background: var(--brand-indigo);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(79,70,229,0.7);
}
.title-line-decoration::after {
  content: '';
  position: absolute;
  inset: -6px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

/* AOS reveal system */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-xl) var(--ease-enter), transform var(--dur-xl) var(--ease-enter);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="100"] { transition-delay: 100ms; }
[data-reveal-delay="200"] { transition-delay: 200ms; }
[data-reveal-delay="300"] { transition-delay: 300ms; }
[data-reveal-delay="400"] { transition-delay: 400ms; }
[data-reveal-delay="500"] { transition-delay: 500ms; }

/* ============================================================
   8. ABOUT SECTION
   ============================================================ */
.about { background: var(--bg-base); }

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

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
  cursor: default;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand-soft);
  opacity: 0;
  transition: opacity var(--dur-slow);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-i);
  border-color: var(--border-medium);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.stat-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 900;
  background: var(--grad-indigo-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

/* About intro text */
.about-intro {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--brand-indigo-d);
  font-weight: 600;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-family: 'Inter', sans-serif;
}

/* Education card */
.education-section {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-indigo);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-slow) var(--ease-smooth);
}
.education-section:hover {
  box-shadow: var(--shadow-md);
  border-left-color: var(--brand-violet);
  transform: translateX(4px);
}

.education-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--brand-indigo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

.education-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.education-major {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.education-awards { margin: 0.75rem 0; }

.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(124,58,237,0.1));
  border: 1px solid var(--border-medium);
  color: var(--brand-indigo);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}
.award-badge::before { content: '🏆'; }

.education-thesis {
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Skills */
.skills-section { margin-top: 1.5rem; }

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.skill-category-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skill-category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  color: var(--brand-indigo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-indigo), transparent);
  opacity: 0.15;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  padding: 0.45rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-bounce);
  cursor: default;
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.skill-tag:hover {
  background: rgba(79,70,229,0.07);
  border-color: var(--border-medium);
  color: var(--brand-indigo);
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(79,70,229,0.12);
}

/* Career highlights */
.career-highlights {
  margin: 2rem 0;
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
}

.highlights-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--brand-indigo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.highlight-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(79,70,229,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--dur-base) var(--ease-smooth);
}
.highlight-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-medium);
  background: rgba(79,70,229,0.08);
  box-shadow: var(--shadow-sm);
}

.highlight-number {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--grad-indigo-v);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}

.highlight-label {
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}

.highlights-note {
  color: var(--text-tertiary);
  font-size: 0.88rem;
  line-height: 1.7;
  font-style: italic;
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   9. PROJECTS SECTION
   ============================================================ */
.projects { background: rgba(240,244,255,0.5); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--dur-slow) var(--ease-smooth);
  border: 1px solid var(--border-card);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xs);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79,70,229,0.3);
  box-shadow: var(--shadow-glow-i);
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(240,244,255,0.8);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}
.project-card:hover .project-image img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.94) 0%, rgba(15,23,42,0.6) 55%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  z-index: 10;
  transition: opacity var(--dur-base) var(--ease-smooth);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-info { width: 100%; }

.project-year {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--grad-indigo-v);
  color: #fff;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

.project-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.4rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-description {
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.tech-tag {
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.5px;
}
/* Tech tag color mapping */
.tech-tag[data-lang="Python"]     { background: rgba(16,185,129,0.2); color: #059669; border: 1px solid rgba(16,185,129,0.3); }
.tech-tag[data-lang="Java"]       { background: rgba(217,119,6,0.2);  color: #b45309; border: 1px solid rgba(217,119,6,0.3); }
.tech-tag[data-lang="PHP"]        { background: rgba(124,58,237,0.2); color: #6d28d9; border: 1px solid rgba(124,58,237,0.3); }
.tech-tag[data-lang="JavaScript"] { background: rgba(234,179,8,0.18); color: #a16207; border: 1px solid rgba(234,179,8,0.3); }
.tech-tag[data-lang="TypeScript"] { background: rgba(59,130,246,0.15); color: #1d4ed8; border: 1px solid rgba(59,130,246,0.3); }
.tech-tag[data-lang="Shell"]      { background: rgba(71,85,105,0.15); color: #475569; border: 1px solid rgba(71,85,105,0.3); }
.tech-tag[data-lang="HTML"]       { background: rgba(239,68,68,0.15); color: #b91c1c; border: 1px solid rgba(239,68,68,0.3); }
/* Default fallback */
.tech-tag:not([data-lang]) {
  background: rgba(79,70,229,0.12);
  color: var(--brand-indigo);
  border: 1px solid rgba(79,70,229,0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  transition: all var(--dur-base) var(--ease-smooth);
}
.project-link span { transition: transform var(--dur-base) var(--ease-bounce); }
.project-link:hover { color: #fff; gap: 0.7rem; }
.project-link:hover span { transform: translateX(5px); }

/* ============================================================
   10. PUBLICATIONS SECTION
   ============================================================ */
.publications { background: var(--bg-base); }

.publications-two-column {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}

.publications-column-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
.publications-column-title svg { color: var(--brand-indigo); }

/* CVEs Grid */
.cves-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cve-card-link { text-decoration: none; }

.cve-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--brand-indigo);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.cve-card:hover {
  transform: translateX(4px);
  border-left-color: var(--brand-indigo);
  box-shadow: var(--shadow-glow-i);
  border-color: var(--border-medium);
}

.cve-severity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.cve-severity-dot.xss          { background: #e11d48; box-shadow: 0 0 8px rgba(225,29,72,0.5); }
.cve-severity-dot.dos          { background: #d97706; box-shadow: 0 0 8px rgba(217,119,6,0.5); }
.cve-severity-dot.traversal    { background: #0891b2; box-shadow: 0 0 8px rgba(8,145,178,0.5); }
.cve-severity-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: inherit;
  opacity: 0;
  animation: severityPulse 2s ease-in-out infinite;
}
.cve-card:hover .cve-severity-dot::after { opacity: 0.3; }
@keyframes severityPulse {
  0%,100% { transform: scale(1); opacity: 0; }
  50%      { transform: scale(2); opacity: 0.3; }
}

.cve-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  letter-spacing: 0.3px;
}

.cve-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cve-type.type-xss       { background: rgba(225,29,72,0.1); color: #be123c; border: 1px solid rgba(225,29,72,0.2); }
.cve-type.type-dos       { background: rgba(217,119,6,0.1); color: #b45309; border: 1px solid rgba(217,119,6,0.2); }
.cve-type.type-traversal { background: rgba(8,145,178,0.1); color: #0e7490; border: 1px solid rgba(8,145,178,0.2); }

.cve-arrow {
  color: var(--brand-indigo);
  opacity: 0;
  transition: all var(--dur-base);
  transform: translateX(-4px);
}
.cve-card:hover .cve-arrow { opacity: 1; transform: translateX(0); }

/* GHDB section */
.ghdb-section {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: 0 4px 20px rgba(15,23,42,0.15);
}

.ghdb-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.ghdb-list { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ghdb-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #28c840;
  padding: 0.45rem 1rem;
  background: rgba(40,200,64,0.08);
  border: 1px solid rgba(40,200,64,0.2);
  border-radius: 8px;
  transition: all var(--dur-base) var(--ease-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.ghdb-item::before { content: '$ '; opacity: 0.5; font-size: 0.75rem; }
.ghdb-item:hover {
  background: rgba(40,200,64,0.15);
  border-color: rgba(40,200,64,0.4);
  transform: translateY(-2px);
  color: #34d058;
}

/* Papers */
.papers-list { display: flex; flex-direction: column; gap: 1rem; }

.publication-item-link { text-decoration: none; }

.publication-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.publication-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--grad-indigo-v);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-base) var(--ease-smooth);
  border-radius: 0 2px 2px 0;
}
.publication-item:hover {
  border-color: var(--border-medium);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.publication-item:hover::before { transform: scaleY(1); }

.publication-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  background: rgba(79,70,229,0.08);
  border: 1px solid var(--border-medium);
  color: var(--brand-indigo);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  align-self: flex-start;
}

.publication-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.publication-item:hover .publication-title { color: var(--brand-indigo); }

.publication-description {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ============================================================
   11. EXPERIENCE SECTION
   ============================================================ */
.experience { background: rgba(240,244,255,0.5); }

.experience-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.experience-column-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-indigo);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.freelance-title {
  color: var(--brand-cyan);
}

.experience-column-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  opacity: 0.2;
}

.experience-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 3rem;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-indigo), var(--brand-violet), rgba(6,182,212,0.3), transparent);
  border-radius: 2px;
}

.experience-item {
  position: relative;
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-xs);
  transition: all var(--dur-slow) var(--ease-smooth);
}
.experience-item:hover {
  transform: translateX(6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* Timeline dot with ping */
.experience-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 1.75rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--brand-indigo);
  z-index: 2;
  transition: border-color var(--dur-base), transform var(--dur-base) var(--ease-bounce);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.15);
}
.experience-item:hover::before {
  border-color: var(--brand-violet);
  transform: scale(1.3);
  box-shadow: 0 0 0 6px rgba(79,70,229,0.12), 0 0 12px rgba(79,70,229,0.4);
}

/* Ping animation on timeline dot */
.experience-item::after {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 1.75rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(79,70,229,0.3);
  z-index: 1;
  animation: timelinePing 2.5s ease-out infinite;
}
@keyframes timelinePing {
  0%   { transform: scale(1); opacity: 0.7; }
  80%  { transform: scale(2.5); opacity: 0; }
  100% { transform: scale(2.5); opacity: 0; }
}

.experience-header { margin-bottom: 1rem; }

.experience-company-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.experience-company {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.experience-position {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.experience-type {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.type-fulltime  { background: rgba(79,70,229,0.1); color: var(--brand-indigo); border: 1px solid rgba(79,70,229,0.2); }
.type-contract  { background: rgba(124,58,237,0.1); color: var(--brand-violet); border: 1px solid rgba(124,58,237,0.2); }
.type-freelance { background: rgba(8,145,178,0.1); color: var(--brand-cyan); border: 1px solid rgba(8,145,178,0.2); }

.experience-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.experience-period::before { content: '📅'; font-size: 0.7rem; }

.experience-description {
  color: var(--text-secondary);
  line-height: 1.75;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

/* Multi-role separator */
.role-separator {
  height: 1px;
  background: var(--border-subtle);
  margin: 1rem 0;
}

/* ============================================================
   12. AWARDS & SPEAKING SECTION
   ============================================================ */
.awards { background: var(--bg-base); }

.awards-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.awards-section-title,
.speaking-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--brand-indigo);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.awards-list,
.speaking-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-left: 4px solid transparent;
  border-radius: 12px;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
}
.award-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-indigo), var(--brand-violet));
  opacity: 0;
  transition: opacity var(--dur-base);
}
.award-item:hover {
  transform: translateX(6px);
  border-left-color: transparent;
  box-shadow: var(--shadow-md);
}
.award-item:hover::before { opacity: 1; }

.award-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.07);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: transform var(--dur-base) var(--ease-bounce);
}
.award-item:hover .award-icon { transform: scale(1.15) rotate(5deg); }

.award-item > span {
  color: var(--text-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

/* Speaking items */
.speaking-item {
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.speaking-item:hover {
  transform: translateX(6px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.speaking-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.speaking-event {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  color: var(--brand-violet);
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: 100px;
}
.speaking-event::before { content: '🎤'; font-size: 0.65rem; }

/* ============================================================
   13. CERTIFICATIONS SECTION
   ============================================================ */
.certifications { background: rgba(240,244,255,0.5); }

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.certification-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--dur-slow) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
  position: relative;
}
.certification-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-i);
  border-color: var(--border-medium);
}

.cert-issuer-strip {
  height: 5px;
  background: var(--grad-indigo-v);
}
.cert-issuer-strip.ec-council { background: linear-gradient(90deg, #e11d48, #f43f5e); }
.cert-issuer-strip.tcm        { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.cert-issuer-strip.foresec    { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.cert-issuer-strip.mikrotik   { background: linear-gradient(90deg, #cc0000, #ef4444); }
.cert-issuer-strip.other      { background: var(--grad-indigo-v); }

.certification-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.cert-logo-container {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.cert-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.certification-content { 
  padding: 0;
  flex: 1;
}

.certification-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.certification-meta-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.cert-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand-emerald);
  padding: 0.18rem 0.6rem;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cert-verified-badge::before { content: '✓'; margin-right: 4px; font-weight: 800; }

@media (max-width: 768px) {
  .certification-card-body { padding: 1.25rem; }
  .cert-logo-container { width: 56px; height: 56px; }
}

/* ============================================================
   14. FOOTER
   ============================================================ */
.footer {
  background: #0f172a;
  border-top: 1px solid rgba(79,70,229,0.15);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.25) 0%, transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.footer-content {
  text-align: center;
}

.footer-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  background: var(--grad-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  background-size: 200%;
  animation: gradientShift 4s ease-in-out infinite alternate;
}

.footer-content p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color var(--dur-base);
}
.footer-link:hover { color: rgba(99,102,241,0.9); }

/* ============================================================
   15. PAGINATION
   ============================================================ */
.pagination-wrapper {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}
.pagination-btn:hover {
  background: rgba(79,70,229,0.07);
  border-color: var(--border-medium);
  color: var(--brand-indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pagination-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--dur-base) var(--ease-smooth);
}
.pagination-number:hover {
  background: rgba(79,70,229,0.07);
  border-color: var(--border-medium);
  color: var(--brand-indigo);
}
.pagination-number.active {
  background: var(--grad-indigo-v);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79,70,229,0.35);
  font-weight: 700;
}

.pagination-dots {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 0.25rem;
}

.pagination-info {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Space Grotesk', sans-serif;
}

/* ============================================================
   16. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Custom cursor */
.custom-cursor {
  pointer-events: none;
  position: fixed;
  z-index: 99998;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--ease-smooth), opacity 0.2s;
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-indigo);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s var(--ease-bounce), height 0.2s var(--ease-bounce), opacity 0.2s;
  mix-blend-mode: normal;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(79,70,229,0.45);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-smooth), width 0.3s var(--ease-bounce), height 0.3s var(--ease-bounce), border-color 0.2s, opacity 0.2s;
  mix-blend-mode: normal;
}

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(79,70,229,0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Particle */
.click-particle {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  animation: particleFly var(--particle-dur, 0.9s) ease-out forwards;
}
@keyframes particleFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--px, 0), var(--py, 0)) scale(0); }
}

/* ============================================================
   17. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1200px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; margin-bottom: 2.5rem; }
  .hero-text { animation: fadeInUp 0.8s var(--ease-enter) both; }
  .hero-visual { animation: fadeInUp 0.9s var(--ease-enter) 0.15s both; }
  .floating-card { max-width: 480px; margin: 0 auto; }
  .hero-badge, .hero-chips { justify-content: center; }
  .hero-buttons { justify-content: center; }
  .hero-contact { justify-content: center; }
  .hero-subtitle { margin: 0 auto 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .publications-two-column { grid-template-columns: 1fr; gap: 2.5rem; }
  .certifications-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-columns { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .nav-container { padding: 0 1.25rem; }
  .navbar { padding: 0.85rem 0; }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(248,250,255,0.97);
    backdrop-filter: blur(24px);
    padding: 1rem 0 1.5rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--dur-slow) var(--ease-smooth), opacity var(--dur-slow);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    z-index: 999;
    gap: 0;
  }
  .nav-menu.active { transform: translateY(0); opacity: 1; }

  .nav-menu li { width: 100%; }
  .nav-link {
    width: 100%;
    padding: 0.85rem 1.5rem;
    justify-content: flex-start;
    border-radius: 0;
    border-left: 3px solid transparent;
    font-size: 0.95rem;
  }
  .nav-link:hover  { border-left-color: var(--brand-indigo); background: rgba(79,70,229,0.06); }
  .nav-link.active { background: rgba(79,70,229,0.08); color: var(--brand-indigo); border-radius: 0; border-left-color: var(--brand-indigo); }

  .hamburger { display: flex; }

  .hero { padding: 6rem 1.25rem 4rem; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .floating-card { max-width: 100%; }
  .code-snippet { font-size: 0.72rem; }

  section { padding: 4.5rem 0; }
  .section-header { margin-bottom: 3rem; }
  .section-title { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .project-image { height: 180px; }

  .awards-content { grid-template-columns: 1fr; gap: 2rem; }

  .certifications-grid { grid-template-columns: 1fr; }

  .experience-timeline { padding-left: 2rem; }
  .experience-item { padding: 1.25rem 1.5rem; }

  .publications-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .nav-container { padding: 0 1rem; }

  .hero { padding: 5.5rem 1rem 3rem; }
  .hero-title { font-size: clamp(1.75rem, 9vw, 2.5rem); }
  .hero-contact { flex-direction: column; align-items: center; gap: 0.5rem; font-size: 0.78rem; }
  .contact-separator { display: none; }
  .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
  .btn { width: 100%; justify-content: center; padding: 0.8rem 1.8rem; font-size: 0.9rem; }
  .hero-chips { justify-content: center; }
  .chip { font-size: 0.75rem; padding: 0.35rem 0.75rem; }

  section { padding: 3.5rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.25rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-image { height: 220px; }

  .highlights-grid { grid-template-columns: repeat(2, 1fr); }

  .experience-timeline { padding-left: 1.5rem; }
  .experience-item { padding: 1rem 1.25rem; }
  .experience-item::before, .experience-item::after { left: -1.7rem; }

  .footer-tagline { font-size: clamp(1.3rem, 7vw, 2rem); }
  .footer-links { flex-direction: column; align-items: center; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   GITHUB API — PROJECT CARD ENHANCEMENTS
   ============================================================ */
.project-lang-card {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  transition: filter 0.3s ease;
}

.project-lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.project-lang-initials {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1;
}

.project-lang-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
  border: 1px solid currentColor;
  opacity: 0.85;
  z-index: 1;
}

.project-stars-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  color: #ffd700;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.project-meta-row {
  display: flex;
  gap: 10px;
  margin: 6px 0 2px;
  flex-wrap: wrap;
}

.project-stat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  padding: 2px 8px;
  letter-spacing: 0.03em;
}

.github-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--indigo-600);
  background: rgba(79,70,229,0.07);
  border: 1px solid rgba(79,70,229,0.18);
  border-radius: 99px;
  padding: 5px 14px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.github-indicator svg { opacity: 0.8; flex-shrink: 0; }

.cache-time { color: var(--gray-400); font-weight: 400; }

.cache-refresh {
  color: var(--indigo-500);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  margin-left: 2px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.cache-refresh:hover { transform: rotate(180deg); color: var(--indigo-700); }

.project-card:hover .project-lang-card { filter: brightness(0.6); }
.project-card:hover .project-lang-card > * { opacity: 0; }

/* Projects CTA Section */
.projects-cta {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.cta-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-card:hover {
  transform: translateY(-5px);
  border-color: var(--indigo-300);
  box-shadow: var(--shadow-xl);
}

.cta-content h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.cta-content p {
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 500px;
}

.cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .cta-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
  .cta-content p {
    margin: 0 auto;
  }
}

.project-year-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Live Indicators */
.live-indicator-compact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--indigo-600);
  background: rgba(79,70,229,0.08);
  padding: 2px 8px;
  border-radius: 99px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--indigo-500);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}
