/* ========================================
   RESET & BASE STYLES
   ======================================== */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  /* Light Mode Colors */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-primary: #3b82f6;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --blur-amount: 12px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

.dark {
  /* Dark Mode Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-primary: #60a5fa;
  --accent-secondary: #a78bfa;
  
  /* Glass Effect Dark */
  --glass-bg: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Shadows Dark */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Full-page space background canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(59,130,246,0.6);
}

/* Mobile Nav Overlay */
#nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* Solid readable background in both themes */
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: all var(--transition-base);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.dark .site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-primary);
  transition: transform var(--transition-fast);
}

.brand:hover .brand-img {
  transform: scale(1.1);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  /* Always force a readable color */
  color: #0f172a;
  letter-spacing: -0.02em;
}

.dark .brand-name {
  color: #f1f5f9;
}

.brand-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-fast);
}

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

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-fast);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

.social-link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
  text-align: center;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.hero-image-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  flex-shrink: 0;
  z-index: 2;
  border-radius: 50%;
}

.hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(139, 92, 246, 0.2) 40%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.hero-profile-img:hover {
  transform: scale(1.02);
}

.fallback-img {
  object-fit: contain;
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
}

.hero-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-amount));
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.scroll-down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(59, 130, 246, 0.5);
  color: var(--accent-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  animation: bounce 2s infinite;
  box-shadow: var(--shadow-lg);
  opacity: 1;
  visibility: visible;
}

.scroll-down-arrow.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(20px);
}

.scroll-down-arrow:hover {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  transform: translateX(-50%) translateY(-4px);
  box-shadow: var(--shadow-xl);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

.dark .scroll-down-arrow {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(96, 165, 250, 0.5);
  color: var(--accent-primary);
}

.dark .scroll-down-arrow:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  color: var(--accent-primary);
  font-weight: 300;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 2px;
}

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

/* Fade-in Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s ease-out forwards;
}

.fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.content-section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-tag {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  backdrop-filter: blur(var(--blur-amount));
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-terminal {
  background: #1e1e1e;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  font-family: 'Courier New', Courier, monospace;
}
.terminal-header {
  background: #2d2d2d;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #111;
}
.terminal-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-title {
  color: #888;
  font-size: 0.85rem;
  margin-left: auto;
  margin-right: auto;
}
.terminal-body {
  padding: 1.5rem;
  color: #e6e6e6;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 200px;
  text-align: left;
}
.terminal-prompt {
  color: #27c93f;
  font-weight: bold;
}
.terminal-output {
  color: #aaa;
  margin-left: 1rem;
}
.terminal-output.success {
  color: #27c93f;
}
.cursor-blink {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #e6e6e6;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.lead-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.about-content strong {
  color: var(--accent-primary);
  font-weight: 600;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   SKILLS SECTION
   ======================================== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeInScale 0.6s ease-out forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.skill-card:hover::before {
  opacity: 0.1;
}

.skill-icon {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.skill-icon img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-base);
}

.skill-card:hover .skill-icon img {
  transform: scale(1.1) rotate(5deg);
}

.skill-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.skill-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}
/* ========================================
   PROJECTS SECTION
   ======================================== */
.project-list {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}
.project-card:hover::before {
  transform: scaleX(1);
}
.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.project-icon {
  font-size: 2.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.project-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.project-description strong {
  color: var(--accent-primary);
  font-weight: 600;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  transition: all var(--transition-fast);
}
.tag:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: scale(1.05);
}
/* ========================================
   TIMELINE (EXPERIENCE & EDUCATION)
   ======================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  height: 100%;
  width: 2px;
  background: var(--glass-border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 4px solid var(--accent-primary);
  box-shadow: 0 0 0 4px var(--bg-primary), 0 0 10px rgba(59, 130, 246, 0.4);
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(var(--blur-amount));
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.timeline-company {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.timeline-list {
  list-style: none;
}

.timeline-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* ========================================
   SKILLS LAYOUT
   ======================================== */
.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(var(--blur-amount));
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

.skill-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.skill-tag:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.cert-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(var(--blur-amount));
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 4rem 0 2rem;
  margin-top: var(--spacing-xl);
  border-top: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-brand h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted);
}
/* ========================================
   SKILLS MARQUEE
   ======================================== */
.skills-marquee-container {
  overflow: hidden;
  padding: 2rem 0 4.5rem 0;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 3rem;
}

.dark .skills-marquee-container {
  background: rgba(0, 0, 0, 0.1);
}

.skills-marquee {
  display: flex;
  width: 200%;
}

.marquee-content {
  display: flex;
  justify-content: space-around;
  min-width: 50%;
  animation: scrollMarquee 20s linear infinite;
}

.skills-marquee:hover .marquee-content {
  animation-play-state: paused;
}

.marquee-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.marquee-icon:hover {
  transform: scale(1.2) rotate(5deg);
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}

.contact-icon-wrapper {
  width: 80px;
  height: 80px;
  background: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.contact-icon-wrapper img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.contact-card:hover .contact-icon-wrapper img {
  transform: scale(1.1);
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========================================
   TILT & MAGNETIC ANIMATIONS
   ======================================== */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.magnetic-btn {
  /* JS will handle transform */
  position: relative;
}

#mouse-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0,0,0,0) 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.dark #mouse-glow {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.1) 0%, rgba(0,0,0,0) 60%);
}

/* ========================================
   TOOLTIPS
   ======================================== */
.tooltip-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  flex-shrink: 0;
}

.custom-tooltip {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  z-index: 100;
}

.tooltip-container:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  margin-left: 0.75rem;
  padding: 2px;
  flex-shrink: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  /* Always visible on light nav */
  background-color: #0f172a;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.dark .mobile-menu-btn span {
  background-color: #f1f5f9;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    min-height: 350px;
    max-height: 60vh;
  }
  
  .banner-img {
    max-height: 60vh;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav {
    padding: 0.75rem 1.25rem;
  }
  .mobile-menu-btn {
    display: flex;
  }
  /* Hide desktop socials to save space in nav on mobile */
  .socials {
    display: none;
  }
  /* Full-screen overlay nav */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease;
    pointer-events: none;
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* Bigger nav links in mobile menu */
  .nav-links .nav-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  .brand-img {
    width: 36px;
    height: 36px;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-title {
    font-size: 0.68rem;
  }
  .nav-right {
    gap: 0.75rem;
  }
  /* Hero section mobile fix */
  .hero {
    height: auto;
    min-height: 100vh;
  }
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding: 5rem 1rem 2rem 1rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-image-wrapper {
    width: 200px;
    height: 200px;
  }
  .content-section {
    padding: var(--spacing-lg) 0;
  }
  .section-header {
    margin-bottom: var(--spacing-md);
  }
  .section-title {
    font-size: 2rem;
  }
  .lead-text {
    font-size: 1.1rem;
  }
  .about-content p, .about-text p {
    font-size: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr !important;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .stat-card {
    padding: 1.5rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .skill-card {
    padding: 1.5rem 1rem;
  }
  .skill-icon img {
    width: 48px;
    height: 48px;
  }
  .project-card {
    padding: 2rem;
  }
  .project-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
  }
  .project-title {
    font-size: 1.25rem;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .footer-socials {
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .nav {
    padding: 0.875rem 1rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand-name {
    font-size: 0.95rem;
  }
  .brand-title {
    font-size: 0.65rem;
  }
  .brand-img {
    width: 32px;
    height: 32px;
  }
  .nav-right {
    gap: 0.75rem;
  }
  .socials {
    gap: 0.5rem;
  }
  .social-link {
    width: 32px;
    height: 32px;
  }
  .social-link img {
    width: 16px;
    height: 16px;
  }
  .theme-btn {
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
  }
  .hero {
    min-height: 250px;
    max-height: 45vh;
  }
  
  .banner-img {
    max-height: 45vh;
    width: 100%;
  }
  
  .scroll-down-arrow {
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
  
  .section-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  .section-title {
    font-size: 1.75rem;
  }
  .lead-text {
    font-size: 1rem;
  }
  .about-content p {
    font-size: 0.95rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .skill-grid {
    grid-template-columns: 1fr;
  }
  .project-card {
    padding: 1.5rem;
  }
  .project-header {
    gap: 0.75rem;
  }
  .project-icon {
    font-size: 1.75rem;
    width: 45px;
    height: 45px;
  }
  .project-title {
    font-size: 1.1rem;
  }
  .project-description {
    font-size: 0.95rem;
  }
  
  .footer-socials {
    justify-content: center;
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}
/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 999;
}

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

.back-to-top:hover {
  background: var(--accent-secondary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
}

.back-to-top svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .site-header,
  .theme-btn,
  .hero {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .project-card,
  .skill-card,
  .stat-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
