/* ============================================================
   ROOT & RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base:    #050a12;
  --bg-card:    #0b1220;
  --bg-alt:     #080f1a;
  --blue-core:  #3B82F6;
  --blue-dark:  #1D4ED8;
  --blue-glow:  rgba(59,130,246,0.18);
  --blue-pulse: rgba(59,130,246,0.35);
  --text-prime: #E8EDF5;
  --text-muted: #7A8BA8;
  --text-dim:   #3D5070;
  --border:     rgba(59,130,246,0.15);
  --border-hi:  rgba(59,130,246,0.4);
  --font-main:  'Space Grotesk', sans-serif;
  --font-mono:  'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-prime);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--blue-pulse); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-dark); border-radius: 3px; }

/* ============================================================
   PARTICLE CANVAS
============================================================ */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   NAVBAR
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

#navbar.scrolled {
  background: rgba(5,10,18,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-prime);
  letter-spacing: 2px;
}
.logo-bracket { color: var(--blue-core); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--blue-core);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text-prime); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--blue-core) !important;
  color: #fff !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-prime);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(5,10,18,0.98);
  z-index: 99;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { margin: 1.5rem 0; }
.mobile-link {
  color: var(--text-prime);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--blue-core); }

/* ============================================================
   HERO
============================================================ */
#hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 4rem 4rem;
  gap: 4rem;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}

#hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-core), transparent);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-core);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.dot-pulse {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--blue-core);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--blue-pulse); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 1.5rem;
}
.name-accent {
  color: var(--blue-core);
  position: relative;
}
.name-accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-core), transparent);
  border-radius: 2px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue-core);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--blue-core);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-hi);
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
}
.btn-secondary:hover {
  background: var(--blue-glow);
  transform: translateY(-2px);
}

.full-width { width: 100%; text-align: center; }

.hero-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--blue-core);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 500px;
}

.circuit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin-slow linear infinite;
}
.ring-1 { width: 300px; height: 300px; animation-duration: 30s; }
.ring-2 { width: 400px; height: 400px; border-style: dashed; animation-duration: 50s; animation-direction: reverse; }
.ring-3 { width: 480px; height: 480px; animation-duration: 80s; border-color: rgba(59,130,246,0.06); }

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ===== AVATAR DENGAN FOTO PROFIL ===== */
.avatar-frame {
  position: relative;
  width: 180px;
  height: 180px;
  z-index: 2;
  perspective: 600px;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-alt));
  border: 3px solid var(--blue-core);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(59,130,246,0.25), inset 0 0 40px rgba(59,130,246,0.05);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
  position: relative;
}

.avatar-inner:hover {
  transform: rotateX(8deg) rotateY(15deg) scale(1.05);
  box-shadow: 0 20px 60px rgba(59,130,246,0.4);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.float-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-prime);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
  z-index: 3;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,0.85);
  min-width: 70px;
}
.badge-1 { top: 20%; right: 5%; animation-delay: 0s; }
.badge-2 { bottom: 25%; left: 5%; animation-delay: 1.3s; }
.badge-3 { top: 60%; right: 8%; animation-delay: 2.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--blue-core), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  position: relative;
  z-index: 1;
  padding: 7rem 0;
  max-width: 1400px;
  margin: 0 auto;
}
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
}

.section-header {
  margin-bottom: 4rem;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue-core);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

/* ============================================================
   ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-lead {
  font-size: 1.2rem;
  color: var(--text-prime);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.info-value {
  font-size: 0.95rem;
  color: var(--text-prime);
  font-weight: 500;
}

/* Terminal Card 3D */
.terminal-card {
  background: #030810;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  perspective: 800px;
}
.terminal-card:hover {
  transform: rotateX(3deg) rotateY(5deg) translateY(-8px);
  box-shadow: 0 30px 80px rgba(59,130,246,0.2);
}
.terminal-header {
  background: #0b1220;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-dot.red { background: #ef4444; }
.t-dot.yellow { background: #eab308; }
.t-dot.green { background: #22c55e; }
.t-title { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-dim); margin-left: auto; }
.terminal-body { padding: 1.5rem; }
.terminal-body pre { font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; }
.t-key { color: #93C5FD; }
.t-str { color: #86EFAC; }
.t-num { color: #FCD34D; }
.t-bracket { color: var(--text-muted); }
.blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* ============================================================
   SKILLS
============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.category-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-prime);
  margin-bottom: 1.5rem;
}

.skill-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.skill-pct { color: var(--blue-core); font-family: var(--font-mono); font-size: 0.8rem; }
.skill-bar-track {
  height: 6px;
  background: rgba(59,130,246,0.08);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-core));
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(59,130,246,0.4);
}
.skill-bar-fill.animated { width: var(--target); }

.soft-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.soft-skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
  transform-style: preserve-3d;
  perspective: 400px;
}
.soft-skill-card:hover {
  border-color: var(--blue-core);
  transform: translateY(-5px) rotateX(4deg);
  box-shadow: 0 12px 30px var(--blue-glow);
}
.soft-skill-card span { font-size: 0.78rem; color: var(--text-muted); }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-tag {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.tech-tag.featured {
  border-color: var(--blue-core);
  color: var(--blue-core);
  background: rgba(59,130,246,0.06);
}
.tech-tag:hover { border-color: var(--blue-core); color: var(--blue-core); transform: translateY(-2px); }

/* ============================================================
   PROJECTS
============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
  cursor: default;
  transform-style: preserve-3d;
  perspective: 600px;
}
.project-card:hover {
  border-color: var(--blue-core);
  transform: rotateX(3deg) rotateY(4deg) translateY(-8px);
  box-shadow: 0 20px 60px rgba(59,130,246,0.15);
}
.project-card:hover .project-glow {
  opacity: 1;
}
.project-glow {
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(59,130,246,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.project-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 1.25rem;
}
.project-icon-wrap { margin-bottom: 1.25rem; }
.project-icon {
  width: 64px; height: 64px;
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-prime);
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.project-points {
  list-style: none;
  margin-bottom: 1.25rem;
}
.project-points li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}
.project-points li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--blue-core);
  font-size: 0.75rem;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.project-tags span {
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--border-hi);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.73rem;
  color: var(--blue-core);
  font-family: var(--font-mono);
}

/* ============================================================
   TIMELINE
============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}
.timeline-line {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-core), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}
.timeline-dot {
  position: absolute;
  left: -2.8rem;
  top: 0.4rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--text-dim);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.timeline-item.active .timeline-dot {
  border-color: var(--blue-core);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.15);
  background: var(--blue-core);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 500px;
}
.timeline-item.active .timeline-card {
  border-color: rgba(59,130,246,0.3);
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.05);
}
.timeline-card:hover {
  transform: rotateX(2deg) rotateY(3deg) translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.tl-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.tl-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
}
.tl-badge.current { background: rgba(59,130,246,0.15); color: var(--blue-core); }
.tl-badge.done { background: rgba(34,197,94,0.12); color: #22c55e; }
.tl-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-left: auto; }
.tl-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.tl-degree { color: var(--blue-core); font-size: 0.88rem; font-weight: 500; margin-bottom: 0.75rem; }
.tl-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.tl-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tl-tags span {
  background: rgba(59,130,246,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   LANGUAGE
============================================================ */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.lang-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 400px;
}
.lang-card:hover {
  border-color: var(--blue-core);
  transform: rotateX(4deg) rotateY(3deg) translateY(-6px);
  box-shadow: 0 15px 40px var(--blue-glow);
}
.lang-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.25rem; }
.lang-card p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }
.lang-dots { display: flex; gap: 6px; justify-content: center; }
.ldot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: 1px solid var(--border-hi);
}
.ldot.active { background: var(--blue-core); border-color: var(--blue-core); }

/* ============================================================
   CONTACT
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contact-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-item:hover {
  border-color: var(--blue-core);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.08);
}
.contact-item-label { font-size: 0.72rem; color: var(--text-dim); display: block; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-mono); }
.contact-item-value { font-size: 0.9rem; color: var(--text-prime); font-weight: 500; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 500px;
}
.contact-card:hover {
  transform: rotateX(2deg) rotateY(3deg) translateY(-5px);
  box-shadow: 0 20px 50px rgba(59,130,246,0.08);
}
.contact-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text-prime);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-core); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-text { font-size: 0.85rem; color: var(--text-muted); }
.footer-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.25rem; }

/* ============================================================
   ANIMATIONS (scroll reveal)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  #hero {
    padding: 100px 3rem 4rem;
    gap: 3rem;
  }
  .container {
    padding: 0 3rem;
  }
}

@media (max-width: 900px) {
  #navbar { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  #hero {
    grid-template-columns: 1fr;
    padding: 100px 2rem 4rem;
    text-align: center;
  }
  .hero-visual { height: 300px; order: -1; }
  .ring-2, .ring-3 { display: none; }
  .ring-1 { width: 200px; height: 200px; }
  .avatar-frame { width: 130px; height: 130px; }
  .badge-1, .badge-3 { right: 2%; }
  .badge-2 { left: 2%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-tagline { margin: 0 auto 2.5rem; max-width: 100%; }
  .scroll-indicator { display: none; }

  .container { padding: 0 2rem; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .soft-skills-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding: 4rem 0; }
}

@media (max-width: 500px) {
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .about-info-grid { grid-template-columns: 1fr; }
  .hero-name { letter-spacing: -1px; }
  .soft-skills-grid { grid-template-columns: 1fr 1fr; }
  #hero { padding: 80px 1.5rem 3rem; }
  .container { padding: 0 1.5rem; }
  .avatar-frame { width: 100px; height: 100px; }
}