/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-glass: rgba(255,255,255,0.03);
  --bg-glass-hover: rgba(255,255,255,0.06);
  --accent-1: #7c3aed;
  --accent-2: #06b6d4;
  --accent-glow: rgba(124, 58, 237, 0.25);
  --accent-glow-2: rgba(6, 182, 212, 0.2);
  --text-primary: #e4e4e7;
  --text-muted: #71717a;
  --text-code: #22d3ee;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-1); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }

/* ================================================
   PAGE LOADER
   ================================================ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-content {
  text-align: center;
}
.loader-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.95); }
}
.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 1rem;
}
.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.loader-text {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.loader-dots {
  animation: loaderDots 1.5s steps(3, end) infinite;
}
@keyframes loaderDots {
  0% { content: ''; opacity: 0.3; }
  33% { opacity: 0.6; }
  66% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* ================================================
   CURSOR GLOW
   ================================================ */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
body:hover .cursor-glow { opacity: 1; }

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { background: rgba(10, 10, 15, 0.95); }
.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.nav-logo .blink { animation: blink 1s step-end infinite; color: var(--accent-2); }
@keyframes blink { 50% { opacity: 0; } }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--text-code); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-2);
  transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-cmd { color: var(--accent-1); margin-right: 0.3rem; font-size: 0.75rem; }
.nav-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent-1);
  border-radius: 6px;
  color: var(--accent-2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}
.nav-btn:hover { color: #fff; border-color: transparent; }
.nav-btn:hover::before { opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* ================================================
   HERO SECTION
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 5vw 4rem;
  overflow: hidden;
  z-index: 1;
}
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}
.hero-greeting { font-size: 1.1rem; margin-bottom: 0.5rem; }
.accent-text {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.accent-dot { color: var(--accent-2); -webkit-text-fill-color: var(--accent-2); }
.hero-typing-wrap {
  font-family: var(--font-code);
  font-size: 1.1rem;
  color: var(--text-code);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.typing-prompt { color: var(--accent-1); }
.typing-cursor { animation: blink 0.7s step-end infinite; margin-left: 2px; }
.hero-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }
.hero-socials { display: flex; gap: 1rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
  background: var(--bg-glass);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover {
  color: var(--accent-2);
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* Hero Widgets */
.hero-widgets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Presence Widget */
.presence-widget {
  padding: 1.2rem 1.5rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  max-width: 360px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.presence-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 100% 0%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}
.presence-widget:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 20px var(--accent-glow);
}
.presence-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #747f8d;
  flex-shrink: 0;
  animation: presencePulse 2s ease-in-out infinite;
}
.presence-dot.online { background: #23a55a; }
.presence-dot.idle { background: #f0b232; }
.presence-dot.dnd { background: #f23f43; }
.presence-dot.offline { background: #747f8d; }
@keyframes presencePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(35, 165, 90, 0); }
}
.presence-label {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.presence-activity {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.presence-icon { 
  font-size: 1.8rem; 
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(6, 182, 212, 0.1);
  animation: iconFloat 4s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(6, 182, 212, 0.1); }
  50% { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.6), inset 0 0 20px rgba(6, 182, 212, 0.3); }
}
.presence-info { display: flex; flex-direction: column; }
.presence-doing {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}
.presence-detail {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}
.presence-time {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--accent-2);
  margin-top: 0.3rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Code Editor */
.code-editor {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
  animation: editorFloat 6s ease-in-out infinite;
}
@keyframes editorFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
.editor-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.editor-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.editor-title { font-family: var(--font-code); font-size: 0.8rem; color: var(--text-muted); }
.editor-body {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}
.editor-body code { white-space: pre; }
.code-keyword { color: #c678dd; }
.code-var { color: #61afef; }
.code-key { color: #e06c75; }
.code-string { color: #98c379; }
.code-blink { animation: blink 1s step-end infinite; color: var(--accent-2); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
  z-index: 1;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}

/* ================================================
   MARQUEE STRIP
   ================================================ */
.marquee-strip {
  overflow: hidden;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(124, 58, 237, 0.03);
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 1px;
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================
   SECTIONS COMMON
   ================================================ */
.section { padding: 6rem 5vw; max-width: 1300px; margin: 0 auto; position: relative; z-index: 1; }
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}
.section-cmd {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent-1);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ================================================
   ABOUT SECTION
   ================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}
.highlight {
  color: var(--text-code);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-4px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-plus {
  font-family: var(--font-heading);
  font-size: 2rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-family: var(--font-heading);
}

/* Certifications */
.cert-row { margin-top: 3rem; }
.cert-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
}
.cert-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.cert-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.cert-badge:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px);
}
.cert-icon { font-size: 1.6rem; flex-shrink: 0; }
.cert-info { display: flex; flex-direction: column; }
.cert-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}
.cert-issuer {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ================================================
   SKILLS — UNIFIED CLOUD
   ================================================ */
.skills-unified {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.skills-unified::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.08), transparent, rgba(124,58,237,0.1));
  background-size: 400% 400%;
  z-index: -1;
  animation: gradientShift 8s ease infinite;
  opacity: 0.4;
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  align-items: center;
}
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  animation: pillFloat 4s ease-in-out infinite;
  animation-delay: var(--delay);
  white-space: nowrap;
}
.skill-pill:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: var(--accent-1);
  color: var(--accent-2);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 25px var(--accent-glow);
}
.skill-pill:active {
  transform: translateY(-2px) scale(0.96);
}
.skill-pill.featured {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(6,182,212,0.15));
  border-color: var(--accent-1);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.8rem;
}
.skill-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255,255,255,0.05));
  transition: var(--transition);
}
.skill-icon.invert {
  filter: invert(1) brightness(150%);
}
.skill-pill.featured .skill-icon {
  width: 20px;
  height: 20px;
}
@keyframes pillFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.skills-footer {
  text-align: center;
  margin-top: 2.5rem;
}
.code-comment {
  font-family: var(--font-code);
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ================================================
   PROJECTS TIMELINE
   ================================================ */
.project-timeline {
  position: relative;
  padding-left: 3rem;
}
.timeline-line {
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
}
.project-card {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}
.project-card::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 1;
}
.project-hash {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.project-content {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.project-content:hover {
  border-color: var(--accent-1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 30px var(--accent-glow);
  transform: translateY(-5px);
}
.project-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.project-tags span {
  font-family: var(--font-code);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 4px;
  color: var(--text-code);
}
.project-links { display: flex; gap: 1.5rem; }
.project-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--accent-2);
  transition: var(--transition);
}
.project-link:hover { color: var(--accent-1); }

/* ================================================
   PROCESS — TERMINAL BUILD
   ================================================ */
.process-terminal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.terminal-body { padding: 1.5rem 2rem; }
.build-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.2rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.build-step:hover { background: rgba(124, 58, 237, 0.04); }
.build-status {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 2px;
}
.build-status.done {
  background: rgba(40, 200, 64, 0.15);
  color: #28c840;
  border: 1px solid rgba(40, 200, 64, 0.3);
}
.build-spinner {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(124, 58, 237, 0.2);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.build-step.running .build-status {
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.build-info { flex: 1; }
.build-cmd {
  font-family: var(--font-code);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}
.build-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.build-tag {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  border: 1px solid var(--border);
}
.blink-text { animation: blink 1.5s step-end infinite; color: var(--accent-2); }
.build-connector {
  width: 2px;
  height: 16px;
  background: var(--border);
  margin-left: 25px;
}

/* ================================================
   TOOLS MARQUEE
   ================================================ */
.tools-marquee {
  padding: 4rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.tools-track {
  display: flex;
  gap: 1rem;
  animation: marqueeScroll 35s linear infinite;
  width: max-content;
  align-items: center;
}
.tools-track:hover { animation-play-state: paused; }
.tool-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.8rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}
.tool-item:hover {
  color: var(--accent-2);
  border-color: var(--accent-1);
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 0 25px var(--accent-glow);
  transform: translateY(-3px) scale(1.05);
}
.tool-name { pointer-events: none; }

/* ================================================
   CONTACT SECTION
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}
.email-link {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}
.email-link:hover { filter: brightness(1.3); }

/* Clock Widget */
.contact-widgets { display: flex; flex-direction: column; gap: 1rem; }
.widget-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.clock-widget {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.clock-widget:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 30px var(--accent-glow);
}
.clock-time {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
}
.clock-date {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.clock-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Status Widget */
.status-widget {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: var(--transition);
}
.status-widget:hover {
  border-color: #28c840;
  box-shadow: 0 0 25px rgba(40, 200, 64, 0.15);
}
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28c840;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(40, 200, 64, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(40, 200, 64, 0); }
}
.status-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: #28c840;
  font-weight: 600;
}
.status-detail {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* GitHub Widget */
.github-widget {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.github-widget:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 30px var(--accent-glow);
}
.gh-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
}
.gh-header svg { flex-shrink: 0; }
.gh-graph-live {
  margin-bottom: 0.5rem;
  overflow: hidden;
  border-radius: 6px;
}
.gh-graph-live img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.9) saturate(1.2);
  border-radius: 6px;
}
.gh-label {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Contact Socials */
.contact-socials { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  transition: var(--transition);
}
.contact-social-link svg { width: 20px; height: 20px; flex-shrink: 0; }
.contact-social-link:hover {
  color: var(--accent-2);
  border-color: var(--accent-1);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 5vw;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-heading);
  position: relative;
  z-index: 1;
}
.back-to-top {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.back-to-top:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* ================================================
   SCROLL REVEAL ANIMATIONS
   ================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Spotify Widget */
.spotify-widget {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: var(--transition);
}
.spotify-widget:hover {
  border-color: rgba(30, 215, 96, 0.3);
  box-shadow: 0 0 20px rgba(30, 215, 96, 0.1);
}
.spotify-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.spotify-body {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.spotify-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  overflow: hidden;
}
.spotify-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotify-idle-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 215, 96, 0.1);
  color: #1DB954;
  font-size: 1.2rem;
}
.spotify-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.spotify-track {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-artist {
  font-family: var(--font-code);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.spotify-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  flex-shrink: 0;
}
.spotify-bars span {
  width: 3px;
  border-radius: 2px;
  background: #1DB954;
}
.spotify-bars span:nth-child(1) { animation: eqBar 0.8s ease-in-out infinite alternate; }
.spotify-bars span:nth-child(2) { animation: eqBar 0.6s ease-in-out 0.2s infinite alternate; }
.spotify-bars span:nth-child(3) { animation: eqBar 0.9s ease-in-out 0.1s infinite alternate; }
.spotify-bars span:nth-child(4) { animation: eqBar 0.7s ease-in-out 0.3s infinite alternate; }
@keyframes eqBar {
  0% { height: 4px; }
  100% { height: 18px; }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { order: -1; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .widget-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    background: var(--bg-secondary);
    padding: 5rem 2rem;
    gap: 1.5rem;
    transition: var(--transition-slow);
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero { padding: 6rem 5vw 3rem; }
  .hero-name { font-size: 2.2rem; }
  .section { padding: 4rem 5vw; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-socials { flex-wrap: wrap; }
  .project-timeline { padding-left: 2rem; }
  .project-card { padding-left: 1rem; }
  .project-card::before { left: -2rem; }
  .timeline-line { left: 6px; }
  .skills-unified { padding: 2rem; }
  .terminal-body { padding: 1rem; }
  .build-step { padding: 0.8rem; gap: 0.8rem; }
  .widget-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 1.8rem; }
  .about-stats { grid-template-columns: 1fr; }
  .stat-card { padding: 1.5rem 1rem; }
  .contact-heading { font-size: 1.3rem; }
  .clock-time { font-size: 1.8rem; }
  .skill-pill { font-size: 0.8rem; padding: 0.5rem 1rem; }
  .skill-pill.featured { font-size: 0.85rem; padding: 0.55rem 1.2rem; }
  .build-cmd { font-size: 0.8rem; }
  .build-desc { font-size: 0.78rem; }
  .contact-social-link { padding: 0.6rem 1rem; font-size: 0.8rem; }
}

/* ================================================
   HACKER GLITCH OVERLAY
   ================================================ */
.hacker-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #000;
  color: #0f0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hacker-mode .hacker-overlay {
  opacity: 1;
  pointer-events: all;
}
.glitch-text {
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  position: relative;
  text-shadow: 0.05em 0 0 rgba(255,0,0,0.75),
              -0.025em -0.05em 0 rgba(0,255,0,0.75),
              0.025em 0.05em 0 rgba(0,0,255,0.75);
  animation: glitch 500ms infinite;
  text-align: center;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
}
.glitch-text::before {
  left: 2px; text-shadow: -2px 0 red;
  clip-path: inset(10% 0 80% 0);
  animation: glitch-anim 2s infinite linear alternate-reverse;
}
.glitch-text::after {
  left: -2px; text-shadow: -2px 0 blue;
  clip-path: inset(80% 0 10% 0);
  animation: glitch-anim2 2s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(90% 0 5% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}
.hacker-subtext {
  font-size: clamp(1rem, 2vw, 1.5rem);
  opacity: 0.8;
  text-align: center;
  line-height: 1.6;
}
