:root {
  /* Enhanced Dark Theme Color Palette */
  --bg-primary: #0a0f1c;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-quaternary: #374151;
  
  /* Advanced Glass Morphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  --glass-highlight: rgba(255, 255, 255, 0.1);
  
  /* Enhanced Shadow Variables */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 32px 128px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 30px rgba(6, 182, 212, 0.3);
  --shadow-neon-strong: 0 0 50px rgba(6, 182, 212, 0.5);
  
  /* Enhanced Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-tertiary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --text-ghost: #475569;
  
  /* Enhanced Accent Colors - Single Color Theme */
  --accent-primary: #06b6d4;
  --accent-secondary: #0891b2;
  --accent-tertiary: #0e7490;
  --accent-quaternary: #155e75;
  --accent-light: rgba(6, 182, 212, 0.1);
  --accent-glow: rgba(6, 182, 212, 0.2);
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --accent-gradient-vertical: linear-gradient(180deg, #06b6d4 0%, #0891b2 100%);
  
  /* System Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;
  
  /* Advanced Glassmorphism Blur */
  --blur-xs: 4px;
  --blur-sm: 8px;
  --blur-md: 16px;
  --blur-lg: 24px;
  --blur-xl: 32px;
  --blur-2xl: 40px;
  
  /* Enhanced Spacing & Layout */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --radius-full: 9999px;
  
  /* Typography Scale */
  --font-xs: 0.75rem;
  --font-sm: 0.875rem;
  --font-base: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.25rem;
  --font-2xl: 1.5rem;
  --font-3xl: 1.875rem;
  --font-4xl: 2.25rem;
  --font-5xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Accessibility: Visually hidden labels */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: 
    radial-gradient(circle at 25% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 75% 75%, rgba(8, 145, 178, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(14, 116, 144, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  font-weight: 400;
  font-size: var(--font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  position: relative;
}

/* Enhanced ambient background elements */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 25%),
    radial-gradient(circle at 80% 30%, rgba(8, 145, 178, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 40% 70%, rgba(14, 116, 144, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 60% 90%, rgba(21, 94, 117, 0.03) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
  animation: floatingOrbs 20s ease-in-out infinite;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(6, 182, 212, 0.02) 49%, rgba(6, 182, 212, 0.02) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(8, 145, 178, 0.02) 49%, rgba(8, 145, 178, 0.02) 51%, transparent 52%);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

@keyframes floatingOrbs {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(-40px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1rem 2rem;
  position: relative;
  z-index: 1;
}

header {
  text-align: center;
  margin-bottom: 4rem;
  padding: 4rem 2rem;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.06) 0%, 
      rgba(255, 255, 255, 0.03) 50%, 
      rgba(255, 255, 255, 0.08) 100%);
  backdrop-filter: blur(var(--blur-2xl)) saturate(200%) brightness(115%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(200%) brightness(115%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-2xl);
  box-shadow: 
    var(--shadow-xl),
    0 0 0 1px var(--glass-highlight),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-2xl);
  background: var(--accent-gradient);
  opacity: 0.03;
  z-index: -1;
}

header h1 {
  font-size: clamp(var(--font-3xl), 6vw, var(--font-5xl));
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: var(--shadow-neon);
  animation: pulseGlow 3s infinite alternate;
}

.header-subtitle {
  font-size: var(--font-lg);
  color: var(--text-tertiary);
  font-weight: 400;
  margin: 1rem auto 0;
  padding: 0 2rem;
  max-width: 800px;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.02em;
  position: relative;
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.1);
  }
  100% {
    text-shadow: 0 0 20px rgba(94, 234, 212, 0.3), 0 0 40px rgba(94, 234, 212, 0.1);
  }
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  max-width: min(90vw, 700px);
  width: auto;
  min-width: 300px;
  border-radius: var(--radius-full);
  background: 
    linear-gradient(135deg, 
      rgba(6, 12, 25, 0.95) 0%, 
      rgba(15, 23, 42, 0.92) 30%,
      rgba(20, 29, 47, 0.9) 60%, 
      rgba(30, 41, 59, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(110%);
  border: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 2px 16px rgba(6, 182, 212, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 40px rgba(6, 182, 212, 0.05);
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  z-index: 10000;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  visibility: hidden;
}

nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-2xl);
  background: var(--accent-gradient);
  opacity: 0.1;
  z-index: -1;
  transition: opacity 0.3s ease;
}

nav:hover::before {
  opacity: 0.2;
}

nav:hover {
  transform: translateX(-50%) scale(1.02);
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 4px 20px rgba(6, 182, 212, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 0 60px rgba(6, 182, 212, 0.1);
}

/* Enhanced Navigation hide/show states */
nav.nav-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-100%) scale(0.9);
  backdrop-filter: blur(0px) saturate(100%) brightness(100%);
  -webkit-backdrop-filter: blur(0px) saturate(100%) brightness(100%);
  box-shadow: none;
}

nav.nav-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
  backdrop-filter: blur(24px) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(110%);
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.025em;
  text-align: center;
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.08) 0%, 
      rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  white-space: nowrap;
  min-width: fit-content;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 1px 3px rgba(6, 182, 212, 0.1);
}

nav a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.3) 0%, 
    rgba(94, 234, 212, 0.2) 100%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}

nav a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(6, 182, 212, 1) 0%, 
    rgba(94, 234, 212, 1) 100%);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

nav a:hover {
  color: rgba(255, 255, 255, 1);
  border-color: rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, 
    rgba(6, 182, 212, 0.15) 0%, 
    rgba(94, 234, 212, 0.1) 100%);
  backdrop-filter: blur(16px) saturate(180%) brightness(120%);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(120%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 
    0 8px 25px rgba(6, 182, 212, 0.3),
    0 2px 10px rgba(94, 234, 212, 0.2),
    0 0 0 1px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

nav a:hover::after {
  opacity: 1;
}

nav a:hover::before {
  width: 85%;
}

nav a:active {
  transform: translateY(-1px) scale(1.01);
}

section {
  background: 
    linear-gradient(135deg, 
      rgba(255, 255, 255, 0.04) 0%, 
      rgba(255, 255, 255, 0.02) 50%, 
      rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(var(--blur-xl)) saturate(180%) brightness(110%);
  -webkit-backdrop-filter: blur(var(--blur-xl)) saturate(180%) brightness(110%);
  padding: 3.5rem;
  border-radius: var(--radius-2xl);
  margin-bottom: 3rem;
  box-shadow: 
    var(--shadow-lg),
    0 0 0 1px var(--glass-border),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  border: 1px solid var(--glass-border-strong);
  text-align: left;
}

section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-2xl);
  background: var(--accent-gradient);
  opacity: 0.02;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

/* About section specific styles */
#about {
  text-align: center;
}

#about p {
  text-align: left;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

section:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    var(--shadow-xl),
    0 0 0 1px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    var(--shadow-neon-strong);
  border-color: rgba(6, 182, 212, 0.5);
  backdrop-filter: blur(var(--blur-2xl)) saturate(200%) brightness(120%);
  -webkit-backdrop-filter: blur(var(--blur-2xl)) saturate(200%) brightness(120%);
}

section:hover::after {
  opacity: 0.05;
}

section h2 {
  font-size: clamp(var(--font-2xl), 4vw, var(--font-3xl));
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
}

section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
}

#about img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 2rem auto;
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  
  /* Enhanced glassmorphism effect */
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(var(--accent-primary-rgb), 0.4),
    inset 0 0 15px rgba(var(--accent-secondary-rgb), 0.2);
  padding: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

#about img::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  z-index: -1;
  opacity: 0.6;
}

#about img::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--accent-secondary-rgb), 0.3) 0%,
    rgba(var(--accent-primary-rgb), 0.1) 50%,
    transparent 70%
  );
  z-index: -2;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#about img:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(var(--accent-primary-rgb), 0.6),
    inset 0 0 20px rgba(var(--accent-secondary-rgb), 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

#about img:hover::after {
  opacity: 0.8;
  animation: pulseGlow 3s infinite alternate;
}

/* Professional Typography */
p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: var(--font-base);
  font-weight: 400;
  max-width: 75ch;
}

strong {
  color: var(--text-primary);
  font-weight: 600;
}

h3 {
  color: var(--text-primary);
  font-size: var(--font-xl);
  margin: 2rem 0 1.25rem 0;
  font-weight: 600;
  line-height: 1.4;
}

h4 {
  color: var(--accent-primary);
  font-size: var(--font-lg);
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

h5 {
  color: var(--accent-secondary);
  font-size: var(--font-base);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(203, 213, 225, 0.3);
  transition: all 0.3s ease;
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.7;
  position: relative;
  padding-left: 1.5rem;
}

ul li::before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
  top: 0.75rem;
  font-weight: bold;
}

ul li:last-child {
  border-bottom: none;
}

.project {
  margin-bottom: 2.5rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-xl);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
}

.project:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(6, 182, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(6, 182, 212, 0.5);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
}

.project h4 {
  font-size: var(--font-xl);
  margin-bottom: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.project-links {
  display: flex;
  gap: 0.75rem;
}

.github-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: var(--accent-light);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-primary);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
}

.github-link:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--accent-light);
}

.project-content {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-light);
}

.project-content > p {
  font-size: var(--font-base);
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.project-features {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(94, 234, 212, 0.03);
  border-radius: var(--radius-md);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--glass-border);
}

.project-features h5 {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  font-size: var(--font-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-stack {
  margin-top: 1.5rem;
  padding: 1rem;
  font-size: var(--font-sm);
  color: var(--text-tertiary);
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  display: inline-block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  width: 100%;
}

.skill-category {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, var(--accent-light), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(6, 182, 212, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.skill-category:hover::before {
  opacity: 0.2;
}

.skill-category h3 {
  color: var(--accent-primary);
  margin-top: 0;
  font-size: var(--font-lg);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
}

.project-features ul {
  margin-left: 0;
  padding-left: 1.75rem;
  list-style-position: outside;
  margin-top: 0.75rem;
}

.project-features li {
  list-style: none;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  padding: 0.25rem 0 0.25rem 1.25rem;
  line-height: 1.5;
  position: relative;
  display: list-item;
}

.project-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2em;
  line-height: 1.2;
}

.tech-stack {
  background: rgba(0, 122, 255, 0.08);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-blue);
  margin-top: 1.5rem;
  font-size: var(--font-base);
  color: var(--text-secondary);
}

/* Education Styles */
.education-item {
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.education-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.education-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-light);
}

.education-item:hover::after {
  transform: scaleX(1);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.duration {
  font-size: var(--font-sm);
  color: var(--accent-primary);
  background: var(--accent-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.academic-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(94, 234, 212, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-primary);
}

.academic-metrics span {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  background: rgba(94, 234, 212, 0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.coursework {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
}

.coursework h4 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.course-category {
  padding: 1.5rem;
  background: var(--glass-bg);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}

.course-category:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), 0 0 10px var(--accent-light);
  border-color: var(--accent-primary);
}

.course-category strong {
  color: var(--accent-secondary);
  font-size: var(--font-sm);
  display: block;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.course-category strong {
  color: var(--accent-blue-light);
  display: block;
  margin-bottom: 1rem;
  font-size: var(--font-base);
}

.course-category ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
}

.course-category li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.course-category li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2em;
  line-height: 1.2;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

.achievement-item {
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.achievement-item::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient);
  opacity: 0.1;
  transition: all 0.5s ease;
  transform: rotate(35deg);
}

.achievement-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-light);
  border-color: var(--accent-primary);
}

.achievement-item:hover::before {
  top: -50%;
  left: -50%;
}

.achievement-item h4 {
  color: var(--accent-primary);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: var(--font-xl);
  letter-spacing: 0.01em;
}

.achievement-item p:first-of-type {
  color: var(--accent-secondary);
  font-weight: 500;
  margin-bottom: 1rem;
  font-size: var(--font-sm);
  padding: 0.5rem 0.75rem;
  background: rgba(165, 180, 252, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.achievement-item p:last-child {
  margin-bottom: 0;
  color: var(--text-tertiary);
  font-size: var(--font-sm);
}

.experience-section {
  margin-bottom: 3rem;
}

.experience-section h3 {
  color: var(--accent-blue);
  font-size: var(--font-xl);
  margin-bottom: 2rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent-blue);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.skill-category {
  background: var(--glass-bg);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur-amount));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover {
  transform: translateY(-8px);
  background: var(--glass-bg-strong);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.skill-category h3 {
  color: var(--text-primary);
  font-size: var(--font-xl);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.skill-category ul {
  list-style: none;
  padding: 0;
  margin-top: 0;
}

.skill-category li {
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: var(--font-base);
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
}

.skill-category li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 1rem;
  color: rgba(6, 182, 212, 0.8);
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.skill-category li:hover {
  padding-left: 2.5rem;
  color: var(--accent-blue-light);
  background: rgba(0, 122, 255, 0.05);
  border-radius: var(--radius-sm);
  border-bottom-color: var(--accent-blue);
}

.skill-category li:hover::before {
  color: rgba(6, 182, 212, 1);
  transform: translateX(0.5rem);
}

.skill-category li:last-child {
  border-bottom: none;
}

.skill-category li strong {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Contact Form Styles */
#contact {
  background: var(--glass-bg);
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  margin: 2rem auto;
  backdrop-filter: blur(var(--blur-amount));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(var(--accent-secondary-rgb), 0.3);
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--accent-primary-rgb), 0.1) 0%,
    rgba(var(--accent-secondary-rgb), 0.1) 100%);
  opacity: 0.6;
  z-index: -1;
}

#contact h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

#contact form {
  display: grid;
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#contact input, 
#contact textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(var(--dark-bg-rgb), 0.4);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  font-size: var(--font-base);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contact input::placeholder, 
#contact textarea::placeholder {
  color: var(--text-subtle);
  opacity: 0.7;
}

#contact input:focus, 
#contact textarea:focus {
  border-color: rgba(var(--accent-secondary-rgb), 0.8);
  outline: none;
  background: rgba(var(--dark-bg-rgb), 0.6);
  box-shadow: 
    0 0 0 2px rgba(var(--accent-secondary-rgb), 0.2),
    0 8px 25px rgba(var(--accent-primary-rgb), 0.15);
  transform: translateY(-2px);
}

/* Form validation states */
#contact-form input.error,
#contact-form textarea.error {
  border-color: var(--error);
  box-shadow: 
    0 0 0 3px rgba(255, 69, 58, 0.1),
    0 8px 25px rgba(255, 69, 58, 0.15);
}

.error-message {
  color: var(--error);
  font-size: var(--font-xs);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.error-message::before {
  content: '⚠️';
  font-size: var(--font-sm);
}

#contact button {
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, 
    rgba(var(--accent-primary-rgb), 1) 0%,
    rgba(var(--accent-secondary-rgb), 1) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-base);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
  letter-spacing: 0.5px;
}

#contact button::before {
  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.7s ease;
}

#contact button:hover {
  background: linear-gradient(135deg, 
    rgba(var(--accent-secondary-rgb), 1) 0%,
    rgba(var(--accent-primary-rgb), 1) 100%);
  transform: translateY(-3px);
  box-shadow: 
    0 6px 20px rgba(var(--accent-primary-rgb), 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

#contact button:hover::before {
  left: 100%;
}

#contact button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.3);
}

#form-status {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-sm);
  text-align: center;
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(var(--dark-bg-rgb), 0.4);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  color: var(--text-muted);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#form-status.show {
  opacity: 1;
}

/* Resume Download Button */
.resume-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: rgba(var(--dark-bg-rgb), 0.6);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(var(--blur-amount));
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.resume-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 10px 20px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  background: rgba(var(--dark-bg-rgb), 0.7);
}

.resume-btn:hover::before {
  transform: scaleX(1);
}

.resume-btn {
  display: block;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--accent-light);
  transition: all 0.3s ease;
  max-width: 250px;
}

.resume-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Footer Styles */
footer {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem 0;
  color: var(--text-tertiary);
  font-size: var(--font-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(var(--dark-bg-rgb), 0.8);
  backdrop-filter: blur(var(--blur-strong));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gradient);
  opacity: 0.6;
  z-index: 1;
}

footer p {
  color: var(--text-subtle);
  font-size: var(--font-sm);
  margin: 0;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

footer a {
  color: rgba(var(--accent-secondary-rgb), 1);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.25rem 0.5rem;
  margin: 0 0.25rem;
  position: relative;
  border-radius: var(--radius-sm);
}

footer a:hover {
  color: rgba(var(--accent-primary-rgb), 1);
  background: rgba(var(--accent-secondary-rgb), 0.1);
  box-shadow: 0 0 10px rgba(var(--accent-secondary-rgb), 0.2);
}

footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: linear-gradient(90deg, 
    rgba(var(--accent-primary-rgb), 1), 
    rgba(var(--accent-secondary-rgb), 1));
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

footer a:hover::after {
  width: 80%;
}

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

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

@keyframes glassHighlight {
  0% {
    box-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0);
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.3);
    border-color: rgba(255, 255, 255, 0.25);
  }
  100% {
    box-shadow: 0 0 5px rgba(var(--accent-primary-rgb), 0);
    border-color: rgba(255, 255, 255, 0.1);
  }
}

@keyframes subtlePulse {
  0%, 100% {
    backdrop-filter: blur(var(--blur-amount));
  }
  50% {
    backdrop-filter: blur(calc(var(--blur-amount) * 1.5));
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    border-color: rgba(var(--accent-secondary-rgb), 0.5);
  }
}

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

/* Enhanced Glitter Effects */
.enhanced-glitter {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  animation: enhancedSparkle 0.6s ease-out forwards;
}

.enhanced-glitter.sparkle {
  background: radial-gradient(circle, #fff, #007aff, #5856d6);
  animation: sparkleGlow 0.5s ease-out forwards;
}

.enhanced-glitter.star {
  background: linear-gradient(45deg, #ffd700, #ff69b4);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starTwinkle 0.7s ease-out forwards;
}

.enhanced-glitter.diamond {
  background: linear-gradient(135deg, #af52de, #007aff);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: diamondShine 0.6s ease-out forwards;
}

.enhanced-glitter.circle {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(0, 122, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: circleRipple 0.8s ease-out forwards;
}

@keyframes enhancedSparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.5) rotate(360deg);
    opacity: 0;
  }
}

@keyframes sparkleGlow {
  0% {
    transform: scale(0);
    opacity: 1;
    filter: brightness(2);
  }
  50% {
    transform: scale(2);
    opacity: 0.7;
    filter: brightness(1.5);
  }
  100% {
    transform: scale(3);
    opacity: 0;
    filter: brightness(1);
  }
}

@keyframes starTwinkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  25% {
    transform: scale(1.2) rotate(90deg);
    opacity: 0.9;
    filter: hue-rotate(90deg);
  }
  50% {
    transform: scale(1.8) rotate(180deg);
    opacity: 0.6;
    filter: hue-rotate(180deg);
  }
  100% {
    transform: scale(0.2) rotate(360deg);
    opacity: 0;
    filter: hue-rotate(360deg);
  }
}

@keyframes diamondShine {
  0% {
    transform: scale(0) rotate(45deg);
    opacity: 1;
    filter: brightness(3);
  }
  30% {
    transform: scale(1.5) rotate(135deg);
    opacity: 0.8;
    filter: brightness(2);
  }
  70% {
    transform: scale(2.2) rotate(270deg);
    opacity: 0.4;
    filter: brightness(1.5);
  }
  100% {
    transform: scale(0.1) rotate(405deg);
    opacity: 0;
    filter: brightness(1);
  }
}

@keyframes circleRipple {
  0% {
    transform: scale(0);
    opacity: 1;
    border-width: 2px;
  }
  25% {
    transform: scale(1);
    opacity: 0.8;
    border-width: 1px;
  }
  50% {
    transform: scale(2.5);
    opacity: 0.4;
    border-width: 0.5px;
  }
  100% {
    transform: scale(4);
    opacity: 0;
    border-width: 0px;
  }
}

/* Legacy sparkle effect - keeping for backward compatibility */
.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-gradient);
  border-radius: 50%;
  pointer-events: none;
  animation: sparkleAnimation 0.5s ease-out forwards;
  z-index: 9999;
}

@keyframes sparkleAnimation {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.5) rotate(180deg);
    opacity: 0;
  }
}

/* Mobile-specific enhancements */
@media (max-width: 768px) {
  .enhanced-glitter {
    animation-duration: 0.4s !important;
  }
  
  .enhanced-glitter.sparkle {
    animation: mobileSparkle 0.4s ease-out forwards;
  }
  
  @keyframes mobileSparkle {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    50% {
      transform: scale(1.8);
      opacity: 0.7;
    }
    100% {
      transform: scale(0.3);
      opacity: 0;
    }
  }
}

/* Touch feedback enhancement */
@media (hover: none) and (pointer: coarse) {
  .enhanced-glitter {
    animation-duration: 0.6s !important;
    filter: brightness(1.3);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  main {
    padding: 5.5rem 0.75rem 1rem;
    max-width: 100%;
  }
  
  header {
    margin-bottom: 2.5rem;
    padding: 2rem 1rem;
    margin-top: 1rem;
  }
  
  header h1 {
    font-size: clamp(var(--font-2xl), 8vw, var(--font-4xl));
    margin-bottom: 0.75rem;
    word-wrap: break-word;
  }
  
  .header-subtitle {
    font-size: var(--font-base);
    padding: 0 1rem;
  }
  
  section {
    padding: 2rem 1.5rem;
    overflow: hidden;
  }
  
  #about img {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
    padding: 5px;
    box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.3),
      0 0 15px rgba(var(--accent-primary-rgb), 0.4),
      inset 0 0 10px rgba(var(--accent-secondary-rgb), 0.2);
  }
  
  nav {
    top: 1rem;
    padding: 0.625rem 1rem;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: calc(100vw - 2rem);
    min-width: 280px;
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px) saturate(160%) brightness(105%);
    -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(105%);
  }
  
  nav a {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
    flex: 1 1 auto;
    text-align: center;
    min-width: 75px;
    max-width: 120px;
    border-radius: var(--radius-xl);
    background: 
      linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      inset 0 1px 0 rgba(255, 255, 255, 0.2),
      0 2px 6px rgba(0, 0, 0, 0.15),
      0 1px 3px rgba(6, 182, 212, 0.1);
  }
  
  nav a:hover {
    transform: translateY(-1px) scale(1.02);
    background: 
      linear-gradient(135deg, 
        rgba(6, 182, 212, 0.2) 0%, 
        rgba(94, 234, 212, 0.15) 100%);
  }
  
  section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  section h2 {
    font-size: var(--font-2xl);
    margin-bottom: 1.5rem;
  }
  
  img {
    width: 150px;
    height: 150px;
    margin-bottom: 1.5rem;
  }
  
  p {
    font-size: var(--font-base);
    line-height: 1.7;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .skill-category {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .skill-category ul {
    padding-left: 0;
  }
  
  .skill-category li {
    padding: 0.875rem 0 0.875rem 1.75rem;
    font-size: var(--font-sm);
  }
  
  .skill-category li::before {
    font-size: 1rem;
    top: 0.875rem;
  }
  
  .skill-category li:hover {
    padding-left: 2rem;
  }
  
  .project {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .education-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .academic-metrics {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .course-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .course-category ul {
    padding-left: 0;
  }
  
  .course-category li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin-bottom: 0.5rem;
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .achievement-item {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .achievement-item h4 {
    font-size: var(--font-lg);
    margin-bottom: 0.75rem;
  }
  
  #contact-form {
    margin: 0 auto 1.5rem;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 1rem;
  }
  
  #contact-form button {
    padding: 1rem 2rem;
  }
  
  footer {
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
  }
}

@media (max-width: 380px) {
  #about img {
    width: 130px;
    height: 130px;
    padding: 3px;
  }
  
  #about img:hover {
    transform: scale(1.03) rotate(1deg);
  }
}

@media (max-width: 480px) {
  nav {
    top: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 280px;
  }
  
  main {
    padding: 5rem 0.5rem 0.75rem;
  }
  
  section {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  #about img {
    width: 150px;
    height: 150px;
    padding: 4px;
    margin-bottom: 1.25rem;
    box-shadow: 
      0 6px 15px rgba(0, 0, 0, 0.25),
      0 0 12px rgba(var(--accent-primary-rgb), 0.3),
      inset 0 0 8px rgba(var(--accent-secondary-rgb), 0.15);
  }
  
  .project {
    padding: 1.5rem;
  }
  
  .project-features ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
  }
  
  .project-features li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 380px) {
  nav {
    top: 0.5rem;
    padding: 0.625rem 0.875rem;
    min-width: 260px;
    gap: 0.25rem;
  }
  
  nav a {
    padding: 0.625rem 0.875rem;
    font-size: 0.7rem;
    min-width: 70px;
    max-width: 110px;
  }
  
  section {
    padding: 1.5rem 1rem;
  }
  
  .skill-category {
    padding: 1.25rem;
  }
  
  .project {
    padding: 1.25rem;
  }
  
  .achievement-item {
    padding: 1.25rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-strong: rgba(255, 255, 255, 0.2);
  }
}

/* Reduced motion support */
@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;
  }
}
