/* =============================================
   SANDEEP CHOWDARY KOMMINENI — PORTFOLIO
   Apple / GitHub Inspired Design System
   Premium Edition with 3D Effects
   ============================================= */

/* === Design Tokens === */
:root {
  --bg-primary: #000000;
  --bg-elevated: #0a0a0a;
  --bg-surface: rgba(255,255,255,0.03);
  --bg-surface-hover: rgba(255,255,255,0.06);
  --bg-surface-active: rgba(255,255,255,0.08);
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-glow: rgba(99,102,241,0.12);
  --gradient-1: linear-gradient(135deg, #6366f1, #a78bfa);
  --gradient-text: linear-gradient(to right, #c7d2fe, #818cf8, #a78bfa);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --nav-h: 64px;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-surface: rgba(0,0,0,0.03);
  --bg-surface-hover: rgba(0,0,0,0.05);
  --bg-surface-active: rgba(0,0,0,0.08);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: rgba(0,0,0,0.08);
  --border-hover: rgba(0,0,0,0.14);
  --accent-glow: rgba(99,102,241,0.08);
  --gradient-text: linear-gradient(to right, #4338ca, #6366f1, #7c3aed);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px; /* Minimum readable font size for mobile */
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); }

/* === Particle Canvas === */
#particleCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
[data-theme="light"] #particleCanvas { opacity: 0.5; }

/* === Noise & Blobs === */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}
[data-theme="light"] .noise { opacity: 0.015; }

.blob {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: -1;
  filter: blur(120px); opacity: 0.3;
}
.blob-1 {
  width: 800px; height: 800px; top: -300px; right: -300px;
  background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
  animation: blobDrift 25s ease-in-out infinite;
}
.blob-2 {
  width: 600px; height: 600px; bottom: -200px; left: -200px;
  background: radial-gradient(circle, rgba(139,92,246,0.1), transparent 70%);
  animation: blobDrift 30s ease-in-out infinite reverse;
}
@keyframes blobDrift {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(40px,-30px); }
  66% { transform: translate(-30px,40px); }
}

/* === Spotlight === */
.spotlight {
  position: fixed; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%);
  pointer-events: none; z-index: 1; transform: translate(-50%,-50%);
  opacity: 0; transition: opacity 0.4s;
}
@media(hover:hover) { .spotlight { opacity: 1; } }

/* === Layout === */
.section-container, .hero-container, .nav-container, .footer-container {
  max-width: 1120px; margin: 0 auto; padding: 0 24px; width: 100%;
}

/* === Navigation (GitHub-style) === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 100; backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
[data-theme="light"] .nav { background: rgba(255,255,255,0.7); }
.nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.08); }

.nav-container {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem;
}
.logo-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--gradient-1); color: #fff; font-weight: 800;
  font-size: 0.7rem; letter-spacing: -0.03em;
}
.logo-text { color: var(--text-primary); }
.logo-dot { color: var(--accent); }

.nav-links { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px; border-radius: 6px; font-size: 0.84rem; font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s var(--ease);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-surface); }
.nav-link.active { color: var(--accent-light); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-btn {
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.theme-btn:hover { color: var(--text-primary); border-color: var(--border-hover); }

.nav-cta {
  padding: 7px 18px; border-radius: 100px; background: var(--text-primary);
  color: var(--bg-primary); font-size: 0.82rem; font-weight: 600; transition: all 0.2s;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  background: none; border: none; cursor: pointer; padding: 6px;
}
.burger span {
  display: block; height: 2px; background: var(--text-primary); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.burger.active span:first-child { transform: rotate(45deg) translate(2.5px,2.5px); }
.burger.active span:last-child { transform: rotate(-45deg) translate(2.5px,-2.5px); }

/* Mobile Nav */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(0,0,0,0.95); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 24px 24px; display: none; flex-direction: column; gap: 4px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px); opacity: 0; transition: all 0.3s var(--ease-out);
}
[data-theme="light"] .mobile-nav { background: rgba(255,255,255,0.95); }
.mobile-nav.active { display: flex; transform: translateY(0); opacity: 1; }
.mobile-link {
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 500;
  color: var(--text-secondary); transition: all 0.2s;
}
.mobile-link:hover { color: var(--text-primary); background: var(--bg-surface); }
.mobile-socials {
  display: flex; gap: 12px; padding-top: 16px; margin-top: 8px;
  border-top: 1px solid var(--border);
}
.mobile-socials a {
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-secondary);
  transition: all 0.2s;
}
.mobile-socials a:hover { color: var(--accent-light); border-color: var(--accent); }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 60px) 0 80px; text-align: center;
  position: relative; z-index: 2;
}
.hero-container { display: flex; flex-direction: column; align-items: center; }

/* Hero Photo */
.hero-photo-wrap {
  position: relative; width: 280px; height: 280px; margin-bottom: 32px;
}
.hero-photo {
  width: 100%; height: 100%; border-radius: 8px; object-fit: cover;
  position: relative; z-index: 3;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.photo-ring {
  position: absolute; inset: -12px; border-radius: 8px;
  border: 1.5px solid rgba(99,102,241,0.35);
  animation: ringRotate 10s linear infinite; z-index: 1;
}
.photo-ring::after {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.ring-2 {
  inset: -28px; border-color: rgba(139,92,246,0.18);
  animation-duration: 16s; animation-direction: reverse;
}
.ring-2::after { background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
.photo-glow {
  position: absolute; inset: -50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%);
  z-index: 0; animation: glowPulse 5s ease-in-out infinite;
}
@keyframes ringRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glowPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.9; } }

/* Orbiting tech icons */
.orbit-track {
  position: absolute; inset: -44px; border-radius: 50%;
  animation: ringRotate 20s linear infinite; z-index: 4;
}
.orbit-item {
  position: absolute; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--accent-light); font-size: 0.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  animation: orbitCounter 20s linear infinite;
  top: 50%; left: 50%; margin: -16px 0 0 -16px;
}
.orbit-item:nth-child(1) { transform: rotate(0deg) translateX(120px) rotate(0deg); }
.orbit-item:nth-child(2) { transform: rotate(60deg) translateX(120px) rotate(-60deg); }
.orbit-item:nth-child(3) { transform: rotate(120deg) translateX(120px) rotate(-120deg); }
.orbit-item:nth-child(4) { transform: rotate(180deg) translateX(120px) rotate(-180deg); }
.orbit-item:nth-child(5) { transform: rotate(240deg) translateX(120px) rotate(-240deg); }
.orbit-item:nth-child(6) { transform: rotate(300deg) translateX(120px) rotate(-300deg); }
@keyframes orbitCounter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* Typewriter */
.typewriter {
  font-family: var(--mono); color: var(--accent-light);
  border-right: 2px solid var(--accent); padding-right: 2px;
  animation: cursorBlink 0.8s step-end infinite;
}
@keyframes cursorBlink { 0%,100% { border-color: var(--accent); } 50% { border-color: transparent; } }

/* Tech Marquee */
.marquee-wrap {
  overflow: hidden; padding: 24px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-primary), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-primary), transparent); }

.marquee-track {
  display: flex; gap: 24px; white-space: nowrap; animation: marqueeScroll 30s linear infinite;
  font-size: 0.85rem; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.marquee-dot { color: var(--accent); opacity: 0.5; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--bg-surface); border: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 32px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(34,197,94,0.4);} 50%{opacity:0.7;box-shadow:0 0 0 6px rgba(34,197,94,0);} }

.hero-headline {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 24px;
  max-width: 900px;
}

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

.hero-tagline {
  font-size: 1.15rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 16px; letter-spacing: -0.01em; min-height: 1.8em;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-secondary);
  max-width: 620px; margin-bottom: 36px; line-height: 1.7;
}
.hero-sub strong { color: var(--text-primary); font-weight: 600; }

.hero-actions {
  display: flex; gap: 12px; margin-bottom: 48px; flex-wrap: wrap; justify-content: center;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  background: var(--text-primary); color: var(--bg-primary);
  font-size: 0.9rem; font-weight: 600; transition: all 0.25s var(--ease);
  border: none; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text-primary);
  font-size: 0.9rem; font-weight: 500; transition: all 0.25s var(--ease);
}
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-surface); transform: translateY(-2px); }

/* Hero Metrics */
.hero-metrics {
  display: flex; align-items: center; gap: 0;
  padding: 0; border-radius: var(--radius-lg);
}
.metric { text-align: center; padding: 0 28px; }
.metric-value {
  display: block; font-size: 1.8rem; font-weight: 800;
  font-family: var(--mono); color: var(--text-primary);
  letter-spacing: -0.03em;
}
.metric-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-divider { width: 1px; height: 36px; background: var(--border); }

/* === Sections === */
.section { padding: 140px 0; position: relative; z-index: 2; }
.section-alt { background: var(--bg-elevated); }

.section-label {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent-light); margin-bottom: 16px;
}
.section-heading {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 56px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-secondary); margin-top: -40px;
  margin-bottom: 56px; line-height: 1.7;
}

/* === About Me === */
.about-layout {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: start;
}
.about-photo-card {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-surface);
  position: sticky; top: calc(var(--nav-h) + 24px);
  transition: all 0.3s var(--ease);
}
.about-photo-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(99,102,241,0.08);
}
.about-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
}
.about-name-card {
  padding: 20px; text-align: center; display: flex; flex-direction: column;
  gap: 4px; border-top: 1px solid var(--border);
}
.about-name-card strong { font-size: 1.05rem; }
.about-name-card span { font-size: 0.82rem; color: var(--text-secondary); }
.about-socials {
  display: flex; justify-content: center; gap: 8px; margin-top: 8px;
}
.about-socials a {
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  color: var(--text-secondary); transition: all 0.2s; font-size: 0.95rem;
}
.about-socials a:hover { color: var(--accent-light); border-color: var(--accent); background: var(--accent-glow); }

.about-para {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 18px;
}
.about-para strong { color: var(--text-primary); font-weight: 600; }

.about-quick {
  display: flex; flex-direction: column; gap: 10px; margin-top: 24px;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
}
.quick-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.88rem; color: var(--text-secondary);
}
.quick-item i { color: var(--accent-light); width: 16px; text-align: center; font-size: 0.85rem; }

/* === Experience Timeline === */
.exp-timeline {
  display: flex; flex-direction: column; gap: 20px;
  position: relative; padding-left: 32px;
}
.exp-timeline::before {
  content: ''; position: absolute; left: 7px; top: 24px; bottom: 24px;
  width: 2px; background: linear-gradient(to bottom, var(--accent), var(--border));
  border-radius: 2px;
}

.exp-card {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease); position: relative;
}
.exp-card:hover {
  border-color: var(--border-hover); background: var(--bg-surface-hover);
  transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.exp-timeline-dot {
  position: absolute; left: -39px; top: 36px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-primary); border: 2px solid var(--border);
  z-index: 2;
}
.exp-timeline-dot.current {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(99,102,241,0.5);
}
.exp-timeline-dot.current::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.3);
  animation: statusPulse 2s ease-in-out infinite;
}

.exp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.exp-company-info { display: flex; align-items: center; gap: 14px; }
.exp-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.exp-company { font-size: 1.1rem; font-weight: 700; }
.exp-role { font-size: 0.85rem; color: var(--text-secondary); }
.exp-meta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.exp-badge {
  padding: 3px 10px; border-radius: 100px; background: rgba(34,197,94,0.12);
  color: #22c55e; font-size: 0.7rem; font-weight: 600;
}
.exp-date { font-size: 0.78rem; color: var(--text-tertiary); font-family: var(--mono); }
.exp-loc { font-size: 0.73rem; color: var(--text-tertiary); display: flex; align-items: center; gap: 4px; }
.exp-loc i { font-size: 0.65rem; }

.exp-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 20px; padding-left: 0;
}
.exp-list li {
  position: relative; padding-left: 18px; font-size: 0.9rem; color: var(--text-secondary);
  line-height: 1.65;
}
.exp-list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}

.exp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exp-tags span {
  padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 500;
  background: var(--accent-glow); color: var(--accent-light);
  border: 1px solid rgba(99,102,241,0.15);
}

/* === Featured Projects (Production Work) === */
.featured-projects { display: flex; flex-direction: column; gap: 24px; }

.featured-card {
  display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius-xl);
  overflow: hidden; background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.featured-card:hover {
  border-color: var(--border-hover); transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
.featured-reverse { direction: rtl; }
.featured-reverse > * { direction: ltr; }

.featured-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 280px;
}
.featured-icon { font-size: 4rem; color: rgba(255,255,255,0.9); text-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.featured-badges {
  position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; flex-wrap: wrap;
}
.f-badge {
  padding: 4px 12px; border-radius: 6px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
  font-size: 0.7rem; font-weight: 600; color: rgba(255,255,255,0.85);
  font-family: var(--mono);
}
.live-badge { display: flex; align-items: center; gap: 5px; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
}

.featured-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.featured-top { margin-bottom: 12px; }
.featured-label { font-size: 0.72rem; font-weight: 600; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.08em; }
.featured-body h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.featured-subtitle { font-size: 0.88rem; color: var(--text-secondary); margin-top: 2px; font-weight: 500; }
.featured-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }
.featured-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.featured-tags span {
  padding: 4px 12px; border-radius: 100px; font-size: 0.72rem; font-weight: 500;
  background: var(--bg-surface-hover); color: var(--text-secondary); border: 1px solid var(--border);
}
.featured-links { display: flex; gap: 10px; }
.f-link-primary {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px; background: var(--text-primary);
  color: var(--bg-primary); font-size: 0.82rem; font-weight: 600; transition: all 0.2s;
  position: relative; overflow: hidden;
}
.f-link-primary:hover { opacity: 0.85; transform: translateY(-1px); }

/* === Project Grid === */
.project-grid-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; flex-wrap: wrap; gap: 16px;
}
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  padding: 6px 16px; border-radius: 100px; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary); font-size: 0.78rem;
  font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.pill:hover { border-color: var(--border-hover); color: var(--text-primary); }
.pill.active { background: var(--text-primary); color: var(--bg-primary); border-color: transparent; }

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

.proj-card {
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease); display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.proj-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-1); opacity: 0; transition: opacity 0.3s;
}
.proj-card:hover::before { opacity: 1; }
.proj-card:hover {
  border-color: var(--border-hover); background: var(--bg-surface-hover);
  transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.proj-card.hidden { display: none; }

.proj-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.proj-icon { font-size: 1.5rem; }
.proj-links-top { display: flex; gap: 6px; }
.proj-links-top a {
  min-width: 44px; /* Minimum touch target size */
  min-height: 44px; /* Minimum touch target size */
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--text-tertiary); transition: all 0.2s; font-size: 0.9rem;
  padding: 6px; /* Add padding for better touch area */
}
.proj-links-top a:hover { color: var(--text-primary); background: var(--bg-surface-active); }

.proj-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.proj-card p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.proj-tags span {
  padding: 3px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 500;
  background: var(--bg-surface-active); color: var(--text-tertiary); border: 1px solid var(--border);
}

/* === Skills === */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.skill-block {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.skill-block::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(99,102,241,0.05), transparent 30%);
  animation: skillGlow 8s linear infinite; opacity: 0;
  transition: opacity 0.3s;
}
.skill-block:hover::before { opacity: 1; }
.skill-block:hover { border-color: var(--border-hover); background: var(--bg-surface-hover); }

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

.skill-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; position: relative; z-index: 1; }
.skill-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-glow); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.skill-header h3 { font-size: 0.95rem; font-weight: 700; }
.skill-chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.skill-chips span {
  padding: 5px 14px; border-radius: 100px; font-size: 0.76rem; font-weight: 500;
  background: var(--bg-surface-active); color: var(--text-secondary);
  border: 1px solid var(--border); transition: all 0.2s;
}
.skill-chips span:hover {
  color: var(--accent-light); border-color: rgba(99,102,241,0.3);
  background: var(--accent-glow); transform: translateY(-1px);
}

/* === Open Source === */
.os-stats {
  display: flex; gap: 32px; margin-bottom: 40px;
}
.os-stat {
  padding: 20px 32px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
}
.os-stat-value {
  font-size: 2rem; font-weight: 800; font-family: var(--mono);
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-stat-label { font-size: 0.78rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.08em; }

.os-cards { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.os-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.os-card:hover {
  border-color: var(--border-hover); background: var(--bg-surface-hover);
  transform: translateX(4px);
}
.os-card-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--accent-glow); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.os-card-info { flex: 1; }
.os-card-info h4 { font-size: 0.95rem; font-weight: 700; }
.os-card-info p { font-size: 0.82rem; color: var(--text-secondary); }
.os-card-arrow { color: var(--text-tertiary); font-size: 0.8rem; }

.github-embed {
  margin-top: 16px; padding: 24px; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
  overflow-x: auto;
}
.github-graph {
  width: 100%; max-width: 100%; height: auto;
  border-radius: 8px;
}
[data-theme="light"] .github-graph { filter: none; }
[data-theme="dark"] .github-graph { filter: brightness(0.9); }

/* === Certifications === */
.certs-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  max-width: 900px;
}

.cert-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 24px; border-radius: var(--radius-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  transition: all 0.3s var(--ease);
}
.cert-item:hover {
  border-color: var(--border-hover); background: var(--bg-surface-hover);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.cert-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: var(--accent-glow); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.cert-info { flex: 1; }
.cert-info h4 { font-size: 0.92rem; font-weight: 600; }
.cert-info span { font-size: 0.76rem; color: var(--text-tertiary); }
.cert-view {
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); border: 1px solid var(--border);
  transition: all 0.2s; font-size: 0.8rem;
}
.cert-view:hover { color: var(--accent-light); border-color: var(--accent); background: var(--accent-glow); }

/* === Education === */
.edu-list { display: flex; flex-direction: column; gap: 0; max-width: 800px; }

.edu-item {
  display: flex; gap: 32px; padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.edu-item:first-child { padding-top: 0; }
.edu-item:last-child { border-bottom: none; }

.edu-year {
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  color: var(--text-tertiary); min-width: 140px; padding-top: 2px;
}
.edu-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.edu-degree { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; }
.edu-detail { font-size: 0.8rem; color: var(--text-tertiary); }

/* === Contact === */
.contact-section { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 500px; margin-bottom: 40px; line-height: 1.7; }

.contact-cards { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }

.contact-card {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s var(--ease);
}
.contact-card:hover {
  border-color: var(--border-hover); color: var(--text-primary);
  background: var(--bg-surface-hover); transform: translateY(-2px);
}
.contact-card i { color: var(--accent-light); font-size: 1rem; }

.contact-location {
  font-size: 0.82rem; color: var(--text-tertiary);
}
.contact-location i { color: var(--accent-light); margin-right: 6px; }

/* === Footer === */
.footer {
  padding: 24px 0; border-top: 1px solid var(--border);
}
.footer-container {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-logo { font-weight: 700; font-size: 0.95rem; }
.footer-copy { font-size: 0.75rem; color: var(--text-tertiary); }
.footer-right { display: flex; gap: 8px; }
.footer-right a {
  width: 44px; /* Minimum touch target size */
  height: 44px; /* Minimum touch target size */
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text-tertiary); transition: all 0.2s;
}
.footer-right a:hover { color: var(--text-primary); background: var(--bg-surface); }

/* === Animations === */
.reveal-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* Reveal on page load for hero */
.hero .reveal-up { animation: heroReveal 0.8s var(--ease-out) forwards; }
.hero .d1 { animation-delay: 0.1s; }
.hero .d2 { animation-delay: 0.2s; }
.hero .d3 { animation-delay: 0.3s; }
.hero .d4 { animation-delay: 0.4s; }
.hero .d5 { animation-delay: 0.5s; }

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

/* Magnetic hover for cards */
[data-tilt] { transition: transform 0.3s var(--ease); }

/* === Responsive === */
@media (max-width: 1024px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-photo-wrap { width: 200px; height: 200px; }
  .orbit-track { display: none; }
  .hero-metrics { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .metric-divider { display: none; }
  .metric { padding: 0 16px; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-photo-card { max-width: 280px; margin: 0 auto; position: static; }
  .featured-card, .featured-reverse { grid-template-columns: 1fr; direction: ltr; }
  .featured-card > * { direction: ltr; }
  .featured-visual { min-height: 180px; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-heading { margin-bottom: 40px; }
  .section-sub { margin-top: -24px; margin-bottom: 40px; }
  .exp-header { flex-direction: column; }
  .exp-meta-right { align-items: flex-start; }
  .exp-timeline { padding-left: 0; }
  .exp-timeline::before { display: none; }
  .exp-timeline-dot { display: none; }
  .edu-item { flex-direction: column; gap: 8px; }
  .footer-container { flex-direction: column; gap: 12px; }
  .footer-left { flex-direction: column; gap: 4px; }
  .contact-cards { flex-direction: column; align-items: center; }
  .os-stats { flex-direction: column; gap: 12px; }
  .os-stats .os-stat { width: 100%; }
}

@media (max-width: 480px) {
  .hero-metrics { gap: 8px; }
  .metric { padding: 0 12px; }
  .metric-value { font-size: 1.4rem; }
}
