/* Enhanced Features for Portfolio */

/* Enhanced Light Mode Variables */
:root {
  --bg-color: #ffffff;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --text-color: #2c3e50;
  --text-secondary: #5a6c7d;
  --accent-color: #8742f5;
  --accent-secondary: #f57a4d;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-hover-bg: rgba(255, 255, 255, 0.98);
  --border-color: rgba(135, 66, 245, 0.1);
  --shadow-color: rgba(135, 66, 245, 0.15);
  --shadow-hover: rgba(135, 66, 245, 0.25);
  --gradient-primary: linear-gradient(135deg, #8742f5 0%, #6c1fe8 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-tertiary: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
}

/* Enhanced Dark Mode Variables */
[data-theme="dark"] {
  --bg-color: #0f0f23;
  --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --bg-secondary: linear-gradient(135deg, #2d1b69 0%, #11998e 100%);
  --text-color: #ffffff;
  --text-secondary: #b8c5d1;
  --accent-color: #8742f5;
  --accent-secondary: #f57a4d;
  --card-bg: rgba(45, 45, 45, 0.95);
  --card-hover-bg: rgba(55, 55, 55, 0.98);
  --border-color: rgba(135, 66, 245, 0.3);
  --shadow-color: rgba(135, 66, 245, 0.2);
  --shadow-hover: rgba(135, 66, 245, 0.4);
  --gradient-primary: linear-gradient(135deg, #8742f5 0%, #6c1fe8 100%);
  --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  --gradient-tertiary: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --glass-bg: rgba(45, 45, 45, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
}

/* Enhanced Global Styles */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  background: var(--bg-color);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(135, 66, 245, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 122, 77, 0.1) 0%, transparent 50%);
  color: var(--text-color);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Main Content Area */
.main-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  margin: 20px;
  padding: 40px;
  box-shadow: 
    0 8px 32px var(--shadow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Card Styles */
.enhanced-card, .card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 
    0 10px 30px var(--shadow-color),
    0 1px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.enhanced-card::before, .card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.enhanced-card:hover::before, .card:hover::before {
  opacity: 1;
}

.enhanced-card:hover, .card:hover {
  background: var(--card-hover-bg);
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 20px 60px var(--shadow-hover),
    0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-color);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.8rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* Enhanced Links */
a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

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

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--accent-secondary);
  transform: translateY(-1px);
}

/* Enhanced Buttons */
.btn, button {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn:hover, button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  background: var(--gradient-secondary);
}

.btn:active, button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-color);
}

/* Apply dark mode styles */
[data-theme="dark"] body {
  background: var(--bg-color);
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(135, 66, 245, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(245, 122, 77, 0.15) 0%, transparent 50%);
  color: var(--text-color);
}

[data-theme="dark"] .card {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}

/* Enhanced Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 8px 25px var(--shadow-color),
    0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 
    0 12px 35px var(--shadow-hover),
    0 6px 15px rgba(0, 0, 0, 0.15);
  background: var(--gradient-secondary);
}

.theme-toggle:active {
  transform: scale(1.05) rotate(5deg);
}

/* Enhanced Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(20px);
  box-shadow: 
    0 8px 25px var(--shadow-color),
    0 4px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
}

.scroll-top-btn:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 
    0 15px 40px var(--shadow-hover),
    0 8px 20px rgba(0, 0, 0, 0.15);
  background: var(--gradient-secondary);
}

.scroll-top-btn:active {
  transform: scale(1.05) translateY(-2px);
}

/* Enhanced Game Statistics Styling */
.game-stats {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 25px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
  box-shadow: 
    0 15px 35px var(--shadow-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.game-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.game-stats h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
  font-size: 1.5em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.stat-item {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 25px 15px;
  box-shadow: 
    0 8px 20px var(--shadow-color),
    0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-tertiary);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.stat-item:hover::before {
  transform: translateX(0);
}

.stat-item:hover {
  transform: translateY(-10px) scale(1.05);
  background: var(--card-hover-bg);
  box-shadow: 
    0 20px 40px var(--shadow-hover),
    0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-color);
}

.stat-item:nth-child(1):hover::before { background: var(--gradient-primary); }
.stat-item:nth-child(2):hover::before { background: var(--gradient-secondary); }
.stat-item:nth-child(3):hover::before { background: var(--gradient-tertiary); }

.stat-number {
  display: block;
  font-size: 2.5em;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-item:nth-child(2) .stat-number {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item:nth-child(3) .stat-number {
  background: var(--gradient-tertiary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95em;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Enhanced Loading Animation */
.enhanced-loader {
  width: 60px;
  height: 60px;
  border: 4px solid transparent;
  border-top: 4px solid var(--accent-color);
  border-right: 4px solid var(--accent-secondary);
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
  margin: 30px auto;
  position: relative;
}

.enhanced-loader::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 2px solid transparent;
  border-top: 2px solid var(--gradient-tertiary);
  border-radius: 50%;
  animation: spin 1s linear infinite reverse;
}

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

/* Enhanced Animated Background Particles */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent-color);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(135, 66, 245, 0.5);
}

.particle:nth-child(1) { 
  left: 10%; 
  animation-delay: 0s; 
  background: var(--accent-color);
  animation-duration: 8s;
}
.particle:nth-child(2) { 
  left: 20%; 
  animation-delay: 1s; 
  background: var(--accent-secondary);
  animation-duration: 6s;
}
.particle:nth-child(3) { 
  left: 30%; 
  animation-delay: 2s; 
  background: var(--accent-color);
  animation-duration: 10s;
}
.particle:nth-child(4) { 
  left: 40%; 
  animation-delay: 3s; 
  background: var(--accent-secondary);
  animation-duration: 7s;
}
.particle:nth-child(5) { 
  left: 50%; 
  animation-delay: 4s; 
  background: var(--accent-color);
  animation-duration: 9s;
}
.particle:nth-child(6) { 
  left: 60%; 
  animation-delay: 5s; 
  background: var(--accent-secondary);
  animation-duration: 8s;
}
.particle:nth-child(7) { 
  left: 70%; 
  animation-delay: 6s; 
  background: var(--accent-color);
  animation-duration: 11s;
}
.particle:nth-child(8) { 
  left: 80%; 
  animation-delay: 7s; 
  background: var(--accent-secondary);
  animation-duration: 6s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(100vh) rotate(0deg) scale(0.8); 
    opacity: 0; 
  }
  10% { opacity: 1; }
  50% { 
    transform: translateY(-20px) rotate(180deg) scale(1.2); 
    opacity: 1;
  }
  90% { opacity: 1; }
  100% { 
    transform: translateY(-100vh) rotate(360deg) scale(0.8); 
    opacity: 0; 
  }
}

/* Enhanced Typography with Gradients */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s ease;
}

.gradient-text:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 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 indicators for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Enhanced animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px var(--shadow-color);
  }
  50% {
    box-shadow: 0 0 40px var(--shadow-hover), 0 0 60px var(--accent-color);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

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

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

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

.glow-animation {
  animation: glow 3s ease-in-out infinite;
}

/* Enhanced Form Styles */
input, textarea, select {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--text-color);
  transition: all 0.3s ease;
  width: 100%;
  margin-bottom: 20px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(135, 66, 245, 0.1);
  background: var(--card-hover-bg);
}

/* Enhanced Navigation Styles */
nav, .navbar {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 15px 30px;
  margin: 20px 0;
  box-shadow: 0 8px 25px var(--shadow-color);
}

nav a, .navbar a {
  color: var(--text-color);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin: 0 5px;
}

nav a:hover, .navbar a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
}

/* Enhanced Project Cards */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px var(--shadow-hover);
  border-color: var(--accent-color);
}

/* Enhanced Skills Section */
.skill-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-tag:hover {
  background: var(--gradient-secondary);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

/* Enhanced Progress Bars */
.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 6px;
  transition: width 1s ease-in-out;
  position: relative;
}

.progress-fill::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%); }
}

/* Enhanced Responsive improvements */
@media (max-width: 1200px) {
  .main-content {
    margin: 15px;
    padding: 30px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  body {
    background-image: 
      radial-gradient(circle at 50% 25%, rgba(135, 66, 245, 0.08) 0%, transparent 50%),
      radial-gradient(circle at 50% 75%, rgba(245, 122, 77, 0.08) 0%, transparent 50%);
  }
  
  .main-content {
    margin: 10px;
    padding: 20px;
    border-radius: 15px;
  }
  
  .theme-toggle {
    top: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .scroll-top-btn {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .game-stats {
    padding: 20px;
    margin: 20px 0;
    border-radius: 20px;
  }
  
  .enhanced-card, .card {
    padding: 20px;
    margin: 15px 0;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  nav, .navbar {
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 15px;
  }
  
  nav a, .navbar a {
    padding: 8px 12px;
    margin: 0 2px;
    font-size: 0.9rem;
  }
  
  .project-card {
    padding: 20px;
    margin: 15px 0;
  }
  
  .skill-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
    margin: 3px;
  }
  
  .bg-particles {
    opacity: 0.3;
  }
  
  .particle {
    width: 4px;
    height: 4px;
  }
}

@media (max-width: 480px) {
  .main-content {
    margin: 5px;
    padding: 15px;
  }
  
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
  
  .scroll-top-btn {
    width: 50px;
    height: 50px;
    font-size: 18px;
    bottom: 15px;
    right: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .enhanced-card, .card {
    padding: 15px;
    margin: 10px 0;
  }
  
  .game-stats {
    padding: 15px;
  }
  
  .stat-item {
    padding: 20px 10px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  nav, .navbar {
    padding: 8px 10px;
  }
  
  nav a, .navbar a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* Print styles */
@media print {
  .theme-toggle,
  .scroll-top-btn,
  .bg-particles {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .enhanced-card, .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  
  .gradient-text {
    -webkit-text-fill-color: initial !important;
    color: #8742f5 !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --border-color: rgba(0, 0, 0, 0.3);
  }
  
  [data-theme="dark"] {
    --shadow-color: rgba(255, 255, 255, 0.3);
    --shadow-hover: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.3);
  }
}

/* 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;
  }
  
  .bg-particles {
    display: none;
  }
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 5px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 6px;
  border: 2px solid var(--bg-color);
}

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

/* Selection styles */
::selection {
  background: var(--accent-color);
  color: white;
}

::-moz-selection {
  background: var(--accent-color);
  color: white;
}