/* ============================================
   ROOT & RESET
   ============================================ */
:root {
  --bg:        #0a0c10;
  --bg-alt:    #0d1117;
  --card:      #111827;
  --card-hover:#151f2e;
  --border:    rgba(0, 255, 163, 0.15);
  --neon:      #00ffa3;
  --neon2:     #00d4ff;
  --neon3:     #a855f7;
  --text:      #e2e8f0;
  --text-muted:#8892a4;
  --font-main: 'Rajdhani', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  --font-head: 'Orbitron', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
ul { list-style: none; }

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--neon); border-radius: 3px; }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}

#navbar.scrolled {
  padding: 0.6rem 2.5rem;
  background: rgba(10, 12, 16, 0.97);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--neon);
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--neon);
  transition: width 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--neon);
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--neon);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   CONTAINER & SECTION BASE
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

/* Smooth section fade in/out while scrolling */
section.section-fade {
  --section-visibility: 0.25;
  opacity: var(--section-visibility);
  transform: translateY(calc((1 - var(--section-visibility)) * 28px));
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

section.section-fade.is-active {
  --section-visibility: 1;
}

@media (prefers-reduced-motion: reduce) {
  section.section-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
}

.section-title span {
  color: var(--neon);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 0;
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  border-radius: 2px;
}

/* ============================================
   GLITCH EFFECT
   ============================================ */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--neon2);
  animation: glitch-before 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  color: var(--neon3);
  animation: glitch-after 3s infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-before {
  0%, 95%, 100% { transform: translate(0); opacity: 0; }
  96% { transform: translate(-3px, 1px); opacity: 0.8; }
  98% { transform: translate(3px, -1px); opacity: 0.8; }
}

@keyframes glitch-after {
  0%, 92%, 100% { transform: translate(0); opacity: 0; }
  93% { transform: translate(3px, 2px); opacity: 0.7; }
  95% { transform: translate(-3px, -2px); opacity: 0.7; }
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 780px;
}

.hero-pre {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 1rem;
  letter-spacing: 3px;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--neon) 70%, var(--neon2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-title-wrap {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--neon2);
  margin-bottom: 1.5rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cursor {
  animation: blink 0.8s infinite;
  color: var(--neon);
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

.hero-socials {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.hero-socials a svg { width: 20px; height: 20px; }

.hero-socials a:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 14px rgba(0, 255, 163, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--neon), transparent);
  animation: scrollAnim 1.5s infinite;
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 2px;
}

@keyframes scrollAnim {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.3);
}

.btn-primary:hover {
  background: var(--neon2);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--neon);
}

.btn-outline:hover {
  background: rgba(0, 255, 163, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 163, 0.2);
  transform: translateY(-2px);
}

.btn.full-width { width: 100%; justify-content: center; }

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

.avatar-hex {
  position: relative;
  width: 215px;
  height: 215px;
  margin: 0 auto 2rem;
}

.hex-inner {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon2) 50%, var(--neon3) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hexPulse 3s ease-in-out infinite;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.avatar-initials {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: #000;
  letter-spacing: 4px;
}

@keyframes hexPulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 163, 0.4)); }
  50% { filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.7)); }
}

.about-info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: border-color 0.3s;
}

.info-card:hover { border-color: var(--neon); color: var(--text); }
.info-icon { font-size: 1rem; }

.about-text p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.about-text strong { color: var(--neon); }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  background: rgba(0, 255, 163, 0.08);
  border: 1px solid var(--border);
  color: var(--neon);
  border-radius: 4px;
  padding: 0.3rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  transition: background 0.3s;
}

.tag:hover { background: rgba(0, 255, 163, 0.18); }

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.skill-category {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.skill-category:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
}

.skill-category h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cat-icon { font-size: 1.2rem; }

.skill-bar-wrap { display: flex; flex-direction: column; gap: 1rem; }

.skill-bar {
  position: relative;
}

.skill-bar::before {
  content: attr(data-label);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.skill-bar::after {
  content: attr(data-percent) '%';
  position: absolute;
  right: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon);
}

.skill-bar-inner {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.5);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--neon3);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  transition: background 0.3s, border-color 0.3s;
}

.pill:hover {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--neon3);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.timeline-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.tab-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.6rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
  background: rgba(0, 255, 163, 0.1);
  border-color: var(--neon);
  color: var(--neon);
}

.timeline { position: relative; }

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

.timeline.hidden { display: none; }

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s, transform 0.6s;
}

.timeline-item.visible { opacity: 1; transform: translateX(0); }

.tl-dot {
  flex-shrink: 0;
  width: 25px; height: 25px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: var(--bg);
  position: relative;
  z-index: 1;
  margin-top: 0.2rem;
  box-shadow: 0 0 10px rgba(0, 255, 163, 0.4);
}

.tl-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--neon);
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1;
  transition: border-color 0.3s;
}

.tl-card:hover { border-color: var(--neon); }

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--neon);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.5rem;
}

.tl-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tl-card h4 {
  font-size: 0.9rem;
  color: var(--neon2);
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.tl-card p { font-size: 0.9rem; color: var(--text-muted); }

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

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  padding: 1.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  border-color: var(--neon);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 255, 163, 0.1);
}

.project-cover {
  margin: -1.8rem -1.8rem 0;
  min-height: 140px;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 255, 163, 0.18), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(0, 212, 255, 0.2), transparent 40%),
    linear-gradient(130deg, var(--cover-a, #1f2937), var(--cover-b, #111827));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.project-cover::after {
  content: '';
  position: absolute;
  right: -16px;
  top: -18px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.35;
}

.project-cover-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 163, 0.35);
  background: rgba(0, 0, 0, 0.32);
  color: var(--neon);
}

.project-cover-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  max-width: 88%;
}

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

.project-engine {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 1px;
}

.project-engine.unity  { background: rgba(0,212,255,0.1); color: var(--neon2); border: 1px solid rgba(0,212,255,0.3); }
.project-engine.unreal { background: rgba(168,85,247,0.1); color: var(--neon3); border: 1px solid rgba(168,85,247,0.3); }
.project-engine.python { background: rgba(0,255,163,0.1); color: var(--neon); border: 1px solid rgba(0,255,163,0.3); }

.project-links a {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}

.project-links a svg { width: 20px; height: 20px; }
.project-links a:hover { color: var(--neon); }

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

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

.cert-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  cursor: pointer;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.cert-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 255, 163, 0.08);
}

.cert-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(0,255,163,0.14), rgba(0,212,255,0.08));
  border: 1px solid rgba(0, 255, 163, 0.25);
}

.cert-body { display: flex; flex-direction: column; gap: 0.4rem; }

.cert-body h3 { font-size: 1.05rem; font-weight: 600; }

.cert-body h4 { font-size: 0.85rem; color: var(--neon2); font-weight: 400; }

.cert-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon2);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-sub {
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

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

.contact-links { display: flex; flex-direction: column; gap: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  transition: border-color 0.3s, transform 0.3s;
  cursor: pointer;
}

.contact-item:hover {
  border-color: var(--neon);
  transform: translateX(6px);
}

.contact-item.no-link:hover { transform: none; cursor: default; }

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

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.contact-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
}

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.1);
}

.form-feedback {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon);
  min-height: 1.2rem;
  text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
#footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}

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

.footer-inner p { font-size: 0.92rem; color: var(--text-muted); }
.heart { display: inline-block; animation: heartbeat 1.5s infinite; }
.footer-copy { font-size: 0.8rem !important; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* ============================================
   FADE ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-avatar-wrap { display: flex; flex-direction: column; align-items: center; }
  .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 260px; height: 100vh;
    background: rgba(10,12,16,0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s;
    border-left: 1px solid var(--border);
    backdrop-filter: blur(12px);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .hamburger { display: flex; z-index: 1000; }
}

@media (max-width: 540px) {
  .section { padding: 5rem 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .pub-grid { grid-template-columns: 1fr; }
  .journey-controls { justify-content: center; }
}

/* ============================================
   SECTION SUBTITLE
   ============================================ */
.section-sub {
  color: var(--text-muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

/* ============================================
   PUBLISHED GAMES SECTION
   ============================================ */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.pub-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pub-card:hover {
  border-color: var(--neon);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 255, 163, 0.1);
}

/* Cover image area */
.pub-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b0e18;
}

.pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pub-card:hover .pub-cover img {
  transform: scale(1.05);
}

.pub-number {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.65);
  color: var(--neon);
  border: 1px solid rgba(0,255,163,0.35);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  letter-spacing: 1px;
  backdrop-filter: blur(4px);
}

.pub-body {
  flex: 1;
  padding: 1rem 1.1rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.pub-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.pub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.pub-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
}

.pub-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--border);
}

.pub-btn {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: opacity 0.2s, transform 0.15s;
  text-align: center;
  white-space: nowrap;
}

.pub-btn:hover { opacity: 0.85; transform: translateY(-1px); }

.pub-btn.itch {
  background: #fa5c5c;
  color: #fff;
}

.pub-btn.gh {
  background: rgba(0,255,163,0.08);
  border: 1px solid rgba(0,255,163,0.3);
  color: var(--neon);
}

.pub-btn.gplay {
  background: #01875f;
  color: #fff;
}

.pub-btn.appstore {
  background: #0071e3;
  color: #fff;
}

/* ============================================
   JOURNEY MINI-GAME SECTION
   ============================================ */
.journey-subtitle {
  color: var(--text-muted);
  margin-top: -1.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.97rem;
}

.journey-subtitle kbd {
  background: rgba(0,255,163,0.12);
  border: 1px solid rgba(0,255,163,0.3);
  color: var(--neon);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.journey-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,163,0.06);
  cursor: pointer;
}

#journey-canvas {
  display: block;
  width: 100%;
  background: #040609;
}

.journey-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.game-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--neon);
  font-size: 1.1rem;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: background 0.2s, border-color 0.2s;
  user-select: none;
  -webkit-user-select: none;
}

.game-btn:hover, .game-btn:active {
  background: rgba(0,255,163,0.12);
  border-color: var(--neon);
}

.game-btn-jump {
  background: rgba(0,255,163,0.08);
  border-color: rgba(0,255,163,0.3);
  padding: 0.5rem 1.6rem;
}

.game-btn-rst {
  font-size: 1.1rem;
  padding: 0.4rem 0.6rem;
  color: rgba(136,146,164,0.7);
  margin-left: 0.4rem;
}
.game-btn-rst:hover { color: var(--neon); }

.journey-info {
  margin-top: 1.2rem;
  min-height: 80px;
}

.journey-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Collected games header */
.jm-collected-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.jm-collected-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.jm-collected-label em {
  color: var(--neon);
  font-style: normal;
}

/* Stacked collected cards */
.jm-collected-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.journey-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 1.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  line-height: 1.8;
}

.journey-hint kbd {
  background: rgba(0,255,163,0.1);
  border: 1px solid rgba(0,255,163,0.25);
  color: var(--neon);
  border-radius: 3px;
  padding: 0.05rem 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85em;
}

/* Milestone info card */
.jm-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--mc, var(--neon));
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: fadeUp 0.4s forwards;
}

.jm-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.jm-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mc, var(--neon));
  letter-spacing: 1px;
}

.jm-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.jm-company {
  font-size: 0.88rem;
  color: var(--mc, var(--neon));
}

.jm-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  align-self: center;
}

/* Game collectable card variant */
.jm-game-card {
  grid-template-columns: 175px 1fr;
  align-items: center;
  gap: 1.2rem;
}

.jm-game-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(136, 146, 164, 0.2);
  display: block;
}

.jm-game-right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jm-game-right .jm-desc {
  align-self: auto;
  margin: 0;
}

.jm-tag {
  display: inline-block;
  background: rgba(var(--mc-rgb, 0,255,163), 0.12);
  border: 1px solid var(--mc, var(--neon));
  border-radius: 4px;
  padding: 0.1rem 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.jm-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.jm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.2s, transform 0.15s;
}
.jm-link:hover { filter: brightness(1.2); transform: translateY(-1px); }

.jm-link-itch {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid rgba(255, 71, 87, 0.5);
  color: #ff4757;
}
.jm-link-gh {
  background: rgba(136, 146, 164, 0.1);
  border: 1px solid rgba(136, 146, 164, 0.35);
  color: var(--text-muted);
}

/* ============================================
   CERT SKILLS TAG
   ============================================ */
.cert-skills {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   GAME LIGHTBOX MODAL
   ============================================ */
.game-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.game-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.game-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s;
}

.game-modal-overlay.active .game-modal {
  transform: translateY(0) scale(1);
}

.game-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s;
}

.game-modal-close:hover {
  background: rgba(0, 255, 163, 0.12);
  border-color: var(--neon);
}

/* Gallery */
.modal-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08090f;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.gallery-imgs {
  position: absolute;
  inset: 0;
}

.modal-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #08090f;
  cursor: zoom-in;
}

.modal-gallery-img.active { display: block; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.95rem;
  font-family: var(--font-main);
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}

.gallery-arrow:hover {
  background: rgba(0, 255, 163, 0.18);
  border-color: var(--neon);
}

.gallery-arrow.prev { left: 0.75rem; }
.gallery-arrow.next { right: 0.75rem; }

.gallery-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 3;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.gallery-dot.active {
  background: var(--neon);
  transform: scale(1.3);
}

.gallery-counter {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.55);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  z-index: 3;
  transition: opacity 0.28s ease;
}

.gallery-fs-exit {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0;
  line-height: 0;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  z-index: 4;
  display: none;
  transition: opacity 0.28s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-fs-exit:hover {
  border-color: var(--neon);
}

.gallery-fs-exit::before,
.gallery-fs-exit::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  transform-origin: center;
}

.gallery-fs-exit::before { transform: translate(-50%, -50%) rotate(45deg); }
.gallery-fs-exit::after  { transform: translate(-50%, -50%) rotate(-45deg); }

.gallery-fs-exit:hover::before,
.gallery-fs-exit:hover::after {
  background: var(--neon);
}

/* Single screenshot — hide navigation */
.modal-gallery.single .gallery-arrow,
.modal-gallery.single .gallery-dots,
.modal-gallery.single .gallery-counter { display: none; }

.modal-gallery:fullscreen,
.modal-gallery:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}

.modal-gallery:fullscreen .gallery-fs-exit,
.modal-gallery:-webkit-full-screen .gallery-fs-exit {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  display: grid;
  place-items: center;
}

.modal-gallery:fullscreen .gallery-arrow,
.modal-gallery:-webkit-full-screen .gallery-arrow {
  width: 54px;
  height: 54px;
  font-size: 2.2rem;
}

.modal-gallery:fullscreen .gallery-counter,
.modal-gallery:-webkit-full-screen .gallery-counter {
  font-size: 0.9rem;
  padding: 0.3rem 0.7rem;
}

.modal-gallery:fullscreen.fs-ui-hidden .gallery-arrow,
.modal-gallery:fullscreen.fs-ui-hidden .gallery-dots,
.modal-gallery:fullscreen.fs-ui-hidden .gallery-counter,
.modal-gallery:-webkit-full-screen.fs-ui-hidden .gallery-arrow,
.modal-gallery:-webkit-full-screen.fs-ui-hidden .gallery-dots,
.modal-gallery:-webkit-full-screen.fs-ui-hidden .gallery-counter,
.modal-gallery:-webkit-full-screen.fs-ui-hidden .gallery-fs-exit {
  opacity: 0;
  pointer-events: none;
}

.modal-gallery:fullscreen.fs-ui-hidden .gallery-fs-exit,
.modal-gallery:-webkit-full-screen.fs-ui-hidden .gallery-fs-exit {
  opacity: 1;
  pointer-events: auto;
}

/* Modal body */
.modal-body {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--neon);
  flex: 1;
  min-width: 160px;
  margin: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.modal-tags span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(0, 255, 163, 0.05);
  border: 1px solid rgba(0, 255, 163, 0.22);
  color: var(--neon);
}

.modal-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0.2rem;
}

.modal-actions .pub-btn {
  flex: 0 1 auto;
  padding: 0.5rem 1.3rem;
}

/* Cover click hint overlay */
.pub-cover { cursor: pointer; }

.pub-cover::after {
  content: '🔍 View Screenshots';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.pub-cover:hover::after { opacity: 1; }

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */
@media (max-width: 700px) {
  .jm-card { grid-template-columns: 1fr; gap: 0.8rem; }
  .jm-game-card { grid-template-columns: 1fr; }
  .jm-game-img { max-height: 180px; width: 100%; }
  .pub-card { flex-wrap: wrap; }
  .pub-actions { flex-direction: row; }
}

