/* ========================================
   Design Tokens & CSS Variables
   ======================================== */
:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1120;
  --bg-card: #111827;
  --bg-card-hover: #141d2e;
  --bg-nav: rgba(8, 12, 20, 0.85);
  --text-primary: #f0f4ff;
  --text-secondary: #9ba8c5;
  --text-muted: #5c6a87;
  --accent: #6c8aff;
  --accent-2: #a78bfa;
  --accent-glow: rgba(108, 138, 255, 0.35);
  --accent-gradient: linear-gradient(135deg, #6c8aff 0%, #a78bfa 100%);
  --border-color: rgba(108, 138, 255, 0.12);
  --border-hover: rgba(108, 138, 255, 0.3);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 138, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1240px;
  --nav-height: 72px;
}

/* Light Mode */
[data-theme="light"] {
  --bg-primary: #f2f4f9;
  --bg-secondary: #e8ecf5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9ff;
  --bg-nav: rgba(242, 244, 249, 0.9);
  --text-primary: #0d1120;
  --text-secondary: #3d4a6b;
  --text-muted: #6b7899;
  --accent: #4f6ef7;
  --accent-2: #7c5fe6;
  --accent-glow: rgba(79, 110, 247, 0.2);
  --accent-gradient: linear-gradient(135deg, #4f6ef7 0%, #7c5fe6 100%);
  --border-color: rgba(79, 110, 247, 0.1);
  --border-hover: rgba(79, 110, 247, 0.25);
  --shadow-sm: 0 1px 4px rgba(13, 17, 32, 0.06);
  --shadow-md: 0 4px 20px rgba(13, 17, 32, 0.08);
  --shadow-lg: 0 12px 48px rgba(13, 17, 32, 0.1);
  --shadow-glow: 0 0 40px rgba(79, 110, 247, 0.12);
}

/* ========================================
   Mouse Glow Follower
   ======================================== */
.mouse-glow {
  --x: 50%;
  --y: 50%;
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  background: radial-gradient(
    800px circle at var(--x) var(--y),
    rgba(120, 80, 255, 0.16),
    rgba(108, 138, 255, 0.10) 30%,
    rgba(167, 139, 250, 0.05) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
}

.mouse-glow.active {
  opacity: 1;
}

/* Subtler in light mode */
[data-theme="light"] .mouse-glow {
  background: radial-gradient(
    800px circle at var(--x) var(--y),
    rgba(100, 80, 230, 0.08),
    rgba(79, 110, 247, 0.04) 35%,
    transparent 70%
  );
  mix-blend-mode: normal;
}

/* Hide on touch / small screens where there's no mouse */
@media (hover: none) {
  .mouse-glow { display: none; }
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: 1.75; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Layout & Container
   ======================================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 100px 0; }

/* ========================================
   Loader
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
  animation: loaderProgress 1.2s ease-out forwards;
}

@keyframes loaderProgress {
  to { width: 100%; }
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-hover);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--border-color);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-color);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* Mobile Menu Toggle */
.nav-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-primary);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-menu-toggle.active span:nth-child(2) { opacity: 0; }
.nav-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Section Header
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 138, 255, 0.1);
  border: 1px solid rgba(108, 138, 255, 0.2);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

[data-theme="light"] .section-label {
  background: rgba(79, 110, 247, 0.08);
  border-color: rgba(79, 110, 247, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 138, 255, 0.35);
}

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

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--border-color);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 138, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 138, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 138, 255, 0.18) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  bottom: -80px;
  left: 10%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  width: fit-content;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { padding-right: 0; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  margin-top: 2px;
  white-space: nowrap;
}

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

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.hero-socials {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero-socials a:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--border-color);
  transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  position: relative;
  width: 380px;
  height: 460px;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  opacity: 0.15;
  filter: blur(30px);
  z-index: 0;
}

.hero-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Floating Terminal */
.terminal-float {
  position: absolute;
  bottom: -20px;
  left: -60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  font-family: 'SF Mono', 'Fira Mono', monospace;
  font-size: 0.78rem;
  min-width: 240px;
  backdrop-filter: blur(12px);
  animation: floatTerminal 4s ease-in-out infinite;
}

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

.terminal-header-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.term-title-mini { color: var(--text-muted); font-size: 0.72rem; margin-left: auto; }

.terminal-body-mini {
  line-height: 1.8;
  color: var(--text-secondary);
}

.term-p { color: #6c8aff; font-weight: 600; }
.term-c { color: #a78bfa; }
.term-o { color: #22c55e; }

/* ========================================
   Journey / Timeline
   ======================================== */
.journey-section {
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--border-color) 10%, var(--border-color) 90%, transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 56px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  box-shadow: 0 0 20px var(--accent-glow);
  flex-shrink: 0;
}

.timeline-content {
  width: calc(50% - 60px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.timeline-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   Technologies Section
   ======================================== */
.tech-section { background: var(--bg-primary); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-fast);
}

.tech-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.tech-category-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(108, 138, 255, 0.1);
  border: 1px solid rgba(108, 138, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}

.tech-category h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

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

.tech-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.tech-category:hover .tech-tag {
  border-color: rgba(108, 138, 255, 0.2);
  color: var(--accent);
  background: rgba(108, 138, 255, 0.05);
}

/* ========================================
   Projects Section
   ======================================== */
.projects-section { background: var(--bg-secondary); }

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  transition: all var(--transition-normal);
  position: relative;
}

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

.project-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
  transform: scale(1.06);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent-gradient);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transform: translateY(8px);
  transition: transform var(--transition-fast);
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
}

.project-card-body {
  padding: 24px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108, 138, 255, 0.1);
  border: 1px solid rgba(108, 138, 255, 0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.project-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color var(--transition-fast);
}

.project-card:hover h3 {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.project-link-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.project-link-item:hover, .project-card:hover .project-link-item {
  color: var(--accent);
}

.project-link-item.live { color: #22c55e; }

/* ========================================
   Connect / Social Section
   ======================================== */
.connect-section { background: var(--bg-primary); }

.social-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.social-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.social-card:hover::before {
  opacity: 0.03;
}

.social-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.github-icon { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.x-icon { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.instagram-icon { background: rgba(225, 48, 108, 0.12); color: #e1306c; }
.bluesky-icon { background: rgba(0, 133, 255, 0.1); color: #0085ff; }
.threads-icon { background: rgba(255,255,255,0.08); color: var(--text-primary); }

.social-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  z-index: 1;
}

.social-platform {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.social-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.social-card-stats {
  position: relative;
  z-index: 1;
  text-align: center;
}

.social-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.social-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.social-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.social-card:hover .social-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
  background: var(--bg-secondary);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-label { margin-bottom: 12px; }
.contact-info .section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  text-align: left;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-details { display: flex; flex-direction: column; gap: 16px; }

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(108, 138, 255, 0.1);
  border: 1px solid rgba(108, 138, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-detail-item a {
  color: var(--accent);
  font-weight: 500;
}

.contact-detail-item a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  resize: vertical;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 138, 255, 0.15);
  background: var(--bg-card);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding-top: 70px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer-brand .nav-brand { font-size: 1.2rem; margin-bottom: 16px; display: inline-flex; }

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.75;
}

.footer-links-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.footer-links-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-links-col li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links-col li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-socials {
  display: flex;
  gap: 12px;
}

.footer-bottom-socials a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.footer-bottom-socials a:hover {
  color: var(--accent);
  border-color: var(--border-hover);
}

/* ========================================
   Scroll to Top
   ======================================== */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--accent-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 138, 255, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-fast);
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(108, 138, 255, 0.6);
}

/* ========================================
   Animations & Reveal
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

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

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1100px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 50px; }
  .contact-inner { grid-template-columns: 1fr; gap: 50px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

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

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 14px 32px; }
  .nav-menu-toggle { display: flex; }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 60px;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .hero-badge { margin: 0 auto 20px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-stats { margin: 0 auto 32px; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }

  .hero-visual { justify-content: center; }
  .hero-image-wrapper { width: 300px; height: 360px; }
  .terminal-float { left: -20px; bottom: -30px; }

  .timeline::before { display: none; }
  .timeline-item,
  .timeline-item:nth-child(odd) { flex-direction: column; gap: 16px; }
  .timeline-item:nth-child(odd) .timeline-content { text-align: left; }

  .timeline-dot {
    position: relative;
    left: 0;
    transform: none;
  }

  .timeline-content { width: 100%; }

  .tech-grid { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .social-cards-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .contact-info .section-title { text-align: center; }
  .contact-info { text-align: center; }
  .contact-details { align-items: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

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

  .hero-stats {
    flex-wrap: wrap;
    gap: 4px;
    padding: 16px 20px;
    justify-content: center;
  }

  .stat-item { padding: 8px 16px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .tech-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .contact-form { padding: 24px; }
  .hero-image-wrapper { width: 260px; height: 320px; }
  .terminal-float { display: none; }
  .stat-divider { display: none; }
  .hero-stats { gap: 0; }
}
