/* =============================================
   GLOBAL RESET & TOKENS
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-0: #020408;
  --bg-1: #080d14;
  --bg-2: #0d1520;
  --bg-3: #111d2c;
  --surface: rgba(13, 21, 32, 0.7);
  --surface-2: rgba(20, 32, 50, 0.6);
  --border: rgba(0, 195, 255, 0.12);
  --border-h: rgba(0, 195, 255, 0.35);

  --blue: #00c3ff;
  --blue-dark: #0080c9;
  --blue-dim: rgba(0, 195, 255, 0.15);
  --cyan: #00ffe0;
  --purple: #7b5ea7;
  --neon-blue: #00c3ff;
  --neon-cyan: #00ffe0;
  --neon-purple: #a855f7;

  --text-primary: #e8f4ff;
  --text-secondary: #7fa8c9;
  --text-muted: #4a6880;

  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-glow: 0 0 30px rgba(0, 195, 255, 0.2);
  --shadow-glow-sm: 0 0 15px rgba(0, 195, 255, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.5);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-0);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a { text-decoration: none; color: inherit; }
button { cursor: none; }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,195,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: opacity 0.3s;
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* =============================================
   UTILITY
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 60%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--blue);
  font-weight: 600;
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   NAVBAR
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(2, 4, 8, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.05em;
  transition: var(--transition);
}
.nav-logo:hover { text-shadow: 0 0 20px var(--blue); }
.logo-bracket { color: var(--cyan); opacity: 0.8; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.nav-link:hover {
  color: var(--blue);
  background: var(--blue-dim);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 60px;
}

#matrix-canvas {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,195,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,195,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(60px); }
}

.hero-glow {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,195,255,0.08) 0%, transparent 70%);
  z-index: 0;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 195, 255, 0.08);
  border: 1px solid rgba(0, 195, 255, 0.25);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--blue);
  margin-bottom: 1.25rem;
  min-height: 1.8em;
}

.typed-prefix {
  color: var(--cyan);
  opacity: 0.7;
}

.typed-cursor {
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  color: var(--bg-0);
  box-shadow: 0 0 25px rgba(0,195,255,0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 40px rgba(0,195,255,0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-h);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero visual - code window */
.hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: rgba(8, 13, 20, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 460px;
  transform: perspective(800px) rotateY(-5deg);
  animation: float-window 5s ease-in-out infinite;
  transition: transform 0.6s;
}

.code-window:hover {
  transform: perspective(800px) rotateY(0deg);
}

@keyframes float-window {
  0%, 100% { transform: perspective(800px) rotateY(-5deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-5deg) translateY(-12px); }
}

.window-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: auto;
  margin-right: auto;
}

.code-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-keyword { color: #c792ea; }
.code-class { color: #ffcb6b; }
.code-fn { color: #82aaff; }
.code-str { color: #c3e88d; }
.code-comment { color: #546e7a; font-style: italic; }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 2;
  animation: fade-bob 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes fade-bob {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--bg-1);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
}
.section-dark::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-h), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 3px;
  margin: 1.25rem auto 0;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.avatar-ring {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--neon-purple));
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: spin-slow 8s linear infinite reverse;
}

.avatar-icon svg {
  width: 70px; height: 70px;
  stroke: var(--blue);
  opacity: 0.6;
  margin-bottom: 8px;
}

.avatar-initials {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tag {
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--blue-dim);
  border: 1px solid var(--border);
  color: var(--blue);
  transition: var(--transition);
}
.tag:hover {
  background: rgba(0,195,255,0.2);
  border-color: var(--blue);
}

.about-intro {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-weight: 400;
}
.about-intro strong { color: var(--blue); }

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.975rem;
}
.about-text p strong { color: var(--blue); }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.value-item:hover {
  border-color: var(--border-h);
  background: var(--surface-2);
}

.value-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.value-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.value-item p {
  font-size: 0.8rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.skill-card:hover {
  border-color: var(--border-h);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.skill-icon-wrap {
  position: relative;
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.skill-icon-wrap.html { background: rgba(255, 100, 30, 0.12); border: 1px solid rgba(255,100,30,0.2); }
.skill-icon-wrap.css  { background: rgba(60, 120, 255, 0.12); border: 1px solid rgba(60,120,255,0.2); }
.skill-icon-wrap.flutter { background: rgba(80, 200, 255, 0.12); border: 1px solid rgba(80,200,255,0.2); }
.skill-icon-wrap.python { background: rgba(60, 200, 100, 0.12); border: 1px solid rgba(60,200,100,0.2); }
.skill-icon-wrap.csharp { background: rgba(160, 100, 255, 0.12); border: 1px solid rgba(160,100,255,0.2); }
.skill-icon-wrap.esp { background: rgba(255, 180, 0, 0.12); border: 1px solid rgba(255,180,0,0.2); }

.skill-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-sm) + 4px);
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-card:hover .skill-glow-ring {
  opacity: 1;
  box-shadow: 0 0 20px rgba(0,195,255,0.3);
}

.skill-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.skill-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.skill-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px var(--blue);
}

.skill-card.visible .skill-fill {
  width: var(--pct);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--blue);
  min-width: 30px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.skill-tags span {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(0,195,255,0.08);
  border: 1px solid rgba(0,195,255,0.15);
  color: var(--text-muted);
}

/* =============================================
   PROJECTS – FEATURED
   ============================================= */
.project-featured {
  position: relative;
  background: linear-gradient(135deg, rgba(0,195,255,0.05) 0%, rgba(168,85,247,0.05) 100%);
  border: 1px solid rgba(0,195,255,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.project-featured::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  animation: shimmer-line 3s linear infinite;
}

@keyframes shimmer-line {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 200, 0, 0.1);
  border: 1px solid rgba(255, 200, 0, 0.25);
  color: #ffd700;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: center;
}

/* Holographic element */
.project-holo {
  position: relative;
  width: 220px; height: 220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,195,255,0.2);
  animation: holo-spin 8s linear infinite;
}

.holo-ring.r1 { inset: 0; animation-duration: 8s; }
.holo-ring.r2 { inset: 20px; animation-duration: 12s; animation-direction: reverse; border-color: rgba(168,85,247,0.2); }
.holo-ring.r3 { inset: 40px; animation-duration: 6s; border-color: rgba(0,255,224,0.15); }

@keyframes holo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.holo-core {
  position: relative;
  z-index: 2;
  text-align: center;
  background: rgba(0,195,255,0.05);
  border: 1px solid rgba(0,195,255,0.25);
  border-radius: 50%;
  width: 120px; height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 40px rgba(0,195,255,0.2), inset 0 0 30px rgba(0,195,255,0.05);
}

.holo-text {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.1em;
}

.holo-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyan);
  opacity: 0.7;
}

.holo-dots {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hdot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.hdot:nth-child(1) { top: 5px; left: 50%; transform: translateX(-50%); animation: hdot-pulse 2s ease-in-out 0s infinite; }
.hdot:nth-child(2) { bottom: 5px; left: 50%; transform: translateX(-50%); animation: hdot-pulse 2s ease-in-out 0.33s infinite; }
.hdot:nth-child(3) { left: 5px; top: 50%; transform: translateY(-50%); animation: hdot-pulse 2s ease-in-out 0.66s infinite; }
.hdot:nth-child(4) { right: 5px; top: 50%; transform: translateY(-50%); animation: hdot-pulse 2s ease-in-out 1s infinite; }
.hdot:nth-child(5) { top: 15%; left: 15%; animation: hdot-pulse 2s ease-in-out 1.33s infinite; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hdot:nth-child(6) { top: 15%; right: 15%; animation: hdot-pulse 2s ease-in-out 1.66s infinite; background: var(--neon-purple); box-shadow: 0 0 8px var(--neon-purple); }

@keyframes hdot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.6); }
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.proj-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.proj-type {
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,195,255,0.1);
  border: 1px solid var(--border);
  color: var(--blue);
}

.proj-status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.proj-status.active {
  background: rgba(0,255,150,0.1);
  border: 1px solid rgba(0,255,150,0.25);
  color: #00ff96;
}

.featured-title {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.featured-desc {
  color: var(--text-secondary);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.featured-desc strong { color: var(--text-primary); }

.featured-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.5rem 0;
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.tech-badge.esp32 { background: rgba(255,180,0,0.12); border: 1px solid rgba(255,180,0,0.3); color: #ffd700; }
.tech-badge.embedded { background: rgba(60,200,100,0.1); border: 1px solid rgba(60,200,100,0.25); color: #3cd864; }
.tech-badge.mesh { background: rgba(0,195,255,0.1); border: 1px solid rgba(0,195,255,0.25); color: var(--blue); }
.tech-badge.iot { background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.25); color: var(--neon-purple); }

.featured-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feat-icon { font-size: 1rem; }

/* =============================================
   PROJECTS GRID
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.project-card:hover::before { opacity: 1; }

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.project-icon-wrap {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.project-icon-wrap.flutter-proj { background: rgba(80,200,255,0.12); border: 1px solid rgba(80,200,255,0.2); }
.project-icon-wrap.python-proj  { background: rgba(60,200,100,0.12); border: 1px solid rgba(60,200,100,0.2); }
.project-icon-wrap.csharp-proj  { background: rgba(160,100,255,0.12); border: 1px solid rgba(160,100,255,0.2); }

.project-links { display: flex; gap: 8px; }

.proj-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.proj-link svg { width: 16px; height: 16px; }

.proj-link:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: rgba(0,195,255,0.15);
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech-row span {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,195,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =============================================
   TIMELINE / EDUCATION
   ============================================= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 12px;
  top: 1.5rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 12px var(--blue);
  border: 2px solid var(--bg-1);
}

.timeline-card {
  display: flex;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-glow-sm);
}

.timeline-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.tl-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue);
}

.tl-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tl-badge.current {
  background: rgba(0,255,150,0.1);
  border: 1px solid rgba(0,255,150,0.25);
  color: #00ff96;
}

.tl-badge.self {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--neon-purple);
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.tl-school {
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.tl-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.tl-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tl-subjects span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,195,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* =============================================
   CERTIFICATES
   ============================================= */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.cert-glow {
  position: absolute;
  top: -20px; left: -20px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,195,255,0.15), transparent);
  pointer-events: none;
}

.cert-header {
  height: 100px;
  background: linear-gradient(135deg, rgba(0,195,255,0.1), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cert-badge-icon {
  font-size: 2.5rem;
  z-index: 1;
  filter: drop-shadow(0 0 12px rgba(0,195,255,0.5));
}

.cert-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-200%); }
  50% { transform: translateX(200%); }
}

.cert-body {
  padding: 1.25rem;
}

.cert-issuer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.4rem 0 0.5rem;
  line-height: 1.4;
}

.cert-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.cert-verify {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #00ff96;
}

.verify-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #00ff96;
  box-shadow: 0 0 6px #00ff96;
  animation: blink 1.5s ease-in-out infinite;
}

.cert-add {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  cursor: default;
}

.cert-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.cert-add-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--border-h);
}

/* =============================================
   HOBBIES
   ============================================= */
.hobbies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.hobby-card {
  position: relative;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  background: var(--surface);
}

.hobby-card:hover {
  border-color: var(--border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow-sm), var(--shadow-card);
}

.hobby-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.hobby-card:hover .hobby-bg { opacity: 1; }

.hobby-bg-1 { background: radial-gradient(circle at 20% 20%, rgba(0,195,255,0.08), transparent 60%); }
.hobby-bg-2 { background: radial-gradient(circle at 80% 20%, rgba(0,255,224,0.08), transparent 60%); }
.hobby-bg-3 { background: radial-gradient(circle at 20% 80%, rgba(80,200,255,0.08), transparent 60%); }
.hobby-bg-4 { background: radial-gradient(circle at 80% 80%, rgba(168,85,247,0.08), transparent 60%); }
.hobby-bg-5 { background: radial-gradient(circle at 50% 50%, rgba(255,180,0,0.06), transparent 60%); }
.hobby-bg-6 { background: radial-gradient(circle at 50% 20%, rgba(60,200,100,0.08), transparent 60%); }

.hobby-content { position: relative; z-index: 1; }

.hobby-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,195,255,0.3));
  transition: transform 0.3s;
}

.hobby-card:hover .hobby-icon { transform: scale(1.1); }

.hobby-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.hobby-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 0.75rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto 3rem;
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.contact-neon {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.contact-card:hover .contact-neon { opacity: 1; }

.email-neon    { background: radial-gradient(ellipse at 0% 50%, rgba(0,195,255,0.08), transparent 70%); }
.github-neon   { background: radial-gradient(ellipse at 0% 50%, rgba(255,255,255,0.05), transparent 70%); }
.linkedin-neon { background: radial-gradient(ellipse at 0% 50%, rgba(0,120,255,0.08), transparent 70%); }

.contact-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--blue-dim);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-icon-wrap svg { width: 22px; height: 22px; color: var(--blue); }

.contact-card:hover .contact-icon-wrap {
  background: rgba(0,195,255,0.2);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(0,195,255,0.3);
}

.contact-info {
  flex: 1;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}

.contact-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s, color 0.3s;
}

.contact-card:hover .contact-arrow {
  transform: translateX(4px);
  color: var(--blue);
}

.contact-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,255,150,0.08);
  border: 1px solid rgba(0,255,150,0.2);
  color: #00ff96;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #00ff96;
  box-shadow: 0 0 8px #00ff96;
  animation: blink 1.5s ease-in-out infinite;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
    padding-top: 120px;
  }
  .hero-content { max-width: 100%; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { width: 100%; max-width: 460px; margin: 0 auto; }
  .code-window { transform: none !important; animation: float-window-flat 5s ease-in-out infinite !important; }

  @keyframes float-window-flat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-avatar-wrap { flex-direction: row; align-items: center; gap: 2rem; }

  .featured-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .featured-features { justify-items: center; }
  .feat-item { justify-content: center; }
  .featured-tech { justify-content: center; }
  .featured-meta { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(2, 4, 8, 0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.open { transform: translateY(0); }

  .hamburger { display: flex; }

  .nav-link { padding: 0.75rem 1rem; border-radius: var(--radius-sm); }

  .about-avatar-wrap {
    flex-direction: column;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .project-featured {
    padding: 1.75rem;
  }

  .featured-features {
    grid-template-columns: 1fr;
  }

  .section { padding: 70px 0; }

  .hero { padding-top: 100px; padding-bottom: 40px; }

  .hero-title { text-align: center; }
  .hero-badge { margin: 0 auto 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .skills-grid { grid-template-columns: 1fr; }
  .hobbies-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.4rem; }
}
