/* 
 * PORTFOLIO WEBSITE - CORE STYLES
 * =================================
 * 
 * This file contains the main styling for Mihara Amandi's portfolio website.
 * It includes theme system, responsive design, animations, and component styles.
 * 
 * PERFORMANCE OPTIMIZATION NOTES:
 * - Critical CSS is inlined in HTML head for above-the-fold content
 * - Use will-change sparingly to avoid layout thrashing
 * - Prefer transform/opacity for animations (GPU accelerated)
 * - Use contain property for layout isolation where appropriate
 * - Optimize images: WebP format, proper sizing, lazy loading
 * - Minify CSS in production (remove comments, whitespace)
 * - Consider CSS-in-JS for dynamic styles to reduce bundle size
 * 
 * RESPONSIVE DESIGN DECISIONS:
 * - Mobile-first approach with progressive enhancement
 * - Breakpoints: sm(640px), md(768px), lg(1024px), xl(1280px)
 * - Fluid typography using clamp() for better scaling
 * - Flexible grid systems using CSS Grid and Flexbox
 * 
 * THEME SYSTEM IMPLEMENTATION:
 * - CSS custom properties for dynamic theming
 * - Smooth transitions between light/dark modes
 * - System preference detection with localStorage fallback
 * - Theme-aware components with consistent styling
 */

/* Tailwind CSS Configuration and Base Styles */

/* Custom Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* 
 * CSS CUSTOM PROPERTIES FOR THEME SYSTEM
 * ======================================
 * 
 * This section defines all color variables used throughout the website.
 * The theme system allows for dynamic switching between light and dark modes
 * by updating these CSS custom properties via JavaScript.
 * 
 * Color Palette Strategy:
 * - Primary: Blue tones for main actions and branding
 * - Secondary: Purple tones for accents and highlights
 * - Gray: Neutral tones for text and backgrounds
 * - Semantic: Success, warning, error colors for UI feedback
 */
:root {
  /* 
   * PRIMARY COLOR PALETTE (Blue)
   * Used for: Buttons, links, primary actions, branding
   * Accessibility: WCAG AA compliant contrast ratios
   */
  --primary-50: #eff6ff;   /* Lightest - backgrounds */
  --primary-100: #dbeafe;  /* Very light - hover states */
  --primary-200: #bfdbfe;  /* Light - borders, dividers */
  --primary-300: #93c5fd;  /* Medium light - icons */
  --primary-400: #60a5fa;  /* Medium - secondary actions */
  --primary-500: #3b82f6;  /* Base - primary actions */
  --primary-600: #2563eb;  /* Dark - hover states */
  --primary-700: #1d4ed8;  /* Darker - active states */
  --primary-800: #1e40af;  /* Very dark - text on light bg */
  --primary-900: #1e3a8a;  /* Darkest - emphasis */
  
  --secondary-50: #faf5ff;
  --secondary-100: #f3e8ff;
  --secondary-200: #e9d5ff;
  --secondary-300: #d8b4fe;
  --secondary-400: #c084fc;
  --secondary-500: #a855f7;
  --secondary-600: #9333ea;
  --secondary-700: #7c3aed;
  --secondary-800: #6b21a8;
  --secondary-900: #581c87;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  
  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  
  /* Border Colors */
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  
  /* Shadow Colors */
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-dark: rgba(0, 0, 0, 0.25);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Dark Theme Variables */
.dark {
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-tertiary: #9ca3af;
  
  --border-primary: #374151;
  --border-secondary: #4b5563;
  
  --shadow-color: rgba(0, 0, 0, 0.3);
  --shadow-color-dark: rgba(0, 0, 0, 0.5);
  
  --glass-bg: rgba(31, 41, 55, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 500;
}

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== HERO SECTION STYLES ===== */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(-45deg, var(--primary-50), var(--secondary-50), var(--primary-100), var(--secondary-100));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}

.dark .hero-section {
  background: linear-gradient(-45deg, var(--gray-900), var(--gray-800), var(--primary-900), var(--secondary-900));
  background-size: 400% 400%;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  object-fit: cover;
  border: 6px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
  animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-image {
    width: 300px;
    height: 300px;
  }
}

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

.hero-title {
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite alternate;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  filter: blur(20px);
  z-index: -1;
  border-radius: 20px;
}

@keyframes titleGlow {
  from { 
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 60px rgba(59, 130, 246, 0.2));
    transform: scale(1);
  }
  to { 
    filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.6)) drop-shadow(0 0 80px rgba(168, 85, 247, 0.3));
    transform: scale(1.02);
  }
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}

/* Enhanced hero title responsive adjustments */
@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(4rem, 5vw, 5rem);
  }
}

.typing-animation {
  overflow: hidden;
  border-right: 3px solid var(--primary-500);
  white-space: nowrap;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-500); }
}

/* ===== MODERN HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 2rem;
  }
}

/* Base Hero Button Styles */
.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateY(0);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  height: 60px;
}

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

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

.hero-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.hero-btn:active {
  transform: translateY(-2px) scale(1.02);
}

/* Button Content */
.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2;
  width: 100%;
}

.btn-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

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

.btn-text {
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Primary Button */
.hero-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #f5576c);
  border-radius: 50px;
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  100% {
    filter: hue-rotate(30deg) brightness(1.1);
  }
}

.hero-btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

/* Secondary Button */
.hero-btn-secondary {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #2d3748;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hero-btn-secondary::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #ffecd2, #fcb69f, #ff9a9e, #fecfef);
  border-radius: 50px;
  z-index: -1;
  animation: borderGlowSecondary 3s ease-in-out infinite alternate;
}

@keyframes borderGlowSecondary {
  0% {
    filter: hue-rotate(0deg) brightness(1);
  }
  100% {
    filter: hue-rotate(-30deg) brightness(1.1);
  }
}

.hero-btn-secondary:hover {
  background: linear-gradient(135deg, #ffe4b3 0%, #fbaa7a 100%);
  color: #1a202c;
  box-shadow: 0 15px 35px rgba(252, 182, 159, 0.4);
}

/* Glow Effect */
.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
  pointer-events: none;
}

.hero-btn:hover .btn-glow {
  width: 300px;
  height: 300px;
}

/* Particle Effect */
.btn-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.btn-particles::before,
.btn-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particleFloat 2s ease-in-out infinite;
}

.btn-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.btn-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-20px) scale(1.5);
    opacity: 1;
  }
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
  .hero-btn-secondary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
  }
  
  .hero-btn-secondary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #4a5568 100%);
  }
}

/* Focus States for Accessibility */
.hero-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.5);
}

/* Loading State */
.hero-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.hero-btn.loading .btn-content {
  opacity: 0.5;
}

.hero-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ABOUT SECTION STYLES ===== */
.about-section {
  position: relative;
  transition: all 0.3s ease;
}

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

/* ===== UNIFIED SECTION TITLE STYLES ===== */
.section-title-heading {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 10;
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.section-title-heading::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.section-title-heading:hover::after {
  width: 80px;
  background: linear-gradient(90deg, #8b5cf6, #3b82f6);
}

/* Section Title Subtitle */
.section-title-subtitle {
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Dark theme adjustments for section titles */
.dark .section-title-subtitle {
  color: #cbd5e1;
}

/* Responsive adjustments for section titles */
@media (max-width: 768px) {
  .section-title-heading {
    font-size: 2rem;
  }
  
  .section-title-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title-heading {
    font-size: 1.75rem;
  }
  
  .section-title-heading::after {
    width: 50px;
    height: 2px;
  }
}

/* About Section Title (legacy support) */
.about-title {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 10;
}

.about-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* About Section Subtitle (legacy support) */
.about-subtitle {
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s ease;
}

.about-section.dark .about-subtitle {
  color: #cbd5e1;
}

/* About Description */
.about-description {
  color: #475569;
  line-height: 1.7;
  transition: color 0.3s ease;
}

.about-section.dark .about-description {
  color: #e2e8f0;
}

/* Highlight Text */
.highlight-text {
  font-weight: 600;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  opacity: 0.3;
  border-radius: 1px;
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-image {
  width: 100%;
  max-width: 400px;
  height: 400px;
  border-radius: 20px;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 20px 40px var(--shadow-color-dark);
  transition: transform 0.3s ease;
}

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

/* About Stat Cards */
.about-stat-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.about-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
}

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

.about-stat-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-section.dark .about-stat-card {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

.about-section.dark .stat-label {
  color: #cbd5e1;
}

/* About Skills Title */
.about-skills-title {
  color: #1e293b;
  font-weight: 700;
  position: relative;
  transition: color 0.3s ease;
}

.about-section.dark .about-skills-title {
  color: #f1f5f9;
}

.about-skills-title::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* About Skill Tags */
.about-skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.about-skill-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.about-skill-tag:hover::before {
  left: 100%;
}

.about-skill-tag:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.about-skill-tag i {
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

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

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.skill-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-color-dark);
}

.skill-icon i {
  font-size: 2rem;
  color: var(--primary-500);
}

.skill-icon span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  color: var(--text-secondary);
}

/* ===== EDUCATION SECTION STYLES ===== */
.education-section {
  position: relative;
}

.education-timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-500), var(--secondary-500));
  transform: translateX(-50%);
  border-radius: 2px;
}

@media (max-width: 768px) {
  .timeline-line {
    left: 2rem;
  }
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

@media (min-width: 769px) {
  .timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-500);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 0 0 4px var(--primary-200);
  animation: pulse 2s infinite;
}

@media (max-width: 768px) {
  .timeline-item::before {
    left: 2rem;
  }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.education-card {
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow-color-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.education-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

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

.institution-logo {
  width: 60px;
  height: 60px;
  background: var(--primary-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-600);
  border: 2px solid var(--primary-200);
}

.education-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.education-info .institution {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-600);
  margin-bottom: 0.25rem;
}

.education-info .period {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.education-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.progress-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  animation: progressFill 2s ease-out;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== SKILLS SECTION STYLES ===== */
.skills-section {
  position: relative;
}

.skills-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

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

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.skill-category {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

.skill-category h3 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 1px;
}

.skill-item {
  margin-bottom: 1.5rem;
}

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

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.skill-percentage {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-600);
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 4px;
  transition: width 1.5s ease-out;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

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

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

.soft-skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.soft-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
}

.soft-skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px var(--shadow-color-dark);
}

.soft-skill-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--primary-600);
  transition: all 0.3s ease;
}

.soft-skill-card:hover .soft-skill-icon {
  background: var(--primary-500);
  color: white;
  transform: scale(1.1);
}

.soft-skill-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.soft-skill-description {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Glassmorphism Effects */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 1rem;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
}

.dark .glass-nav {
  background: rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid var(--border-primary);
}

/* Navigation Styles */
.nav-link {
  @apply relative px-4 py-2 text-sm font-medium transition-all duration-300;
  color: var(--text-secondary);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

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

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

.mobile-nav-link {
  @apply block px-4 py-3 text-base font-medium transition-all duration-300;
  color: var(--text-secondary);
}

.mobile-nav-link:hover {
  color: var(--primary-600);
  background-color: var(--bg-secondary);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
  opacity: 0;
  transform: translateY(-10px);
}

.mobile-menu-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-exit {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-exit-active {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Button Styles */
.btn-primary {
  @apply inline-flex items-center justify-center px-8 py-3 text-base font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
  @apply inline-flex items-center justify-center px-8 py-3 text-base font-semibold rounded-lg transition-all duration-300 transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2;
  background: transparent;
  border: 2px solid var(--primary-500);
  color: var(--primary-500);
}

.btn-secondary:hover {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ===== OPTIMIZED SECTION PADDING STYLES ===== */

/* Base Section Styles */
.section {
  @apply px-4 sm:px-6 lg:px-8;
  background: var(--bg-primary);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-alt {
  @apply px-4 sm:px-6 lg:px-8;
  background: var(--bg-secondary);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* Hero Section - Minimal padding for full-screen impact */
.hero-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* About Section - Moderate padding for content-heavy section */
.about-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  position: relative;
  transition: all 0.3s ease;
}

.about-section.dark {
  background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
}

/* Education Section - Generous padding for timeline layout */
.education-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--bg-secondary);
  position: relative;
}

/* Skills Section - Moderate padding for grid layout */
.skills-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: var(--bg-primary);
  position: relative;
}

/* Certifications Section - Compact padding for card grid */
#certifications {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: var(--bg-secondary);
}

/* Projects Section - Generous padding for project showcase */
#projects {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--bg-primary);
}

/* ===== MODERN CONTACT SECTION STYLES ===== */
.contact-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-header {
  text-align: left;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Modern Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

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

.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.contact-card-icon i {
  font-size: 1.25rem;
  color: white;
}

.contact-card-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.contact-card-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.contact-card-action {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* Location Card */
.location-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

.location-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-icon i {
  font-size: 1.5rem;
  color: white;
}

.location-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.location-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.location-map {
  border-radius: 15px;
  overflow: hidden;
}

.map-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
}

.map-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.map-content i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.map-content span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Contact Form Section */
.contact-form-section {
  display: flex;
  align-items: center;
}

.contact-form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.contact-form-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Modern Form Styles */
.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.input-wrapper {
  position: relative;
}

.modern-input,
.modern-textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modern-textarea {
  padding-top: 1.5rem;
  resize: vertical;
  min-height: 120px;
}

.modern-input:focus,
.modern-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.modern-input::placeholder,
.modern-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-label {
  position: absolute;
  top: 1rem;
  left: 3rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  pointer-events: none;
}

.modern-input:focus + .input-label,
.modern-input:not(:placeholder-shown) + .input-label,
.modern-textarea:focus + .input-label,
.modern-textarea:not(:placeholder-shown) + .input-label {
  top: 0.5rem;
  left: 3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  z-index: 2;
}

.modern-textarea + .input-icon {
  top: 1.5rem;
  transform: none;
}

/* Modern Submit Button */
.modern-submit-btn {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

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

.modern-submit-btn:hover::before {
  left: 100%;
}

.modern-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.modern-submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-form-card {
    padding: 2rem;
  }
  
  .form-header h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
}

/* Responsive Padding Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  
  .about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .education-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  .skills-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  #certifications {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  #projects {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  
  #contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding-top: 5rem;
    padding-bottom: 2rem;
  }
  
  .about-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .education-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  .skills-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  #certifications {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  #projects {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  
  #contact {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.section-title {
  @apply text-center mb-16;
}

.section-title h2 {
  @apply mb-4;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  @apply max-w-3xl mx-auto;
  color: var(--text-secondary);
}

/* Card Styles */
.card {
  @apply bg-white dark:bg-gray-900 rounded-2xl shadow-lg transition-all duration-300;
  border: 1px solid var(--border-primary);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

.glass-card {
  @apply rounded-2xl transition-all duration-300;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px var(--shadow-color-dark);
}

/* Social Links */
.social-link {
  @apply w-12 h-12 rounded-lg flex items-center justify-center transition-all duration-300 transform hover:scale-110;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
}

.social-link:hover {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.footer-social-link {
  @apply w-12 h-12 rounded-lg flex items-center justify-center transition-all duration-300 transform hover:scale-110;
  background: var(--gray-800);
  color: var(--gray-400);
}

.footer-social-link:hover {
  background: var(--primary-500);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ===== MODERN PROJECT FILTER STYLES ===== */
.project-filter {
  @apply mb-8;
  position: relative;
  z-index: 10;
}

.project-filter::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-300), transparent);
  transform: translateY(-50%);
  z-index: -1;
}

.filter-btn {
  position: relative;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

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

.filter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-300);
  color: var(--text-primary);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.filter-btn.active:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

/* Filter button ripple effect */
.filter-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: -1;
}

.filter-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Filter container animations */
.project-filter .flex {
  animation: filterSlideIn 0.8s ease-out;
}

/* Staggered button animations */
.filter-btn:nth-child(1) { animation: filterBtnSlideIn 0.6s ease-out 0.1s both; }
.filter-btn:nth-child(2) { animation: filterBtnSlideIn 0.6s ease-out 0.2s both; }
.filter-btn:nth-child(3) { animation: filterBtnSlideIn 0.6s ease-out 0.3s both; }
.filter-btn:nth-child(4) { animation: filterBtnSlideIn 0.6s ease-out 0.4s both; }
.filter-btn:nth-child(5) { animation: filterBtnSlideIn 0.6s ease-out 0.5s both; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .project-filter .flex {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .project-filter .flex {
    gap: 0.5rem;
  }
}

/* Project Cards */
.project-card {
  @apply bg-white dark:bg-gray-900 rounded-2xl shadow-lg transition-all duration-300 overflow-hidden;
  border: 1px solid var(--border-primary);
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px var(--shadow-color-dark);
}

.project-card.hidden {
  @apply hidden;
}

.project-card.visible {
  @apply block;
}

/* Project Image Container */
.project-image-container {
  @apply relative overflow-hidden;
}

.project-overlay {
  @apply absolute inset-0 bg-black bg-opacity-0 hover:bg-opacity-50 transition-all duration-300 flex items-center justify-center;
}

.project-links {
  @apply flex space-x-4 opacity-0 hover:opacity-100 transition-opacity duration-300;
}

.project-link-overlay {
  @apply w-12 h-12 bg-white bg-opacity-90 rounded-full flex items-center justify-center text-gray-800 hover:bg-blue-500 hover:text-white transition-all duration-300;
}

.tech-tag {
  @apply text-xs font-medium px-3 py-1 rounded-full;
  background: var(--primary-100);
  color: var(--primary-800);
  border: 1px solid var(--primary-200);
}

.dark .tech-tag {
  background: var(--primary-900);
  color: var(--primary-200);
  border: 1px solid var(--primary-700);
}

.project-link {
  @apply font-medium transition-colors duration-200;
  color: var(--primary-600);
}

.project-link:hover {
  color: var(--primary-800);
}

/* Form Styles */
.form-input {
  @apply w-full px-4 py-3 rounded-lg transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
}

.form-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Selection Styles */
::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

.dark ::selection {
  background: var(--primary-800);
  color: var(--primary-100);
}

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

/* Focus Styles */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary {
    border: 2px solid currentColor;
  }
  
  .card,
  .glass-card {
    border: 2px solid var(--text-primary);
  }
  
  .skill-bar {
    border: 1px solid var(--text-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .hero-title {
    animation: none;
  }
  
  .typing-animation {
    animation: none;
    border-right: none;
  }
}

/* Loading States */
.loading {
  @apply opacity-50 pointer-events-none;
}

/* Map Placeholder */
.map-placeholder {
  @apply transition-all duration-300 hover:shadow-lg hover:scale-105;
}

.map-placeholder:hover .fas.fa-map-marker-alt {
  @apply animate-bounce;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
  animation: slideUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Keyframe Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* ===== MODERN CONTACT SECTION STYLES ===== */
.contact-section {
  @apply px-4 sm:px-6 lg:px-8;
  padding-top: 6rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Contact Grid Layout */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Contact Info Section */
.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-header {
  text-align: left;
}

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Modern Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

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

.contact-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.contact-card-icon i {
  font-size: 1.25rem;
  color: white;
}

.contact-card-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.contact-card-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 2;
}

.contact-card-action {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* Location Card */
.location-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.location-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

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

.location-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-icon i {
  font-size: 1.5rem;
  color: white;
}

.location-header h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.location-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.location-map {
  border-radius: 15px;
  overflow: hidden;
}

.map-placeholder {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.map-placeholder:hover {
  background: rgba(255, 255, 255, 0.15);
}

.map-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.map-content i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.map-content span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Contact Form Section */
.contact-form-section {
  display: flex;
  align-items: center;
}

.contact-form-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 2.5rem;
  transition: all 0.3s ease;
}

.contact-form-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.form-header p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Modern Form Styles */
.modern-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.input-wrapper {
  position: relative;
}

.modern-input,
.modern-textarea {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 1rem;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modern-textarea {
  padding-top: 1.5rem;
  resize: vertical;
  min-height: 120px;
}

.modern-input:focus,
.modern-textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.modern-input::placeholder,
.modern-textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-label {
  position: absolute;
  top: 1rem;
  left: 3rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  pointer-events: none;
}

.modern-input:focus + .input-label,
.modern-input:not(:placeholder-shown) + .input-label,
.modern-textarea:focus + .input-label,
.modern-textarea:not(:placeholder-shown) + .input-label {
  top: 0.5rem;
  left: 3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  z-index: 2;
}

.modern-textarea + .input-icon {
  top: 1.5rem;
  transform: none;
}

/* Modern Submit Button */
.modern-submit-btn {
  position: relative;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 15px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

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

.modern-submit-btn:hover::before {
  left: 100%;
}

.modern-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-icon {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.modern-submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
  }
  
  .contact-form-card {
    padding: 2rem;
  }
  
  .form-header h3 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    gap: 1rem;
  }
  
  .contact-card {
    padding: 1.25rem;
  }
  
  .contact-form-card {
    padding: 1.5rem;
  }
}

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

/* Utility Classes */
.text-balance {
  text-wrap: balance;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
}

/* Hover Effects */
.hover-lift {
  @apply transition-transform duration-300;
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.hover-glow {
  @apply transition-shadow duration-300;
}

.hover-glow:hover {
  box-shadow: 0 10px 30px var(--shadow-color-dark);
}

/* Responsive Design */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section {
    min-height: 100vh;
    padding-top: 5rem;
  }
  
  .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .glass-nav {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .mobile-menu {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-primary);
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    color: black !important;
    background: white !important;
  }
  
  .dark {
    color: black !important;
    background: white !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .btn-primary,
  .btn-secondary {
    border: 2px solid black;
  }
  
  .card,
  .glass-card {
    border: 2px solid var(--text-primary);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
  
  .hero-title {
    animation: none;
  }
}

/* Container and Layout */
.container {
  @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.grid-responsive {
  @apply grid gap-8;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Theme Transition */
.theme-transition {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Toggle Button Animation */
.theme-toggle-animate {
  animation: themeToggleSpin 0.6s ease-in-out;
}

@keyframes themeToggleSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes ripple {
  to {
    transform: scale(2);
    opacity: 0;
  }
}

/* Enhanced Theme Toggle Button */
#theme-toggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#theme-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#theme-toggle:hover::before {
  left: 100%;
}

#theme-toggle:focus {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Theme-aware elements with smooth transitions */
.theme-aware {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced glassmorphism with theme awareness */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

/* Theme-aware navigation */
.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

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

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

/* Theme-aware buttons */
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover::before,
.btn-secondary:hover::before {
  left: 100%;
}

/* Theme-aware form inputs */
.input-base:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

/* Theme-aware cards */
.card-base {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-base:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

/* Theme-aware skill bars */
.skill-bar {
  transition: all 0.3s ease;
}

.skill-progress {
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Theme-aware project cards */
.project-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px var(--shadow-color-dark);
}

/* Theme-aware timeline */
.timeline-item {
  transition: all 0.3s ease;
}

.timeline-item:hover {
  transform: translateX(5px);
}

/* Theme-aware social links */
.social-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
}

/* Theme-aware skill icons */
.skill-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Theme-aware education cards */
.education-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.education-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--shadow-color-dark);
}

/* Theme-aware certification cards */
.certification-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.certification-card:hover {
  transform: translateY(-4px) rotate(1deg);
  box-shadow: 0 20px 40px var(--shadow-color-dark);
}

/* Custom Tailwind Components */
@layer components {
  .btn {
    @apply inline-flex items-center justify-center px-6 py-3 text-sm font-medium rounded-lg transition-all duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2;
  }
  
  .card-base {
    @apply bg-white dark:bg-gray-900 rounded-xl shadow-lg transition-all duration-300;
    border: 1px solid var(--border-primary);
  }
  
  .input-base {
    @apply w-full px-4 py-3 rounded-lg transition-colors duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
  }
}

/* ===== ENHANCED PROJECT SECTION STYLES ===== */

/* Project Filter Container */
.project-filter-container {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.filter-header {
  text-align: center;
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.filter-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Enhanced Filter Buttons */
.project-filter {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  z-index: 2;
  min-width: 140px;
  justify-content: center;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

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

.filter-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-300);
  color: var(--text-primary);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.filter-btn.active:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.filter-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.filter-text {
  font-weight: 500;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

/* Filter Status */
.filter-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.status-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.status-count {
  color: var(--primary-500);
  font-weight: 600;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Modern Project Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Modern Project Cards */
.project-card.modern-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform: translateY(0);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.project-card.modern-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-300);
}

.project-card.modern-card.hidden {
  display: none;
}

.project-card.modern-card.visible {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

/* Project Header */
.project-header {
  position: relative;
}

.project-image-container {
  position: relative;
  overflow: hidden;
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  position: relative;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card.modern-card:hover .image-placeholder::before {
  transform: translateX(100%);
}

/* Project Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

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

.project-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.project-link-btn:hover {
  background: var(--primary-500);
  color: white;
  transform: scale(1.1);
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.badge-text {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Project Content */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-info {
  flex: 1;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Project Technologies */
.project-technologies {
  margin-top: auto;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--primary-200);
  transition: all 0.3s ease;
}

.dark .tech-tag {
  background: var(--primary-900);
  color: var(--primary-200);
  border-color: var(--primary-700);
}

.tech-tag:hover {
  background: var(--primary-100);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.dark .tech-tag:hover {
  background: var(--primary-800);
}

/* Project Footer */
.project-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-primary);
}

.project-links-footer {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.project-link-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.project-link-footer:hover {
  color: var(--primary-800);
  transform: translateX(4px);
}

.project-link-footer i {
  font-size: 0.875rem;
}

/* Project Stats */
.project-stats {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-500);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .project-filter-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .filter-buttons {
    gap: 0.75rem;
  }
  
  .filter-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    min-width: 120px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.75rem;
    min-width: 100px;
  }
  
  .filter-icon {
    width: 16px;
    height: 16px;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Filter button animations */
@keyframes filterBtnSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== MODERN NAVIGATION STYLES ===== */

/* Modern Header */
.modern-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .modern-header {
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

/* Header scroll effect */
.modern-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dark .modern-header.scrolled {
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Navigation Container */
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 2rem;
}

/* Brand/Logo */
.nav-brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.brand-underline {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transition: width 0.3s ease;
  margin-top: 2px;
}

.brand-link:hover .brand-underline {
  width: 100%;
}

.brand-link:hover .brand-text {
  color: var(--primary-600);
}

/* Desktop Navigation Menu */
.nav-menu-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.nav-link:hover {
  color: var(--primary-600);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-1px);
}

.nav-link.active {
  color: var(--primary-600);
  background: rgba(59, 130, 246, 0.1);
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.nav-text {
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Navigation Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Modern Theme Toggle */
.theme-toggle-btn {
  position: relative;
  width: 3rem;
  height: 1.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.toggle-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(156, 163, 175, 0.3);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.dark .toggle-track {
  background: rgba(75, 85, 99, 0.5);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.375rem;
  height: 1.375rem;
  background: white;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.dark .toggle-thumb {
  transform: translateX(1.25rem);
  background: var(--gray-800);
}

.toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  transition: all 0.3s ease;
  color: var(--text-secondary);
}

.toggle-icon-sun {
  left: 0.375rem;
  opacity: 1;
}

.toggle-icon-moon {
  right: 0.375rem;
  opacity: 0;
}

.dark .toggle-icon-sun {
  opacity: 0;
}

.dark .toggle-icon-moon {
  opacity: 1;
}

.theme-toggle-btn:hover .toggle-track {
  background: rgba(59, 130, 246, 0.2);
}

.dark .theme-toggle-btn:hover .toggle-track {
  background: rgba(59, 130, 246, 0.3);
}

.theme-toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.mobile-menu-btn:hover {
  background: rgba(59, 130, 246, 0.1);
}

.mobile-menu-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Hamburger Icon */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 1.25rem;
  height: 1rem;
  position: relative;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-primary);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active .mobile-menu-container {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-primary);
}

.mobile-menu-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.mobile-menu-close:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary-600);
}

.mobile-nav-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 1rem 0;
  overflow-y: auto;
}

.mobile-nav-item {
  margin: 0;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
  left: 100%;
}

.mobile-nav-link:hover {
  color: var(--primary-600);
  background: rgba(59, 130, 246, 0.05);
}

.mobile-nav-link.active {
  color: var(--primary-600);
  background: rgba(59, 130, 246, 0.1);
}

.mobile-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav-text {
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .nav-menu-desktop {
    display: none;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-content {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .brand-text {
    font-size: 1.25rem;
  }
  
  .nav-actions {
    gap: 0.75rem;
  }
  
  .mobile-menu-container {
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .nav-content {
    height: 3.5rem;
  }
  
  .brand-text {
    font-size: 1.125rem;
  }
  
  .theme-toggle-btn {
    width: 2.75rem;
    height: 1.5rem;
  }
  
  .toggle-thumb {
    width: 1.125rem;
    height: 1.125rem;
  }
  
  .dark .toggle-thumb {
    transform: translateX(1.125rem);
  }
  
  .mobile-menu-container {
    max-width: 100%;
  }
}

/* Navigation Animations */
@keyframes navSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-item {
  animation: navSlideIn 0.6s ease-out forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobile menu animations */
@keyframes mobileNavSlideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-nav-item {
  animation: mobileNavSlideIn 0.4s ease-out forwards;
  opacity: 0;
}

.mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }

/* Theme transitioning class for smooth animations */
.theme-transitioning {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Enhanced theme toggle animations */
.theme-toggle-btn.theme-transitioning .toggle-thumb {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-toggle-btn.theme-transitioning .toggle-track {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-toggle-btn.theme-transitioning .toggle-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
