/* Core Design System & Tokens */
:root {
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Theme: Default / All Mode */
  --theme-all: #8b5cf6; /* Indigo / Purple */
  --theme-all-rgb: 139, 92, 246;
  
  /* Theme: AI Mode */
  --theme-ai: #06b6d4; /* Cyan */
  --theme-ai-rgb: 6, 182, 212;

  /* Theme: Data Mode */
  --theme-data: #10b981; /* Emerald Green */
  --theme-data-rgb: 16, 185, 129;

  /* Active dynamic variables - updated via JS class on body */
  --accent-color: var(--theme-all);
  --accent-color-rgb: var(--theme-all-rgb);
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, var(--theme-all) 100%);

  /* Backgrounds & Offsets (Dark Mode Default) */
  --bg-dark: #0a0c10;
  --bg-card: rgba(18, 22, 32, 0.7);
  --bg-card-hover: rgba(26, 32, 46, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  /* Text colors */
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 0 20px rgba(var(--accent-color-rgb), 0.25);
}

/* Light Mode Overrides */
body.light-mode {
  /* Slightly higher contrast colors for readable light mode */
  --theme-all: #6d28d9; /* Deep Purple */
  --theme-all-rgb: 109, 40, 217;
  
  --theme-ai: #0891b2; /* Deep Cyan */
  --theme-ai-rgb: 8, 145, 178;

  --theme-data: #059669; /* Deep Emerald */
  --theme-data-rgb: 5, 150, 105;

  /* Backgrounds & Offsets */
  --bg-dark: #f8fafc; /* Light Slate */
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --border-color: rgba(15, 23, 42, 0.06);
  --border-color-hover: rgba(15, 23, 42, 0.12);
  
  /* Text colors */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #475569; /* Slate 600 */
  --text-muted: #94a3b8; /* Slate 400 */

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
  --shadow-accent: 0 0 20px rgba(var(--accent-color-rgb), 0.15);
}

/* Body and Theme adjustments */
body.mode-all {
  --accent-color: var(--theme-all);
  --accent-color-rgb: var(--theme-all-rgb);
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, var(--theme-all) 100%);
}

body.mode-ai {
  --accent-color: var(--theme-ai);
  --accent-color-rgb: var(--theme-ai-rgb);
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, var(--theme-ai) 100%);
}

body.mode-data {
  --accent-color: var(--theme-data);
  --accent-color-rgb: var(--theme-data-rgb);
  --accent-gradient: linear-gradient(135deg, #34d399 0%, var(--theme-data) 100%);
}

/* Reset and Layout Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color) rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background-color: rgba(var(--accent-color-rgb), 0.3);
  border-radius: 4px;
  border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent-color);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  min-height: 100vh;
  transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Three.js Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Fallback static gradient just in case WebGL fails */
.bg-fallback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-color-rgb), 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(20, 24, 33, 0.5) 0%, transparent 50%);
  z-index: -2;
  transition: var(--transition-slow);
}

body.light-mode .bg-fallback {
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-color-rgb), 0.04) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(248, 250, 252, 0.5) 0%, transparent 50%);
}

/* Global App Wrapper */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 12, 16, 0.7);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  transition: var(--transition-medium);
}

body.light-mode header {
  background: rgba(248, 250, 252, 0.75);
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(to right, #ffffff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-fast);
}

body.light-mode .logo-name {
  background: linear-gradient(to right, #0f172a, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-title {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: var(--transition-medium);
  margin-top: 2px;
}

/* Header Controls (Toggles Wrapper) */
.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* View Toggle Styles */
.toggle-wrapper {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px;
  position: relative;
  display: flex;
  gap: 2px;
  transition: background-color var(--transition-medium), border-color var(--transition-medium);
}

body.light-mode .toggle-wrapper {
  background: rgba(15, 23, 42, 0.04);
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition-fast);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-btn:hover {
  color: var(--text-primary);
}

.toggle-btn.active {
  color: #000000;
}

body.light-mode .toggle-btn.active {
  color: #ffffff;
}

.toggle-slider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  background: var(--accent-color);
  border-radius: 50px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color var(--transition-medium);
  z-index: 1;
  box-shadow: 0 4px 10px rgba(var(--accent-color-rgb), 0.3);
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

body.light-mode .theme-toggle-btn {
  background: rgba(15, 23, 42, 0.04);
}

.theme-toggle-btn:hover {
  background: rgba(var(--accent-color-rgb), 0.08);
  border-color: rgba(var(--accent-color-rgb), 0.3);
  color: var(--accent-color);
  transform: scale(1.05) rotate(15deg);
}

/* Sun & Moon visibility based on light-mode class */
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
body.light-mode .theme-toggle-btn .sun-icon { display: block; }
body.light-mode .theme-toggle-btn .moon-icon { display: none; }

/* Layout & Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  padding: 4rem 0 3rem 0;
  align-items: center;
}

.profile-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-medium);
}

.profile-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(var(--accent-color-rgb), 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: var(--transition-medium);
}

body.light-mode .profile-card::before {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(var(--accent-color-rgb), 0.4) 100%);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-accent);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge-container {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-badge {
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.2);
  color: var(--accent-color);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-medium);
}

.hero-name {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  background: linear-gradient(to bottom right, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-name {
  background: linear-gradient(to bottom right, #0f172a 30%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-summary {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.7;
}

/* Contact Links Bar */
.contact-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

body.light-mode .contact-link {
  background: rgba(15, 23, 42, 0.02);
}

.contact-link:hover {
  background: rgba(var(--accent-color-rgb), 0.05);
  border-color: rgba(var(--accent-color-rgb), 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

body.light-mode .contact-link:hover {
  background: rgba(var(--accent-color-rgb), 0.04);
}

.contact-link i {
  color: var(--accent-color);
  transition: var(--transition-medium);
}

/* Grounded Premium Sections */
.section-wrapper {
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode .section-wrapper {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.section-icon {
  background: rgba(var(--accent-color-rgb), 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.15);
  color: var(--accent-color);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

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

/* Cards & Glassmorphism Styles */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  background: var(--bg-card-hover);
}

/* Spotlight Card (Special for langChain book/achievements) */
.spotlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.08) 0%, rgba(20, 24, 33, 0.7) 60%);
  border: 1px solid rgba(var(--accent-color-rgb), 0.25);
  box-shadow: var(--shadow-accent);
}

body.light-mode .spotlight-card {
  background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.05) 0%, rgba(255, 255, 255, 0.8) 60%);
}

.spotlight-content-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  align-items: center;
}

.spotlight-details {
  display: flex;
  flex-direction: column;
}

.spotlight-cover-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-cover-img {
  width: 100%;
  max-width: 150px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-medium);
}

body.light-mode .book-cover-img {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.spotlight-card:hover .book-cover-img {
  transform: translateY(-8px) rotate(3deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

body.light-mode .spotlight-card:hover .book-cover-img {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

#book-spotlight a {
  text-decoration: none;
  color: inherit;
}

#book-spotlight a:hover #spotlight-title {
  color: var(--accent-color);
}

#book-spotlight a #spotlight-title i {
  transition: transform var(--transition-fast);
}

#book-spotlight a:hover #spotlight-title i {
  transform: translate(2px, -2px);
}

@media (max-width: 768px) {
  .spotlight-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .book-cover-img {
    max-width: 130px;
  }
}

.spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Experience / Timeline Section */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(var(--accent-color-rgb), 0.3) 0%, rgba(255, 255, 255, 0.02) 100%);
  transition: var(--transition-medium);
}

body.light-mode .timeline::before {
  background: linear-gradient(to bottom, rgba(var(--accent-color-rgb), 0.3) 0%, rgba(0, 0, 0, 0.02) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid rgba(var(--accent-color-rgb), 0.7);
  transform: translateX(-6px);
  z-index: 2;
  transition: var(--transition-medium);
}

.timeline-item:hover::before {
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
}

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

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

.role-period {
  font-size: 0.85rem;
  font-family: var(--font-heading);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  color: var(--text-secondary);
}

body.light-mode .role-period {
  background: rgba(15, 23, 42, 0.02);
}

.company-name {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.15rem;
  transition: var(--transition-medium);
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.timeline-content li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  transition: var(--transition-medium);
}

/* Skills Cloud styling */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skills-category {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: var(--transition-medium);
}

.skills-category.dimmed {
  opacity: 0.25;
  filter: blur(1px) grayscale(50%);
  pointer-events: none;
}

.skills-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-category-title i {
  color: var(--accent-color);
  font-size: 0.9rem;
  transition: var(--transition-medium);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition-fast);
}

body.light-mode .skill-tag {
  background: rgba(15, 23, 42, 0.02);
}

.skill-tag:hover {
  background: rgba(var(--accent-color-rgb), 0.08);
  border-color: rgba(var(--accent-color-rgb), 0.3);
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Projects Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  transition: var(--transition-slow);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: var(--transition-medium), opacity 0.4s ease, transform 0.4s ease;
  transform-origin: center;
}

/* Project Filtering Classes */
.project-card.filtered-out {
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  position: absolute;
  pointer-events: none;
  visibility: hidden;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: none;
  overflow: hidden;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.project-period {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.project-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-highlights li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  transition: var(--transition-medium);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

body.light-mode .tech-badge {
  background: rgba(15, 23, 42, 0.02);
}

/* Awards and Publications grid styling */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.award-item {
  display: flex;
  gap: 1rem;
}

.award-icon-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--accent-color);
  min-width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-medium);
}

body.light-mode .award-icon-box {
  background: rgba(15, 23, 42, 0.02);
}

.award-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.award-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Footer Section */
footer {
  text-align: center;
  padding: 4rem 0 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
}

body.light-mode footer {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 3rem 0 2rem 0;
  }
  
  .profile-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .hero-badge-container {
    justify-content: center;
  }
  
  .contact-container {
    justify-content: center;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  #experience-section {
    grid-column: span 1 !important;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  /* Center align headers and wrappers */
  body, .section-header, .timeline-item {
    text-align: center;
  }
  
  .section-header {
    justify-content: center;
  }
  
  .timeline {
    padding-left: 0;
    border-left: none;
  }
  
  .timeline::before, .timeline-item::before {
    display: none;
  }
  
  .timeline-content ul {
    text-align: left;
    margin-left: 1.5rem;
    list-style-position: outside;
  }
  
  .awards-list {
    text-align: left;
  }
  
  #education-container .glass-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
  }
  
  .skills-category-title {
    justify-content: center;
  }
  
  .skills-list {
    justify-content: center;
  }
  
  .timeline-header {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .role-period {
    align-self: center;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .logo {
    align-items: center;
  }
  
  .header-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  
  .toggle-wrapper {
    flex: 1;
    justify-content: center;
  }
  
  .toggle-btn {
    flex: 1;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .glass-card {
    padding: 1.25rem;
  }
  
  .app-container {
    padding: 0 1rem;
  }
  
  .hero-name {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}
