/* Modern Professional Portfolio CSS - Enterprise Level Design */

/* Custom CSS Variables for Advanced Theming - Dark Mode First */
:root {
  /* Modern Dark Theme - Primary */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  
  /* Sophisticated Color Palette */
  --neon-blue: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --cyber-purple: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  --electric-teal: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --aurora-green: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --sunset-orange: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  
  /* Dark Theme Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  
  /* Dark Theme Text Colors */
  --text-primary: #f7fafc;
  --text-secondary: #a0aec0;
  --text-accent: #81e6d9;
  --text-muted: #718096;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.2);
  
  --border-radius-sm: 8px;  
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* ===== ULTIMATE 2024 TYPOGRAPHY SYSTEM ===== */
  /* Primary Font: Geist (Vercel's premium font - better than Inter 4.0) */
  --font-family-primary: 'GeistSans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Display Font: Satoshi (Modern geometric - perfect for tech portfolios) */
  --font-family-display: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Monospace: JetBrains Mono (Superior to Space Mono) */
  --font-family-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Advanced Font Sizing Scale (Professional sizes - more conservative) */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);     /* 12-13px */
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.25vw, 0.9375rem);    /* 14-15px */
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);     /* 16-17px */
  --font-size-md: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);         /* 18-20px */
  --font-size-lg: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);     /* 20-24px */
  --font-size-xl: clamp(1.5rem, 1.25rem + 1.25vw, 1.875rem);      /* 24-30px */
  --font-size-2xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.25rem);    /* 30-36px */
  --font-size-3xl: clamp(2.25rem, 1.875rem + 1.875vw, 2.75rem);   /* 36-44px */
  --font-size-4xl: clamp(2.75rem, 2.25rem + 2.5vw, 3.5rem);       /* 44-56px */
  
  /* Font Weight Scale */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* Line Height Scale */
  --line-height-tight: 1.1;
  --line-height-snug: 1.2;
  --line-height-normal: 1.4;
  --line-height-relaxed: 1.6;
  --line-height-loose: 1.8;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
}

/* Critical: html/body dark background - prevents white flash on load and scroll */
html {
  background: #0f0f23;
  min-height: 100%;
}

/* Advanced Dark Mode Background */
body {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%) !important;
  background-color: #0f0f23 !important;
  position: relative;
  overflow-x: hidden;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  font-weight: var(--font-weight-normal);
  letter-spacing: var(--letter-spacing-normal);
  font-feature-settings: 'liga' 1, 'kern' 1, 'calt' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129, 230, 217, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 60% 30%, rgba(255, 107, 107, 0.08) 0%, transparent 40%);
  animation: gradientShift 25s ease infinite;
  z-index: -2;
}

/* Light Mode Override */
body.light-theme {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e0 100%) !important;
  background-color: #f8fafc !important;
  color: #1a202c;
}

html:has(body.light-theme) {
  background: #f8fafc;
}

body.light-theme::before {
  background: 
    radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129, 230, 217, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(79, 172, 254, 0.07) 0%, transparent 50%);
}

/* Light theme variables */
body.light-theme {
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-accent: #2d3748;
  --text-muted: #718096;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

/* Enhanced Typography System */
h1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  font-feature-settings: 'ss01' 1, 'ss02' 1;
}

/* h1::after removed - no underline needed */

@keyframes slideInLeft {
  from { width: 0; }
  to { width: 100px; }
}

h2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20px;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 2px;
  animation: slideInDown 0.6s ease-out both;
}

@keyframes slideInDown {
  from { height: 0; }
  to { height: 100%; }
}

/* Advanced Navigation Styles - Dark Mode */
#sideNav {
  background: rgba(15, 15, 35, 0.95) !important;
  backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  box-shadow: 
    var(--shadow-lg),
    0 0 50px rgba(102, 126, 234, 0.15);
  transition: var(--transition-smooth);
}

/* Light mode navigation */
body.light-theme #sideNav {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 50px rgba(102, 126, 234, 0.08);
}

#sideNav .img-profile {
  width: 180px;
  height: 220px;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, 
    rgba(79, 172, 254, 0.8) 0%,
    rgba(0, 242, 254, 0.6) 25%,
    rgba(129, 230, 217, 0.8) 50%,
    rgba(79, 172, 254, 0.8) 75%,
    rgba(0, 242, 254, 0.6) 100%
  );
  padding: 4px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(79, 172, 254, 0.3),
    0 0 40px rgba(79, 172, 254, 0.3),
    0 0 80px rgba(0, 242, 254, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  pointer-events: none;
}

#sideNav .img-profile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: conic-gradient(
    from 0deg,
    rgba(79, 172, 254, 1),
    rgba(0, 242, 254, 0.8),
    rgba(129, 230, 217, 1),
    rgba(79, 172, 254, 1),
    rgba(0, 242, 254, 0.8),
    rgba(129, 230, 217, 1),
    rgba(79, 172, 254, 1)
  );
  border-radius: 0 0 22px 22px;
  animation: rotate 3s linear infinite;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.4s ease;
  filter: blur(1px);
}

#sideNav .img-profile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2) 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%,
    rgba(0, 0, 0, 0.1) 100%
  );
  border-radius: 20px;
  animation: shine 4s ease-in-out infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

#sideNav .img-profile:hover {
  transform: scale(1.08) rotateY(8deg) rotateX(5deg);
  box-shadow: 
    0 0 0 2px rgba(79, 172, 254, 0.5),
    0 0 60px rgba(79, 172, 254, 0.5),
    0 0 100px rgba(0, 242, 254, 0.3),
    0 20px 50px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

#sideNav .img-profile:hover::before {
  opacity: 1;
}

#sideNav .img-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease;
  filter: brightness(1.15) contrast(1.1) saturate(1.1);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  z-index: 2;
}

/* Dark mode image adjustments */
body:not(.light-theme) #sideNav .img-profile img {
  filter: brightness(1.2) contrast(1.1) saturate(1.1);
}

#sideNav .img-profile:hover img {
  transform: scale(1.05) rotateY(8deg) rotateX(5deg);
  filter: brightness(1.25) contrast(1.15) saturate(1.2);
}

#sideNav .navbar-nav .nav-link {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-primary) !important;
  padding: 1rem 2rem !important;
  border-radius: var(--border-radius-md);
  margin: 0.25rem 1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

#sideNav .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.4),
    rgba(0, 242, 254, 0.6),
    rgba(79, 172, 254, 0.4),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left;
  z-index: 2;
  pointer-events: none;
}

#sideNav .navbar-nav .nav-link:hover::before {
  left: 100%;
}

#sideNav .navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

/* Override navigation text color for light theme */
body.light-theme #sideNav .navbar-nav .nav-link:hover {
  color: #666666 !important;
}

/* Glass Morphism Sections */
.resume-section {
  padding: 4rem;
  margin: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.resume-section:nth-child(odd) { animation-delay: 0.1s; }
.resume-section:nth-child(even) { animation-delay: 0.2s; }

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

.resume-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

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

.resume-section:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  background: rgba(255, 255, 255, 0.25);
}

/* Dark mode hover - make containers darker */
body:not(.light-theme) .resume-section:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Enhanced Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--electric-teal);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: -1;
  transform: scale(0.8);
}

/* Subtle breathing animation for all icons */
.social-icon {
  animation: subtleBreath 4s ease-in-out infinite;
}

@keyframes subtleBreath {
  0%, 100% { 
    transform: scale(1);
    box-shadow: var(--shadow-sm);
  }
  50% { 
    transform: scale(1.02);
    box-shadow: 
      var(--shadow-sm),
      0 0 15px rgba(79, 172, 254, 0.1);
  }
}

/* Different colors for different social icons */
.social-icon:nth-child(1)::before { background: var(--neon-blue); }    /* LinkedIn */
.social-icon:nth-child(2)::before { background: var(--aurora-green); } /* Certifications */
.social-icon:nth-child(3)::before { background: var(--sunset-orange); }/* Blog */
.social-icon:nth-child(4)::before { background: var(--warning-gradient); } /* Book */
.social-icon:nth-child(5)::before { background: var(--electric-teal); }/* GitHub */
.social-icon:nth-child(6)::before { background: var(--secondary-gradient); } /* Twitter */
.social-icon:nth-child(7)::before { background: var(--cyber-purple); } /* Instagram */
.social-icon:nth-child(8)::before { background: var(--neon-blue); }   /* Facebook */

.social-icon:hover::before {
  opacity: 1;
  transform: scale(1);
}

.social-icon:hover {
  transform: translateY(-8px) scale(1.1);
  color: white;
  box-shadow: 
    var(--shadow-lg),
    0 15px 35px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  animation: none;
  border-color: rgba(255, 255, 255, 0.3);
}

.social-icon i {
  position: relative;
  z-index: 1;
  transition: var(--transition-fast);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Dark mode social icon adjustments */
body:not(.light-theme) .social-icon i {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* Light mode social icon adjustments */
body.light-theme .social-icon i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.social-icon:hover i {
  animation: iconPulse 0.6s ease;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Add subtle glow on hover for better discoverability */
.social-icon:nth-child(1):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.4); }
.social-icon:nth-child(2):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(67, 233, 123, 0.4); }
.social-icon:nth-child(3):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(250, 112, 154, 0.4); }
.social-icon:nth-child(4):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(254, 225, 64, 0.4); }
.social-icon:nth-child(5):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 172, 254, 0.4); }
.social-icon:nth-child(6):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(168, 237, 234, 0.4); }
.social-icon:nth-child(7):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(168, 237, 234, 0.4); }
.social-icon:nth-child(8):hover { box-shadow: var(--shadow-lg), 0 0 30px rgba(102, 126, 234, 0.4); }

/* ===== ENHANCED SKILLS SECTION ===== */

/* Skills Grid Layout - Horizontal Scroll */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  align-items: start;
}

/* Skills Filter Bar - Compact */
.skills-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

/* Skills Search Bar - Compact */
.skills-search {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 1rem;
  position: relative;
}

.skills-search input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-sm);
}

.skills-search input:focus {
  outline: none;
  border-color: rgba(79, 172, 254, 0.5);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(79, 172, 254, 0.2);
  transform: translateY(-2px);
}

.skills-search input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.skills-search i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.skills-search input:focus + i {
  color: var(--text-accent);
}

/* Skills Statistics */
.skills-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  min-width: 120px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(79, 172, 254, 0.3);
}

.stat-number {
  font-family: var(--font-family-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

.filter-btn {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
  z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
  left: 0;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Individual Skills Category - Ultra Compact */
.skills-category {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  will-change: transform, box-shadow;
  height: fit-content;
}

/* Subtle Light Sweep Effect for Skills */
.skills-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.15),
    rgba(0, 242, 254, 0.1),
    rgba(79, 172, 254, 0.15),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left;
  z-index: 1;
  pointer-events: none;
  border-radius: 16px;
}

.skills-category:hover::after {
  left: 100%;
}

.skills-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

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

.skills-category {
  flex: 1;
}

.skills-category:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(79, 172, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 172, 254, 0.3);
}

/* Dark mode skills category styling */
body:not(.light-theme) .skills-category {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .skills-category:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(79, 172, 254, 0.2);
}

/* Light mode - extra subtle sweep */
body.light-theme .skills-category::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.08),
    rgba(0, 242, 254, 0.05),
    rgba(79, 172, 254, 0.08),
    transparent
  );
}

/* Prevent text color changes during sweep in light mode */
body.light-theme .skills-category:hover .skills-header h4 {
  color: #666666 !important;
}

body.light-theme .skills-category:hover .skill-badge {
  color: #777777 !important;
}

/* Animation Delays */
.skills-category:nth-child(1) { animation-delay: 0.1s; }
.skills-category:nth-child(2) { animation-delay: 0.2s; }
.skills-category:nth-child(3) { animation-delay: 0.3s; }
.skills-category:nth-child(4) { animation-delay: 0.4s; }
.skills-category:nth-child(5) { animation-delay: 0.5s; }
.skills-category:nth-child(6) { animation-delay: 0.6s; }
.skills-category:nth-child(7) { animation-delay: 0.7s; }

/* Skills Header with Icon - Compact */
.skills-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
}

.skills-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.skills-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  z-index: -1;
  transition: var(--transition-smooth);
}

.skills-icon i {
  font-size: 1.1rem;
  color: white;
  z-index: 1;
  transition: var(--transition-smooth);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Dark mode skills icon adjustments - Much better visibility */
body:not(.light-theme) .skills-icon i {
  color: rgba(255, 255, 255, 0.75);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Light mode skills icon adjustments */
body.light-theme .skills-icon i {
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* Skills icon background adjustments for better contrast */
body:not(.light-theme) .skills-icon::before {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-theme .skills-icon::before {
  background: var(--primary-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dark mode desktop skill badges */
body:not(.light-theme) .skill-badge {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .skill-badge:hover {
  background: rgba(79, 172, 254, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.5);
  color: white;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(79, 172, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.skills-category:hover .skills-icon {
  transform: scale(1.1) rotate(5deg);
}

.skills-category:hover .skills-icon i {
  transform: scale(1.1);
}

/* Category-Specific Icon Colors */
.skills-category[data-category="programming"] .skills-icon::before { background: var(--neon-blue); }
.skills-category[data-category="cloud"] .skills-icon::before { background: var(--electric-teal); }
.skills-category[data-category="devops"] .skills-icon::before { background: var(--aurora-green); }
.skills-category[data-category="monitoring"] .skills-icon::before { background: var(--sunset-orange); }
.skills-category[data-category="iac"] .skills-icon::before { background: var(--secondary-gradient); }
.skills-category[data-category="os"] .skills-icon::before { background: var(--warning-gradient); }
.skills-category[data-category="databases"] .skills-icon::before { background: var(--cyber-purple); }

.skills-header h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  margin: 0;
  color: var(--text-primary);
  flex: 1;
}

/* Skill Badges Container - Compact */
.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 2;
}

/* Individual Skill Badge - Compact Design */
.skill-badge {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  letter-spacing: var(--letter-spacing-normal);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 28px;
  will-change: transform, box-shadow;
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--aurora-green);
  transition: var(--transition-smooth);
  z-index: -1;
}

/* Category-Specific Badge Colors */
.skills-category[data-category="programming"] .skill-badge::before { background: var(--neon-blue); }
.skills-category[data-category="cloud"] .skill-badge::before { background: var(--electric-teal); }
.skills-category[data-category="devops"] .skill-badge::before { background: var(--aurora-green); }
.skills-category[data-category="monitoring"] .skill-badge::before { background: var(--sunset-orange); }
.skills-category[data-category="iac"] .skill-badge::before { background: var(--secondary-gradient); }
.skills-category[data-category="os"] .skill-badge::before { background: var(--warning-gradient); }
.skills-category[data-category="databases"] .skill-badge::before { background: var(--cyber-purple); }

.skill-badge:hover::before {
  left: 0;
}

.skill-badge:hover {
  color: white;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 30px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Skill Level Indicators - Removed for compactness */

/* Skill Badge Hover Effects - Simplified */

/* ===== SOFT SKILLS & LANGUAGES SECTION ===== */
.soft-skills-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.soft-skills-card,
.languages-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.soft-skills-card:hover,
.languages-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(79, 172, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 172, 254, 0.3);
}

.soft-skills-header,
.languages-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.soft-skills-icon,
.languages-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.soft-skills-icon i,
.languages-icon i {
  font-size: 1.4rem;
  color: white;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.soft-skills-card:hover .soft-skills-icon,
.languages-card:hover .languages-icon {
  transform: scale(1.1) rotate(5deg);
}

.soft-skills-header h4,
.languages-header h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  margin: 0;
  color: var(--text-primary);
  flex: 1;
}

.soft-skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.soft-skill-badge {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  min-height: 36px;
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.soft-skill-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(79, 172, 254, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(79, 172, 254, 0.3);
}

.language-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.language-badge {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  min-height: 36px;
  border-radius: 18px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-badge:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 25px rgba(79, 172, 254, 0.3);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(79, 172, 254, 0.3);
}

/* Dark mode soft skills and languages */
body:not(.light-theme) .soft-skills-card,
body:not(.light-theme) .languages-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .soft-skills-card:hover,
body:not(.light-theme) .languages-card:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(79, 172, 254, 0.2);
}

body:not(.light-theme) .soft-skills-icon,
body:not(.light-theme) .languages-icon {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .soft-skills-icon i,
body:not(.light-theme) .languages-icon i {
  color: rgba(255, 255, 255, 0.9);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

body:not(.light-theme) .language-badge {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .language-badge:hover {
  background: rgba(79, 172, 254, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.5);
  color: white;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(79, 172, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dark mode soft skills badges */
body:not(.light-theme) .soft-skill-badge {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .soft-skill-badge:hover {
  background: rgba(79, 172, 254, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.5);
  color: white;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(79, 172, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Experience Timeline */
.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: var(--transition-smooth);
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover::before {
  transform: scaleY(1);
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-lg);
  background: rgba(79, 172, 254, 0.15);
  border-color: rgba(79, 172, 254, 0.3);
}

/* Dark mode hover - make containers darker */
body:not(.light-theme) .d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(79, 172, 254, 0.2);
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 h3 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 .subheading {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-accent);
  text-transform: uppercase;
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 ul li {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  list-style: none;
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-accent);
  font-size: 1.2rem;
  font-weight: bold;
  transition: var(--transition-fast);
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5 ul li:hover {
  color: var(--text-primary);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover ul li {
  color: var(--text-primary);
}

/* Certifications & Awards */
.fa-ul li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4rem;
  margin-bottom: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fa-ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.4),
    rgba(0, 242, 254, 0.6),
    rgba(79, 172, 254, 0.4),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left;
  z-index: 2;
  pointer-events: none;
}

.fa-ul li:hover::before {
  left: 100%;
}

.fa-ul li:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-md);
}

/* Dark mode hover - make containers darker */
body:not(.light-theme) .fa-ul li:hover {
  background: rgba(0, 0, 0, 0.2);
}

.fa-li {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-accent);
  font-size: 1.3rem;
  transition: var(--transition-fast);
}

.fa-ul li:hover .fa-li {
  transform: translateY(-50%) scale(1.2);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-gradient);
}

/* Responsive Design - Modern Tablet & Mobile */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
  }
  
  .skills-category {
    min-width: 180px;
    max-width: 220px;
  }
  
  /* Modern tablet hover effects */
  .skills-category:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 
      0 12px 24px rgba(0, 0, 0, 0.15),
      0 0 30px rgba(79, 172, 254, 0.2);
  }
  
  .skill-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.15),
      0 0 20px rgba(79, 172, 254, 0.25);
  }
}

@media (max-width: 992px) {
  .resume-section {
    margin: 1rem;
    padding: 2rem;
  }
  
  /* Modern Tablet Navigation */
  #sideNav {
    background: rgba(15, 15, 35, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 50px rgba(102, 126, 234, 0.1) !important;
  }
  
  /* Light mode tablet navigation */
  body.light-theme #sideNav {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.15),
      0 0 50px rgba(102, 126, 234, 0.08) !important;
  }
  
  /* Mobile Navigation Brand */
  #sideNav .navbar-brand {
    color: var(--text-primary) !important;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  
  /* Mobile Hamburger Button */
  #sideNav .navbar-toggler {
    border: 2px solid var(--glass-border) !important;
    border-radius: var(--border-radius-md);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    order: 2; /* Position after theme toggle */
  }
  
  #sideNav .navbar-toggler:focus,
  #sideNav .navbar-toggler:hover {
    border-color: var(--text-accent) !important;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.3);
    outline: none !important;
  }
  
  #sideNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
  }
  
  /* Mobile Dropdown Menu */
  #sideNav .navbar-collapse {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
  }
  
  /* Mobile Navigation Links */
  #sideNav .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    margin: 0.25rem 0;
    padding: 1rem 1.5rem !important;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
  }
  
  #sideNav .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(79, 172, 254, 0.4),
      rgba(0, 242, 254, 0.6),
      rgba(79, 172, 254, 0.4),
      transparent
    );
    transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: left;
    z-index: 2;
    pointer-events: none;
  }
  
  #sideNav .navbar-nav .nav-link:hover::before,
  #sideNav .navbar-nav .nav-link:focus::before {
    left: 100%;
  }
  
  #sideNav .navbar-nav .nav-link:hover,
  #sideNav .navbar-nav .nav-link:focus {
    color: white !important;
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  /* Override for light theme mobile navigation */
  body.light-theme #sideNav .navbar-nav .nav-link:hover,
  body.light-theme #sideNav .navbar-nav .nav-link:focus {
    color: #666666 !important;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  /* Ultra Modern Tablet Skills Layout */
  .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    padding: 0 1rem;
  }
  
  .skills-category {
    padding: 1.5rem;
    min-width: auto;
    max-width: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .skills-category:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.15),
      0 0 60px rgba(79, 172, 254, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
  
  .skills-header {
    margin-bottom: 1rem;
    gap: 1rem;
    align-items: center;
  }
  
  .skills-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .skills-icon i {
    font-size: 1.4rem;
  }
  
  .skills-header h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
  }
  
  .skill-badges {
    justify-content: flex-start;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  
  .skill-badge {
    font-size: var(--font-size-sm);
    padding: 0.6rem 1rem;
    min-height: 36px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .skill-badge:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
      0 6px 20px rgba(0, 0, 0, 0.15),
      0 0 25px rgba(79, 172, 254, 0.3);
    background: rgba(255, 255, 255, 0.12);
  }
  
  .skills-filter {
    padding: 1.5rem;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .filter-btn {
    font-size: var(--font-size-sm);
    padding: 0.7rem 1.4rem;
    border-radius: 20px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  .filter-btn:hover,
  .filter-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.1);
  }
  
  .skills-search {
    max-width: 100%;
    margin-bottom: 1.5rem;
  }
  
  .skills-search input {
    padding: 0.8rem 1.2rem 0.8rem 2.5rem;
    font-size: var(--font-size-base);
    border-radius: 25px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .skills-search input:focus {
    transform: translateY(-2px);
    box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.15),
      0 0 30px rgba(79, 172, 254, 0.2);
  }
  
/* Dark mode tablet skills improvements */
body:not(.light-theme) .skills-category {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .skills-category:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Dark mode skill badges - Much better visibility */
body:not(.light-theme) .skill-badge {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body:not(.light-theme) .skill-badge:hover {
  background: rgba(79, 172, 254, 0.25);
  border: 1px solid rgba(79, 172, 254, 0.5);
  color: white;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(79, 172, 254, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
  
  body:not(.light-theme) .skills-filter {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  body:not(.light-theme) .filter-btn {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
  }
  
  body:not(.light-theme) .filter-btn:hover,
  body:not(.light-theme) .filter-btn.active {
    background: rgba(0, 0, 0, 0.4);
    color: white;
  }
  
  body:not(.light-theme) .skills-search input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
  }
  
  .soft-skills-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 1.5rem;
  }
  
  .soft-skills-card,
  .languages-card {
    padding: 1.25rem;
    border-radius: 16px;
  }
  
  .soft-skills-header,
  .languages-header {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
  }
  
  .soft-skills-icon,
  .languages-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  
  .soft-skills-icon i,
  .languages-icon i {
    font-size: 1.3rem;
  }
  
  .language-badges {
    gap: 0.5rem;
  }
  
  .language-badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.8rem;
    min-height: 32px;
    border-radius: 16px;
  }
  
  .soft-skills-badges {
    gap: 0.5rem;
  }
  
  .soft-skill-badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.8rem;
    min-height: 32px;
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: clamp(2rem, 6vw, 2.5rem);      /* 32-40px */
    --font-size-3xl: clamp(1.75rem, 5vw, 2.125rem); /* 28-34px */
    --font-size-2xl: clamp(1.5rem, 4vw, 1.875rem);  /* 24-30px */
    --font-size-xl: clamp(1.25rem, 3.5vw, 1.5rem);  /* 20-24px */
  }
  
  /* Ultra Modern Mobile Skills Layout */
  .skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    padding: 0 0.5rem;
  }
  
  .skills-category {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 
      0 4px 20px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  .skills-header {
    margin-bottom: 0.75rem;
    gap: 0.75rem;
    align-items: center;
  }
  
  .skills-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .skills-icon i {
    font-size: 1.2rem;
  }
  
  .skills-header h4 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
  }
  
  .skill-badges {
    justify-content: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  
  .skill-badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.8rem;
    min-height: 32px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .skills-filter {
    padding: 1rem;
    gap: 0.6rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  }
  
  .filter-btn {
    font-size: var(--font-size-xs);
    padding: 0.6rem 1rem;
    border-radius: 16px;
    min-height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .skills-search {
    margin-bottom: 1.25rem;
  }
  
  .skills-search input {
    padding: 0.7rem 1rem 0.7rem 2.2rem;
    font-size: var(--font-size-sm);
    border-radius: 20px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Dark mode mobile skill badges */
  body:not(.light-theme) .skill-badge {
    background: rgba(79, 172, 254, 0.15);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 
      0 2px 6px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  
  body:not(.light-theme) .skill-badge:hover {
    background: rgba(79, 172, 254, 0.25);
    border: 1px solid rgba(79, 172, 254, 0.5);
    color: white;
    box-shadow: 
      0 4px 12px rgba(0, 0, 0, 0.3),
      0 0 15px rgba(79, 172, 254, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  
  h1 {
    text-align: center;
    margin-bottom: 1rem;
  }
  
  h2 {
    text-align: center;
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
  }
  
  .lead {
    font-size: var(--font-size-base);
    text-align: center;
  }
  
  #sideNav .navbar-nav .nav-link {
    font-size: var(--font-size-sm);
    padding: 0.75rem 1.5rem !important;
    letter-spacing: var(--letter-spacing-normal);
  }
  
  .resume-section {
    margin: 0.5rem;
    padding: 1.5rem;
  }
  
  .social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  :root {
    --font-size-4xl: clamp(1.75rem, 8vw, 2.25rem);  /* 28-36px */
    --font-size-3xl: clamp(1.5rem, 6vw, 1.875rem);  /* 24-30px */
    --font-size-2xl: clamp(1.375rem, 5vw, 1.625rem); /* 22-26px */
  }
  
  body {
    font-size: var(--font-size-sm);
  }
  
  .skills-category {
    padding: 1.25rem;
  }
  
  .skills-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .skills-icon {
    width: 40px;
    height: 40px;
  }
  
  .skills-icon i {
    font-size: 1.2rem;
  }
  
  .skills-header h4 {
    font-size: var(--font-size-md);
  }
  
  .skill-badge {
    font-size: var(--font-size-xs);
    padding: 0.6rem 1.2rem;
  }
  
  .soft-skills-section {
    gap: 1rem;
    margin-top: 1.25rem;
  }
  
  .soft-skills-card,
  .languages-card {
    padding: 1rem;
    border-radius: 14px;
  }
  
  .soft-skills-header,
  .languages-header {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .soft-skills-icon,
  .languages-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  
  .soft-skills-icon i,
  .languages-icon i {
    font-size: 1.2rem;
  }
  
  .soft-skills-header h4,
  .languages-header h4 {
    font-size: var(--font-size-base);
  }
  
  .language-badges {
    gap: 0.4rem;
  }
  
  .language-badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.8rem;
    min-height: 30px;
    border-radius: 15px;
  }
  
  .soft-skills-badges {
    gap: 0.4rem;
  }
  
  .soft-skill-badge {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.8rem;
    min-height: 30px;
    border-radius: 15px;
  }
  
  .loading-text {
    font-size: var(--font-size-base);
  }
  
  /* ULTRA AGGRESSIVE mobile performance fixes for small screens */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  
  /* Force all elements to be static */
  .interest-card,
  .education-item,
  .skills-category,
  .soft-skills-card,
  .languages-card,
  .resume-section,
  .social-icon,
  .skill-badge,
  .filter-btn,
  .language-badge,
  .soft-skill-badge,
  .interest-icon,
  .education-icon,
  .skills-icon {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
  
  /* Remove ALL hover effects */
  .interest-card:hover,
  .education-item:hover,
  .skills-category:hover,
  .soft-skills-card:hover,
  .languages-card:hover,
  .resume-section:hover,
  .social-icon:hover,
  .skill-badge:hover,
  .filter-btn:hover,
  .language-badge:hover,
  .soft-skill-badge:hover {
    transform: none !important;
    box-shadow: none !important;
    background: inherit !important;
  }
  
  /* Disable ALL pseudo-elements */
  .interest-card::before,
  .education-item::before,
  .fa-ul li::before,
  #sideNav .navbar-nav .nav-link::before,
  .interest-icon::before,
  .education-icon::before,
  .skills-icon::before,
  .social-icon::before,
  .skill-badge::before,
  .filter-btn::before {
    display: none !important;
  }
  
  /* Remove ALL backdrop filters */
  .resume-section,
  .skills-category,
  .interest-card,
  .education-item,
  .soft-skills-card,
  .languages-card,
  .skills-filter,
  .skills-search input {
    backdrop-filter: none !important;
  }
  
  /* Remove ALL text gradients */
  .interest-card h4,
  .education-item .education-title,
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--text-primary) !important;
  }
  
  /* Disable ALL floating animations */
  .floating-elements::before,
  .floating-elements::after {
    display: none !important;
  }
  
  /* Disable scroll progress */
  .scroll-progress {
    transition: none !important;
  }
  
  /* Disable loading animations */
  .loading-overlay,
  .loader {
    animation: none !important;
  }
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1.5rem;
}

.loading-text {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wider);
  color: white;
  animation: pulse 2s ease-in-out infinite;
  text-transform: uppercase;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--accent-gradient);
  z-index: 1001;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* Floating Elements */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: var(--primary-gradient);
  opacity: 0.1;
  animation: float 25s infinite ease-in-out;
}

.floating-elements::before {
  width: 400px;
  height: 400px;
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.floating-elements::after {
  width: 300px;
  height: 300px;
  bottom: -150px;
  left: -150px;
  background: var(--accent-gradient);
  animation-delay: 12s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-100px) rotate(90deg) scale(1.1); 
  }
  50% { 
    transform: translateY(-200px) rotate(180deg) scale(0.9); 
  }
  75% { 
    transform: translateY(-100px) rotate(270deg) scale(1.1); 
  }
}

/* Additional Performance & Motion Preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-elements::before,
  .floating-elements::after {
    animation: none;
  }
  
  .scroll-progress {
    transition: none;
  }
}

/* AGGRESSIVE Mobile Performance Optimizations - NO ANIMATIONS */
@media (max-width: 768px) {
  /* DISABLE ALL ANIMATIONS AND TRANSFORMS ON MOBILE */
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
  }
  
  /* ULTRA AGGRESSIVE SKILLS OPTIMIZATION FOR MOBILE */
  .skills-category,
  .skills-category * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backdrop-filter: none !important;
    filter: none !important;
  }
  
  .skills-category::before,
  .skills-category::after,
  .skills-icon::before,
  .skills-icon::after,
  .skill-badge::before,
  .skill-badge::after {
    display: none !important;
    content: none !important;
  }
  
  .skills-category {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  
  .skills-category:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  .skills-icon {
    background: #4facfe !important;
    border-radius: 50% !important;
    transform: none !important;
    animation: none !important;
  }
  
  .skill-badge {
    background: rgba(79, 172, 254, 0.1) !important;
    border: 1px solid rgba(79, 172, 254, 0.3) !important;
    color: var(--text-primary) !important;
    transform: none !important;
    transition: none !important;
  }
  
  .skill-badge:hover {
    background: rgba(79, 172, 254, 0.1) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  
  /* Disable book link animations on mobile but keep visibility */
  a.book-link,
  .book-link {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: #4facfe !important;
    transform: none !important;
    transition: none !important;
    text-decoration: underline !important;
    cursor: pointer !important;
  }
  
  body.light-theme a.book-link,
  body.light-theme .book-link {
    color: #2563eb !important;
  }
  
  .book-link::after {
    display: none !important;
  }
  
  /* Force static positioning for all interactive elements */
  .interest-card,
  .education-item,
  .skills-category,
  .soft-skills-card,
  .languages-card,
  .resume-section,
  .social-icon,
  .skill-badge,
  .filter-btn,
  .language-badge,
  .soft-skill-badge {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
  
  /* Remove all hover effects on mobile */
  .interest-card:hover,
  .education-item:hover,
  .skills-category:hover,
  .soft-skills-card:hover,
  .languages-card:hover,
  .resume-section:hover,
  .social-icon:hover,
  .skill-badge:hover,
  .filter-btn:hover,
  .language-badge:hover,
  .soft-skill-badge:hover {
    transform: none !important;
    box-shadow: none !important;
    background: inherit !important;
  }
  
  /* Completely disable all pseudo-element animations */
  .interest-card::before,
  .education-item::before,
  .fa-ul li::before,
  #sideNav .navbar-nav .nav-link::before,
  .interest-icon::before,
  .education-icon::before,
  .skills-icon::before,
  .social-icon::before,
  .skill-badge::before,
  .filter-btn::before {
    display: none !important;
  }
  
  /* Remove all backdrop filters */
  .resume-section,
  .skills-category,
  .interest-card,
  .education-item,
  .soft-skills-card,
  .languages-card,
  .skills-filter,
  .skills-search input {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }
  
  body:not(.light-theme) .resume-section,
  body:not(.light-theme) .skills-category,
  body:not(.light-theme) .interest-card,
  body:not(.light-theme) .education-item,
  body:not(.light-theme) .soft-skills-card,
  body:not(.light-theme) .languages-card,
  body:not(.light-theme) .skills-filter,
  body:not(.light-theme) .skills-search input {
    background: rgba(0, 0, 0, 0.3) !important;
  }
  
  /* Simplify all icons to solid colors */
  .interest-icon,
  .education-icon,
  .skills-icon,
  .soft-skills-icon,
  .languages-icon {
    background: #4facfe !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  
  /* Disable all icon animations */
  .interest-icon::before,
  .education-icon::before,
  .skills-icon::before,
  .soft-skills-icon::before,
  .languages-icon::before {
    display: none !important;
  }
  
  /* Remove text gradient effects on mobile */
  .interest-card h4,
  .education-item .education-title,
  h1,
  h2 {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--text-primary) !important;
  }
  
  /* Disable floating elements animation */
  .floating-elements::before,
  .floating-elements::after {
    display: none !important;
  }
  
  /* Disable scroll progress animation */
  .scroll-progress {
    transition: none !important;
  }
  
  /* Disable loading animations */
  .loading-overlay,
  .loader {
    animation: none !important;
  }
}

/* Print Styles */
@media print {
  .resume-section {
    background: white !important;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
    backdrop-filter: none !important;
  }
  
  .floating-elements,
  .loading-overlay,
  .scroll-progress {
    display: none !important;
  }
  
  .social-icon {
    background: white !important;
    border: 1px solid #ddd !important;
  }
}

/* Fix for WhatsApp in-app browser and iOS WebView washout */
@supports (-webkit-backdrop-filter: blur(1px)) {
  /* Enhance contrast for WebKit-based in-app browsers */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
  }
  
  /* Strengthen backgrounds for in-app browsers */
  @media (max-width: 768px) {
    .skills-category,
    .interest-card,
    .education-item {
      background: rgba(255, 255, 255, 0.08) !important;
      border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    body.light-theme .skills-category,
    body.light-theme .interest-card,
    body.light-theme .education-item {
      background: rgba(0, 0, 0, 0.08) !important;
      border: 1px solid rgba(0, 0, 0, 0.15) !important;
    }
    
    /* Enhance text contrast */
    h1, h2, h3, h4, h5, h6, p, span {
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }
  }
}

/* Enhanced Modern Effects */
.resume-section:nth-child(odd)::before { 
  background: var(--neon-blue);
}
.resume-section:nth-child(even)::before { 
  background: var(--electric-teal);
}

/* Glow effect for headings */
h1, h2 {
  text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

body.light-theme h1,
body.light-theme h2 {
  text-shadow: none;
}

/* Enhanced navbar links */
#sideNav .navbar-nav .nav-link {
  border-left: 3px solid transparent;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#sideNav .navbar-nav .nav-link:hover {
  border-left-color: var(--text-accent);
  background: var(--glass-bg);
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.2);
}

/* Animated border for sections */
.resume-section {
  border: 1px solid transparent;
  background: 
    var(--glass-bg),
    linear-gradient(135deg, transparent 0%, rgba(129, 230, 217, 0.05) 50%, transparent 100%);
}

/* Better mobile optimization */
@media (max-width: 576px) {
  #sideNav .img-profile {
    width: 120px;
    height: 150px;
  }
  
  .resume-section {
    padding: 1.5rem;
    margin: 0.5rem;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Ultra modern scroll indicator */
.scroll-progress {
  background: linear-gradient(90deg, 
    var(--electric-teal) 0%, 
    var(--neon-blue) 25%, 
    var(--aurora-green) 50%, 
    var(--sunset-orange) 75%, 
    var(--warning-gradient) 100%);
  height: 3px;
}

/* Stunning particle canvas enhancement */
#particleCanvas {
  filter: blur(0.5px);
  opacity: 0.4;
}

body.light-theme #particleCanvas {
  opacity: 0.2;
}

/* Profile Snapshot section - Add arrows instead of bullets */
#profilesnapshot ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#profilesnapshot ul li {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  list-style: none;
}

#profilesnapshot ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-accent);
  font-size: 1.2rem;
  font-weight: bold;
  transition: var(--transition-fast);
}

#profilesnapshot ul li:hover {
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Enhanced Typography System */
h3 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h4 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

h5, h6 {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.lead {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.subheading {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-accent);
  text-transform: uppercase;
}

/* Code and Technical Elements */
code, pre {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  background: var(--glass-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
}

/* Small Text */
small, .text-sm {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-normal);
  color: var(--text-muted);
}

/* Large Text */
.text-lg {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
}

/* Display Text */
.display-1 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-black);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.display-2 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

/* Experience section hover states */
.d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover h3,
.d-flex.flex-column.flex-md-row.justify-content-between.mb-5:hover .subheading {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  transform: translateX(2px);
}

/* Enhanced readability for dark mode */
body:not(.light-theme) {
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-accent: rgba(79, 172, 254, 0.9);
  --text-muted: rgba(255, 255, 255, 0.6);
}

/* Light mode text adjustments */
body.light-theme {
  --text-primary: rgba(26, 32, 44, 0.95);
  --text-secondary: rgba(74, 85, 104, 0.9);
  --text-accent: rgba(45, 55, 72, 0.8);
  --text-muted: rgba(113, 128, 150, 0.8);
}

/* Font loading optimization */
@font-face {
  font-family: 'GeistSans';
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-display: swap;
}

/* Modern Email Icon with Tooltip */
.email-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
}

.email-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-accent);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.email-icon-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--aurora-green);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transform: scale(0.8);
  transition: var(--transition-smooth);
  z-index: -1;
}

.email-icon-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.email-icon-link:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    var(--shadow-lg),
    0 0 30px rgba(67, 233, 123, 0.4),
    0 0 60px rgba(67, 233, 123, 0.2);
  border-color: rgba(67, 233, 123, 0.6);
}

.email-icon-link i {
  transition: var(--transition-fast);
  z-index: 1;
}

.email-icon-link:hover i {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Email Tooltip */
.email-tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 15px);
  transform: translateY(-50%) translateX(-10px);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-normal);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  pointer-events: none;
}

.email-tooltip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid var(--glass-border);
}

.email-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 5px solid var(--glass-bg);
}

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

/* Animation for email icon */
@keyframes emailPulse {
  0%, 100% { 
    box-shadow: 
      var(--shadow-sm),
      0 0 0 0 rgba(67, 233, 123, 0.4);
  }
  50% { 
    box-shadow: 
      var(--shadow-sm),
      0 0 0 10px rgba(67, 233, 123, 0);
  }
}

.email-icon-link {
  animation: emailPulse 3s ease-in-out infinite;
}

.email-icon-link:hover {
  animation: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .email-icon-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .email-tooltip {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.75rem;
    left: calc(100% + 10px);
  }
}

@media (max-width: 576px) {
  .email-icon-link {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .email-tooltip {
    font-size: var(--font-size-xs);
    padding: 0.5rem 0.75rem;
    left: calc(100% + 8px);
    max-width: 180px;
    word-break: break-all;
  }
}

/* Light theme adjustments */
body.light-theme .email-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

body.light-theme .email-tooltip::after {
  border-bottom-color: rgba(255, 255, 255, 0.95);
}

body.light-theme .email-tooltip::before {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Subtle Social Introduction */
.social-intro {
  margin: 0.75rem 0 0.5rem 0;
}

.intro-text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  color: var(--text-secondary);
  text-transform: uppercase;
  opacity: 0.7;
  position: relative;
}

.intro-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-accent);
  transition: var(--transition-smooth);
}

.social-intro:hover .intro-text::after {
  width: 100%;
}

  .social-intro:hover .intro-text {
    opacity: 1;
    color: var(--text-accent);
  }

/* ===== LIGHTNING-FAST INTERESTS SECTION ===== */
.interests-intro {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0.9;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.interest-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  will-change: transform, box-shadow;
  cursor: pointer;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.4),
    rgba(0, 242, 254, 0.6),
    rgba(79, 172, 254, 0.4),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left;
  z-index: 2;
  pointer-events: none;
}

.interest-card:hover::before {
  left: 100%;
}

.interest-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(79, 172, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 172, 254, 0.3);
}

.interest-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.25rem;
  background: var(--electric-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: white;
  transition: all 0.3s ease;
  will-change: transform, background;
  position: relative;
  overflow: hidden;
}

.interest-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(79, 172, 254, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.3s ease;
  will-change: transform;
}

.interest-card:hover .interest-icon::before {
  transform: scale(1);
}

.interest-icon i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  will-change: transform;
}

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

.interest-card h4 {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.interest-card:hover h4 {
  background: var(--electric-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.interest-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  transition: color 0.3s ease;
}

.interest-card:hover p {
  color: var(--text-primary);
}

/* Mobile Optimization - Lightning Fast */
@media (max-width: 768px) {
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .interest-card {
    padding: 1.5rem 1rem;
  }
  
  .interest-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .interest-card h4 {
    font-size: var(--font-size-md);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .interest-card,
  .interest-icon {
    transition: none !important;
    animation: none !important;
  }
  
  .interest-card:hover {
    transform: none;
  }
}

/* Dark mode interests section */
body:not(.light-theme) .interest-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .interest-card:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(79, 172, 254, 0.2);
}

/* Light theme adjustments */
body.light-theme .interest-card {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(79, 172, 254, 0.2);
}

body.light-theme .interest-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(79, 172, 254, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(79, 172, 254, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .interest-icon {
  box-shadow: 
    0 4px 15px rgba(79, 172, 254, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Light mode light sweep effect - very subtle */
body.light-theme .interest-card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.05),
    rgba(0, 242, 254, 0.08),
    rgba(79, 172, 254, 0.05),
    transparent
  );
  z-index: 1;
}

/* Ensure text stays above light sweep in light mode */
body.light-theme .interest-card h4,
body.light-theme .interest-card p,
body.light-theme .interest-icon {
  position: relative;
  z-index: 2;
}

/* Make text grey during light sweep for visibility */
body.light-theme .interest-card:hover h4 {
  color: #666666 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

body.light-theme .interest-card:hover p {
  color: #888888 !important;
}

/* ===== ENHANCED EDUCATION SECTION ===== */
.education-timeline {
  position: relative;
  padding-left: 2rem;
}

.education-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.education-item {
  position: relative;
  margin-bottom: 3rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  will-change: transform, box-shadow;
  overflow: hidden;
}

.education-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.4),
    rgba(0, 242, 254, 0.6),
    rgba(79, 172, 254, 0.4),
    transparent
  );
  transition: left 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: left;
  z-index: 2;
  pointer-events: none;
}

.education-item:hover::before {
  left: 100%;
}

.education-item:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 60px rgba(79, 172, 254, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(79, 172, 254, 0.3);
}

.education-icon {
  position: absolute;
  left: -3.5rem;
  top: 2rem;
  width: 60px;
  height: 60px;
  background: var(--electric-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s ease;
  will-change: transform, background;
  box-shadow: 
    0 4px 15px rgba(79, 172, 254, 0.3),
    0 0 0 4px var(--glass-bg);
}

.education-item[data-level="masters"] .education-icon {
  background: var(--aurora-green);
  box-shadow: 
    0 4px 15px rgba(67, 233, 123, 0.3),
    0 0 0 4px var(--glass-bg);
}

.education-item[data-level="bachelors"] .education-icon {
  background: var(--neon-blue);
  box-shadow: 
    0 4px 15px rgba(102, 126, 234, 0.3),
    0 0 0 4px var(--glass-bg);
}

.education-item:hover .education-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 6px 20px rgba(79, 172, 254, 0.4),
    0 0 0 4px var(--glass-bg);
}

.education-badge {
  display: inline-block;
  background: var(--electric-teal);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wider);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.education-item[data-level="masters"] .education-badge {
  background: var(--aurora-green);
}

.education-item[data-level="bachelors"] .education-badge {
  background: var(--neon-blue);
}

.education-item:hover .education-badge {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.education-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: var(--line-height-snug);
  transition: color 0.3s ease;
}

.education-item:hover .education-title {
  background: var(--electric-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.education-specialization {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-accent);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.education-institution {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.education-institution i {
  color: var(--text-accent);
  transition: transform 0.3s ease;
}

.education-item:hover .education-institution {
  color: var(--text-primary);
}

.education-item:hover .education-institution i {
  transform: scale(1.1);
}

.education-description {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
  margin: 0;
  transition: color 0.3s ease;
  opacity: 0.9;
}

.education-item:hover .education-description {
  color: var(--text-primary);
  opacity: 1;
}

/* Mobile Optimization - Lightning Fast */
@media (max-width: 768px) {
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .interest-card {
    padding: 1.5rem 1rem;
  }
  
  .interest-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .interest-card h4 {
    font-size: var(--font-size-md);
  }
  
  .education-timeline {
    padding-left: 1rem;
  }
  
  .education-timeline::before {
    left: 0.5rem;
    width: 2px;
  }
  
  .education-icon {
    left: -1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 1.5rem;
  }
  
  .education-item {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .education-title {
    font-size: var(--font-size-md);
  }
  
  .education-specialization {
    font-size: var(--font-size-xs);
  }
  
  .education-institution {
    font-size: var(--font-size-sm);
  }
  
  .education-description {
    font-size: var(--font-size-xs);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .education-item,
  .education-icon,
  .education-badge,
  .education-item::before {
    transition: none !important;
    animation: none !important;
  }
  
  .education-item:hover {
    transform: none;
  }
}

/* Dark mode education section */
body:not(.light-theme) .education-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body:not(.light-theme) .education-item:hover {
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(79, 172, 254, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: rgba(79, 172, 254, 0.2);
}

/* Light theme adjustments */
body.light-theme .education-item {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(79, 172, 254, 0.2);
}

body.light-theme .education-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(79, 172, 254, 0.4);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(79, 172, 254, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.light-theme .education-icon {
  box-shadow: 
    0 4px 15px rgba(79, 172, 254, 0.2),
    0 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Light mode light sweep effect for education - very subtle */
body.light-theme .education-item::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.05),
    rgba(0, 242, 254, 0.08),
    rgba(79, 172, 254, 0.05),
    transparent
  );
  z-index: 1;
}

/* Ensure education text stays above light sweep in light mode */
body.light-theme .education-content,
body.light-theme .education-title,
body.light-theme .education-institution,
body.light-theme .education-description,
body.light-theme .education-badge {
  position: relative;
  z-index: 2;
}

/* Make education text grey during light sweep for visibility */
body.light-theme .education-item:hover .education-title {
  color: #666666 !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

body.light-theme .education-item:hover .education-institution,
body.light-theme .education-item:hover .education-description {
  color: #888888 !important;
}

/* Prevent any focus states or click artifacts on profile image */
#sideNav .navbar-brand {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#sideNav .navbar-brand:focus,
#sideNav .navbar-brand:active,
#sideNav .navbar-brand:hover {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* Book Link Styling - High Specificity */
a.book-link,
.book-link {
  color: #4facfe !important;
  text-decoration: underline !important;
  font-weight: var(--font-weight-semibold) !important;
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative !important;
  display: inline !important;
  cursor: pointer !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  a.book-link,
  .book-link {
    color: #4facfe !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
  }
}

.book-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.book-link:hover::after {
  width: 100%;
}

.book-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Light mode book link */
body.light-theme a.book-link,
body.light-theme .book-link {
  color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.light-theme .book-link::after {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* Certification Link Styling */
.cert-link {
  color: #4facfe !important;
  text-decoration: none !important;
  font-weight: var(--font-weight-semibold) !important;
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative !important;
  display: inline !important;
  cursor: pointer !important;
}

.cert-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.cert-link:hover::after {
  width: 100%;
}

.cert-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Light mode certification link */
body.light-theme .cert-link {
  color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body.light-theme .cert-link::after {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
}

/* Highlight Number Styling (like book link) */
.highlight-number {
  font-weight: var(--font-weight-bold) !important;
  font-size: 1.2em;
  background: linear-gradient(135deg, #4facfe, #00f2fe) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
  display: inline-block;
}

/* Light mode highlight number */
body.light-theme .highlight-number {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .highlight-number {
    color: #4facfe !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
  }
  
  body.light-theme .highlight-number {
    color: #2563eb !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
  }
}

@supports not (-webkit-background-clip: text) {
  body.light-theme a.book-link,
  body.light-theme .book-link {
    color: #2563eb !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
  }
}

/* Mobile Navigation Layout */
.mobile-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

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

.mobile-name {
  flex: 1;
  text-align: center;
  margin: 0 1rem;
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-profile-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(79, 172, 254, 0.2);
  border: 2px solid rgba(79, 172, 254, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(79, 172, 254, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-profile-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(79, 172, 254, 0.5);
  object-fit: cover;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


/* Light theme mobile profile */
body.light-theme .mobile-profile-img {
  border-color: rgba(79, 172, 254, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Fixed Theme Toggle Button - Desktop Only */
.fixed-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(79, 172, 254, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Show fixed toggle only on desktop */
@media (min-width: 992px) {
  .fixed-theme-toggle {
    display: flex;
  }
}

.fixed-theme-toggle:hover {
  background: rgba(79, 172, 254, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Light theme fixed toggle */
body.light-theme .fixed-theme-toggle {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .fixed-theme-toggle:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Theme Toggle Button (Mobile Nav) */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-right: 1rem;
  z-index: 1000;
  order: 1; /* Position before navbar-toggler */
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.3);
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

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

/* Light theme theme toggle */
body.light-theme .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
}

body.light-theme .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .theme-toggle:focus {
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

/* Mobile Performance - Disable theme toggle animations */
@media (max-width: 768px) {
  .theme-toggle {
    transition: background-color 0.2s ease !important;
    transform: none !important;
  }
  
  .theme-toggle:hover {
    transform: none !important;
    box-shadow: none !important;
  }
  
  .theme-toggle i {
    transition: none !important;
  }
  
  .theme-toggle:hover i {
    transform: none !important;
  }
}

/* Light Theme Mobile Navigation */
@media (max-width: 992px) {
  body.light-theme #sideNav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  }
  
  body.light-theme #sideNav .navbar-brand {
    color: var(--text-primary) !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  }
  
  body.light-theme #sideNav .navbar-toggler {
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.05);
  }
  
  body.light-theme #sideNav .navbar-toggler:focus,
  body.light-theme #sideNav .navbar-toggler:hover {
    border-color: var(--text-accent) !important;
    background: rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 15px rgba(49, 130, 206, 0.3);
  }
  
  body.light-theme #sideNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 55, 72, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.1));
  }
  
  body.light-theme #sideNav .navbar-collapse {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  }
  
  body.light-theme #sideNav .navbar-nav .nav-link {
    color: var(--text-primary) !important;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
body.light-theme #sideNav .navbar-nav .nav-link:hover,
body.light-theme #sideNav .navbar-nav .nav-link:focus {
  color: #666666 !important;
  border-color: rgba(0, 0, 0, 0.1);
}

/* Light mode light sweep effect for certifications and achievements - very subtle */
body.light-theme .fa-ul li::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.05),
    rgba(0, 242, 254, 0.08),
    rgba(79, 172, 254, 0.05),
    transparent
  );
  z-index: 1;
}

/* Ensure certifications/achievements text stays above light sweep in light mode */
body.light-theme .fa-ul li {
  position: relative;
  z-index: 2;
}

/* Make certifications/achievements text grey during light sweep for visibility */
body.light-theme .fa-ul li:hover {
  color: #666666 !important;
}

/* Light mode light sweep effect for navigation - very subtle */
body.light-theme #sideNav .navbar-nav .nav-link::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 172, 254, 0.05),
    rgba(0, 242, 254, 0.08),
    rgba(79, 172, 254, 0.05),
    transparent
  );
  z-index: 1;
}

/* Navigation text grey during light sweep - handled above */
