/* ============================================================
   AMJID IMAD - Premium Portfolio Styles
   Inspired by Stripe, Vercel, Linear, Apple
   ============================================================ */

/* ---- CSS Custom Properties (Theme System) ---- */
:root {
  /* Light Mode */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --bg-card: #ffffff;
  --bg-card-hover: #f9fafb;
  --bg-nav: rgba(255,255,255,0.8);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --accent-gradient-2: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.05);
  --glow-color: rgba(59,130,246,0.15);
  --code-bg: #1e293b;
  --code-text: #e2e8f0;
  --scrollbar-track: #f1f5f9;
  --scrollbar-thumb: #cbd5e1;
  --hero-gradient: linear-gradient(135deg, rgba(59,130,246,0.05) 0%, rgba(139,92,246,0.05) 50%, rgba(236,72,153,0.05) 100%);
  --grid-color: rgba(0,0,0,0.03);
  --tag-bg: #eff6ff;
  --tag-text: #3b82f6;
  --terminal-bg: #1e293b;
  --terminal-header: #334155;
}

[data-theme="dark"] {
  --bg-primary: #0B0F19;
  --bg-secondary: #111827;
  --bg-tertiary: #1F2937;
  --bg-card: #111827;
  --bg-card-hover: #1a2332;
  --bg-nav: rgba(11,15,25,0.85);
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #6b7280;
  --border-color: #1f2937;
  --border-light: #1a2332;
  --accent-primary: #60a5fa;
  --accent-secondary: #a78bfa;
  --accent-gradient: linear-gradient(135deg, #60a5fa, #a78bfa);
  --accent-gradient-2: linear-gradient(135deg, #818cf8, #c084fc, #f472b6);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -4px rgba(0,0,0,0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 8px 10px -6px rgba(0,0,0,0.4);
  --glow-color: rgba(96,165,250,0.12);
  --code-bg: #0d1117;
  --code-text: #e6edf3;
  --scrollbar-track: #111827;
  --scrollbar-thumb: #374151;
  --hero-gradient: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, rgba(167,139,250,0.08) 50%, rgba(244,114,182,0.06) 100%);
  --grid-color: rgba(255,255,255,0.03);
  --tag-bg: rgba(96,165,250,0.12);
  --tag-text: #60a5fa;
  --terminal-bg: #0d1117;
  --terminal-header: #161b22;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ---- Theme Transition (No Flash) ---- */
body.theme-transitioning * {
  transition-duration: 0s !important;
}

/* ---- Scroll Progress Bar ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ---- Loading Screen ---- */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 16px 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 18px;
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--glow-color);
}
.cmd-palette-trigger {
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
  font-family: 'JetBrains Mono', monospace;
}
.cmd-palette-trigger:hover {
  border-color: var(--accent-primary);
  color: var(--text-secondary);
}
.nav-cta {
  padding: 8px 20px;
  background: var(--accent-gradient);
  color: #fff !important;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
}
.nav-cta::after { display: none; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s;
}
.mobile-menu a:hover {
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: flex; }
  .cmd-palette-trigger { display: none; }
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--hero-gradient);
  z-index: 0;
}
.hero-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: rgba(59,130,246,0.12);
  top: -100px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: rgba(139,92,246,0.10);
  bottom: -50px; left: -100px;
  animation-delay: -3s;
}
.hero-orb-3 {
  width: 300px; height: 300px;
  background: rgba(236,72,153,0.08);
  top: 50%; left: 50%;
  animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -20px) scale(1.05); }
  50% { transform: translate(-10px, 10px) scale(0.95); }
  75% { transform: translate(15px, 5px) scale(1.02); }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { max-width: 600px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid transparent;
}
.hero-badge .badge-dot {
  width: 6px; height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.hero-title .gradient-text {
  background: var(--accent-gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 400;
}
.hero-typing {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--accent-primary);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
}
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: var(--accent-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent-gradient);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hero-socials {
  display: flex;
  gap: 12px;
}
.hero-socials a {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 18px;
}
.hero-socials a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--glow-color);
}

/* Hero Image / Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 4px solid var(--bg-primary);
  box-shadow: 0 0 0 4px var(--accent-primary), 0 20px 60px rgba(59,130,246,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-photo:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 4px var(--accent-primary), 0 24px 80px rgba(59,130,246,0.35);
}
.hero-image-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, rgba(139,92,246,0.1) 50%, transparent 70%);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 1; }
}
.hero-image-ring {
  position: absolute;
  top: -10px; left: -10px;
  right: -10px; bottom: -10px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  animation: spin-slow 25s linear infinite;
  z-index: 1;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero-image-ring::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  background: var(--accent-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 14px var(--accent-primary);
}

/* Floating Tech Badges */
.hero-tech-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  animation: float-badge 6s ease-in-out infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-tech-badge:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}
.badge-laravel {
  top: 20px; right: -10px;
  animation-delay: 0s;
}
.badge-laravel i, .badge-laravel svg { color: #ef4444; }
.badge-vue {
  bottom: 60px; right: -20px;
  animation-delay: -1.5s;
}
.badge-vue i, .badge-vue svg { color: #22c55e; }
.badge-php {
  bottom: 20px; left: -10px;
  animation-delay: -3s;
}
.badge-php i, .badge-php svg { color: #8b5cf6; }
.badge-mysql {
  top: 60px; left: -20px;
  animation-delay: -4.5s;
}
.badge-mysql i, .badge-mysql svg { color: #3b82f6; }
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 968px) {
  .hero-photo { width: 240px; height: 240px; }
  .hero-image-wrapper { width: 300px; height: 300px; }
  .hero-image-glow { width: 260px; height: 260px; }
  .hero-tech-badge { padding: 6px 10px; font-size: 11px; }
}
@media (max-width: 480px) {
  .hero-photo { width: 200px; height: 200px; }
  .hero-image-wrapper { width: 260px; height: 260px; }
  .hero-image-glow { width: 220px; height: 220px; }
  .hero-tech-badge { display: none; }
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--terminal-header);
}
.terminal-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}
.terminal-line {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.terminal-prompt {
  color: #22c55e;
  user-select: none;
}
.terminal-command {
  color: #60a5fa;
}
.terminal-output {
  color: var(--text-tertiary);
  padding-left: 18px;
}
.terminal-highlight {
  color: #f59e0b;
}
.terminal-string {
  color: #34d399;
}
.terminal-comment {
  color: #6b7280;
  font-style: italic;
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text { max-width: 100%; }
  .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-image-wrapper { width: 300px; height: 300px; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
}

/* ---- Section Styles ---- */
.section {
  padding: 120px 24px;
  position: relative;
}
.section-alt {
  background: var(--bg-secondary);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}
.about-timeline {
  position: relative;
  padding-left: 32px;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-primary);
}
.timeline-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.timeline-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---- Skills Section ---- */
.skills-categories {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.skill-filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.skill-filter-btn:hover,
.skill-filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.skill-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.skill-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.skill-card:hover::before { opacity: 1; }
.skill-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.skill-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}
.skill-name {
  font-size: 16px;
  font-weight: 600;
}
.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.skill-bar-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill-level {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.skill-percent {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Projects Section ---- */
.projects-controls {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.projects-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.projects-search {
  position: relative;
}
.projects-search input {
  padding: 10px 16px 10px 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  width: 260px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.projects-search input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--glow-color);
}
.projects-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 16px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}
.project-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-image img {
  transform: scale(1.05);
}
.project-card-body {
  padding: 28px;
}
.project-card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.project-tag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.project-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.project-card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.project-card-features {
  list-style: none;
  margin-bottom: 20px;
}
.project-card-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-card-features li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-controls { flex-direction: column; align-items: stretch; }
  .projects-search input { width: 100%; }
}

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-primary);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Stats Counter Section ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.stats-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}
.stats-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--accent-primary);
}
.stats-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}
.stats-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}
.contact-info > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--text-primary);
}
.contact-item:hover {
  border-color: var(--accent-primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-item-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 15px;
  font-weight: 600;
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  border: 1px solid rgba(34,197,94,0.2);
}
.availability-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Terminal / CLI Section ---- */
.terminal-section {
  padding: 80px 24px;
  background: var(--bg-secondary);
}
.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  background: var(--terminal-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
}
.terminal-body-lg {
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 2;
  color: var(--code-text);
  min-height: 300px;
}

/* ---- GitHub Contributions Style ---- */
.contributions-grid {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.contrib-cell {
  width: 12px; height: 12px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  transition: all 0.2s ease;
}
.contrib-cell:hover {
  transform: scale(1.5);
}
.contrib-cell.l1 { background: rgba(59,130,246,0.2); }
.contrib-cell.l2 { background: rgba(59,130,246,0.4); }
.contrib-cell.l3 { background: rgba(59,130,246,0.6); }
.contrib-cell.l4 { background: rgba(59,130,246,0.85); }

/* ---- Currently Learning ---- */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.learning-card {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-align: center;
  transition: all 0.3s ease;
}
.learning-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.learning-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.learning-name {
  font-size: 14px;
  font-weight: 600;
}
.learning-status {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---- Command Palette ---- */
.cmd-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.cmd-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cmd-palette {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95) translateY(-10px);
  transition: transform 0.2s ease;
}
.cmd-overlay.active .cmd-palette {
  transform: scale(1) translateY(0);
}
.cmd-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}
.cmd-search-icon {
  color: var(--text-tertiary);
  font-size: 18px;
}
.cmd-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.cmd-results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-primary);
  text-decoration: none;
}
.cmd-item:hover,
.cmd-item.selected {
  background: var(--bg-tertiary);
}
.cmd-item-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--tag-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 14px;
  flex-shrink: 0;
}
.cmd-item-text {
  font-size: 14px;
  font-weight: 500;
}
.cmd-item-shortcut {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
}
.cmd-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-tertiary);
}
.cmd-footer kbd {
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Footer ---- */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col ul a:hover {
  color: var(--accent-primary);
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 16px;
}
.footer-social a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  animation: whatsapp-pulse 2.5s infinite;
  transition: all 0.35s ease;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45), 0 0 0 12px rgba(37, 211, 102, 0.08);
  color: #fff;
}
@keyframes whatsapp-pulse {
  0% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---- GSAP Reveal Animations ---- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.9); }

/* ---- Responsive Utilities ---- */
@media (max-width: 640px) {
  .section { padding: 80px 16px; }
  .section-header { margin-bottom: 48px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Print Styles ---- */
@media print {
  .navbar, .whatsapp-float, .scroll-progress,
  .cursor-glow, .cmd-overlay, .loading-screen { display: none !important; }
  body { background: #fff; color: #000; }
}
