/* ============================================
   VARIABLES & RESET
   ============================================ */

:root {
  --bg: #03031f;
  --bg2: #060618;
  --fg: #e8e4d8;
  --accent: #7c6fff;
  --accent2: #ff6b6b;
  --accent3: #4dffb4;
  --muted: #d4d4e8;
  --border: #383853;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  cursor: none;
}


/* ============================================
   CURSOR
   ============================================ */

.cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.15s, background 0.2s;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(124, 111, 255, 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}


/* ============================================
   NAVIGATION
   ============================================ */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  border-bottom: 1px solid transparent;
  transition: all 0.4s;
}

nav.scrolled {
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(20px);
  padding: 18px 56px;
  border-color: var(--border);
}

.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.15em;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:hover {
  color: var(--fg);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 56px 80px;
  position: relative;
  z-index: 1;
  gap: 80px;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 111, 255, 0.07) 0%, transparent 60%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: bgpulse 6s ease-in-out infinite;
}

@keyframes bgpulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.3s;
}

.edot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  animation: blink 2s ease-in-out infinite;
}

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

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(48px, 7vw, 100px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.5s;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-typed {
  font-family: 'DM Mono', monospace;
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--muted);
  margin-bottom: 52px;
  height: 28px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.7s;
}

.typed-text {
  color: var(--fg);
}

.typed-cur {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.9s;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: none;
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 111, 255, 0.45);
}

.btn-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover .btn-glow-effect {
  left: 100%;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 32px;
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn-outline:hover {
  border-color: var(--accent3);
  color: var(--accent3);
  box-shadow: 0 0 20px rgba(77, 255, 180, 0.1);
}


/* ============================================
   AVATAR
   ============================================ */

.hero-avatar-wrap {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.1s;
}

.avatar-outer {
  position: relative;
  width: 390px;
  height: 390px;
}

.avatar-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-right-color: rgba(124, 111, 255, 0.3);
  animation: spin 8s linear infinite;
}

.avatar-ring2 {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(124, 111, 255, 0.15);
  animation: spin 14s linear infinite reverse;
}

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

.avatar-circle {
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg2) 0%, #1a1a3e 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.avatar-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124, 111, 255, 0.15), transparent 60%);
  pointer-events: none;
}

.avatar-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(124, 111, 255, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 2;
  border-radius: 50%;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.avatar-initials {
  font-family: 'Syne', sans-serif;
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.avatar-pulse {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 111, 255, 0.2), transparent);
  animation: avatarPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes avatarPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.avatar-shine {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  animation: shineRotate 8s linear infinite;
  z-index: 3;
}

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

.avatar-badge {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 20, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent3);
  white-space: nowrap;
  z-index: 10;
}

.avatar-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent3);
  animation: blink 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 1.4s;
}

.scroll-bar {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-bar::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent3);
  animation: scrollline 2s ease-in-out infinite;
}

@keyframes scrollline {
  0% { top: -100%; }
  100% { top: 100%; }
}

.mouse-scroll {
  width: 24px;
  height: 40px;
  border: 2px solid var(--muted);
  border-radius: 20px;
  position: relative;
  margin-left: 10px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
  }
}


/* ============================================
   HERO DECORATIVE EFFECTS
   ============================================ */

/* Particles */
.hero-particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  background: rgba(124, 111, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% {
    transform: translateY(-20vh) translateX(var(--tx, 50px)) rotate(360deg);
    opacity: 0;
  }
}

/* Grid Overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(124, 111, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(124, 111, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  transform: skewY(-3deg);
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: skewY(-3deg) translateY(0); }
  100% { transform: skewY(-3deg) translateY(50px); }
}

/* Code Rain */
.hero-code-rain {
  position: absolute;
  right: 5%;
  top: 20%;
  opacity: 0.15;
  pointer-events: none;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--accent3);
  text-align: right;
  z-index: 0;
}

.code-line {
  margin: 8px 0;
  animation: fadeCode 3s ease-in-out infinite;
  white-space: nowrap;
}

.code-line:nth-child(1) { animation-delay: 0s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 2s; }
.code-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes fadeCode {
  0%, 100% { opacity: 0; transform: translateX(20px); }
  50% { opacity: 0.6; transform: translateX(0); }
}

/* Floating Cubes */
.hero-floating-cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.cube {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(124, 111, 255, 0.2);
  background: rgba(124, 111, 255, 0.02);
  backdrop-filter: blur(2px);
  animation: floatCube 12s ease-in-out infinite;
}

.cube-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  width: 80px;
  height: 80px;
}

.cube-2 {
  bottom: 20%;
  right: 12%;
  animation-delay: -3s;
  width: 50px;
  height: 50px;
  border-color: rgba(77, 255, 180, 0.3);
}

.cube-3 {
  top: 50%;
  left: 5%;
  animation-delay: -6s;
  width: 40px;
  height: 40px;
  border-color: rgba(255, 107, 107, 0.3);
}

.cube-4 {
  bottom: 30%;
  left: 15%;
  animation-delay: -2s;
  width: 30px;
  height: 30px;
  border-color: rgba(124, 111, 255, 0.4);
}

@keyframes floatCube {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) rotate(45deg);
    opacity: 0.7;
  }
}

/* Glow Orb */
.hero-glow-orb {
  position: absolute;
  top: 30%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 111, 255, 0.15) 0%, rgba(124, 111, 255, 0) 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Laser Line */
.hero-laser-line {
  position: absolute;
  bottom: 20%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent3), transparent);
  animation: laserMove 3s ease-in-out infinite;
  pointer-events: none;
  opacity: 0.4;
}

@keyframes laserMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
    opacity: 0.6;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Data Streams */
.hero-data-streams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.stream {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: streamFlow 4s linear infinite;
}

.stream-1 { left: 10%; animation-delay: 0s; }
.stream-2 { left: 30%; animation-delay: 1s; }
.stream-3 { left: 70%; animation-delay: 2s; }

@keyframes streamFlow {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  50% { opacity: 0.3; }
  100% {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.7s ease forwards 0.8s;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label-sm {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* AI Expert Badge */
.badge-new {
  background: rgba(77, 255, 180, 0.15);
  border: 1px solid rgba(77, 255, 180, 0.3);
  color: var(--accent3);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(77, 255, 180, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(77, 255, 180, 0);
  }
}

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

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #4f46e5, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
  text-shadow: 0 0 20px rgba(131, 59, 246, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================
   MARQUEE
   ============================================ */

.marquee-wrap {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.marquee-track {
  display: flex;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0 28px;
}

.marquee-track span.sep {
  color: var(--accent);
  padding: 0 4px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}


/* ============================================
   GENERAL SECTIONS
   ============================================ */

section {
  position: relative;
  z-index: 1;
  padding: 130px 56px;
  border-top: 1px solid var(--border);
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 80px;
}

.sec-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.sec-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ============================================
   ABOUT SECTION
   ============================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
}

.about-text p {
  color: #666677;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--fg), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-b2 {
  -webkit-text-fill-color: unset !important;
  background: none !important;
  color: var(--accent3) !important;
  font-size: 36px !important;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.skill-group {
  background: var(--bg2);
  padding: 36px;
  transition: background 0.3s;
}

.skill-group:hover {
  background: #0f0f1a;
}

.sgt {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sgt::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent3);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: #888899;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 2px;
  transition: all 0.2s;
}

.pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(124, 111, 255, 0.06);
}


/* ============================================
   TIMELINE SECTION
   ============================================ */

.timeline-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 36px;
}

.timeline-wrap::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), rgba(124, 111, 255, 0.05));
}

.tl-item {
  position: relative;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-dot {
  position: absolute;
  left: -30px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  transition: all 0.3s;
  z-index: 1;
}

.tl-item:hover .tl-dot {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(124, 111, 255, 0.7);
}

.tl-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 3px;
}

.tl-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tl-desc {
  font-size: 14px;
  color: #555566;
  line-height: 1.75;
}


/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pcard {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 40px;
  align-items: start;
  padding: 40px 48px;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  cursor: none;
  transition: border-color 0.3s;
}

.pcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 111, 255, 0.04), rgba(255, 107, 107, 0.02));
  opacity: 0;
  transition: opacity 0.4s;
}

.pcard:hover {
  border-color: rgba(124, 111, 255, 0.4);
}

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

.pidx {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color 0.3s;
  padding-top: 4px;
}

.pcard:hover .pidx {
  color: rgba(124, 111, 255, 0.3);
}

.pbody h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.pcard:hover .pbody h3 {
  color: var(--accent);
}

.pdesc {
  color: #55556a;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 580px;
}

.prole {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #6b6b8f;
  margin-bottom: 14px;
  font-style: italic;
}

.pstack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ptag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 10px;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: all 0.2s;
}

.pcard:hover .ptag {
  border-color: rgba(124, 111, 255, 0.3);
  color: #888899;
}

.pbadge {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.b-live {
  color: var(--accent3);
  border: 1px solid rgba(77, 255, 180, 0.3);
}

.b-dev {
  color: var(--accent2);
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.b-done {
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.b-study {
  color: #a88fff;
  border: 1px solid rgba(168, 143, 255, 0.3);
}

.parr {
  font-family: 'DM Mono', monospace;
  font-size: 24px;
  color: var(--border);
  transition: color 0.3s, transform 0.3s;
  padding-top: 6px;
}

.pcard:hover .parr {
  color: var(--accent);
  transform: translate(4px, -4px);
}

.pcard.hidden {
  display: none;
}

.proj-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pf-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}

.pf-btn:hover {
  border-color: rgba(124, 111, 255, 0.4);
  color: var(--fg);
}

.pf-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 111, 255, 0.08);
}


/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-left h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 28px;
}

.contact-left p {
  color: #666677;
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 48px;
}

.contact-items {
  display: flex;
  flex-direction: column;
}

.ci {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s;
}

.ci:hover {
  padding-left: 8px;
}

.ci:hover .civ {
  color: var(--accent3);
}

.cil {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  width: 70px;
  flex-shrink: 0;
}

.civ {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: #888899;
  transition: color 0.2s;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field input,
.field textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  padding: 14px 18px;
  outline: none;
  resize: none;
  border-radius: 2px;
  cursor: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 111, 255, 0.08);
}

.field textarea {
  height: 130px;
}

.form-btn {
  background: linear-gradient(135deg, var(--accent), #9b6fff);
  border: none;
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 17px;
  border-radius: 2px;
  cursor: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.3s;
}

.form-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 111, 255, 0.35);
}

.form-note {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: -8px;
}

.form-note a {
  color: var(--accent);
  text-decoration: none;
}

.form-wrap {
  position: relative;
}

.form-success {
  position: absolute;
  inset: 0;
  background: var(--bg2);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
}

.form-success.show {
  opacity: 1;
  pointer-events: all;
}

.fs-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent3);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.fs-text {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--fg);
  text-align: center;
  line-height: 1.8;
}

.fs-text span {
  color: var(--muted);
  font-size: 11px;
}


/* ============================================
   FLOATING SHAPES
   ============================================ */

.shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.shape-hex {
  width: 120px;
  height: 120px;
  border: 1px solid rgba(124, 111, 255, 0.08);
  transform: rotate(30deg);
  animation: float1 8s ease-in-out infinite;
}

.shape-cross {
  width: 60px;
  height: 60px;
  position: relative;
  opacity: 0.12;
}

.shape-cross::before,
.shape-cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.shape-cross::before {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.shape-cross::after {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

@keyframes float1 {
  0%, 100% {
    transform: rotate(30deg) translateY(0);
  }
  50% {
    transform: rotate(30deg) translateY(-20px);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(180deg);
  }
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.in {
  opacity: 1;
  transform: scale(1);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }

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


/* ============================================
   FOOTER
   ============================================ */

footer {
  position: relative;
  z-index: 1;
  padding: 36px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

footer p {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.fa {
  color: var(--accent);
}

.fa3 {
  color: var(--accent3);
}


/* ============================================
   LANGUAGE SWITCH & BURGER MENU
   ============================================ */

.lang-switch {
  display: flex;
  gap: 5px;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid transparent;
  color: #c5c5f1;
  padding: 5px 9px 5px 5px;
  border-radius: 3px;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  outline: none;
}

.lang-btn:hover {
  border-color: rgba(124, 111, 255, 0.3);
  color: var(--fg);
  background: rgba(124, 111, 255, 0.05);
}

.lang-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 111, 255, 0.1);
}

.flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

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

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--muted);
  transition: all 0.3s;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--accent);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--accent);
}


/* ============================================
   AI CHAT
   ============================================ */

#ai-chat {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 340px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: 'DM Mono', monospace;
  z-index: 9999;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.chat-head {
  background: linear-gradient(135deg, #5c4fff, #9b6fff);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-head-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.06em;
}

.chat-head-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4dffb4;
  animation: blink 1.5s ease-in-out infinite;
}

.chat-tog {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  transition: color 0.2s;
}

.chat-tog:hover {
  color: #fff;
}

.chat-body {
  height: 240px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-body::-webkit-scrollbar {
  width: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
  background: var(--border);
}

.cmsg {
  font-size: 12px;
  line-height: 1.6;
  padding: 8px 12px;
  border-radius: 6px;
  max-width: 88%;
}

.cmsg.u {
  background: rgba(124, 111, 255, 0.15);
  border: 1px solid rgba(124, 111, 255, 0.2);
  color: var(--fg);
  align-self: flex-end;
}

.cmsg.a {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #999;
  align-self: flex-start;
}

.chat-input-row {
  display: flex;
  border-top: 1px solid var(--border);
}

#chatinput {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--fg);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  padding: 12px 14px;
  outline: none;
}

#chatinput::placeholder {
  color: var(--muted);
}

.chat-send {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  padding: 0 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-send:hover {
  color: var(--accent3);
}

#ai-chat.collapsed .chat-body,
#ai-chat.collapsed .chat-input-row {
  display: none;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 900px) {
  nav,
  nav.scrolled {
    padding: 20px 24px;
  }

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  #navLinks {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 8, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 150;
  }

  #navLinks.open {
    display: flex;
  }

  #navLinks a {
    font-size: 18px !important;
    letter-spacing: 0.2em;
  }

  section {
    padding: 80px 24px;
  }

  .hero {
    padding: 100px 24px 60px;
    flex-direction: column-reverse;
    gap: 40px;
  }

  .hero-avatar-wrap {
    align-self: center;
  }

  .avatar-outer {
    width: 260px;
    height: 260px;
  }

  .avatar-circle {
    width: 260px;
    height: 260px;
  }

  .avatar-initials {
    font-size: 50px;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }

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

  .pcard {
    grid-template-columns: 48px 1fr 32px;
    gap: 16px;
    padding: 28px 20px;
  }

  .pidx {
    font-size: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-scroll {
    display: none;
  }

  .hero-code-rain {
    display: none;
  }

  .hero-floating-cubes {
    opacity: 0.3;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
  }

  .hero-grid-overlay {
    display: none;
  }

  .hero-data-streams {
    opacity: 0.2;
  }
}