@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ========== CSS VARIABLES ========== */
:root {
  --neon: #00d4ff;
  --neon2: #00ff88;
  --neon3: #7c3aed;
  --bg: rgba(5, 8, 16, 0.8);
  --bg2: rgba(8, 13, 26, 0.85);
  --bg3: rgba(13, 21, 38, 0.9);
  --glass: rgba(13, 21, 38, 0.6);
  --border: rgba(0, 212, 255, 0.15);
  --border2: rgba(0, 212, 255, 0.3);
  --text: #f8fafc;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --topbar: 70px;
}

/* ========== LIGHT THEME OVERRIDES ========== */
body[data-theme="light"] {
  --bg: #f8fafc;
  --bg2: rgba(255, 255, 255, 0.7);
  --bg3: rgba(226, 232, 240, 0.8);
  --glass: rgba(255, 255, 255, 0.65);
  --border: rgba(148, 163, 184, 0.2);
  --border2: rgba(148, 163, 184, 0.4);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --neon: #0ea5e9;
  --neon2: #3b82f6;
  --neon3: #6366f1;
}

body[data-theme="light"] .hm-0 { background: var(--border); }
body[data-theme="light"] .hm-1 { background: #bae6fd; }
body[data-theme="light"] .hm-2 { background: #7dd3fc; }
body[data-theme="light"] .hm-3 { background: #38bdf8; }
body[data-theme="light"] .hm-4 { background: var(--neon); box-shadow: 0 0 6px var(--neon); }
body[data-theme="light"] .cert-img { background: rgba(0,0,0,0.05); }
body[data-theme="light"] .rank-minor { background: rgba(148, 163, 184, 0.15); color: #475569; border-color: rgba(148, 163, 184, 0.4); }
body[data-theme="light"] .tech-tag { background: rgba(124, 58, 237, 0.1); color: #6d28d9; border-color: rgba(124, 58, 237, 0.2); }
body[data-theme="light"] .cert-skill-tag { background: rgba(14, 165, 233, 0.1); color: #0284c7; border-color: rgba(14, 165, 233, 0.3); }

/* ========== RESET ========== */
* { margin: 0; padding: 0;  box-sizing: border-box;
}

/* ========== SMOOTH SCROLL (LENIS) ========== */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ========== CUSTOM CURSOR ========== */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

#custom-cursor, #custom-cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #custom-cursor, #custom-cursor-follower {
    display: block;
  }
}

#custom-cursor {
  width: 3px;
  height: 3px;
  background-color: #6d4cc0;
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s;
}

#custom-cursor-follower {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(78, 155, 197, 0.5);
  mix-blend-mode: difference;
  transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
}

#custom-cursor.hover {
  width: 6px;
  height: 6px;
}

#custom-cursor-follower.hover {
  width: 30px;
  height: 30px;
  background-color: #0c7eca;
  border-color: transparent;
}

/* ========== SCANLINE ========== */
.scanline {
  position: fixed; inset: 0; z-index: 998;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
}

/* ========== ENTRY SCREEN ========== */
#entry {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#entry.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.entry-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, var(--neon) 50%, var(--neon2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: fadeUp 1s ease both;
}
.entry-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.8rem, 2vw, 1.1rem);
  color: var(--neon); letter-spacing: 3px; margin-bottom: 3rem;
  animation: fadeUp 1s 0.3s ease both;
}
.entry-tagline span { color: var(--text2); }

.boot-btn {
  animation: fadeUp 1s 0.6s ease both;
  position: relative; padding: 1.2rem 3rem;
  font-size: 1rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; border: 2px solid var(--neon);
  background: transparent; color: var(--neon);
  border-radius: 4px; overflow: hidden; transition: all 0.3s ease;
}
.boot-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--neon); transform: translateX(-100%);
  transition: transform 0.3s ease; z-index: -1;
}
.boot-btn:hover::before { transform: translateX(0); }
.boot-btn:hover { color: var(--bg); box-shadow: 0 0 30px var(--neon); }

/* ========== BOOT SCREEN ========== */
#boot {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#boot.active { opacity: 1; visibility: visible; }
#boot.fadeout { opacity: 0; }

.boot-terminal {
  width: min(700px, 90vw);
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
}
.boot-titlebar {
  background: var(--bg3); padding: 0.75rem 1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.boot-dot { width: 12px; height: 12px; border-radius: 50%; }
.boot-dot.r { background: #ff5f57; }
.boot-dot.y { background: #febc2e; }
.boot-dot.g { background: #28c840; }
.boot-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text3); margin-left: 0.5rem; }

.boot-content { padding: 2rem; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 2; min-height: 280px; }
.boot-line { color: var(--text2); opacity: 0; transform: translateY(5px); transition: all 0.3s ease; }
.boot-line.show { opacity: 1; transform: none; }
.boot-progress { margin-top: 1.5rem; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.boot-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--neon), var(--neon2)); transition: width 3s ease; box-shadow: 0 0 10px var(--neon); }

/* ========== MAIN APP ========== */
#app { display: flex; min-height: 100vh; opacity: 0; transition: opacity 0.8s ease; }
#app.visible { opacity: 1; }

/* ========== TOPBAR ========== */
#topbar {
  height: var(--topbar);
  background: var(--bg2); border-bottom: 1px solid var(--border);
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(10px);
}
.topbar-logo {
  display: flex; align-items: center; gap: 0.75rem;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--neon), var(--neon3));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff; flex-shrink: 0;
}
.logo-text { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.logo-text small { color: var(--neon); font-size: 0.65rem; display: block; }

.topbar-nav { display: flex; gap: 0.5rem; }
.nav-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent; border-radius: 6px;
  font-size: 0.875rem; color: var(--text2); text-decoration: none;
}
.nav-item:hover { color: var(--text); background: rgba(0, 212, 255, 0.05); }
.nav-item.active { color: var(--neon); border-bottom-color: var(--neon); background: rgba(0, 212, 255, 0.08); }
.nav-label { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.5px; }

.topbar-status { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text3); display: flex; align-items: center; gap: 0.5rem; }
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--neon2); margin-right: 0.2rem; animation: pulse 2s infinite; }

.theme-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}
.theme-btn:hover { background: var(--bg3); transform: scale(1.1); }

.menu-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  font-size: 1.25rem;
  color: var(--neon);
  transition: all 0.2s ease;
  margin-right: 1.25rem;
  align-items: center;
  justify-content: center;
}
.menu-toggle-btn:hover { background: var(--bg3); color: var(--neon2); }

/* ========== MAIN CONTENT ========== */
#main { flex: 1; padding: calc(var(--topbar) + 2rem) 2rem 2rem 2rem; min-height: 100vh; display: flex; flex-direction: column; gap: 6rem; }
.section { scroll-margin-top: calc(var(--topbar) + 20px); width: 100%; display: block; }

/* ========== SECTION HEADER ========== */
.section-header { margin-bottom: 3rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--text), var(--neon));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-title::before {
  content: attr(data-prefix);
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; letter-spacing: 1px;
  color: var(--neon); -webkit-text-fill-color: var(--neon);
  background: none; 
  -webkit-background-clip: unset;
  background-clip: unset;
  opacity: 0.8; font-weight: 500;
}
.section-sub { color: var(--text3); font-size: 0.95rem; margin-top: 0.75rem; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; }

/* ========== GLASS CARD ========== */
.card { 
  background: var(--glass); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  backdrop-filter: blur(20px); 
  transition: all 0.3s ease; 
  transform-style: preserve-3d;
  perspective: 1000px;
}
.card > * {
  transform: translateZ(25px); /* reduced pop-out to prevent overflow */
}
.card.glow:hover { border-color: var(--border2); box-shadow: 0 0 30px rgba(0, 212, 255, 0.1); }

/* ========== DASHBOARD ========== */
#sec-dashboard { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - var(--topbar)); text-align: center; }

.dash-avatar {
  width: 250px; height: 250px; border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon3));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900; color: #fff;
  margin-bottom: 2rem; box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
  position: relative; animation: float 3s ease-in-out infinite;
}
.dash-avatar::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--neon); border-right-color: var(--neon2);
  animation: spin 3s linear infinite;
}
.dash-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(135deg, #fff 0%, var(--neon) 60%, var(--neon2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem; line-height: 1;
}
.dash-tagline { font-family: 'JetBrains Mono', monospace; font-size: clamp(0.75rem, 1.5vw, 1rem); color: var(--neon); letter-spacing: 3px; margin-bottom: 0.75rem; }
.dash-bio { max-width: 600px; color: var(--text2); font-size: 1rem; line-height: 1.8; margin-bottom: 2.5rem; }
.dash-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn { 
  display: inline-flex; align-items: center; gap: 0.6rem; 
  padding: 0.85rem 2rem; border-radius: 30px; 
  font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; font-weight: 700; 
  cursor: pointer; text-decoration: none; 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
  border: none; position: relative; overflow: hidden;
  text-transform: uppercase; letter-spacing: 1px;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%); transition: 0.6s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary { 
  background: linear-gradient(135deg, var(--neon), var(--neon3)); 
  color: #fff; 
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2), inset 0 -2px 5px rgba(0,0,0,0.2); 
}
.btn-primary:hover { 
  transform: translateY(-3px); 
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5), inset 0 -2px 5px rgba(0,0,0,0.2); 
}

.btn-outline { 
  background: rgba(13, 21, 38, 0.5); 
  backdrop-filter: blur(10px);
  border: 1px solid var(--border2); color: var(--text); 
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.btn-outline:hover { 
  background: rgba(0, 212, 255, 0.1); 
  border-color: var(--neon); color: var(--neon);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* ========== ABOUT ========== */
.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text2);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2px;
}
.about-content p strong {
  font-weight: 600;
  color: var(--text);
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}
.about-item {
  margin-bottom: 2.5rem;
}
.about-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon);
  margin-bottom: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}
#sec-skills { position: relative; }
#sec-skills::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--neon), transparent 70%);
  opacity: 0.06;
  pointer-events: none;
}
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.skill-card {
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
}
.skill-card-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--neon); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.skill-card-title::before { content: '⚙️'; font-size: 1rem; }
.skill-item { margin-bottom: 1rem; }
.skill-row { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.skill-name { font-size: 0.875rem; color: var(--text); }
.skill-pct { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--neon); animation: pulse 2.5s infinite; }
.skill-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--neon), var(--neon2)); width: 0%; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.5);
}
/* Different colors for each skill category */
.skills-grid .card:nth-child(1) .skill-fill { background: linear-gradient(90deg, #ff6b6b, #ff8e8e); box-shadow: 0 0 8px rgba(255, 107, 107, 0.5); }
.skills-grid .card:nth-child(2) .skill-fill { background: linear-gradient(90deg, #4ecdc4, #44a08d); box-shadow: 0 0 8px rgba(78, 205, 196, 0.5); }
.skills-grid .card:nth-child(3) .skill-fill { background: linear-gradient(90deg, #45b7d1, #96c93d); box-shadow: 0 0 8px rgba(69, 183, 209, 0.5); }
.skills-grid .card:nth-child(4) .skill-fill { background: linear-gradient(90deg, #f7b733, #fc4a1a); box-shadow: 0 0 8px rgba(247, 183, 51, 0.5); }
.skills-grid .card:nth-child(5) .skill-fill { background: linear-gradient(90deg, #a8e6cf, #dcedc8); box-shadow: 0 0 8px rgba(168, 230, 207, 0.5); }
.skills-grid .card:nth-child(6) .skill-fill { background: linear-gradient(90deg, #667eea, #764ba2); box-shadow: 0 0 8px rgba(102, 126, 234, 0.5); }
.skills-grid .card:nth-child(7) .skill-fill { background: linear-gradient(90deg, #f093fb, #f5576c); box-shadow: 0 0 8px rgba(240, 147, 251, 0.5); }
.skills-grid .card:nth-child(8) .skill-fill { background: linear-gradient(90deg, #4facfe, #00f2fe); box-shadow: 0 0 8px rgba(79, 172, 254, 0.5); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.skill-tag { padding: 0.3rem 0.75rem; border-radius: 4px; font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; background: rgba(0, 212, 255, 0.08); border: 1px solid var(--border); color: var(--text2); transition: all 0.2s ease; }
.skill-tag:hover { background: rgba(0, 212, 255, 0.15); color: var(--neon); border-color: var(--neon); }
.radar-wrap { padding: 2rem; display: flex; justify-content: center; margin-bottom: 2rem; }

/* ========== PROJECTS ========== */
.proj-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; cursor: pointer; transition: all 0.2s ease; border: 1px solid var(--border); background: transparent; color: var(--text2); }
.filter-btn.active { background: var(--neon); border-color: var(--neon); color: var(--bg); font-weight: 700; }
.filter-btn:hover:not(.active) { border-color: var(--neon); color: var(--neon); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.proj-card { overflow: hidden; cursor: pointer; transition: all 0.3s ease; }
.proj-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15); }
.proj-img { height: 180px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.proj-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.proj-img:hover img { transform: scale(1.05); }
.proj-body { padding: 1.25rem; }
.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.proj-name { font-size: 1.1rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.2px; color: var(--text); }
.rank-badge { padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.65rem; font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: 1px; }
.rank-flagship { background: rgba(255, 215, 0, 0.15); border: 1px solid rgba(255, 215, 0, 0.4); color: #ffd700; }
.rank-major { background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border2); color: var(--neon); }
.rank-minor { background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2); color: var(--text2); }
.proj-desc { font-size: 0.9rem; font-weight: 300; color: var(--text2); line-height: 1.6; margin-bottom: 1.25rem; }
.proj-techs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem; }
.tech-tag { padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-weight: 500; font-family: 'JetBrains Mono', monospace; background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3); color: #c4b5fd; }
.proj-actions { display: flex; gap: 0.75rem; }
.proj-btn { 
  flex: 1; padding: 0.75rem; border-radius: 8px; 
  font-size: 0.75rem; font-weight: 700; font-family: 'JetBrains Mono', monospace; 
  cursor: pointer; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); 
  text-align: center; text-decoration: none; display: block; letter-spacing: 0.5px; 
  border: 1px solid var(--border); background: var(--glass); color: var(--text2); 
  overflow: hidden; position: relative;
}
.proj-btn:hover { 
  background: rgba(0, 212, 255, 0.05); color: var(--neon); border-color: var(--neon); 
  transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}
.proj-btn.info-btn { 
  background: rgba(0, 212, 255, 0.05); border-color: var(--border2); color: var(--neon); 
}
.proj-btn.info-btn:hover {
  background: rgba(0, 212, 255, 0.15); box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

/* ========== PROBLEM SOLVING ========== */
.profile-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}
.profile-card > * {
  transform: translateZ(25px);
}
.profile-card:hover {
  border-color: var(--neon);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}
.profile-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
}
.profile-count {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon), var(--neon2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}
.profile-link {
  font-size: 0.85rem;
  color: var(--text2);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}
.profile-card:hover .profile-link { color: var(--neon); }

.ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.ps-stat { padding: 1.5rem; text-align: center; }
.ps-stat-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.ps-stat-num { font-size: 3rem; font-weight: 900; background: linear-gradient(135deg, var(--text), var(--neon)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-family: 'JetBrains Mono', monospace; line-height: 1; margin-bottom: 0.5rem; }
.ps-stat-label { font-size: 0.8rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; }

.diff-card { padding: 1.5rem; margin-bottom: 2rem; }
.diff-header { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text3); letter-spacing: 1px; margin-bottom: 1.25rem; }
.diff-bars { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.diff-bar-item { flex: 1; }
.diff-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; margin-bottom: 0.4rem; }
.diff-label.easy { color: #00ff88; }
.diff-label.medium { color: #f59e0b; }
.diff-label.hard { color: #ef4444; }
.diff-bar { height: 10px; background: var(--bg3); border-radius: 5px; overflow: hidden; }
.diff-fill { height: 100%; border-radius: 5px; }

.heatmap-wrap { padding: 1.5rem; margin-bottom: 2rem; overflow-x: auto; }
.heatmap-title { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text3); margin-bottom: 1rem; letter-spacing: 1px; }
.heatmap { display: grid; grid-template-columns: repeat(52, 1fr); gap: 3px; }
.hm-col { display: flex; flex-direction: column; gap: 3px; }
.hm-cell { width: 12px; height: 12px; border-radius: 2px; transition: all 0.2s ease; }
.hm-cell:hover { transform: scale(1.4); }
.hm-0 { background: #0d1526; }
.hm-1 { background: #003d5c; }
.hm-2 { background: #006b8f; }
.hm-3 { background: #0099c2; }
.hm-4 { background: var(--neon); box-shadow: 0 0 6px var(--neon); }

.topics-label { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text3); letter-spacing: 2px; margin: 2rem 0 1rem; }
.topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.topic-card { padding: 1rem; border-radius: 8px; background: var(--glass); border: 1px solid var(--border); text-align: center; transition: all 0.2s ease; }
.topic-card:hover { border-color: var(--neon); }
.topic-name { font-size: 0.8rem; color: var(--text2); margin-bottom: 0.5rem; }
.topic-num { font-size: 1.5rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: var(--neon); }

/* ========== ACHIEVEMENTS ========== */
.achievement-card { padding: 2rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.achievement-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--neon), var(--neon2), var(--neon3)); }
.ach-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.72rem; font-family: 'JetBrains Mono', monospace; background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.3); color: #ffd700; margin-bottom: 1rem; }
.ach-title { font-size: 1.25rem; font-weight: 800; color: var(--text); margin-bottom: 0.75rem; line-height: 1.4; }
.ach-conference { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 6px; background: rgba(0, 212, 255, 0.08); border: 1px solid var(--border2); color: var(--neon); font-size: 0.825rem; font-family: 'JetBrains Mono', monospace; margin-bottom: 1rem; }
.ach-abstract { color: var(--text2); font-size: 0.9rem; line-height: 1.8; }
.ach-meta { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.ach-meta-label { font-size: 0.7rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.25rem; }
.ach-meta-val { font-size: 0.9rem; color: var(--text); font-weight: 600; }
.ach-meta-val.green { color: var(--neon2); }

/* ========== CERTIFICATES ========== */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 2rem; }
.cert-card { padding: 2.5rem 2rem; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; min-height: 480px; display: flex; flex-direction: column; justify-content: space-between; }
.cert-card::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--neon); }
.cert-card:hover { transform: translateX(4px); }

/* new certificate image and verify button styles */
.cert-img { width: 100%; height: 280px; object-fit: contain; border-radius: 6px; margin-bottom: 1.2rem; background: rgba(0, 0, 0, 0.3); padding: 0.5rem; box-sizing: border-box; border: 1px solid var(--border); }
.cert-verify { 
  display: block; margin-top: auto; padding: 0.85rem 1.5rem; 
  background: linear-gradient(135deg, var(--neon), var(--neon3)); 
  color: #fff; border-radius: 30px; text-decoration: none; text-transform: uppercase;
  font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; font-weight: 700; 
  text-align: center; transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
  border: none; cursor: pointer; letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2), inset 0 -2px 5px rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.cert-verify::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%); transition: 0.6s ease;
}
.cert-verify:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5), inset 0 -2px 5px rgba(0,0,0,0.2); 
}
.cert-verify:hover::before { transform: translateX(100%); }

.cert-icon { font-size: 2rem; margin-bottom: 1rem; }
.cert-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; line-height: 1.4; }
.cert-issuer { font-size: 0.85rem; color: var(--neon); font-family: 'JetBrains Mono', monospace; margin-bottom: 0.75rem; }
.cert-date { font-size: 0.75rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; }
.cert-skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; margin-bottom: 1.5rem; }
.cert-skill-tag { padding: 0.25rem 0.6rem; border-radius: 4px; font-size: 0.7rem; font-family: 'JetBrains Mono', monospace; background: rgba(0, 212, 255, 0.12); border: 1px solid var(--neon); color: var(--neon); font-weight: 600; }

/* ========== EDUCATION ========== */
.timeline { position: relative; padding-left: 45px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--neon), var(--neon3)); }
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot { position: absolute; left: -35px; top: 0; width: 28px; height: 28px; transform: translateX(-50%); border-radius: 50%; background: var(--bg); border: 2px solid var(--neon); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; box-shadow: 0 0 15px rgba(0, 212, 255, 0.4); z-index: 1; }
.edu-card { padding: 1.5rem; margin-top: -0.5rem; }
.edu-degree { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 0.25rem; }
.edu-inst { font-size: 0.9rem; color: var(--neon); font-family: 'JetBrains Mono', monospace; margin-bottom: 0.5rem; }
.edu-period { font-size: 0.75rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; margin-bottom: 0.75rem; }
.edu-desc { font-size: 0.875rem; color: var(--text2); line-height: 1.7; }
.edu-tags { margin-top: 0.75rem; }
.edu-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.7rem; background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border); color: var(--text2); margin: 0.25rem 0.25rem 0 0; font-family: 'JetBrains Mono', monospace; }

/* ========== CONTACT ========== */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; position: relative; max-width: 1200px; margin: 0 auto; }
@media (max-width: 900px) {
  .contact-content { grid-template-columns: 1fr; }
}
.contact-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center top, var(--neon), transparent 40%);
  opacity: 0.04;
  pointer-events: none;
  border-radius: 12px;
}
.contact-links { display: flex; flex-direction: column; gap: 1rem; width: 100%; position: relative; z-index: 1; }
.contact-link { display: flex; align-items: center; gap: 0.75rem; padding: 1.25rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--border); text-decoration: none; transition: all 0.3s ease; justify-content: flex-start; transform-style: preserve-3d; perspective: 1000px; }
.contact-link > * { transform: translateZ(30px); }
.contact-link:hover { border-color: var(--neon); background: rgba(0, 212, 255, 0.08); transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15); }
.contact-link-icon { font-size: 1.25rem; width: 32px; text-align: center; }
.contact-link-info { flex: 1; }
.contact-link-label { font-size: 0.7rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; text-transform: uppercase; }
.contact-link-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.contact-arrow { color: var(--text3); }

.contact-status { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.status-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--glass); border: 1px solid var(--border); border-radius: 8px; transition: all 0.2s ease; }
.status-item:hover { border-color: var(--neon); background: rgba(0, 212, 255, 0.08); }
.status-icon { font-size: 1.5rem; }
.status-info { flex: 1; }
.status-label { font-size: 0.7rem; color: var(--text3); font-family: 'JetBrains Mono', monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 0.2rem; }
.status-val { font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* ========== FOOTER ========== */
.site-footer {
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: transparent;
  position: relative;
  overflow: hidden;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo .logo-icon { width: 28px; height: 28px; background: var(--neon); color: var(--bg); font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.footer-logo .logo-text { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); }
.footer-logo small { font-size: 0.55rem; color: var(--neon); font-family: 'JetBrains Mono', monospace; margin-left: 0.4rem; font-weight: 700; background: rgba(0, 212, 255, 0.1); padding: 0.1rem 0.3rem; border-radius: 4px; border: 1px solid var(--border); }
.footer-text { text-align: center; color: var(--text3); font-size: 0.75rem; line-height: 1.4; }
.footer-subtext { font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; color: var(--text2); margin-top: 0.3rem; }
.footer-subtext kbd { background: var(--bg3); padding: 0.1rem 0.3rem; border-radius: 3px; border: 1px solid var(--border); font-size: 0.55rem; color: var(--neon); }
.footer-socials { display: flex; gap: 1rem; }
.footer-socials a { color: var(--text2); text-decoration: none; font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; transition: all 0.2s ease; position: relative; }
.footer-socials a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0%; height: 1px; background: var(--neon); transition: width 0.3s ease; }
.footer-socials a:hover { color: var(--neon); }
.footer-socials a:hover::after { width: 100%; }

@media (max-width: 768px) {
  .footer-content { flex-direction: column; text-align: center; justify-content: center; }
  .footer-text { order: 3; margin-top: 1rem; }
}

.terminal-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; max-width: 600px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.term-titlebar { background: var(--bg3); padding: 0.8rem 1.25rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.term-path { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--neon); margin-left: 0.5rem; }
.term-body { padding: 2rem; }
.term-field { margin-bottom: 1.5rem; }
.term-label { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--neon); margin-bottom: 0.5rem; display: block; }
.term-input, .term-textarea { width: 100%; padding: 0.85rem 1.25rem; background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: 'JetBrains Mono', monospace; font-size: 1rem; transition: border-color 0.2s ease; }
.term-input:focus, .term-textarea:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 15px rgba(0, 212, 255, 0.1); }
.term-textarea { resize: vertical; min-height: 160px; }
.term-send { 
  width: 100%; padding: 1.1rem; border-radius: 30px; 
  font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 700; 
  cursor: pointer; border: none; color: #fff; text-transform: uppercase;
  background: linear-gradient(135deg, var(--neon), var(--neon3)); 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); letter-spacing: 1px; 
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2), inset 0 -2px 5px rgba(0,0,0,0.2);
  position: relative; overflow: hidden;
}
.term-send::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%); transition: 0.6s ease;
}
.term-send:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5), inset 0 -2px 5px rgba(0,0,0,0.2); 
}
.term-send:hover::before { transform: translateX(100%); }

/* ========== MODAL ========== */
.modal-overlay { position: fixed; inset: 0; z-index: 500; background: rgba(5, 8, 16, 0.9); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 2rem; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; width: 100%; max-width: 700px; max-height: 85vh; overflow-y: auto; transform: scale(0.9) translateY(20px); transition: transform 0.3s ease; box-shadow: 0 0 80px rgba(0, 212, 255, 0.15); }
#avatarModal .modal { max-width: 400px; }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { position: sticky; top: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.modal-close { width: 32px; height: 32px; border-radius: 6px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text2); transition: all 0.2s ease; }
.modal-close:hover { background: rgba(239, 68, 68, 0.15); border-color: #ef4444; color: #ef4444; }
.modal-body { padding: 1.5rem; }
#avatarModal .modal-body { padding: 0.4rem; }
#avatarModal .modal-body img { width: 100%; height: auto; display: block; }
.modal-section { margin-bottom: 1.5rem; }
.modal-section-title { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--neon); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.modal-section-content { font-size: 0.875rem; color: var(--text2); line-height: 1.8; }
.modal-feature-row { padding: 0.3rem 0; border-bottom: 1px solid rgba(0, 212, 255, 0.07); }
.modal-impact { color: var(--neon2); }
.modal-actions { display: flex; gap: 1rem; margin-top: 1rem; }
.modal-actions .btn { flex: 1; justify-content: center; }

/* ========== COMMAND PALETTE ========== */
.cmd-palette-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(5, 8, 16, 0.85); backdrop-filter: blur(12px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh; opacity: 0; visibility: hidden; transition: all 0.2s ease;
}
.cmd-palette-overlay.active { opacity: 1; visibility: visible; }
.cmd-palette {
  width: 100%; max-width: 600px; background: var(--glass);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 212, 255, 0.15);
  transform: scale(0.95) translateY(-20px); transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden; display: flex; flex-direction: column;
}
.cmd-palette-overlay.active .cmd-palette { transform: scale(1) translateY(0); }

.cmd-input-wrap {
  display: flex; align-items: center; padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2);
}
.cmd-search-icon { font-size: 1.2rem; margin-right: 1rem; color: var(--text3); }
.cmd-input {
  flex: 1; background: transparent; border: none; color: var(--text);
  font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; outline: none;
}
.cmd-input::placeholder { color: var(--text3); }

.cmd-results {
  max-height: 350px; overflow-y: auto; padding: 0.5rem;
}
.cmd-item {
  display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem;
  border-radius: 8px; cursor: pointer; color: var(--text2);
  transition: all 0.1s ease; margin-bottom: 2px;
}
.cmd-item.active, .cmd-item:hover {
  background: rgba(0, 212, 255, 0.1); color: var(--neon);
}
.cmd-item-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.cmd-item-text { font-family: 'Space Grotesk', sans-serif; font-size: 1rem; font-weight: 500; }
.cmd-item-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text3); margin-left: auto; }

.cmd-footer {
  padding: 0.75rem 1.5rem; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border);
  display: flex; gap: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text3);
}
.cmd-footer kbd {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.1rem 0.4rem; font-size: 0.65rem; color: var(--text2); margin-right: 0.3rem;
}

/* ========== MOBILE TOGGLE ========== */
.menu-toggle { display: none; position: fixed; top: 1rem; left: 1rem; z-index: 200; width: 40px; height: 40px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--border); cursor: pointer; align-items: center; justify-content: center; font-size: 1.25rem; color: var(--neon); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ========== REVEAL ON SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Delays for Grid items */
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Parallax Elements */
.parallax-item {
  will-change: transform;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 950px) {
  .menu-toggle-btn { display: flex; }
  .topbar-nav { 
    display: none; 
    position: fixed; top: var(--topbar); left: 0; right: 0; 
    background: var(--bg2); 
    flex-direction: column; 
    padding: 1rem; 
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(15px);
    gap: 0;
  }
  .topbar-nav.mobile-active { display: flex; }
  .nav-item { width: 100%; justify-content: flex-start; border-bottom: 1px solid var(--border); border-radius: 0; padding: 1rem; }
}
@media (max-width: 900px) {
  #main { padding: calc(var(--topbar) + 1.5rem) 1.5rem 1.5rem 1.5rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-links { flex-wrap: wrap; }
  .contact-link { min-width: 100%; }
  .diff-bars { flex-direction: column; }
}
@media (max-width: 500px) {
  #main { padding: calc(var(--topbar) + 1rem) 1rem 1rem 1rem; }
  .card, .achievement-card, .edu-card { padding: 1.25rem; }
  .card > *, .profile-card > * { transform: translateZ(10px); }
  .timeline { padding-left: 35px; margin-left: 0.5rem; }
  .timeline::before { left: 8px; }
  .timeline-dot { left: -27px; width: 24px; height: 24px; font-size: 0.6rem; top: 0.15rem; }
  .ach-meta { gap: 1rem; flex-direction: column; }
  .dash-btns { flex-direction: column; align-items: center; }
  .proj-actions { flex-wrap: wrap; }
  .section-title { font-size: 1.6rem; gap: 0.5rem; }
  .section-title::before { font-size: 0.75rem; }
}

/* ========== HIDDEN EASTER EGG PAGE ========== */
.hidden-page-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 5, 10, 0.98);
  backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.5s ease;
  cursor: auto !important;
}
.hidden-page-overlay.active { display: flex; opacity: 1; }

.hidden-content {
  max-width: 600px; width: 90%;
  text-align: center; color: var(--neon);
  font-family: 'JetBrains Mono', monospace;
  padding: 3rem; border: 1px solid var(--neon);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  background: rgba(0, 0, 0, 0.8);
  position: relative; overflow: hidden;
}

.glitch-title {
  font-size: 3rem; font-weight: 900; letter-spacing: 5px;
  position: relative; margin-bottom: 2rem;
}
.glitch-title::after {
  content: attr(data-text); position: absolute; left: 2px; text-shadow: -2px 0 red;
  top: 0; color: var(--neon); background: black; overflow: hidden;
  clip: rect(0, 900px, 0, 0); animation: glitch-anim 2s infinite linear alternate-reverse;
}

.secret-stats { margin: 2rem 0; text-align: left; }
.stat-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; border-bottom: 1px dashed var(--border); padding-bottom: 0.2rem; }
.stat-row .val { color: #fff; text-shadow: 0 0 5px var(--neon); }

.secret-terminal {
  background: rgba(0, 20, 30, 0.5); padding: 1.5rem; text-align: left;
  font-size: 0.85rem; border: 1px solid var(--border); margin-bottom: 2rem;
}
.secret-terminal p { margin: 0.25rem 0; }

.door-container {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 2rem;
}

.door-btn {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--neon);
  color: #fff; padding: 1rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; cursor: pointer;
  transition: all 0.3s ease;
  position: relative; overflow: hidden;
}
.door-btn:hover {
  background: var(--neon); color: #000;
  box-shadow: 0 0 20px var(--neon);
  transform: translateY(-3px);
}
.door-btn::before {
  content: 'ACCESS_GRANTED'; position: absolute; inset: 0;
  background: var(--neon); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; transform: translateY(100%); transition: 0.3s ease;
}
.door-btn:active::before { transform: translateY(0); }

.close-hidden {
  background: transparent; border: 1px solid var(--neon);
  color: var(--neon); padding: 0.8rem 2rem; cursor: pointer;
  font-weight: 700; letter-spacing: 2px; transition: all 0.3s ease;
}
.close-hidden:hover { background: var(--neon); color: #000; box-shadow: 0 0 20px var(--neon); }

@keyframes glitch-anim {
  0% { clip: rect(44px, 9999px, 56px, 0); }
  20% { clip: rect(12px, 9999px, 20px, 0); }
  40% { clip: rect(66px, 9999px, 80px, 0); }
  60% { clip: rect(2px, 9999px, 30px, 0); }
  80% { clip: rect(98px, 9999px, 105px, 0); }
  100% { clip: rect(35px, 9999px, 50px, 0); }
}