/* ============================================
   PREMIUM PORTFOLIO CSS - AI/ML PROFESSIONAL
   Dark-first, code-inspired aesthetic
   ============================================ */

/* ============================================
   1. FONTS & TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&family=Sora:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* ============================================
     2. COLOR PALETTE - CYBER AESTHETIC
     ============================================ */
  /* Dark Theme (Primary) */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  
  /* Accent Colors */
  --primary: #00d4ff;
  --primary-rgb: 0, 212, 255;
  --primary-glow: rgba(0, 212, 255, 0.15);
  --secondary: #7c3aed;
  --secondary-rgb: 124, 58, 237;
  --accent: #ff006e;
  --accent-rgb: 255, 0, 110;
  --gradient-start: #00d4ff;
  --gradient-mid: #7c3aed;
  --gradient-end: #ff006e;
  
  /* Text Colors */
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-tertiary: #6b6b7b;
  --text-muted: #4a4a5a;
  
  /* Borders & Surfaces */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(18, 18, 26, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* Status Colors */
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* ============================================
     3. SPACING & SIZING
     ============================================ */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
  
  --container-max: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;
  
  /* ============================================
     4. ANIMATIONS & TRANSITIONS
     ============================================ */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 800ms;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);
  --shadow-glow-sm: 0 0 20px rgba(var(--primary-rgb), 0.2);
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f8fa;
  
  --text-primary: #0a0a0f;
  --text-secondary: #4a4a5a;
  --text-tertiary: #6b6b7b;
  --text-muted: #a0a0b0;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-color-hover: rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(0, 0, 0, 0.1);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.14);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.22);
}

/* ============================================
   5. GLOBAL RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   GPU ACCELERATION & PERFORMANCE
   Maximum hardware utilization for 60fps
   ============================================ */

/* Force GPU compositing for smooth animations */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  transition: background-color var(--duration-slow) var(--ease-out-expo),
              color var(--duration-slow) var(--ease-out-expo);
}

/* Remove any extra space at the end */
body > footer:last-of-type {
  margin-bottom: 0 !important;
  padding-bottom: var(--spacing-lg) !important;
}

/* GPU-accelerated elements - promote to compositor layer */
.navbar,
.hero-section,
.hero-image img,
.project-card,
.achievement-card,
.certification-card,
.skill-tag,
.btn,
.cursor,
.cursor-dot,
.gradient-orb,
.intro-wrapper,
.back-to-top,
.scroll-indicator {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimized will-change for frequently animated elements */
.cursor,
.cursor-dot {
  will-change: transform;
}

.navbar {
  will-change: transform, background-color;
}

.project-card,
.achievement-card,
.certification-card {
  will-change: transform, box-shadow;
}

.gradient-orb {
  will-change: transform, opacity;
}

.btn {
  will-change: transform, box-shadow;
}

.scroll-progress {
  will-change: width;
}

/* CSS containment for better render isolation */
.project-card,
.achievement-card,
.certification-card,
.skill-category,
/* Removed contain: layout style paint from .experience-item to allow timeline dots to overflow */

section:not(#experience) {
  contain: layout style;
}

/* Hardware-accelerated scrolling */
.achievement-carousel,
.certifications-grid,
.projects-grid {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Optimized image rendering */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .cursor,
  .cursor-dot,
  .gradient-orb {
    display: none !important;
  }
}

/* Selection */
::selection {
  background: rgba(var(--primary-rgb), 0.3);
  color: var(--text-primary);
}

/* ============================================
   6. CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

/* ============================================
   7. SCROLL PROGRESS BAR
   ============================================ */
/* Progress bar track (always visible) */
.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(var(--primary-rgb), 0.2);
  z-index: 99999;
  pointer-events: none;
}

/* Progress bar fill */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 100000;
  /* GPU-accelerated scaling instead of width */
  transform: scaleX(0);
  transform-origin: left;
  /* Add a glow effect for better visibility */
  box-shadow: 0 0 10px var(--primary), 0 0 20px rgba(var(--primary-rgb), 0.5);
  pointer-events: none;
}

/* ============================================
   8. LOADING SCREEN - CODE STYLE
   ============================================ */
/* ============================================
   CINEMATIC INTRO — "Conversation with AI"
   ============================================ */
.intro-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #050508;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100001;
  overflow: hidden;
  cursor: pointer;
}

.intro-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, rgba(124, 58, 237, 0.03) 40%, transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.intro-glow.burst {
  opacity: 1;
  transform: scale(1.8);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.12) 40%, transparent 70%);
  transition: opacity 0.6s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1), background 0.6s ease;
}

/* Floating ambient particles */
.intro-particles-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.intro-particles-bg span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 212, 255, 0.4);
  border-radius: 50%;
  animation: introParticleFloat linear infinite;
}

.intro-particles-bg span:nth-child(1)  { left: 10%; top: 20%; animation-duration: 8s;  animation-delay: 0s; }
.intro-particles-bg span:nth-child(2)  { left: 25%; top: 70%; animation-duration: 12s; animation-delay: -2s; width: 3px; height: 3px; }
.intro-particles-bg span:nth-child(3)  { left: 40%; top: 40%; animation-duration: 10s; animation-delay: -4s; }
.intro-particles-bg span:nth-child(4)  { left: 55%; top: 80%; animation-duration: 9s;  animation-delay: -1s; background: rgba(124, 58, 237, 0.3); }
.intro-particles-bg span:nth-child(5)  { left: 70%; top: 15%; animation-duration: 11s; animation-delay: -3s; width: 3px; height: 3px; }
.intro-particles-bg span:nth-child(6)  { left: 85%; top: 55%; animation-duration: 7s;  animation-delay: -5s; }
.intro-particles-bg span:nth-child(7)  { left: 15%; top: 90%; animation-duration: 13s; animation-delay: -6s; background: rgba(124, 58, 237, 0.3); }
.intro-particles-bg span:nth-child(8)  { left: 50%; top: 10%; animation-duration: 10s; animation-delay: -7s; }
.intro-particles-bg span:nth-child(9)  { left: 75%; top: 65%; animation-duration: 8s;  animation-delay: -2s; width: 3px; height: 3px; background: rgba(255, 45, 149, 0.2); }
.intro-particles-bg span:nth-child(10) { left: 35%; top: 50%; animation-duration: 14s; animation-delay: -8s; }
.intro-particles-bg span:nth-child(11) { left: 90%; top: 35%; animation-duration: 9s;  animation-delay: -4s; background: rgba(255, 45, 149, 0.2); }
.intro-particles-bg span:nth-child(12) { left: 5%;  top: 45%; animation-duration: 11s; animation-delay: -1s; }

@keyframes introParticleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}

/* Invite state — logo + "tap to begin" */
.intro-invite {
  position: absolute;
  z-index: 5;
  text-align: center;
  animation: inviteFloat 3s ease-in-out infinite;
}

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

.intro-invite-logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.3));
  opacity: 0;
  animation: inviteFadeIn 1s 0.2s ease forwards;
}

.intro-invite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: invitePulse 2.5s 1s ease-in-out infinite;
}

.intro-invite-cta svg {
  opacity: 0.4;
}

@keyframes inviteFadeIn {
  to { opacity: 1; }
}

@keyframes invitePulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.5; }
}

.intro-invite.hidden {
  animation: inviteExit 0.3s ease forwards;
}

@keyframes inviteExit {
  to { opacity: 0; transform: scale(0.9); }
}

.intro-conversation {
  position: relative;
  z-index: 3;
  max-width: 560px;
  width: 88%;
}

.intro-line {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.intro-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-prompt-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.4rem;
}

.intro-prompt-icon {
  color: var(--primary);
  font-weight: bold;
  font-size: 1.3em;
  flex-shrink: 0;
}

.intro-cursor {
  display: inline-block;
  color: var(--primary);
  font-weight: 300;
  animation: introBlink 0.7s step-end infinite;
  margin-left: 1px;
}

.intro-cursor.done {
  display: none;
}

@keyframes introBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Thinking dots — ChatGPT-style */
.intro-thinking {
  display: flex;
  gap: 5px;
  padding: 0.3rem 0;
  margin-bottom: 1.2rem;
  margin-left: 0.2rem;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.intro-thinking.visible {
  opacity: 1;
  height: 20px;
}

.intro-thinking .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  animation: thinkingBounce 1.4s ease-in-out infinite;
}

.intro-thinking .dot:nth-child(2) { animation-delay: 0.16s; }
.intro-thinking .dot:nth-child(3) { animation-delay: 0.32s; }

@keyframes thinkingBounce {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

/* Name — the dramatic reveal moment */
.intro-name-line {
  margin-bottom: 0.4rem;
}

.intro-name-line .intro-text {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #00d4ff 40%, #7c3aed 70%, #ff2d95 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.3));
}

.intro-name-line {
  transform: translateY(10px) scale(0.95);
  filter: blur(8px);
}

.intro-name-line.visible {
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* Role — streams in word-by-word */
.intro-role-line {
  margin-bottom: 2rem;
}

.intro-role-line .intro-text {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
}


/* Hide scrollbar during intro */
body.intro-active {
  overflow: hidden;
}

/* === SMOOTH LAUNCH — elegant exit after "Show me." === */

/* Light sweep across screen */
.intro-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.intro-sweep.active {
  animation: lightSweep 0.8s ease-in-out forwards;
}

@keyframes lightSweep {
  0% { opacity: 0; transform: translateX(-100%); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Content flies forward — smooth zoom-through */
.intro-wrapper.intro-launch .intro-conversation {
  animation: launchForward 1s cubic-bezier(0.4, 0, 0, 1) forwards;
}

@keyframes launchForward {
  0% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
  60% { opacity: 0.6; }
  100% { opacity: 0; transform: scale(1.3) translateY(-20px); filter: blur(6px); }
}

/* Wrapper fades out smoothly */
.intro-wrapper.intro-launch {
  animation: smoothFadeOut 1.1s 0.2s cubic-bezier(0.4, 0, 0, 1) forwards;
}

@keyframes smoothFadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Fallback simple exit (for skip clicks) */
.intro-wrapper.intro-exit {
  animation: smoothFadeOut 0.4s ease-out forwards;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   9. CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  /* GPU-accelerated transitions */
  transition: width 0.2s var(--ease-out-expo),
              height 0.2s var(--ease-out-expo),
              margin 0.2s var(--ease-out-expo),
              border-color 0.2s;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-top: -25px;
  border-color: var(--secondary);
}

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  /* No transition for instant response */
}

@media (max-width: 768px) {
  .cursor, .cursor-dot {
    display: none;
  }
}

/* ============================================
   10. BACKGROUND ELEMENTS
   ============================================ */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 20s ease-in-out infinite;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.3) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.25) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation-delay: -7s;
}

.gradient-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.2) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 30px) scale(1.02); }
}

/* ============================================
   10.5 FLOATING PARTICLES
   ============================================ */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1; /* Above background, below content */
  overflow: visible;
  /* Ensure particles are always visible */
  isolation: isolate;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
  animation: particleDrift 15s ease-in-out infinite;
}

/* Spread particles across entire viewport with varied styles */
.particle:nth-child(1) { left: 5%; top: 10%; width: 4px; height: 4px; animation-delay: 0s; animation-duration: 18s; }
.particle:nth-child(2) { left: 15%; top: 25%; width: 6px; height: 6px; background: var(--secondary); animation-delay: -2s; animation-duration: 20s; }
.particle:nth-child(3) { left: 25%; top: 45%; width: 3px; height: 3px; animation-delay: -4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 35%; top: 65%; width: 5px; height: 5px; background: var(--accent); animation-delay: -6s; animation-duration: 22s; }
.particle:nth-child(5) { left: 45%; top: 15%; width: 4px; height: 4px; animation-delay: -8s; animation-duration: 17s; }
.particle:nth-child(6) { left: 55%; top: 35%; width: 7px; height: 7px; background: var(--secondary); animation-delay: -10s; animation-duration: 19s; }
.particle:nth-child(7) { left: 65%; top: 55%; width: 3px; height: 3px; animation-delay: -12s; animation-duration: 21s; }
.particle:nth-child(8) { left: 75%; top: 75%; width: 5px; height: 5px; background: var(--accent); animation-delay: -14s; animation-duration: 15s; }
.particle:nth-child(9) { left: 85%; top: 20%; width: 4px; height: 4px; animation-delay: -16s; animation-duration: 18s; }
.particle:nth-child(10) { left: 92%; top: 50%; width: 6px; height: 6px; animation-delay: -18s; animation-duration: 20s; }
.particle:nth-child(11) { left: 8%; top: 80%; width: 5px; height: 5px; background: var(--secondary); animation-delay: -1s; animation-duration: 16s; }
.particle:nth-child(12) { left: 18%; top: 5%; width: 3px; height: 3px; animation-delay: -3s; animation-duration: 22s; }
.particle:nth-child(13) { left: 28%; top: 30%; width: 6px; height: 6px; background: var(--accent); animation-delay: -5s; animation-duration: 17s; }
.particle:nth-child(14) { left: 38%; top: 90%; width: 4px; height: 4px; animation-delay: -7s; animation-duration: 19s; }
.particle:nth-child(15) { left: 48%; top: 60%; width: 5px; height: 5px; background: var(--primary); animation-delay: -9s; animation-duration: 21s; }
.particle:nth-child(16) { left: 58%; top: 85%; width: 3px; height: 3px; animation-delay: -11s; animation-duration: 15s; }
.particle:nth-child(17) { left: 68%; top: 8%; width: 7px; height: 7px; background: var(--secondary); animation-delay: -13s; animation-duration: 18s; }
.particle:nth-child(18) { left: 78%; top: 40%; width: 4px; height: 4px; background: var(--accent); animation-delay: -15s; animation-duration: 20s; }
.particle:nth-child(19) { left: 88%; top: 70%; width: 5px; height: 5px; animation-delay: -17s; animation-duration: 16s; }
.particle:nth-child(20) { left: 2%; top: 55%; width: 6px; height: 6px; background: var(--primary); animation-delay: -19s; animation-duration: 22s; }

@keyframes particleDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -40px) scale(1.2);
    opacity: 0.7;
  }
  50% {
    transform: translate(-20px, -80px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(40px, -40px) scale(1.1);
    opacity: 0.6;
  }
}

/* Light theme - adjust particle opacity */
[data-theme="light"] .particle {
  opacity: 0.35;
}

[data-theme="light"] .particles-container {
  z-index: 1; /* Keep same z-index in light mode */
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .particle {
    animation: none;
    opacity: 0.3;
  }
}

/* ============================================
   11. NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 16px; /* Floating navbar */
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 9998; /* High z-index to stay above all content */
  padding: 0.75rem 1.5rem;
  /* iOS-like pill glass effect */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.navbar.scrolled {
  top: 10px; /* Move slightly up when scrolled */
  padding: 0.65rem 1.5rem;
  background: rgba(10, 10, 15, 0.92);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-brand:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  list-style: none;
  position: relative;
}

/* Active indicator pill */
.nav-indicator {
  position: absolute;
  bottom: -8px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-sm);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-spring);
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--border-radius-full);
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary);
  color: var(--bg-primary);
  border-color: var(--primary);
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-glow-sm);
}

.theme-toggle i {
  transition: transform var(--duration-normal) var(--ease-spring);
}

.theme-toggle:hover i {
  transform: rotate(360deg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   12. HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: transparent;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

/* Neural Network Canvas */
#neural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.hero-text h1 .line {
  display: block;
  transform: translateY(100%);
  opacity: 0;
  animation: lineReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-text h1 .line:nth-child(1) { animation-delay: 3.2s; }
.hero-text h1 .line:nth-child(2) { animation-delay: 3.5s; }

.hero-text h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

@keyframes lineReveal {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.7s forwards;
}

.typing-text {
  font-family: var(--font-mono);
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.typing-text::after {
  content: '|';
  position: absolute;
  right: -8px;
  animation: blink 0.8s infinite;
  -webkit-text-fill-color: var(--primary);
}

.hero-text > p:not(.subtitle) {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.9s forwards;
}

.hero-text > p a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color var(--duration-fast);
}

.hero-text > p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.hero-text > p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 4.2s forwards;
}

/* Hero Image */
.hero-image {
  position: relative;
  opacity: 0;
  animation: fadeInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 3.4s forwards;
}

.hero-image img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform var(--duration-slow) var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  max-width: 450px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-xl);
  z-index: 0;
  opacity: 0.3;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: -20px;
  width: 100%;
  height: 100%;
  max-width: 450px;
  border: 2px solid var(--primary);
  border-radius: var(--border-radius-xl);
  z-index: 0;
  opacity: 0.5;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.hero-image:hover img {
  transform: translate(-5px, -5px);
}

.hero-image:hover::before {
  transform: translate(10px, 10px);
}

.hero-image:hover::after {
  transform: translate(-10px, 10px);
}

/* ============================================
   13. BUTTONS
   ============================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-full); /* Fully rounded like iOS */
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left var(--duration-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  box-shadow: 
    0 4px 20px rgba(var(--primary-rgb), 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2); /* iOS-like inner glow */
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 30px rgba(var(--primary-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
  /* iOS-like glassmorphism button */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* Light theme adjustments for glass buttons */
[data-theme="light"] .btn-secondary {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

/* Magnetic Button Effect */
.btn-magnetic {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

/* ============================================
   14. SECTION STYLES
   ============================================ */
.section-padding {
  padding: var(--spacing-4xl) 0;
  position: relative;
  /* Ensure background elements show through */
  background: transparent;
  overflow: visible;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
  overflow: visible;
}

.text-center {
  text-align: center;
}

/* Section Headers */
h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
}

.mb-5 { margin-bottom: var(--spacing-3xl); }

/* ============================================
   15. ABOUT SECTION
   ============================================ */
.about-content {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.about-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: var(--spacing-lg);
}

.about-content {
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 1rem;
  margin-top: var(--spacing-md);
}

.about-content p .highlight,
.hero-text p .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ============================================
   16. EXPERIENCE TIMELINE
   ============================================ */
.experience-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 50px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 10px;
  bottom: 40px;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 4px;
  transform: scaleY(0);
  transform-origin: top;
  animation: timelineGrow 1.5s var(--ease-out-expo) forwards;
}

@keyframes timelineGrow {
  to { transform: scaleY(1); }
}

.experience-item {
  position: relative;
  margin-bottom: var(--spacing-3xl);
}

/* Timeline dot - larger and more prominent */
.experience-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 28px;
  width: 22px;
  height: 22px;
  background: var(--bg-secondary);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 10;
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15);
}

/* First item glowing effect */
.experience-item:first-child::before {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), 0 0 20px rgba(var(--primary-rgb), 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2), 0 0 20px rgba(var(--primary-rgb), 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.3), 0 0 30px rgba(var(--primary-rgb), 0.7);
  }
}

.experience-item:hover::before {
  background: var(--primary);
  transform: scale(1.15);
  box-shadow: 0 0 0 6px rgba(var(--primary-rgb), 0.25), 0 0 15px rgba(var(--primary-rgb), 0.4);
}

/* Connecting line from dot to card */
.experience-item::after {
  content: '';
  position: absolute;
  left: -19px;
  top: 37px;
  width: 19px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
  z-index: 5;
}

.experience-date {
  position: absolute;
  left: -200px;
  top: 24px;
  width: 130px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.experience-content {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.03));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-xl) var(--spacing-2xl);
  border-radius: 16px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Gradient accent bar on left */
.experience-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 16px 0 0 16px;
}

/* Shimmer effect on hover */
.experience-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.6s ease;
}

.experience-content:hover::after {
  left: 100%;
}

.experience-content:hover {
  transform: translateX(8px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .experience-content {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06), rgba(var(--secondary-rgb), 0.03));
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .stat-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

/* Experience Header with Company Logo */
.experience-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.company-logo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all var(--duration-normal) var(--ease-spring);
}

.company-logo span {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.company-logo i {
  font-size: 1.5rem;
}

.company-logo.samsung-logo {
  background: linear-gradient(135deg, #1428a0, #0b1560);
}

.experience-content:hover .company-logo {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.experience-titles {
  flex: 1;
}

.experience-titles h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.company-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.company-name i {
  font-size: 0.8rem;
  color: var(--primary);
}

.company-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.company-location i {
  font-size: 0.7rem;
  color: var(--accent);
}

.employment-type {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(var(--primary-rgb), 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  transition: all var(--duration-fast) var(--ease-out);
}

.employment-type i {
  font-size: 0.7rem;
  color: var(--primary);
}

.experience-content:hover .employment-type {
  background: rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.4);
}

/* Experience Highlights List */
.experience-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-lg) 0;
  position: relative;
  z-index: 1;
}

.experience-highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
  padding-left: 70px;
}

.experience-highlights li:last-child {
  margin-bottom: 0;
}

.experience-highlights li i {
  color: var(--primary);
  font-size: 0.85rem;
  margin-top: 4px;
  min-width: 16px;
  opacity: 0.8;
}

.experience-highlights li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Experience Tech Tags */
.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding-left: 70px;
  position: relative;
  z-index: 1;
}

.experience-tech .tech-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  transition: all var(--duration-fast) var(--ease-out);
}

.experience-tech .tech-tag:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: translateY(-2px);
}

/* Light theme adjustments */
[data-theme="light"] .company-logo {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .employment-type {
  background: rgba(var(--primary-rgb), 0.1);
}

[data-theme="light"] .experience-tech .tech-tag {
  background: rgba(var(--primary-rgb), 0.08);
}

.experience-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* Responsive adjustments for timeline */
@media (max-width: 768px) {
  .experience-timeline {
    padding-left: 35px;
  }
  
  .experience-timeline::before {
    left: 6px;
  }
  
  .experience-item::before {
    left: -29px;
    width: 18px;
    height: 18px;
  }
  
  .experience-item::after {
    left: -11px;
    width: 11px;
  }
  
  .experience-date {
    position: static;
    width: auto;
    text-align: left;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: var(--border-radius-full);
  }
  
  .experience-header {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .company-logo {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  
  .company-logo i {
    font-size: 1.3rem;
  }
  
  .experience-titles h3 {
    font-size: 1.2rem;
  }
  
  .employment-type {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
  }
  
  .experience-highlights li {
    padding-left: 0;
    font-size: 0.875rem;
  }
  
  .experience-tech {
    padding-left: 0;
  }
  
  .company-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================
   17. PROJECT CARDS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-xl);
}

.project-card {
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px; /* More rounded like iOS cards */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out-expo);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .project-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* 3D Tilt Container */
.project-card .tilt-inner {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 28px 28px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: 10;
}

.project-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(var(--primary-rgb), 0.1);
  transform: translateY(-10px);
}

.project-card:hover::before {
  transform: scaleX(1);
}

/* Glow effect on hover */
.project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
              rgba(var(--primary-rgb), 0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-normal);
  pointer-events: none;
  z-index: 1;
}

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

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-content {
  padding: var(--spacing-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  /* Inherit glassmorphism from parent */
  background: transparent;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.project-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.project-card:hover .project-title::after {
  width: 80px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  transition: all var(--duration-fast) var(--ease-out-expo);
}

.tech-tag:hover {
  background: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.project-content > p {
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--spacing-lg);
}

.project-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-top: auto;
}

.project-links .btn {
  flex: 1;
  min-width: 130px;
  justify-content: center;
  font-size: 0.9rem;
  padding: 0.75rem 1.25rem;
}

/* ============================================
   18. ACHIEVEMENTS CAROUSEL
   ============================================ */
.achievements-wrapper {
  position: relative;
  width: 100%;
}

/* Hide nav buttons - using auto-scroll */
.achievements-wrapper .carousel-nav {
  display: none;
}

.achievement-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--spacing-lg) var(--spacing-md);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  /* Gradient fade on edges */
  mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 2%, black 98%, transparent);
}

.achievement-carousel::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: var(--spacing-xl);
  width: max-content;
  animation: autoScroll 45s linear infinite;
  will-change: transform;
}

.achievement-carousel:hover .carousel-track {
  animation-play-state: paused;
}

@keyframes autoScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - var(--spacing-xl) / 2)); }
}

.achievement-card {
  flex: 0 0 340px;
  min-width: 340px;
  scroll-snap-align: start;
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo),
              border-color var(--duration-normal) var(--ease-out-expo);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .achievement-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.achievement-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: scale(1.02) translateY(-4px);
}

.achievement-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px 24px 0 0;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.achievement-card:hover img {
  transform: scale(1.05);
}

.achievement-content {
  padding: var(--spacing-xl);
}

.achievement-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.achievement-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* Carousel Navigation */
.carousel-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
  flex-shrink: 0;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .carousel-nav {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.carousel-nav:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-sm);
}

.carousel-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   19. CERTIFICATIONS
   ============================================ */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

@media (max-width: 1100px) {
  .certifications-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.certification-card {
  /* Premium glassmorphism */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: var(--spacing-2xl) var(--spacing-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Animated gradient border */
.certification-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  animation: certBorderGlow 3s linear infinite;
}

@keyframes certBorderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Shimmer effect on hover */
.certification-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.certification-card:hover::after {
  left: 100%;
}

[data-theme="light"] .certification-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.certification-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(var(--primary-rgb), 0.15);
}

.certification-card:hover::before {
  opacity: 1;
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #ffffff;
  transition: all var(--duration-normal) var(--ease-spring);
  box-shadow: 
    0 8px 24px rgba(var(--primary-rgb), 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 2;
}

/* Icon glow effect */
.cert-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: inherit;
  filter: blur(12px);
  opacity: 0.4;
  border-radius: inherit;
  z-index: -1;
}

.certification-card:hover .cert-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 12px 32px rgba(var(--primary-rgb), 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.certification-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  position: relative;
  z-index: 2;
}

.cert-issuer {
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
  position: relative;
  z-index: 2;
}

.cert-date {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

/* ============================================
   20. SKILLS SECTION
   ============================================ */
.skills-categories {
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  margin-bottom: var(--spacing-2xl);
  opacity: 0;
  transform: translateY(30px);
}

.skill-category.animated {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s var(--ease-out-expo);
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.category-title::before {
  content: '//';
  font-family: var(--font-mono);
  opacity: 0.5;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg);
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  cursor: default;
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .skill-tag {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.skill-tag::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all var(--duration-normal) var(--ease-out-expo);
  z-index: -1;
}

.skill-tag:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-sm);
}

.skill-tag:hover::before {
  width: 200%;
  height: 200%;
}

/* Floating animation for skills */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.skill-tag:nth-child(odd) {
  animation: float 3s ease-in-out infinite;
}

.skill-tag:nth-child(even) {
  animation: float 3s ease-in-out 1.5s infinite;
}

/* ============================================
   21. CONTACT FORM
   ============================================ */
.contact-section {
  max-width: 700px;
  margin: 0 auto;
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px; /* More rounded */
  padding: var(--spacing-3xl);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .contact-section {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  border-radius: 32px 32px 0 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.form-group {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.form-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: block;
  transition: color var(--duration-fast);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  /* iOS-like glassmorphism inputs */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; /* More rounded */
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 
    0 0 0 4px rgba(var(--primary-rgb), 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus {
  background: rgba(255, 255, 255, 0.9);
}

.form-input:focus + .form-label,
.form-textarea:focus + .form-label {
  color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-actions {
  margin-top: var(--spacing-xl);
  text-align: center;
}

.success-message {
  display: none;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-md);
  margin-top: var(--spacing-lg);
  text-align: center;
  font-weight: 500;
  animation: fadeInUp 0.4s var(--ease-out-expo);
}

.success-message i {
  margin-right: var(--spacing-sm);
}

/* ============================================
   22. FOOTER
   ============================================ */
.footer {
  background: transparent;
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Reduce bottom padding for the section right before footer */
#contact.section-padding {
  padding-bottom: var(--spacing-2xl);
}

.footer-content {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.25rem;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--shadow-glow-sm);
}

.footer p {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* ============================================
   23. SCROLL ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px) scale(0.98);
  transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations */
.animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.25s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.4s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.55s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.7s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.85s; }
.animate-on-scroll:nth-child(7) { transition-delay: 1.0s; }

/* Section headings get a slower, grander entrance */
h2.animate-on-scroll {
  transform: translateY(60px) scale(0.96);
  transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Fade animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

/* ============================================
   24. UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-light {
  background: transparent;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   25. NOTIFICATION SYSTEM
   ============================================ */
.notification {
  position: fixed;
  top: 100px;
  right: 20px;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(400px);
  transition: transform var(--duration-normal) var(--ease-out-expo);
  z-index: 9999;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.notification-error {
  border-left: 4px solid var(--error);
}

.notification-success {
  border-left: 4px solid var(--success);
}

.notification-info {
  border-left: 4px solid var(--primary);
}

/* ============================================
   26. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-2xl);
  }
  
  .hero-image {
    order: -1;
    display: flex;
    justify-content: center;
  }
  
  .hero-image img {
    max-width: 350px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-text > p:not(.subtitle) {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    transform: translateX(-100%);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    z-index: 1000;
  }
  
  .nav-links.active {
    transform: translateX(0);
  }
  
  .nav-link {
    font-size: 1.5rem;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-item {
    padding-left: var(--spacing-xl);
  }
  
  .experience-date {
    position: static;
    margin-bottom: var(--spacing-md);
  }
  
  .section-padding {
    padding: var(--spacing-3xl) 0;
  }
  
  .contact-section {
    padding: var(--spacing-xl);
  }
  
  .achievement-card {
    flex: 0 0 300px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .navbar-container {
    padding: 0 var(--spacing-md);
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
}

/* ============================================
   27. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  .skill-tag {
    animation: none;
  }
}

/* ============================================
   28. STATS COUNTER SECTION
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-2xl);
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  border: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-number .counter-suffix {
  font-size: 2rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .stat-item:nth-child(1)::after,
  .stat-item:nth-child(3)::after {
    right: 0;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   29. SCROLL DOWN INDICATOR
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 40px; /* Moved to right side */
  left: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 0.6s var(--ease-out-expo) 1.5s forwards;
  /* iOS-like glass pill */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--border-radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-indicator-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-indicator-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 11px;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
}

.scroll-indicator-wheel {
  width: 3px;
  height: 6px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 0.3;
  }
}

.scroll-indicator-arrow {
  animation: bounceArrow 2s ease-in-out infinite;
}

.scroll-indicator-arrow i {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

[data-theme="light"] .scroll-indicator {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .scroll-indicator-mouse {
  border-color: rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 20px;
    right: 20px;
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

/* ============================================
   30. BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-full); /* Fully rounded */
  /* iOS-like glassmorphism button */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  z-index: 9999;
  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.85);
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 
    0 12px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .back-to-top {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 
    0 8px 24px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .back-to-top:hover {
  background: rgba(255, 255, 255, 0.85);
}

.back-to-top i {
  transition: transform var(--duration-fast);
}

.back-to-top:hover i {
  animation: floatUp 0.6s ease-in-out infinite;
}

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

/* Progress ring around back to top */
.back-to-top svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.back-to-top svg circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.3);
  stroke-width: 2;
}

.back-to-top svg circle.progress {
  stroke: #ffffff;
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  transition: stroke-dashoffset 0.1s linear;
}

/* ============================================
   31. CAROUSEL INDICATORS
   ============================================ */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  border: none;
  padding: 0;
}

.carousel-dot:hover {
  background: var(--text-tertiary);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 30px;
  border-radius: 5px;
}

/* ============================================
   32. PROJECT FILTERS
   ============================================ */
.project-filters {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-3xl);
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-xl);
  /* iOS-like glassmorphism */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out-expo);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .filter-btn {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-sm);
}

/* Featured badge */
.project-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-md);
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-full);
  z-index: 5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   33. CONTACT LAYOUT WITH SIDEBAR
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--spacing-3xl);
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-info-card:hover {
  border-color: var(--primary);
  transform: translateX(-5px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-md) 0;
}

.contact-info-item:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.contact-info-text a:hover {
  color: var(--primary);
}

.contact-social-row {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.contact-social-row a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.contact-social-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-3px);
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    order: -1;
  }
}

/* ============================================
   34. RESUME DOWNLOAD BUTTON
   ============================================ */
.btn-resume {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.btn-resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: left var(--duration-normal) var(--ease-out-expo);
  z-index: -1;
}

.btn-resume:hover {
  color: #ffffff;
  border-color: var(--primary);
}

.btn-resume:hover::before {
  left: 0;
}

/* ============================================
   35. ACHIEVEMENT BADGES
   ============================================ */
.achievement-badge {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-md);
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-full);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.achievement-badge i {
  font-size: 0.7rem;
}

.achievement-card {
  position: relative;
}

/* ============================================
   36. ENHANCED ABOUT SECTION
   ============================================ */
.about-content p .highlight {
  color: var(--primary);
  font-weight: 600;
}

.about-decorative {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--text-muted);
  opacity: 0.3;
  font-size: 0.8rem;
  pointer-events: none;
}

.about-decorative.top-left {
  top: var(--spacing-xl);
  left: var(--spacing-xl);
}

.about-decorative.bottom-right {
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
}

/* ============================================
   37. ANIMATED STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: rgba(var(--primary-rgb), 0.05);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.15);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

[data-theme="light"] .stat-card {
  background: rgba(var(--primary-rgb), 0.03);
  border-color: rgba(var(--primary-rgb), 0.08);
}

/* ============================================
   38. TERMINAL SECTION
   ============================================ */
.terminal-section {
  background: var(--bg-secondary);
}

.terminal-window {
  max-width: 800px;
  margin: 0 auto;
  background: #0d1117;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
}

.terminal-header {
  background: linear-gradient(180deg, #21262d 0%, #161b22 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: all var(--duration-fast);
}

.terminal-btn.close {
  background: #ff5f57;
}

.terminal-btn.minimize {
  background: #febc2e;
}

.terminal-btn.maximize {
  background: #28c840;
}

.terminal-btn:hover {
  filter: brightness(1.2);
}

.terminal-title {
  flex: 1;
  text-align: center;
  color: #8b949e;
  font-size: 0.8rem;
}

.terminal-body {
  padding: var(--spacing-xl);
  min-height: 300px;
  overflow-y: hidden;
  line-height: 1.8;
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-md);
}

.terminal-prompt {
  color: #58a6ff;
  font-weight: 600;
}

.terminal-command {
  color: #c9d1d9;
}

.terminal-cursor {
  color: var(--primary);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-output {
  margin-top: var(--spacing-lg);
}

.terminal-output pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-json {
  color: #c9d1d9;
}

.terminal-json .key {
  color: #7ee787;
}

.terminal-json .string {
  color: #a5d6ff;
}

.terminal-json .number {
  color: #79c0ff;
}

.terminal-json .bracket {
  color: #ffa657;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: var(--spacing-md);
  gap: 8px;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #c9d1d9;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex: 1;
  caret-color: var(--primary);
  padding: 0;
}

.terminal-input::placeholder {
  color: #484f58;
  font-style: italic;
}

.terminal-history-line {
  margin-top: var(--spacing-sm);
}

.terminal-history-line .terminal-prompt {
  color: #58a6ff;
  font-weight: 600;
}

.terminal-history-line .terminal-history-cmd {
  color: #c9d1d9;
}

.terminal-response {
  color: #8b949e;
  margin-top: 4px;
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-response a {
  color: #58a6ff;
  text-decoration: underline;
}

.terminal-response .terminal-success {
  color: #3fb950;
}

.terminal-response .terminal-error {
  color: #f85149;
}

.terminal-response .terminal-highlight {
  color: #ffa657;
}

[data-theme="light"] .terminal-window {
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* ============================================
   39. SKILLS RADAR CHART
   ============================================ */
.skills-visualization {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
  flex-wrap: wrap;
}

.radar-chart-container {
  width: 400px;
  height: 400px;
  position: relative;
}

.radar-chart {
  width: 100%;
  height: 100%;
}

.radar-labels {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.radar-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.skills-legend {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: rgba(var(--primary-rgb), 0.05);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all var(--duration-fast);
}

.legend-item:hover {
  background: rgba(var(--primary-rgb), 0.1);
  transform: translateX(4px);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: var(--border-radius-sm);
}

.legend-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.legend-value {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .skills-visualization {
    flex-direction: column;
  }
  
  .radar-chart-container {
    width: 300px;
    height: 300px;
  }
}

/* ============================================
   40. ENHANCED EXPERIENCE TIMELINE
   ============================================ */
/* Note: Base .experience-timeline styles are defined earlier in the file.
   These enhance the timeline with additional visual effects. */

/* Timeline animation styles - scroll reveal */
.experience-item.animate-on-scroll {
  opacity: 0;
  transform: translateX(-30px) scale(0.98);
}

.experience-item.animate-on-scroll.animated {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Staggered animation delay for timeline items */
.experience-item:nth-child(1) { transition-delay: 0.15s; }
.experience-item:nth-child(2) { transition-delay: 0.35s; }
.experience-item:nth-child(3) { transition-delay: 0.55s; }
.experience-item:nth-child(4) { transition-delay: 0.75s; }

/* Experience card hover enhancement */
.experience-item:hover .experience-content {
  transform: translateX(8px);
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), 0.15);
}

/* Company logo pulse on hover */
.experience-item:hover .company-logo {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

/* ============================================
   41. PROJECT CARD ENHANCED PREVIEW
   ============================================ */
.project-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}

.project-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 212, 255, 0.9) 0%,
    rgba(124, 58, 237, 0.85) 50%,
    rgba(255, 0, 110, 0.9) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

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

.project-preview-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: white;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.project-card:hover .project-preview-icon {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.project-preview-icon i {
  font-size: 2.5rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.project-preview-icon span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Shimmer effect on hover */
.project-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  transition: left 0.5s ease-out;
  pointer-events: none;
}

.project-card:hover .project-image-wrapper::after {
  left: 100%;
}

/* Project stats overlay */
.project-stats {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 5;
}

.project-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: white;
}

.project-stat i {
  font-size: 0.65rem;
}

[data-theme="light"] .project-overlay {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.9) 0%,
    rgba(124, 58, 237, 0.85) 50%,
    rgba(236, 72, 153, 0.9) 100%
  );
}

/* ============================================
   42. PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .intro-wrapper,
  .cursor,
  .cursor-dot,
  .gradient-orb,
  .bg-grid,
  .bg-noise,
  .scroll-progress,
  .back-to-top,
  .scroll-indicator,
  .terminal-section {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }
}
