/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM — GeoDevPortfolio
   Tone: Retro-futuristic dark tech / cartographic precision
   Palette: Deep space + cyan + violet
   Fonts: Syne (display) + Plus Jakarta Sans (body)
═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-base:       #0D0F14;
  --bg-surface:    #12151C;
  --bg-elevated:   #181C26;
  --bg-card:       #1C2030;
  --bg-card-hover: #212638;

  --cyan:          #00D4FF;
  --cyan-dim:      #00D4FF33;
  --cyan-glow:     #00D4FF18;
  --violet:        #7B2FFF;
  --violet-dim:    #7B2FFF33;
  --violet-glow:   #7B2FFF18;
  --gold:          #FFB800;
  --gold-dim:      #FFB80033;

  --text-primary:  #EEF0F5;
  --text-secondary:#9BA3B8;
  --text-muted:    #5A6278;
  --border:        #1E2436;
  --border-bright: #2A3050;

  --font-display:  'Syne', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --radius-xl:     32px;

  --shadow-card:   0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow-c: 0 0 40px rgba(0,212,255,0.15);
  --shadow-glow-v: 0 0 40px rgba(123,47,255,0.15);

  --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;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

body.loading { overflow: hidden; }

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

::selection {
  background: var(--cyan-dim);
  color: var(--cyan);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

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

/* ══════════════════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════════════════ */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, background 0.2s ease;
}

.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.6;
}

.cursor-ring.hovering {
  width: 48px; height: 48px;
  border-color: var(--violet);
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   LOADING SCREEN
══════════════════════════════════════════════════════════ */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loader-globe svg {
  width: 100px; height: 100px;
  animation: loaderSpin 3s linear infinite;
}

@keyframes loaderSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.loader-circle {
  animation: loaderDash 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes loaderDash {
  0%   { stroke-dashoffset: 226; }
  50%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -226; }
}

.loader-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  min-width: 200px;
}

.loader-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--text-muted);
}

.loader-bar {
  width: 200px; height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s linear;
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), backdrop-filter var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color var(--transition);
}

.nav-logo:hover { color: var(--cyan); }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px; height: 1.5px;
  background: var(--cyan);
  border-radius: 1px;
  transition: transform var(--transition);
}

.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }
.nav-link.active { color: var(--cyan); }
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  color: var(--bg-base);
  background: var(--cyan);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
}

.nav-cta:hover {
  background: #33DDFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}

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

.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

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

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099CC);
  color: var(--bg-base);
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,212,255,0.4);
}

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

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,212,255,0.1);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

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

/* ══════════════════════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════════════════════ */
section {
  padding: 7rem 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
}

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

.accent-cyan  { color: var(--cyan); }
.accent-violet { color: var(--violet); }

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
══════════════════════════════════════════════════════════ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }

/* ══════════════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, #0D1A2E 0%, var(--bg-base) 70%);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.5;
  pointer-events: none;
}

.coord-badge {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan);
  opacity: 0.4;
  letter-spacing: 0.05em;
  animation: coordFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.coord-1 { top: 20%; right: 8%; animation-delay: 0s; }
.coord-2 { bottom: 30%; right: 15%; animation-delay: 2s; }
.coord-3 { top: 65%; right: 5%; animation-delay: 4s; }

@keyframes coordFloat {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-8px); opacity: 0.7; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.8s ease 0.3s both;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,212,255,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25em;
  overflow: hidden;
}

.word {
  display: inline-block;
  animation: wordReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-line[data-delay="0"] .word:nth-child(1) { animation-delay: 0.5s; }
.hero-line[data-delay="0"] .word:nth-child(2) { animation-delay: 0.65s; }
.hero-line[data-delay="0"] .word:nth-child(3) { animation-delay: 0.8s; }
.hero-line[data-delay="1"] .word:nth-child(1) { animation-delay: 0.95s; }
.hero-line[data-delay="1"] .word:nth-child(2) { animation-delay: 1.1s; }

@keyframes wordReveal {
  from { opacity: 0; transform: translateY(60px) rotate(3deg); }
  to   { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 400;
  min-height: 1.8em;
  animation: fadeInUp 0.8s ease 1.4s both;
}

.cursor-blink {
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

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

.hero-name {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 1.6s both;
}

.name-label { color: var(--text-muted); }
.name-value { color: var(--cyan); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s ease 1.8s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeInUp 0.8s ease 2s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-num::after { content: '+'; color: var(--cyan); font-size: 1.4rem; }

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px; height: 40px;
  background: var(--border-bright);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease 2.5s both;
}

.hero-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   ABOUT SECTION
══════════════════════════════════════════════════════════ */
#about {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

/* Avatar visual */
.about-visual { position: relative; }

.about-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-avatar-frame {
  position: relative;
  width: 280px; height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
}

.ring-1 { width: 100%; height: 100%; opacity: 0.08; animation: ringPulse 4s ease-in-out infinite; }
.ring-2 { width: 80%;  height: 80%;  opacity: 0.12; animation: ringPulse 4s ease-in-out infinite 0.5s; }
.ring-3 { width: 60%;  height: 60%;  opacity: 0.2;  animation: ringPulse 4s ease-in-out infinite 1s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50%       { transform: scale(1.04); opacity: 0.2; }
}

.avatar-placeholder {
  position: relative;
  z-index: 2;
  width: 160px; height: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.about-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.875rem;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  color: var(--text-secondary);
  white-space: nowrap;
  animation: badgeFloat 5s ease-in-out infinite;
}

.badge-1 { top: 10%; right: -10%; animation-delay: 0s; }
.badge-2 { bottom: 20%; right: -15%; animation-delay: 1.5s; }
.badge-3 { bottom: 5%; left: 0%; animation-delay: 3s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* About content */
.about-content .section-label { margin-bottom: 0.5rem; }

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.about-text strong { color: var(--text-primary); font-weight: 600; }

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.highlight-icon {
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.highlight-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.highlight-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════
   SKILLS SECTION
══════════════════════════════════════════════════════════ */
#skills { background: var(--bg-base); }

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

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.skill-category:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

.skill-cat-icon {
  width: 44px; height: 44px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-cat-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }

.skill-bar-item { display: flex; flex-direction: column; gap: 0.4rem; }

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

.skill-bar-header span:first-child {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.skill-track {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

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

/* Tools grid */
.tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.tool-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.tool-chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════
   PROJECTS SECTION
══════════════════════════════════════════════════════════ */
#projects {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.project-card.featured-project {
  border-color: var(--cyan-dim);
}

.project-card.featured-project:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-glow-c);
}

.project-card-inner { display: flex; flex-direction: column; height: 100%; }

/* Project visual area */
.project-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.pv-1 { background: linear-gradient(135deg, #0D1A2E, #0D0F14); }
.pv-2 { background: linear-gradient(135deg, #1A0D2E, #0D0F14); }
.pv-3 { background: linear-gradient(135deg, #0D1A2E, #0A1520); }

.project-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--cyan-dim), transparent 70%);
  pointer-events: none;
}

/* Browser mockup */
.project-mockup {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-bright);
}

.mockup-bar span:nth-child(1) { background: #FF5F57; }
.mockup-bar span:nth-child(2) { background: #FFBD2E; }
.mockup-bar span:nth-child(3) { background: #28CA41; }

.mockup-content { padding: 8px; display: flex; flex-direction: column; gap: 6px; }

.mockup-hero-block {
  height: 40px;
  background: linear-gradient(135deg, var(--cyan-dim), var(--violet-dim));
  border-radius: 3px;
}

.mockup-nav {
  height: 8px;
  background: var(--border);
  border-radius: 2px;
  width: 60%;
}

.mockup-cards {
  display: flex;
  gap: 4px;
}

.mockup-card {
  flex: 1;
  height: 28px;
  background: var(--border);
  border-radius: 3px;
}

.mockup-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.mockup-menu-item {
  height: 24px;
  background: var(--border);
  border-radius: 3px;
}

/* Map preview */
.project-map-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-grid-lines { position: absolute; inset: 0; }

.map-line {
  position: absolute;
  background: var(--cyan);
  opacity: 0.12;
}

.map-line.h { width: 100%; height: 1px; top: 20%; }
.map-line.v { height: 100%; width: 1px; left: 20%; }

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
}

.pin-1 { top: 35%; left: 30%; }
.pin-2 { top: 55%; left: 60%; }
.pin-3 { top: 25%; left: 70%; }

.pin-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  position: relative;
  z-index: 2;
}

.pin-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pinPulse 2s ease-out infinite;
}

@keyframes pinPulse {
  0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(4); opacity: 0; }
}

.map-tooltip {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  background: rgba(13,15,20,0.85);
  border: 1px solid var(--cyan-dim);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

.featured-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(255,184,0,0.1);
  border: 1px solid rgba(255,184,0,0.3);
  padding: 3px 10px;
  border-radius: 100px;
}

/* Project info */
.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

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

.tag {
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-gis {
  color: var(--cyan);
  border-color: var(--cyan-dim);
  background: var(--cyan-glow);
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.project-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

/* ══════════════════════════════════════════════════════════
   GIS FEATURE SECTION
══════════════════════════════════════════════════════════ */
#gis-feature { background: var(--bg-base); }

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

.gis-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.gis-info-header { display: flex; flex-direction: column; gap: 0.875rem; }

.gis-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.status-dot {
  width: 6px; height: 6px;
  background: #00FF88;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.gis-info-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.gis-info-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gis-features { display: flex; flex-direction: column; gap: 1rem; }

.gis-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}

.gis-feature-item:hover {
  border-color: var(--border-bright);
  transform: translateX(4px);
}

.gfi-icon {
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gis-feature-item div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.gis-feature-item strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.gis-feature-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gis-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--violet);
  background: var(--violet-glow);
  border: 1px solid var(--violet-dim);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Map frame */
.gis-map-container { position: relative; }

.map-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow-c);
}

.map-frame-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.map-frame-dots {
  display: flex;
  gap: 5px;
}

.map-frame-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.map-frame-dots span:nth-child(1) { background: #FF5F57; }
.map-frame-dots span:nth-child(2) { background: #FFBD2E; }
.map-frame-dots span:nth-child(3) { background: #28CA41; }

.map-frame-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
}

.map-frame-controls { cursor: pointer; }

#leafletMap {
  height: 420px;
  width: 100%;
}

/* Leaflet overrides */
.leaflet-container {
  background: #0D1A2E !important;
  font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-bright) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-card) !important;
  color: var(--text-primary) !important;
}

.leaflet-popup-tip { background: var(--bg-card) !important; }

.leaflet-popup-content {
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.85rem !important;
  margin: 12px 16px !important;
}

.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-bright) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bg-elevated) !important;
  color: var(--cyan) !important;
}

/* ══════════════════════════════════════════════════════════
   CONTACT SECTION
══════════════════════════════════════════════════════════ */
#contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

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

.contact-intro {
  margin-bottom: 2rem;
}

.contact-intro p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.contact-channels { display: flex; flex-direction: column; gap: 0.75rem; }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.contact-channel:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateX(4px);
}

.channel-icon {
  width: 40px; height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel div:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.contact-channel strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact-channel span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.channel-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition);
}

.contact-channel:hover .channel-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  color: var(--cyan);
  padding: 0.75rem 1rem;
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-dim);
  border-radius: var(--radius-sm);
}

.form-success.show { display: flex; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
#footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

.footer-coords {
  font-family: var(--font-mono);
  color: var(--cyan) !important;
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .gis-showcase { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: flex; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,15,20,0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.open .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
  }

  .hero-title { font-size: clamp(2.8rem, 10vw, 4.5rem); }
  .hero-stats { gap: 1.25rem; }
  .stat-num { font-size: 1.5rem; }

  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .coord-badge { display: none; }

  .cursor-dot, .cursor-ring { display: none; }
  body { cursor: auto; }
  .btn, .nav-hamburger, .contact-channel, .tool-chip { cursor: pointer; }

  #leafletMap { height: 300px; }

  .contact-form-wrap { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-content { padding: 7rem 1.25rem 3rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .stat-divider { display: none; }
  .about-avatar-frame { width: 220px; height: 220px; }
  .avatar-placeholder { width: 130px; height: 130px; }
  .badge-1, .badge-2, .badge-3 { display: none; }
  .section-title { font-size: 1.75rem; }
}