/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #050810;
  --bg-secondary: #0a0e1a;
  --bg-card: #0d1220;
  --bg-card-hover: #111830;
  --accent-blue: #3b82f6;
  --accent-blue-bright: #60a5fa;
  --accent-violet: #8b5cf6;
  --accent-violet-bright: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-emerald: #34d399;
  --accent-orange: #fb923c;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --glass: rgba(13, 18, 32, 0.7);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.15), 0 0 60px rgba(59, 130, 246, 0.05);
  --glow-violet: 0 0 30px rgba(139, 92, 246, 0.15), 0 0 60px rgba(139, 92, 246, 0.05);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

img { max-width: 100%; display: block; }

/* ============================================
   FLOATING BACKGROUND ORBS
   ============================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 70%);
  bottom: 20%;
  left: -10%;
  animation-delay: -7s;
  animation-duration: 25s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: -14s;
  animation-duration: 30s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -60px) scale(1.1); }
  50% { transform: translate(-30px, 40px) scale(0.95); }
  75% { transform: translate(60px, 20px) scale(1.05); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.nav-logo:hover {
  color: var(--accent-blue-bright);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-violet));
  transition: all var(--transition);
  border-radius: 2px;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  color: #fff;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.cta-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.nav-cta:hover {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), 0 0 60px rgba(139, 92, 246, 0.15);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-emerald);
  border: 1px solid rgba(52, 211, 153, 0.2);
  background: rgba(52, 211, 153, 0.05);
  padding: 8px 16px;
  border-radius: 24px;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
}

.badge-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-emerald);
  animation: badgePulse 2s ease-out infinite;
}

@keyframes badgePulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.title-line {
  display: block;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-blue-bright), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-violet {
  background: linear-gradient(135deg, var(--accent-violet-bright), var(--accent-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor-blink {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Code Block */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-code-block {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 80px rgba(0,0,0,0.4), var(--glow-blue);
  animation: codeFloat 6s ease-in-out infinite;
  position: relative;
}

.hero-code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-violet), transparent);
}

@keyframes codeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.code-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.code-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
}

.code-body {
  padding: 20px;
  overflow: hidden;
}

.code-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre;
}

.code-keyword { color: var(--accent-violet-bright); }
.code-var { color: var(--accent-blue-bright); }
.code-key { color: var(--accent-cyan); }
.code-string { color: var(--accent-emerald); }
.code-bool { color: var(--accent-orange); }

/* Hero Trust Bar */
.hero-trust {
  max-width: var(--max-width);
  margin: 80px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.trust-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.trust-item:hover {
  color: var(--accent-blue-bright);
}

.trust-icon {
  font-size: 6px;
  color: var(--accent-blue);
}

.trust-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 40px; }
  50% { opacity: 1; height: 60px; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn svg {
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 10px 18px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.03);
}

.btn-sm {
  font-size: 13px;
  padding: 10px 18px;
}

.btn-full {
  width: 100%;
}

/* ============================================
   SECTIONS - COMMON
   ============================================ */
.section {
  padding: 140px 24px;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 500px;
  line-height: 1.7;
}

/* Alternating backgrounds */
.about {
  background: var(--bg-secondary);
}

.projects {
  background: var(--bg-primary);
}

.skills {
  background: var(--bg-secondary);
}

.experience {
  background: var(--bg-primary);
}

.contact {
  background: var(--bg-secondary);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.about-image-card {
  position: relative;
}

.about-image-placeholder {
  width: 320px;
  height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-violet), transparent);
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent 40%, rgba(139, 92, 246, 0.05));
  pointer-events: none;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}

.avatar-ring {
  width: 120px;
  height: 120px;
  border: 2px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.avatar-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0; }
}

.about-image-glow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.15), transparent);
  filter: blur(20px);
}

.about-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card:hover {
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--glow-blue);
}

.stat-icon {
  color: var(--accent-blue);
}

.stat-value {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.03), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.project-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--glow-blue);
}

.project-card:hover .project-card-glow {
  opacity: 1;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card-featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), var(--bg-card));
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  transition: all var(--transition);
}

.project-card:hover .project-icon {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.icon-violet {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
  color: var(--accent-violet);
}

.icon-cyan {
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}

.icon-emerald {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
}

.icon-orange {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
}

.project-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-blue);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 4px;
}

.label-violet { color: var(--accent-violet); background: rgba(139, 92, 246, 0.08); }
.label-cyan { color: var(--accent-cyan); background: rgba(34, 211, 238, 0.08); }
.label-emerald { color: var(--accent-emerald); background: rgba(52, 211, 153, 0.08); }
.label-orange { color: var(--accent-orange); background: rgba(251, 146, 60, 0.08); }

.project-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.tag-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.skill-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-group:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}

.skill-group:hover::before {
  opacity: 1;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-group-icon {
  width: 36px;
  height: 36px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
}

.skill-group-icon.icon-cyan { background: rgba(34, 211, 238, 0.1); color: var(--accent-cyan); }
.skill-group-icon.icon-violet { background: rgba(139, 92, 246, 0.1); color: var(--accent-violet); }
.skill-group-icon.icon-emerald { background: rgba(52, 211, 153, 0.1); color: var(--accent-emerald); }
.skill-group-icon.icon-orange { background: rgba(251, 146, 60, 0.1); color: var(--accent-orange); }

.skill-group-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.skill-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.skill-badge[data-color="blue"] {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  color: var(--accent-blue-bright);
}
.skill-badge[data-color="blue"]:hover {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.skill-badge[data-color="yellow"],
.skill-badge[data-color="amber"] {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.15);
  color: var(--accent-amber);
}
.skill-badge[data-color="yellow"]:hover,
.skill-badge[data-color="amber"]:hover {
  background: rgba(251, 191, 36, 0.15);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
  transform: translateY(-2px);
}

.skill-badge[data-color="violet"] {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.15);
  color: var(--accent-violet-bright);
}
.skill-badge[data-color="violet"]:hover {
  background: rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.skill-badge[data-color="cyan"] {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--accent-cyan);
}
.skill-badge[data-color="cyan"]:hover {
  background: rgba(34, 211, 238, 0.15);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.skill-badge[data-color="emerald"] {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
}
.skill-badge[data-color="emerald"]:hover {
  background: rgba(52, 211, 153, 0.15);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.1);
  transform: translateY(-2px);
}

.skill-badge[data-color="orange"] {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
}
.skill-badge[data-color="orange"]:hover {
  background: rgba(251, 146, 60, 0.15);
  box-shadow: 0 0 20px rgba(251, 146, 60, 0.1);
  transform: translateY(-2px);
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 100%;
}

.timeline-track {
  display: none;
}

.timeline-item {
  position: relative;
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  z-index: 1;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker-inner {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  transition: all var(--transition);
}

.timeline-item:hover .timeline-marker {
  border-color: var(--accent-violet);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.timeline-item:hover .timeline-marker-inner {
  background: var(--accent-violet);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 16px;
  transition: all var(--transition);
}

.timeline-item:hover .timeline-icon {
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
  transform: scale(1.05);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-item:hover .timeline-content {
  border-color: var(--border-hover);
  transform: translateX(6px);
  box-shadow: var(--glow-blue);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  background: rgba(34, 211, 238, 0.06);
  border-radius: 4px;
}

.timeline-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.timeline-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 4px;
  color: var(--accent-blue-bright);
  letter-spacing: 0.3px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-grid {
  display: flex;
  justify-content: center;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.05);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
  max-width: 500px;
  width: 100%;
}

.contact-detail-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.contact-detail-card:hover {
  border-color: var(--border-hover);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.contact-detail-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.contact-detail-value {
  display: block;
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition);
}

.contact-detail-value:hover {
  color: var(--accent-blue);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.contact-link-btn svg:first-child {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.link-arrow {
  margin-left: auto;
  color: var(--text-secondary);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--transition);
}

.contact-link-btn:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateX(4px);
  box-shadow: var(--glow-blue);
}

.contact-link-btn:hover svg:first-child {
  color: var(--accent-blue);
}

.contact-link-btn:hover .link-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--accent-blue);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-blue-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.4);
}

.footer-built {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.4);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.projects-grid [data-aos]:nth-child(2) { transition-delay: 0.1s; }
.projects-grid [data-aos]:nth-child(3) { transition-delay: 0.2s; }
.projects-grid [data-aos]:nth-child(4) { transition-delay: 0.3s; }
.projects-grid [data-aos]:nth-child(5) { transition-delay: 0.4s; }

.skills-grid [data-aos]:nth-child(2) { transition-delay: 0.1s; }
.skills-grid [data-aos]:nth-child(3) { transition-delay: 0.15s; }
.skills-grid [data-aos]:nth-child(4) { transition-delay: 0.2s; }
.skills-grid [data-aos]:nth-child(5) { transition-delay: 0.25s; }

.timeline [data-aos]:nth-child(3) { transition-delay: 0.1s; }
.timeline [data-aos]:nth-child(4) { transition-delay: 0.2s; }
.timeline [data-aos]:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .project-card-featured {
    grid-column: span 1;
  }
}

@media (max-width: 968px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-placeholder {
    width: 100%;
    height: 380px;
  }

  .profile-image {
    object-position: center top;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-links .nav-link::after {
    display: none;
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 100px 20px;
  }

  .section-title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .hero {
    padding: 100px 20px 40px;
  }

  .hero-title {
    font-size: clamp(28px, 7vw, 42px);
  }

  .hero-trust {
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
  }

  .trust-sep {
    display: none;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .footer-top, .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
