/* ═══════════════════════════════════════════
   RESET & VARIABLES
═══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:        #00ff88;
  --green-mid:    #00c864;
  --green-dark:   #003d1a;
  --green-glow:   rgba(0, 255, 136, 0.25);
  --green-faint:  rgba(0, 255, 136, 0.055);
  --bg:           #050507;
  --bg2:          #080a0d;
  --border:       rgba(0, 255, 136, 0.11);
  --border-hover: rgba(0, 255, 136, 0.32);
  --text:         #e2e8f0;
  --muted:        #64748b;
  --card-bg:      rgba(255, 255, 255, 0.022);
}

/* Light theme */
[data-theme="light"] {
  --green:        #00aa55;
  --green-mid:    #008844;
  --green-dark:   #005522;
  --green-glow:   rgba(0, 170, 85, 0.25);
  --green-faint:  rgba(0, 170, 85, 0.055);
  --bg:           #f5f5f7;
  --bg2:          #ffffff;
  --border:       rgba(0, 170, 85, 0.15);
  --border-hover: rgba(0, 170, 85, 0.35);
  --text:         #1a1a1a;
  --muted:        #666666;
  --card-bg:      rgba(0, 0, 0, 0.03);
}

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

body {
  font-family: 'DM Mono', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  cursor: none;
  overflow-x: hidden;
}

.green { color: var(--green); }
strong { font-weight: 500; }

/* ═══════════════════════════════════════════
   PAGE TRANSITION
═══════════════════════════════════════════ */
#page-transition {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; pointer-events: none;
  transition: opacity 0.4s ease 0.6s;
}
#page-transition.leaving { opacity: 0; pointer-events: none; }

/* hide transition logo text */
#page-transition .pt-logo { display: none; }
/* ═══════════════════════════════════════════
   CLICK-TO-START LOADER
═══════════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  background: black;
  cursor: pointer;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader.hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
}

#loader.starting .loader-hint {
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.loader-ring {
  position: relative;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(0,0,0,0.95);
  border: 4px solid rgba(0,255,136,0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(0,255,136,0.2);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.loader-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(20, 55, 38, 0.75) calc(var(--p) * 1%), rgba(0,0,0,0) 0);
  transform: rotate(-90deg);
}
#loader.starting .loader-ring {
  border-color: rgba(0,255,136,0.9);
  box-shadow: 0 0 60px rgba(0,255,136,0.6);
}
.loader-percent {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.loader-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.loader-hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.14em;
}
.pt-panel {
  position: absolute; top: 0; bottom: 0;
  width: 50%;
  background: var(--bg);
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
}
.pt-left  { left: 0; transform: translateX(0); }
.pt-right { right: 0; transform: translateX(0); }

#page-transition.leaving .pt-left  { transform: translateX(-100%); }
#page-transition.leaving .pt-right { transform: translateX(100%); }

.pt-logo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800; letter-spacing: 0.15em;
  color: var(--green);
  text-shadow: 0 0 60px var(--green-glow);
  z-index: 1;
  animation: ptLogoFade 0.5s ease 0.5s forwards;
  opacity: 1;
}
@keyframes ptLogoFade {
  to { opacity: 0; transform: scale(1.08) translateY(-10px); }
}

/* ═══════════════════════════════════════════
   SCROLL PROGRESS BAR
═══════════════════════════════════════════ */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left;
  z-index: 9999;
  box-shadow: 0 0 8px var(--green);
}

/* ═══════════════════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════════════════ */
#cursor {
  position: fixed; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: transform 0.12s ease, width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 8px var(--green);
}
#cursor.hover {
  width: 6px; height: 6px;
  background: #fff;
}

#cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1px solid rgba(0, 255, 136, 0.5); border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9997;
  transition: width 0.25s, height 0.25s, border-color 0.25s, opacity 0.25s;
}
#cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: rgba(0, 255, 136, 0.9);
}

#cursor-dot { display: none; }

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.2rem 4rem;
  transition: background 0.35s, border-color 0.35s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(5, 5, 7, 0.92);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding-top: 0.8rem; padding-bottom: 0.8rem;
}

/* logo */
.navbar .logo {
  display: flex; flex-direction: column;
  text-decoration: none; margin-right: auto;
  line-height: 1;
}
.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1.45rem; font-weight: 800;
  color: var(--green); letter-spacing: 0.14em;
  text-shadow: 0 0 20px var(--green-glow);
}
.logo-sub {
  font-size: 0.58rem; letter-spacing: 0.3em;
  color: var(--muted); text-transform: uppercase;
}

/* nav links */
.nav-links { display: flex; gap: 2.4rem; list-style: none; margin-left: auto; }
.nav-links a {
  position: relative;
  font-size: 0.8rem; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
  overflow: hidden;
  display: inline-block;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 1px;
  background: var(--green); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

/* CV button */
.btn-cv-wrap { text-decoration: none; }
.btn-cv {
  display: flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--green);
  border: 1px solid var(--border-hover);
  padding: 0.6rem 1.4rem; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.8rem;
  letter-spacing: 0.1em; cursor: none;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.btn-cv:hover {
  background: var(--green); color: #000;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-cv svg { transition: transform 0.25s; }
.btn-cv:hover svg { transform: translateY(2px); }

/* Theme toggle button */
.theme-toggle {
  background: transparent; border: none;
  color: var(--text); cursor: none;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  transition: color 0.2s;
  padding: 0;
}
.theme-toggle:hover { color: var(--green); }
.theme-toggle svg { transition: transform 0.2s; }
.theme-toggle:hover svg { transform: rotate(20deg); }

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

/* mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 800;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2.5rem;
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); pointer-events: all; }
.mob-link {
  font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: 0.08em;
  transition: color 0.2s;
}
.mob-link:hover { color: var(--green); }

/* ═══════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════ */
.section { min-height: 100vh; position: relative; overflow: hidden; }

.section-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 5rem 2.5rem;
}

.section-header { margin-bottom: 3.5rem; }
.sh-eyebrow {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 0.8rem;
}
.sh-line {
  width: 32px; height: 1px; background: var(--green); opacity: 0.7;
}
.sh-eyebrow span {
  font-size: 0.75rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--green); opacity: 0.7;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════
   BLOB BACKGROUNDS
═══════════════════════════════════════════ */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-1 { width: 420px; height: 420px; background: rgba(0,255,136,0.07); top: 5%; right: -10%; animation-delay: 0s; }
.blob-2 { width: 280px; height: 280px; background: rgba(0,200,100,0.05); bottom: 10%; left: 5%; animation-delay: 3s; }
.blob-3 { width: 350px; height: 350px; background: rgba(0,255,136,0.05); top: 20%; left: -8%; animation-delay: 1s; }
.blob-4 { width: 300px; height: 300px; background: rgba(0,255,136,0.06); bottom: 5%; right: 5%; animation-delay: 2s; }
.blob-5 { width: 400px; height: 400px; background: rgba(0,255,136,0.07); top: 0; left: 30%; animation-delay: 4s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.04); }
  66%       { transform: translate(-15px, 15px) scale(0.97); }
}

/* grid background */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,255,136,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.bg-gradient-img {
  position: absolute; top: 0; right: 0; z-index: 0;
  opacity: 0.3; pointer-events: none;
  filter: hue-rotate(100deg) saturate(1.6);
}

/* ═══════════════════════════════════════════
   HOME SECTION
═══════════════════════════════════════════ */
.section-home {
  display: flex; align-items: center; padding-top: 5rem;
}
.home-inner {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto 0 1.5rem;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  justify-content: flex-start; gap: 7rem;
  width: 100%;
}

/* badge */
.home-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(0,255,136,0.07); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.45rem 1rem;
  font-size: 0.78rem; letter-spacing: 0.1em;
  color: var(--green); margin-bottom: 1.8rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 4px var(--green); transform: scale(1); }
  50%      { box-shadow: 0 0 12px var(--green); transform: scale(1.25); }
}

/* hero title */
.hero-title {
  font-family: "Lora", serif, sans-serif;
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 600; line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
  display: block;
}
.hero-line { display: block; overflow: hidden; }
.hero-line.line-2 { color: var(--green); text-shadow: 0 0 40px rgba(0,255,136,0.2); }
.hero-accent { color: var(--green); font-size: 1.2em; line-height: 0.5; display: inline-block; }

.hero-sub {
  font-size: 1rem; color: var(--muted); max-width: 34rem;
  line-height: 1.8; margin-bottom: 2rem;
}
.hero-sub strong { color: var(--text); font-weight: 500; }

/* stats */
.hero-stats {
  display: flex; align-items: center; gap: 1.5rem;
  margin-bottom: 2.4rem;
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  color: var(--green); line-height: 1; letter-spacing: -0.02em;
}
.stat-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* action buttons */
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green); color: #000;
  border: none; padding: 0.85rem 2rem; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.06em; cursor: none; text-decoration: none;
  transition: background 0.2s, box-shadow 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%) skewX(-10deg);
  transition: transform 0.4s ease;
}
.btn-primary:hover::before { transform: translateX(110%) skewX(-10deg); }
.btn-primary:hover {
  background: #1affaa;
  box-shadow: 0 0 30px rgba(0,255,136,0.35), 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.85rem 2rem; border-radius: 6px;
  font-family: 'DM Mono', monospace; font-size: 0.9rem;
  letter-spacing: 0.06em; cursor: none; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  border-color: var(--green); color: var(--green); background: rgba(0,255,136,0.05); 
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); background:rgba(20, 55, 38, 0.75) ; }

/* socials */
.hero-socials { display: flex; gap: 0.9rem; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.social-link:hover {
  border-color: var(--green); color: var(--green);
  background: rgba(0,255,136,0.06); transform: translateY(-2px);
}

/* ─── AVATAR 3D ─── */
.avatar-side {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.2rem;
  margin-left: 16rem;
  flex-shrink: 0; z-index: 2;
}
.avatar-glow-ring {
  position: absolute;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,136,0.04) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.scene { perspective: 700px; perspective-origin: 50% 50%; }

.card {
  width: 300px; height: 300px;
  position: relative; transform-style: preserve-3d;
  will-change: transform;
  border: 1px solid rgba(0,255,136,0.12); border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,255,136,0.03), 0 30px 90px rgba(0,0,0,0.8), 0 0 80px rgba(0,255,136,0.05);
}
.card-clip {
  position: absolute; inset: 0; border-radius: 50%;
  overflow: hidden; background: rgba(0,255,136,0.03);
}
.card-clip img {
  width: 100%; height: 100%; border-radius: 50%;
  object-fit: cover; object-position: center top;
  display: block; pointer-events: none; user-select: none;
}
.shine {
  position: absolute; inset: 0; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle at var(--sx,50%) var(--sy,50%), rgba(0,255,136,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(0,255,136,0.05);
  pointer-events: none; animation: ringPulse 4s ease-in-out infinite;
}
.r1 { width: 360px; height: 360px; top: -30px; left: -30px; animation-delay: 0s; }
.r2 { width: 440px; height: 440px; top: -70px; left: -70px; animation-delay: 1s; }
.r3 { width: 520px; height: 520px; top: -110px; left: -110px; animation-delay: 2s; }

@keyframes ringPulse {
  0%,100% { opacity: 0.18; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.01); }
}

.avatar-tag {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.at-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* hide language flag icons */
.lang-item .flag-svg { display: none; }

/* floating pills */
.float-pill {
  position: absolute;
  display: flex; align-items: center; gap: 0.45rem;
  background: rgba(5,5,7,0.85); border: 1px solid var(--border);
  border-radius: 50px; padding: 0.4rem 0.85rem;
  font-size: 0.72rem; color: var(--text); letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
  animation: pillFloat 4s ease-in-out infinite;
}
.fp1 { top: 10px;  left: -110px; animation-delay: 0s; }
.fp2 { bottom: 60px; left: -120px; animation-delay: 1.2s; }
.fp3 { top: 40px; right: -110px; animation-delay: 0.6s; }

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

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); z-index: 2;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollLineAnim 2s ease-in-out infinite;
}
@keyframes scrollLineAnim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ═══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */
.section-about { background: var(--bg2); padding-top: 5rem; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
  position: relative; z-index: 1;
}
.about-bio { display: flex; flex-direction: column; gap: 1.2rem; }
.bio-lead { font-size: 1.15rem; color: var(--text); line-height: 1.7; }
.bio-body { font-size: 0.95rem; color: var(--muted); line-height: 1.9; }

/* timeline */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 0.5rem; }
.tl-item {
  display: flex; gap: 1.2rem; padding-bottom: 1.5rem;
  position: relative;
}
.tl-item::before {
  content: ''; position: absolute; left: 7px; top: 20px; bottom: 0;
  width: 1px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg2); border: 2px solid var(--green);
  box-shadow: 0 0 8px var(--green-glow); margin-top: 3px;
  position: relative; z-index: 1;
}
.tl-body { display: flex; flex-direction: column; gap: 0.2rem; }
.tl-date { font-size: 0.72rem; color: var(--green); letter-spacing: 0.1em; opacity: 0.7; }
.tl-body strong { font-size: 0.9rem; color: var(--text); font-weight: 500; }
.tl-body span { font-size: 0.82rem; color: var(--muted); }

/* language row */
.lang-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.5rem; }
.lang-item {
  display: flex; align-items: center; gap: 0.55rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.5rem 0.9rem; font-size: 0.8rem;
  transition: border-color 0.2s;
}
.lang-item:hover { border-color: var(--border-hover); }
.flag-svg { width: 20px; height: 14px; border-radius: 2px; flex-shrink: 0; }
.lang-level {
  font-size: 0.68rem; padding: 0.15rem 0.45rem;
  border-radius: 4px; font-weight: 500; letter-spacing: 0.05em;
}
.lang-level.native { background: rgba(0,255,136,0.14); color: var(--green); }
.lang-level.inter  { background: rgba(0,200,100,0.1); color: var(--green-mid); }
.lang-level.beg    { background: rgba(255,255,255,0.06); color: var(--muted); }

/* skills grid */
.skills-wrap { position: relative; z-index: 1; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.skill-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.25rem 1.1rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.25s;
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,255,136,0.3), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(0,255,136,0.06);
  transform: translateY(-4px);
  background: rgba(0,255,136,0.03);
}
.skill-card:hover::before { opacity: 1; }

.sk-header {
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.9rem;
}
.sk-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.skill-card h4 {
  font-family: 'Syne', sans-serif; font-size: 0.86rem;
  font-weight: 600; color: var(--text); letter-spacing: 0.04em;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.skill-tags span {
  font-size: 0.68rem; padding: 0.2rem 0.5rem;
  background: rgba(0,255,136,0.06); border: 1px solid rgba(0,255,136,0.12);
  border-radius: 4px; color: var(--green-mid); letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   PROJECTS SECTION
═══════════════════════════════════════════ */
.section-projects { background: var(--bg); padding-top: 5rem; }

.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem;
  position: relative; z-index: 1;
}

.project-card {
  position: relative; border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden; cursor: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s, box-shadow 0.3s;
}
.project-card.featured { grid-column: span 2; }

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,136,0.07);
}

/* top gradient line on hover */
.project-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover::before { opacity: 1; }

.pc-inner {
  padding: 1.8rem 1.7rem;
  display: flex; flex-direction: column; gap: 0.8rem;
  height: 100%;
}
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pc-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.25em;
  color: var(--green); opacity: 0.55;
}
.pc-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.pc-tags span {
  font-size: 0.65rem; padding: 0.16rem 0.45rem;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.18);
  border-radius: 4px; color: var(--green); letter-spacing: 0.04em;
}
.pc-icon-wrap {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0,255,136,0.07); border: 1px solid rgba(0,255,136,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s;
}
.project-card:hover .pc-icon-wrap { background: rgba(0,255,136,0.13); }

.project-card h3 {
  font-family: 'Syne', sans-serif; font-size: 1.05rem;
  font-weight: 600; color: var(--text); line-height: 1.3;
}
.project-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; flex: 1; }
.pc-stack {
  font-size: 0.7rem; color: rgba(0,255,136,0.4); letter-spacing: 0.08em;
  padding-top: 0.8rem; border-top: 1px solid var(--border);
  margin-top: auto;
}
.pc-arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  color: var(--muted); opacity: 0;
  transform: translateX(-4px) translateY(4px);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}
.project-card:hover .pc-arrow {
  opacity: 1; transform: translateX(0) translateY(0); color: var(--green);
}
.pc-glow {
  position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(0,255,136,0.05) 0%, transparent 60%);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.project-card:hover .pc-glow { opacity: 1; }

/* ═══════════════════════════════════════════
   CERTIFICATES SECTION
═══════════════════════════════════════════ */
.section-certificates { background: var(--bg); padding-top: 5rem; }

.certificates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem;
  position: relative; z-index: 1;
}

.cert-card {
  position: relative; border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden; padding: 1.8rem;
  display: flex; flex-direction: column; gap: 1rem;
  cursor: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.25s, box-shadow 0.3s;
}

.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,255,136,0.07);
}

.cert-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, var(--green), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.cert-card:hover::before { opacity: 1; }

.cert-image {
  width: 100%; height: 200px;
  border-radius: 12px; object-fit: cover;
  margin-bottom: 0.5rem; border: 1px solid rgba(0,255,136,0.15);
  transition: transform 0.3s, filter 0.3s;
}

.cert-card:hover .cert-image {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.cert-card h3 {
  font-family: 'Syne', sans-serif; font-size: 1rem;
  font-weight: 600; color: var(--text); line-height: 1.3;
}

.cert-issuer {
  font-size: 0.85rem; color: var(--green); opacity: 0.8; letter-spacing: 0.05em;
}

.cert-date {
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em;
}

[data-theme="light"] .cert-image {
  border: 1px solid rgba(0, 170, 85, 0.2);
}

[data-theme="light"] .cert-icon {
  background: rgba(0, 170, 85, 0.12);
  border: 1px solid rgba(0, 170, 85, 0.25);
}

[data-theme="light"] .cert-card:hover .cert-icon {
  background: rgba(0, 170, 85, 0.2);
}

[data-theme="light"] .cert-issuer {
  color: #004422;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════ */
.section-contact { background: var(--bg2); padding-top: 5rem; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
  position: relative; z-index: 1;
}
.contact-lead {
  font-size: 1.05rem; color: var(--muted); line-height: 1.9; margin-bottom: 2rem;
}
.contact-cards { display: flex; flex-direction: column; gap: 0.85rem; }

.ccard {
  display: flex; align-items: center; gap: 1.1rem;
  text-decoration: none; color: inherit;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.05rem 1.2rem;
  transition: border-color 0.25s, transform 0.2s, background 0.25s;
  position: relative; overflow: hidden;
}
.ccard::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--green); transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.25s ease;
}
.ccard:hover { border-color: var(--border-hover); transform: translateX(5px); background: rgba(0,255,136,0.03); }
.ccard:hover::before { transform: scaleY(1); }

.ccard-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.ccard-info { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.ccard-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.ccard-value { font-size: 0.85rem; color: var(--text); }
.ccard-arrow { color: var(--muted); opacity: 0; transition: opacity 0.2s, color 0.2s; }
.ccard:hover .ccard-arrow { opacity: 1; color: var(--green); }

/* CTA card */
.cta-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.8rem;
  display: flex; flex-direction: column; gap: 1.4rem;
  position: relative; overflow: hidden;
}
.cta-bg-lines {
  position: absolute; inset: 0; opacity: 0.25; pointer-events: none;
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 10px,
    rgba(0,255,136,0.03) 10px, rgba(0,255,136,0.03) 11px
  );
}
.cta-status {
  display: flex; align-items: center; gap: 0.65rem;
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green); opacity: 0.8;
}
.cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px var(--green); }
  50%      { opacity: 0.4; box-shadow: 0 0 2px var(--green); }
}
.cta-card h3 {
  font-family: 'Syne', sans-serif; font-size: 1.7rem;
  font-weight: 700; line-height: 1.25; letter-spacing: 0.02em;
}
.cta-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 1.8rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Syne', sans-serif; font-size: 0.85rem;
  font-weight: 700; letter-spacing: 0.2em; color: var(--green); opacity: 0.6;
}
.footer-copy { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
.footer-socials { display: flex; gap: 0.8rem; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 6px;
  border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--green); color: var(--green); }

/* coords */
#coords {
  position: fixed; bottom: 16px; right: 20px;
  font-size: 9px; color: rgba(0,255,136,0.25);
  letter-spacing: 0.12em; pointer-events: none; z-index: 9000;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .home-inner { flex-direction: column; text-align: center; gap: 3rem; padding-top: 2rem; }
  .hero-title  { font-size: clamp(3rem, 8vw, 4.5rem); }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-stats { justify-content: center; }
  .float-pill { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 1rem 1.5rem; }
  .navbar .logo { margin-right: 0; }
  .nav-links, .btn-cv-wrap { display: none; }
  .hamburger { display: flex; }
  .home-inner { padding: 0 1.5rem; }
  .section-inner { padding: 3rem 1.5rem; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }
  .card { width: 240px; height: 240px; }
  .r1 { width: 300px; height: 300px; }
  .r2 { display: none; }
  .r3 { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}
/* ══════════════════════════════════════════
   AI CHAT BUTTON
══════════════════════════════════════════ */
#ai-chat-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green, #00ff88);
  color: #0a0a0a;
  border: none;
  border-radius: 50px;
  padding: 12px 20px 12px 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0,255,136,0.5), 0 8px 32px rgba(0,255,136,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
#ai-chat-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 6px rgba(0,255,136,0.12), 0 12px 40px rgba(0,255,136,0.35);
}
.ai-pulse-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 100%; height: 100%;
  border-radius: 50px;
  border: 2px solid var(--green, #00ff88);
  animation: ai-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ai-pulse {
  0%   { transform: translate(-50%,-50%) scale(1);   opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(1.5); opacity: 0; }
}

/* ══════════════════════════════════════════
   AI CHAT PANEL
══════════════════════════════════════════ */
#ai-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 32px;
  z-index: 9001;
  width: 360px;
  max-height: 520px;
  background: rgba(10,10,10,0.96);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,255,136,0.08);
  backdrop-filter: blur(18px);
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), opacity 0.25s ease;
}
#ai-chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
.acp-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.acp-avatar { position: relative; flex-shrink: 0; }
.acp-avatar img {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(0,255,136,0.35);
}
.acp-online {
  position: absolute; bottom: 1px; right: 1px;
  width: 9px; height: 9px;
  background: #00ff88; border-radius: 50%; border: 2px solid #0a0a0a;
}
.acp-meta { flex: 1; display: flex; flex-direction: column; }
.acp-meta strong { font-family: 'Syne', sans-serif; font-size: 14px; color: #fff; font-weight: 700; }
.acp-meta span { font-size: 10px; color: rgba(255,255,255,0.4); font-family: 'DM Mono', monospace; }
#ai-close-btn {
  background: none; border: none; color: rgba(255,255,255,0.4);
  cursor: pointer; padding: 4px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
#ai-close-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
#acp-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(0,255,136,0.2) transparent;
}
.msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.55;
  animation: msgIn 0.25s cubic-bezier(.34,1.56,.64,1);
}
@keyframes msgIn {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.msg-ai {
  background: rgba(0,255,136,0.08); border: 1px solid rgba(0,255,136,0.15);
  color: rgba(255,255,255,0.88); align-self: flex-start; border-bottom-left-radius: 4px;
}
.msg-user {
  background: var(--green, #00ff88); color: #0a0a0a;
  align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600;
}
.msg-ai p { margin: 0; }
.msg-ai ul { margin: 6px 0 0 16px; padding: 0; }
.msg-ai li { margin: 2px 0; }
.msg-typing { display: flex; align-items: center; gap: 5px; padding: 12px 16px; }
.typing-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green, #00ff88); opacity: 0.6;
  animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30%         { transform: translateY(-5px); opacity: 1; }
}
.msg-suggestions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.suggestion-chip {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(0,255,136,0.2);
  color: rgba(255,255,255,0.7); font-family: 'DM Mono', monospace;
  font-size: 11px; padding: 5px 10px; border-radius: 20px; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.suggestion-chip:hover {
  background: rgba(0,255,136,0.12); border-color: rgba(0,255,136,0.45); color: #fff;
}
.acp-input-row {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
#acp-input {
  flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px; color: #fff; font-family: 'DM Mono', monospace;
  font-size: 12.5px; padding: 9px 16px; outline: none; transition: border-color 0.2s;
}
#acp-input::placeholder { color: rgba(255,255,255,0.3); }
#acp-input:focus { border-color: rgba(0,255,136,0.4); }
#acp-send-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green, #00ff88); border: none; color: #0a0a0a;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.15s, opacity 0.15s;
}
#acp-send-btn:hover { transform: scale(1.1); }
#acp-send-btn:disabled { opacity: 0.4; cursor: default; transform: none; }

@media (max-width: 480px) {
  #ai-chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 80px; }
  #ai-chat-btn   { right: 16px; bottom: 16px; }
}