/*
  Sayed Sherif – Portfolio Styles (Professional Edition)
  - Bootstrap overrides and custom theme
  - Dark theme default with light theme toggle
  - Advanced animations and hover transitions
  - Professional visual effects and particles
*/

/* Override Bootstrap default colors with our CSS variables */
:root {
  /* Enhanced Dark Theme Colors */
  --color-bg: #0a0a0f;
  --color-surface: #0f0f1a;
  --color-surface-2: #1a1a2e;
  --color-surface-3: #16213e;
  --color-text: #ffffff;
  --color-text-secondary: #e2e8f0;
  --color-muted: #94a3b8;
  --color-muted-light: #cbd5e1;
  
  /* Enhanced Primary Colors */
  --color-primary: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-accent: #8b5cf6;
  --color-accent-600: #7c3aed;
  --color-accent-700: #6d28d9;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-600: #059669;
  --color-warning: #f59e0b;
  --color-warning-600: #d97706;
  --color-danger: #ef4444;
  --color-danger-600: #dc2626;
  
  /* Enhanced Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.8);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.4);
  --shadow-glow-accent: 0 0 40px rgba(139, 92, 246, 0.4);
  
  /* Enhanced Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --gradient-primary-hover: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  --gradient-surface: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
  --gradient-surface-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f59e0b 100%);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light theme overrides */
body.light-theme {
  --color-bg: #ffffff;
  --color-surface: #f8fafc;
  --color-surface-2: #f1f5f9;
  --color-surface-3: #e2e8f0;
  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-muted: #64748b;
  --color-muted-light: #475569;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.3);
  --shadow-glow-accent: 0 0 40px rgba(139, 92, 246, 0.3);
  
  --gradient-surface: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  --gradient-surface-2: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
}

/* Override Bootstrap classes with our variables */
.bg-body-tertiary {
  background-color: var(--color-surface) !important;
}

.text-muted {
  color: var(--color-muted) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-text-secondary) !important;
}

.border-top {
  border-top-color: rgba(59, 130, 246, 0.2) !important;
}

body.light-theme .border-top {
  border-top-color: rgba(37, 99, 235, 0.2) !important;
}

/* Override Bootstrap button colors */
.btn-outline-secondary {
  color: var(--color-text-secondary) !important;
  border-color: var(--color-text-secondary) !important;
}

.btn-outline-secondary:hover {
  background-color: var(--color-text-secondary) !important;
  color: var(--color-bg) !important;
}

/* Override Bootstrap badge colors */
.text-bg-primary {
  background-color: var(--color-primary) !important;
  color: white !important;
}

.text-bg-secondary {
  background-color: var(--color-text-secondary) !important;
  color: var(--color-bg) !important;
}

.text-bg-info {
  background-color: var(--color-accent) !important;
  color: white !important;
}

.text-bg-success {
  background-color: var(--color-success) !important;
  color: white !important;
}

.text-bg-warning {
  background-color: var(--color-warning) !important;
  color: var(--color-bg) !important;
}

/* Override Bootstrap form validation colors */
.invalid-feedback {
  color: var(--color-danger) !important;
}

.valid-feedback {
  color: var(--color-success) !important;
}

/* Override Bootstrap progress bar colors */
.progress {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar {
  background-color: var(--gradient-primary) !important;
}

/* Ensure all text elements use our variables */
.small {
  color: var(--color-text-secondary) !important;
}

.lead {
  color: var(--color-text-secondary) !important;
}

.display-4 {
  color: var(--color-text) !important;
}

.h4 {
  color: var(--color-text) !important;
}

.h5 {
  color: var(--color-text) !important;
}

.card-title {
  color: var(--color-text) !important;
}

.card-text {
  color: var(--color-text-secondary) !important;
}

/* Fix specific Bootstrap overrides */
.navbar-expand-lg .navbar-nav .nav-link {
  color: var(--color-text) !important;
}

.navbar-expand-lg .navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

.navbar-expand-lg .navbar-nav .nav-link.active {
  color: var(--color-primary) !important;
}

/* Force all backgrounds to use our variables */
body {
  background-color: var(--color-bg) !important;
}

.navbar {
  background-color: var(--color-surface) !important;
}

.navbar-collapse {
  background-color: var(--color-surface) !important;
}

/* Ensure proper contrast for all elements */
* {
  color: inherit;
}

/* Fix any remaining color issues */
.opacity-75 {
  opacity: 0.75 !important;
}

.fw-bold {
  color: var(--color-text) !important;
}

.fw-semibold {
  color: var(--color-text-secondary) !important;
}

/* Base styles */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* Enhanced Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-surface);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-primary-hover);
}

/* Enhanced Navbar */
.navbar {
  backdrop-filter: blur(25px);
  background: rgba(15, 15, 26, 0.85) !important;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

body.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: var(--shadow-glow);
  transition: all var(--transition-normal);
}

.navbar-brand:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

.nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-normal);
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-sm);
  margin: 0 0.25rem;
  color: var(--color-text) !important;
}

.nav-link:hover {
  color: var(--color-primary) !important;
}

.nav-link.active {
  color: var(--color-primary) !important;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all var(--transition-normal);
  z-index: -1;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 0.1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: all var(--transition-bounce);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Navbar toggler button */
.navbar-toggler {
  border: 1px solid var(--color-primary) !important;
  color: var(--color-text) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body.light-theme .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Theme toggle button colors */
#themeToggle {
  color: var(--color-text) !important;
  background: var(--color-surface-2) !important;
  border: 1px solid var(--color-primary) !important;
}

#themeToggle:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

/* Ensure all text colors change with theme */
.navbar-nav .nav-link {
  color: var(--color-text) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--color-primary) !important;
}

/* Collapsed navbar background */
.navbar-collapse {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-top: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}

body.light-theme .navbar-collapse {
  background: var(--color-surface);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    background: var(--color-surface) !important;
    border: 1px solid rgba(59, 130, 246, 0.1);
  }
  
  body.light-theme .navbar-collapse {
    background: var(--color-surface) !important;
    border: 1px solid rgba(37, 99, 235, 0.1);
  }
}

/* Force navbar text colors */
.navbar .nav-link,
.navbar .navbar-nav .nav-link {
  color: var(--color-text) !important;
}

.navbar .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
  color: var(--color-primary) !important;
}

.navbar .nav-link.active,
.navbar .navbar-nav .nav-link.active {
  color: var(--color-primary) !important;
}

/* Ensure proper text contrast in both themes */
body.light-theme .nav-link {
  color: var(--color-text) !important;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
  color: var(--color-primary) !important;
}

/* Better contrast for form labels and text */
.form-label {
  color: var(--color-text-secondary) !important;
  font-weight: 600;
}

.form-control::placeholder {
  color: var(--color-muted) !important;
}

/* Ensure all headings have proper contrast */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text) !important;
}

/* Ensure all paragraphs have proper contrast */
p {
  color: var(--color-text-secondary) !important;
}

/* Ensure all links have proper contrast */
a {
  color: var(--color-primary) !important;
}

a:hover {
  color: var(--color-primary-600) !important;
}

/* Fix specific text colors that might not be changing */
.text-muted {
  color: var(--color-muted) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.text-secondary {
  color: var(--color-text-secondary) !important;
}

.opacity-75 {
  opacity: 0.75 !important;
}

/* Fix navbar brand text color override */
.navbar-brand {
  color: transparent !important;
  background: var(--gradient-primary) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

/* Ensure all sections have proper backgrounds */
#home, #about, #skills, #projects, #contact {
  background: var(--color-bg) !important;
}

.section-spacing {
  background: var(--color-bg) !important;
}

.hero-section {
  background: var(--color-bg) !important;
}

/* Fix card backgrounds */
.card, .skill-card {
  background: var(--color-surface-2) !important;
}

/* Fix form backgrounds */
#contactForm {
  background: var(--color-surface-2) !important;
}

/* Fix footer background */
footer {
  background: var(--color-surface-2) !important;
}

/* Enhanced Buttons */
.btn {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
  border-radius: var(--radius-md);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
  padding: 0.875rem 2rem;
  border: none;
  box-shadow: var(--shadow-md);
}

.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 var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  color: white;
}

.btn-primary:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-outline-primary {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.btn-outline-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left var(--transition-normal);
  z-index: -1;
}

.btn-outline-primary:hover::after {
  left: 0;
}

.btn-outline-primary:hover {
  border-color: transparent;
  color: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Enhanced Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: var(--gradient-surface);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: -50%;
  background: 
    radial-gradient(60% 60% at 30% 20%, rgba(59, 130, 246, 0.4) 0%, transparent 60%),
    radial-gradient(60% 60% at 70% 60%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    radial-gradient(40% 40% at 50% 50%, rgba(236, 72, 153, 0.3) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  animation: floatGlow 20s ease-in-out infinite alternate;
}

@keyframes floatGlow {
  0% { 
    transform: translateY(0) scale(1) rotate(0deg); 
    opacity: 0.6; 
  }
  50% { 
    transform: translateY(-30px) scale(1.2) rotate(180deg); 
    opacity: 1; 
  }
  100% { 
    transform: translateY(0) scale(1) rotate(360deg); 
    opacity: 0.6; 
  }
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  font-weight: 800;
}

.gradient-text::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  animation: expandLine 2.5s ease forwards 1.5s;
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

@keyframes expandLine {
  to { transform: scaleX(1); }
}

/* Enhanced Typing Effect */
.typed-caret {
  display: inline-block;
  width: 3px;
  height: 1.3em;
  background: var(--gradient-primary);
  margin-left: 4px;
  animation: blink 1.2s steps(2, start) infinite;
  vertical-align: middle;
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Enhanced Section Spacing */
.section-spacing {
  padding: 120px 0;
  position: relative;
}

.section-spacing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: var(--shadow-glow);
}

/* Enhanced Cards */
.card, .skill-card {
  background: var(--gradient-surface-2);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(25px);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.card::before, .skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.card:hover::before, .skill-card:hover::before {
  transform: scaleX(1);
}

.card:hover, .skill-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  border-color: var(--color-primary);
}

/* Enhanced Skill Cards */
.skill-card {
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
  transition: left var(--transition-slow);
}

.skill-card:hover::after {
  left: 100%;
}

.skill-card .progress {
  --bs-progress-height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset var(--shadow-sm);
}

.skill-card .progress-bar {
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.skill-card .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced Project Cards */
.project-card {
  position: relative;
  overflow: hidden;
}

.project-card .project-img {
  object-fit: cover;
  transition: all var(--transition-slow);
  filter: brightness(0.9);
}

.project-card:hover .project-img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.project-card .card-body {
  background: linear-gradient(180deg, transparent, var(--color-surface-2));
  position: relative;
  z-index: 1;
}

.badge {
  font-weight: 700;
  padding: 0.6em 1.2em;
  border-radius: 25px;
  transition: all var(--transition-bounce);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.badge:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

/* Enhanced Form Controls */
.form-control {
  background: var(--color-surface-2);
  border: 2px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: all var(--transition-normal);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.form-control:focus {
  background: var(--color-surface-2);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15), var(--shadow-glow);
  color: var(--color-text);
  transform: translateY(-2px);
}

.form-control::placeholder {
  color: var(--color-muted);
  font-weight: 500;
}

/* Enhanced Social Icons */
.social-icons .btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
}

.social-icons .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: all var(--transition-normal);
  transform: translate(-50%, -50%);
}

.social-icons .btn:hover::before {
  width: 100%;
  height: 100%;
}

.social-icons .btn:hover {
  transform: translateY(-8px) scale(1.15);
  border-color: transparent;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.social-icons .btn i {
  position: relative;
  z-index: 1;
  transition: color var(--transition-normal);
  font-size: 1.2rem;
}

.social-icons .btn:hover i {
  color: white;
}

/* Enhanced Footer */
footer {
  background: var(--gradient-surface-2);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.glow-hover {
  transition: all var(--transition-bounce);
  padding: 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
}

.glow-hover:hover {
  color: var(--color-primary) !important;
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.9);
  transform: scale(1.3) rotate(5deg);
  background: rgba(59, 130, 246, 0.1);
}

/* Enhanced Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-glow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-bounce);
  z-index: 1050;
  font-size: 1.2rem;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--shadow-2xl), var(--shadow-glow);
  background: var(--gradient-primary-hover);
}

/* Enhanced Progress Bar */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: transparent;
  z-index: 1060;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width var(--transition-fast);
  box-shadow: var(--shadow-glow);
}

/* Enhanced Statistics Counter */
.stats-counter {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: var(--shadow-glow);
}

/* Enhanced Responsive Design */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 80px 0;
  }
  
  .section-spacing {
    padding: 80px 0;
  }
  
  .navbar {
    background: var(--color-surface) !important;
  }
  
  .nav-link {
    padding: 0.5rem 1rem !important;
    margin: 0.25rem 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 60px 0;
  }
  
  .section-spacing {
    padding: 60px 0;
  }
  
  .stats-counter {
    font-size: 2.5rem;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* Enhanced Loading Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

/* Enhanced Particle Effects */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  box-shadow: var(--shadow-glow);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Hover Effects */
.bounce-hover {
  transition: all var(--transition-bounce);
}

.bounce-hover:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

/* Enhanced Text Selection */
::selection {
  background: var(--color-primary);
  color: white;
}

::-moz-selection {
  background: var(--color-primary);
  color: white;
}

/* Enhanced Focus States */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

/* Enhanced Card Hover States */
.skill-card:hover .fa-solid,
.skill-card:hover .fa-brands {
  color: var(--color-primary);
  transform: scale(1.2);
  transition: all var(--transition-bounce);
}

/* Enhanced Image Hover Effects */
.hero-illustration,
.about-photo {
  transition: all var(--transition-slow);
  filter: drop-shadow(var(--shadow-lg));
}

.hero-illustration:hover,
.about-photo:hover {
  transform: scale(1.05) rotate(2deg);
  filter: drop-shadow(var(--shadow-xl));
}

/* Enhanced Section Headers */
.section-spacing h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-spacing p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Enhanced Contact Form */
#contactForm {
  background: var(--gradient-surface-2);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: var(--shadow-xl);
}

#contactForm .btn {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 700;
  padding: 1rem 2.5rem;
}

#contactForm .btn:hover {
  background: var(--gradient-primary-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Enhanced Education Section Styles */
.education-card {
  background: var(--gradient-surface-2);
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.education-card:hover::before {
  transform: scaleX(1);
}

.education-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.3) !important;
}

.education-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  color: white;
  flex-shrink: 0;
  transition: all var(--transition-bounce);
}

.education-card:hover .education-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.education-card h5 {
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.education-card .text-primary {
  color: var(--color-primary) !important;
  font-weight: 600;
}

.education-card .text-muted {
  color: var(--color-muted) !important;
}

.education-card .badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
}

.education-card ul li {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.education-card ul li i {
  font-size: 0.8rem;
}

/* Education Section Responsive Adjustments */
@media (max-width: 768px) {
  .education-card {
    margin-bottom: 1rem;
  }
  
  .education-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  
  .education-icon-wrapper i {
    font-size: 1.5rem !important;
  }
}

/* Enhanced Education Section Header */
#education h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

#education p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  font-weight: 500;
}

