/*
  Portfolio CSS for CustQ Software Services
  Converted to Bootstrap with minimal custom styling
  Updated with moderate color palette for better contrast
*/

/* CSS Variables - Futuristic Dark Theme Based on Reference Images */
:root {
  /* Primary Dark Background Colors - Based on CUSTQ Careers Image */
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-quaternary: #0f3460;
  --bg-card: rgba(26, 26, 46, 0.8);
  --bg-card-hover: rgba(22, 33, 62, 0.9);
  
  /* Accent Colors - Bright Teal & Blue from Technology Stack Image */
  --accent-teal: #00d4ff;
  --accent-teal-light: #40e0ff;
  --accent-teal-dark: #00a8cc;
  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-blue-dark: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a78bfa;
  --accent-purple-dark: #7c3aed;
  
  /* Secondary Accent Colors */
  --accent-cyan: #06b6d4;
  --accent-indigo: #6366f1;
  --accent-pink: #ec4899;
  --accent-rose: #f43f5e;
  --accent-orange: #f59e0b;
  --accent-emerald: #10b981;
  
  /* Text Colors - Based on Image Analysis */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --text-accent: #00d4ff;
  
  /* Gradient Combinations - Futuristic & Quantum-Inspired */
  --gradient-primary: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
  --gradient-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  --gradient-tertiary: linear-gradient(135deg, var(--accent-cyan), var(--accent-teal));
  --gradient-dark: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  --gradient-card: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  
  /* Glassmorphism Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.3);
  
  /* Shadow Colors - Enhanced for Dark Theme */
  --shadow-light: rgba(0, 212, 255, 0.1);
  --shadow-medium: rgba(0, 212, 255, 0.2);
  --shadow-heavy: rgba(0, 212, 255, 0.3);
  --shadow-colored: rgba(0, 212, 255, 0.25);
  
  /* Hover Effects */
  --hover-glow: 0 0 20px rgba(0, 212, 255, 0.4);
  --hover-transform: translateY(-5px) scale(1.02);
}

/* General Styles - Dark Theme Implementation */
body {
  background: var(--gradient-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Enhanced visual elements for futuristic dark theme */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  text-shadow: 0 0 20px var(--shadow-colored);
}

/* Enhanced heading styles with teal accents */
.display-4, .display-1, h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  text-shadow: 0 0 15px var(--shadow-colored);
}

/* Glassy Heading Effect - Enhanced for Dark Theme */
.glassy-heading {
  margin-top: 10px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 10px 25px;
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--shadow-colored);
  box-shadow: 
    0 8px 32px var(--glass-shadow),
    inset 0 1px 0 var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glassy-heading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  transition: left 0.5s ease;
}

.glassy-heading:hover::before {
  left: 100%;
}

.glassy-heading:hover {
  transform: var(--hover-transform);
  box-shadow: 
    0 12px 40px var(--glass-shadow),
    inset 0 1px 0 var(--glass-border),
    var(--hover-glow);
  border-color: var(--accent-teal);
}

/* Enhanced glassy effect for better visibility */
.glassy-heading {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.15), 
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.05)
  );
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: 1px;
}

/* Section backgrounds with dark theme patterns */
section {
  position: relative;
}

section:nth-child(even) {
  background: var(--gradient-card);
}

section:nth-child(odd) {
  background: var(--gradient-dark);
}

/* Enhanced card shadows and borders for dark theme */
.card, .service-card, .portfolio-card-modern {
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover, .service-card:hover, .portfolio-card-modern:hover {
  border-color: var(--accent-teal);
  box-shadow: 0 8px 30px var(--shadow-colored), var(--hover-glow);
  transform: var(--hover-transform);
  background: var(--bg-card-hover);
}

/* Scrolling Cards Section - Dark Theme */
.scrolling-cards-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0;
  background: var(--gradient-card);
  border-radius: 20px;
  margin: 20px 0;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  min-height: 340px;
  max-width: 100vw;
}

.scrolling-cards-track {
  display: flex;
  gap: 30px;
  animation: scrollCards 35s linear infinite;
  width: max-content;
  will-change: transform;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  transform: translateZ(0);
}

.scrolling-cards-track:hover {
  animation-play-state: paused;
}

.scrolling-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 20px 24px 20px 24px;
  width: 360px;
  min-height: 300px;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px var(--shadow-medium);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin: 0;
}

/* Moving Colored Borders - Updated for Dark Theme */
.scrolling-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  padding: 3px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotateBorder 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scrolling-card:hover::before {
  opacity: 1;
}

/* Card-specific border colors with new dark theme palette */
.react-card::before { background: linear-gradient(45deg, var(--accent-teal), var(--accent-cyan)); }
.node-card::before { background: linear-gradient(45deg, var(--accent-emerald), var(--accent-teal)); }
.apk-card::before { background: linear-gradient(45deg, var(--accent-orange), var(--accent-rose)); }
.xml-card::before { background: linear-gradient(45deg, var(--accent-purple), var(--accent-pink)); }
.frameworks-card::before { background: linear-gradient(45deg, var(--accent-indigo), var(--accent-blue)); }
.servicenow-card::before { background: linear-gradient(45deg, var(--accent-rose), var(--accent-orange)); }
.python-card::before { background: linear-gradient(45deg, var(--accent-orange), var(--accent-emerald)); }

/* Card icon colors with new dark theme palette */
.react-card .card-icon { color: var(--accent-teal); }
.node-card .card-icon { color: var(--accent-emerald); }
.apk-card .card-icon { color: var(--accent-orange); }
.xml-card .card-icon { color: var(--accent-purple); }
.frameworks-card .card-icon { color: var(--accent-indigo); }
.servicenow-card .card-icon { color: var(--accent-rose); }
.python-card .card-icon { color: var(--accent-orange); }

/* Enhanced hover effects for dark theme */
.scrolling-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 20px 40px var(--shadow-colored), var(--hover-glow);
  background: var(--bg-card-hover);
}

.scrolling-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-teal-light);
}

/* Python card specific hover effect */
.python-card:hover .card-icon {
  color: var(--accent-emerald);
}

/* Python card icon special animation */
.python-card .card-icon i {
  animation: pythonPulse 2s ease-in-out infinite;
}

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

/* Python card enhanced overlay for better readability */
.python-card .card-overlay {
  background: linear-gradient(135deg, 
    rgba(15, 15, 35, 0.97) 0%, 
    rgba(26, 26, 46, 0.94) 25%, 
    rgba(22, 33, 62, 0.91) 50%, 
    rgba(15, 52, 96, 0.88) 75%, 
    rgba(26, 26, 46, 0.85) 100%);
}



/* Card icon enhanced animations */
.scrolling-card .card-icon {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Scrolling Animation */
@keyframes scrollCards {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1900px); }
}



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

/* Service Cards - Dark Theme */
.service-card {
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: var(--hover-transform);
  box-shadow: 0 20px 40px var(--shadow-colored), var(--hover-glow) !important;
}

/* Enhanced badge styling for dark theme */
.badge {
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.badge:hover {
  transform: var(--hover-transform);
  box-shadow: 0 6px 20px var(--shadow-medium), var(--hover-glow);
  border-color: var(--accent-teal);
  background: var(--accent-teal);
  color: var(--bg-primary);
}

/* Enhanced button styling for dark theme */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  box-shadow: 0 4px 15px var(--shadow-colored);
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--gradient-secondary) !important;
  transform: var(--hover-transform);
  box-shadow: 0 6px 20px var(--shadow-colored), var(--hover-glow);
}

.btn-success {
  background: var(--gradient-tertiary) !important;
  border: none !important;
  box-shadow: 0 4px 15px var(--shadow-colored);
  transition: all 0.3s ease;
  font-weight: 600;
  color: var(--text-primary);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan)) !important;
  transform: var(--hover-transform);
  box-shadow: 0 6px 20px var(--shadow-colored), var(--hover-glow);
}

/* Enhanced card styling for dark theme */
.service-card .card-header {
  background: var(--gradient-primary) !important;
  border: none !important;
  padding: 20px !important;
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.service-card .card-header h3 {
  color: var(--text-primary) !important;
  font-weight: 700;
  text-shadow: 0 0 15px var(--shadow-colored);
}

/* Images Grid - Dark Theme Styling */
.images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.image-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid var(--glass-border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.image-item:hover {
  transform: scale(1.05);
  border-color: var(--accent-teal);
  box-shadow: 0 10px 25px var(--shadow-colored), var(--hover-glow);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
  padding: 15px;
  text-align: center;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.image-item:hover .image-overlay {
  opacity: 1;
}

.image-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-shadow: 0 0 10px var(--shadow-colored);
}

.preview-btn {
  transition: all 0.3s ease;
  border: 2px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.preview-btn:hover {
  transform: scale(1.1);
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: var(--bg-primary);
  box-shadow: var(--hover-glow);
}

/* Modal Styling - Dark Theme */
.modal-nav-btn {
  transition: all 0.3s ease;
  opacity: 0.8;
  background: var(--glass-bg) !important;
  border: 2px solid var(--glass-border) !important;
  color: var(--text-primary) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-nav-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: var(--accent-teal) !important;
  border-color: var(--accent-teal) !important;
  color: var(--bg-primary) !important;
  box-shadow: var(--hover-glow);
}

#imageModal .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

#imageModal .modal-header {
  background: var(--bg-card-hover);
  border: none;
  color: var(--text-primary);
}

#imageModal .modal-footer {
  background: var(--bg-card-hover);
  border: none;
  color: var(--text-primary);
}

#imageModal .modal-title {
  color: var(--text-primary);
  font-weight: 700;
}

/* Portfolio Cards - Enhanced Bootstrap Cards */
.portfolio-card-modern {
  background: var(--bg-card);
  border-radius: 18px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.portfolio-card-modern:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-card-modern .card-icon {
  transition: transform 0.3s ease;
}

.portfolio-card-modern:hover .card-icon {
  transform: scale(1.1);
}

/* Client Logo Styling */
.client-logo {
  transition: all 0.3s ease;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.client-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.client-logo img {
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.client-logo:hover img {
  filter: grayscale(0%);
}

/* Footer Styling - Dark Theme */
#footer {
  background: var(--gradient-dark) !important;
  color: var(--text-primary);
  border-top: 3px solid var(--accent-teal);
}

#footer .copyright strong {
  color: var(--accent-teal) !important;
  font-weight: 700;
}

#footer .credits a {
  color: var(--accent-teal) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

#footer .credits a:hover {
  color: var(--accent-teal-light) !important;
  text-decoration: none;
  text-shadow: 0 0 10px var(--shadow-colored);
}

/* Back to Top Button Animation - Dark Theme */
#backToTop {
  transition: all 0.3s ease;
  opacity: 0.9;
  background: var(--gradient-primary) !important;
  border: none !important;
  color: var(--text-primary) !important;
  box-shadow: 0 6px 20px var(--shadow-colored);
}

#backToTop:hover {
  opacity: 1;
  transform: var(--hover-transform);
  background: var(--gradient-secondary) !important;
  box-shadow: 0 8px 25px var(--shadow-colored), var(--hover-glow);
}

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

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

/* Responsive Adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-1 {
    font-size: 3rem;
  }
  
  .portfolio-card-modern {
    margin-bottom: 1rem;
  }
  
  .scrolling-card {
    width: 300px;
    padding: 25px 20px 20px 20px;
  }
  
  .images-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .display-1 {
    font-size: 2.5rem;
  }
  
  .badge {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
  }
  
  .scrolling-card {
    width: 280px;
    padding: 20px 15px 15px 15px;
  }
  
  .images-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Modern Client Logos Carousel */
.clients-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 40px 0;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-radius: 25px;
  border: 1px solid var(--shadow-light);
  box-shadow: 0 8px 25px var(--shadow-medium);
}

.clients-carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: max-content;
  margin: 0 auto;
}

.client-logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s ease;
  transform: scale(0.8);
  filter: grayscale(100%) brightness(0.7);
  background: var(--bg-card);
  border-radius: 15px;
  border: 2px solid var(--shadow-light);
  padding: 15px;
  text-align: center;
}

.client-logo-item.active {
  transform: scale(1);
  filter: grayscale(0%) brightness(1);
  border-color: var(--accent-blue);
  box-shadow: 0 8px 25px var(--shadow-colored);
  background: var(--bg-card-hover);
}

.client-logo-item:hover {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1.1);
  border-color: var(--accent-indigo);
  box-shadow: 0 12px 30px var(--shadow-colored);
}

.client-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  transition: all 0.4s ease;
  display: block;
  margin: 0 auto;
}

.client-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: all 0.4s ease;
}

/* Carousel Navigation */
.clients-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.carousel-nav-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--accent-blue) !important;
  border: none !important;
  color: white !important;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--shadow-colored);
}

.carousel-nav-btn:hover {
  background: var(--accent-indigo) !important;
  color: white !important;
  transform: scale(1.1);
  box-shadow: 0 8px 25px var(--shadow-colored);
}

.carousel-nav-btn:active {
  transform: scale(0.95);
}

/* Auto-scroll animation */
.clients-carousel-track.auto-scroll {
  animation: autoScroll 20s linear infinite;
}

.clients-carousel-track.auto-scroll:hover {
  animation-play-state: paused;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .client-logo-item {
    width: 140px;
    height: 100px;
  }
  
  .clients-carousel-track {
    gap: 40px;
  }
  
  .carousel-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .client-logo-item {
    width: 120px;
    height: 80px;
  }
  
  .clients-carousel-track {
    gap: 30px;
  }
  
  .carousel-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* ========================================
   Enhanced Success Metrics Section Styles
   ======================================== */

/* Metrics Cards Enhanced Styling */
.metrics-card {
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
}

.metrics-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.4) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.metrics-card:hover {
  transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 15px 35px rgba(37, 99, 235, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.metrics-card:hover::before {
  opacity: 1;
}

/* 3D Glass Effect for Numbers */
.metrics-number-container {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

.metrics-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, 
    #2563eb 0%, 
    #4f46e5 25%, 
    #7c3aed 50%, 
    #db2777 75%, 
    #ea580c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 
    0 0 30px rgba(37, 99, 235, 0.5),
    0 0 60px rgba(79, 70, 229, 0.3),
    0 0 90px rgba(124, 58, 237, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.metrics-number.glass-effect {
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.9) 0%, 
    rgba(79, 70, 229, 0.9) 25%, 
    rgba(124, 58, 237, 0.9) 50%, 
    rgba(219, 39, 119, 0.9) 75%, 
    rgba(234, 88, 12, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6));
}

.metrics-card:hover .metrics-number {
  transform: scale(1.1) rotateY(10deg) rotateX(5deg);
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.8));
}

/* Glow Effect */
.metrics-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, 
    rgba(37, 99, 235, 0.3) 0%, 
    rgba(79, 70, 229, 0.2) 30%, 
    rgba(124, 58, 237, 0.1) 60%, 
    transparent 100%);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.6s ease;
  z-index: 1;
  filter: blur(20px);
}

.metrics-card:hover .metrics-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.3);
  }
}

/* Progress Bar Animation */
.metrics-progress {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  margin-top: 20px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    #2563eb 0%, 
    #4f46e7 25%, 
    #7c3aed 50%, 
    #db2777 75%, 
    #ea580c 100%);
  border-radius: 4px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Enhanced Card Animations */
.metrics-card.animate__fadeInLeft,
.metrics-card.animate__fadeInUp,
.metrics-card.animate__fadeInRight {
  animation-duration: 1.2s;
  animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Floating Animation for Cards */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

.metrics-card {
  animation: float 6s ease-in-out infinite;
}

.metrics-card:nth-child(1) {
  animation-delay: 0s;
}

.metrics-card:nth-child(2) {
  animation-delay: 2s;
}

.metrics-card:nth-child(3) {
  animation-delay: 4s;
}

/* Responsive Design for Metrics */
@media (max-width: 768px) {
  .metrics-number {
    font-size: 3rem;
  }
  
  .metrics-glow {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 576px) {
  .metrics-number {
    font-size: 2.5rem;
  }
  
  .metrics-glow {
    width: 120px;
    height: 120px;
  }
  
  .metrics-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(3deg);
  }
}

/* Enhanced Text Animations */
.metrics-card .card-title {
  transition: all 0.4s ease;
  position: relative;
}

.metrics-card:hover .card-title {
  transform: translateY(-5px);
  color: #2563eb;
}

.metrics-card .card-text {
  transition: all 0.4s ease;
}

.metrics-card:hover .card-text {
  color: #4f46e5;
}

/* Backdrop Filter Support */
@supports (backdrop-filter: blur(10px)) {
  .metrics-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(10px)) {
  .metrics-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc) !important;
  }
}

/* ========================================
   Project Cards with Background Images
   ======================================== */

/* Enhanced Project Cards with Background Images - Dark Theme */
.project-card-with-bg {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 280px;
  overflow: hidden;
  border-radius: 20px;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced Card Overlay for Better Text Readability */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(15, 15, 35, 0.95) 0%, 
    rgba(26, 26, 46, 0.92) 25%, 
    rgba(22, 33, 62, 0.88) 50%, 
    rgba(15, 52, 96, 0.85) 75%, 
    rgba(26, 26, 46, 0.82) 100%);
  z-index: 1;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Enhanced Card Content Positioning */
.card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1rem;
  color: var(--text-primary);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 3px 6px rgba(0, 0, 0, 0.8);
}

/* Enhanced Text Styling for Background Images */
.project-card-with-bg .card-title {
  color: var(--text-primary) !important;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.75rem;
  font-size: 1.7rem;
  position: relative;
}

.project-card-with-bg .card-title::before {
  content: '';
  position: absolute;
  top: -0.25rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.25rem;
  background: rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.8;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.project-card-with-bg .card-text {
  color: var(--text-primary) !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 3px 9px rgba(0, 0, 0, 0.85);
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  position: relative;
}

.project-card-with-bg .card-text::before {
  content: '';
  position: absolute;
  top: -0.125rem;
  left: -0.25rem;
  right: -0.25rem;
  bottom: -0.125rem;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.7;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.project-card-with-bg .card-icon {
  margin-bottom: 0.75rem;
  font-size: 1.1em;
  position: relative;
}

.project-card-with-bg .card-icon i {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.9)), drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 12px rgba(0, 0, 0, 0.7);
  background: rgba(0, 212, 255, 0.2);
  padding: 0.5rem;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--glass-border);
}

/* Enhanced Hover Effects for Project Cards */
.project-card-with-bg:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 15px 35px rgba(0, 0, 0, 0.2),
    var(--hover-glow);
}

.project-card-with-bg:hover .card-overlay {
  background: linear-gradient(135deg, 
    rgba(15, 15, 35, 0.88) 0%, 
    rgba(26, 26, 46, 0.84) 25%, 
    rgba(22, 33, 62, 0.78) 50%, 
    rgba(15, 52, 96, 0.74) 75%, 
    rgba(26, 26, 46, 0.68) 100%);
}

.project-card-with-bg:hover .card-content {
  transform: translateY(-5px);
}

.project-card-with-bg:hover .card-icon i {
  background: rgba(0, 212, 255, 0.3);
  border-color: var(--accent-teal);
  box-shadow: var(--hover-glow);
}

/* Enhanced Text Highlight Effect on Hover */
.project-card-with-bg:hover .card-title {
  color: var(--accent-teal) !important;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 212, 255, 0.5);
}

.project-card-with-bg:hover .card-text {
  color: var(--text-secondary) !important;
  text-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 212, 255, 0.3);
}

/* Additional Text Readability Enhancement */
.project-card-with-bg .card-title,
.project-card-with-bg .card-text {
  position: relative;
  z-index: 3;
}

/* Subtle text background for better readability */
.project-card-with-bg .card-title::before {
  content: '';
  position: absolute;
  top: -0.25rem;
  left: -0.5rem;
  right: -0.5rem;
  bottom: -0.25rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.7;
}

.project-card-with-bg .card-text::before {
  content: '';
  position: absolute;
  top: -0.125rem;
  left: -0.25rem;
  right: -0.25rem;
  bottom: -0.125rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  z-index: -1;
  opacity: 0.6;
}

/* Enhanced icon styling */
.project-card-with-bg .card-icon i {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem;
  border-radius: 50%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Tech Stack Tags */
.tech-tag {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Industry Badges - Blue Button Style
   ======================================== */

/* Industry Badge Styling - Dark Theme */
.industry-badge {
  background: var(--gradient-primary);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-colored);
  border: 2px solid var(--glass-border);
  cursor: pointer;
  user-select: none;
  min-width: 120px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.industry-badge:hover {
  background: var(--gradient-secondary);
  transform: var(--hover-transform);
  box-shadow: 0 8px 25px var(--shadow-colored), var(--hover-glow);
  border-color: var(--accent-teal);
}

.industry-badge:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--shadow-colored);
}

/* Responsive Design for Industry Badges */
@media (max-width: 768px) {
  .industry-badge {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

@media (max-width: 576px) {
  .industry-badge {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-width: 90px;
  }
  
  .d-flex.gap-3 {
    gap: 0.5rem !important;
  }
}

/* ========================================
   Dynamic Portfolio Loading Animation
   ======================================== */

/* Page Loader Container - Dark Theme */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
}

/* Loader Container */
.loader-container {
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Animated Portfolio Title - Dark Theme */
.portfolio-title {
  margin-bottom: 3rem;
  position: relative;
}

.portfolio-letters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.letter {
  font-size: 5rem;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  color: transparent;
  background: linear-gradient(45deg, var(--accent-teal), var(--accent-blue), var(--accent-purple), var(--accent-pink));
  -webkit-background-clip: text;
  background-clip: text;
  animation: letterGlow 2s ease-in-out infinite;
  position: relative;
  text-shadow: 0 0 20px var(--shadow-colored);
}

.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.1s; }
.letter:nth-child(3) { animation-delay: 0.2s; }
.letter:nth-child(4) { animation-delay: 0.3s; }
.letter:nth-child(5) { animation-delay: 0.4s; }

.portfolio-subtitle {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: subtitlePulse 3s ease-in-out infinite;
  text-shadow: 0 0 15px var(--shadow-colored);
}

@keyframes letterGlow {
  0%, 100% { 
    transform: scale(1) rotateY(0deg);
    filter: brightness(1) drop-shadow(0 0 10px var(--shadow-colored));
  }
  50% { 
    transform: scale(1.1) rotateY(10deg);
    filter: brightness(1.3) drop-shadow(0 0 20px var(--shadow-colored));
  }
}

@keyframes subtitlePulse {
  0%, 100% { 
    opacity: 0.7;
    transform: translateY(0px);
  }
  50% { 
    opacity: 1;
    transform: translateY(-5px);
  }
}

/* Animated Loading Text - Dark Theme */
.loader-text {
  margin-bottom: 3rem;
}

.loading-text {
  color: var(--text-secondary);
  font-size: 2.2rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 3px;
  margin-right: 0.8rem;
  display: inline-block;
  animation: textFade 2s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Enhanced Loading Dots - Dark Theme */
.loading-dots {
  display: inline-flex;
  gap: 1.2rem;
}

.dot {
  width: 18px;
  height: 18px;
  background: var(--gradient-primary);
  border-radius: 50%;
  animation: dotMorph 1.6s ease-in-out infinite both;
  box-shadow: 0 0 15px var(--shadow-colored);
}

.dot:nth-child(1) { animation-delay: 0s; }
.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotMorph {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    border-radius: 50%;
  }
  50% {
    transform: scale(1.3) rotate(180deg);
    border-radius: 30%;
  }
}

/* Enhanced Progress Bar - Dark Theme */
.loader-progress {
  margin-bottom: 3rem;
}

.progress-bar {
  width: 400px;
  height: 12px;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  position: relative;
  border: 2px solid var(--glass-border);
  box-shadow: inset 0 2px 4px var(--glass-shadow);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--shadow-colored);
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-text {
  color: var(--text-secondary);
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 0 10px var(--shadow-colored);
}

/* Dynamic Animated Background - Dark Theme */
.loader-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
  animation: bgMorph 8s ease-in-out infinite;
  box-shadow: 0 0 30px var(--shadow-light);
}

.bg-circle-1 {
  width: 400px;
  height: 400px;
  top: 5%;
  left: 5%;
  animation-delay: 0s;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.15), rgba(139, 92, 246, 0.15));
}

.bg-circle-2 {
  width: 300px;
  height: 300px;
  top: 55%;
  right: 10%;
  animation-delay: 2s;
  background: linear-gradient(45deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
}

.bg-circle-3 {
  width: 250px;
  height: 250px;
  bottom: 15%;
  left: 15%;
  animation-delay: 4s;
  background: linear-gradient(45deg, rgba(236, 72, 153, 0.15), rgba(245, 158, 11, 0.15));
}

.bg-circle-4 {
  width: 350px;
  height: 350px;
  top: 25%;
  right: 25%;
  animation-delay: 1s;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(139, 92, 246, 0.1));
}

@keyframes bgMorph {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1);
    border-radius: 50%;
  }
  25% {
    transform: translateY(-40px) rotate(90deg) scale(1.1);
    border-radius: 40%;
  }
  50% {
    transform: translateY(-20px) rotate(180deg) scale(0.9);
    border-radius: 60%;
  }
  75% {
    transform: translateY(-60px) rotate(270deg) scale(1.2);
    border-radius: 30%;
  }
}

/* Floating Tech Icons - Dark Theme */
.tech-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tech-icon {
  position: absolute;
  font-size: 2.5rem;
  color: var(--accent-teal);
  animation: techFloat 6s ease-in-out infinite;
  opacity: 0.6;
}

.tech-icon:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.tech-icon:nth-child(2) { top: 30%; right: 25%; animation-delay: 1s; }
.tech-icon:nth-child(3) { top: 70%; left: 30%; animation-delay: 2s; }
.tech-icon:nth-child(4) { top: 60%; right: 20%; animation-delay: 3s; }
.tech-icon:nth-child(5) { top: 40%; left: 50%; animation-delay: 4s; }

@keyframes techFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Responsive Design for Loader */
@media (max-width: 768px) {
  .letter {
    font-size: 4rem;
  }
  
  .portfolio-subtitle {
    font-size: 2rem;
  }
  
  .progress-bar {
    width: 350px;
    height: 10px;
  }
  
  .loading-text {
    font-size: 1.8rem;
  }

  .dot {
    width: 16px;
    height: 16px;
  }

  .tech-icon {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .letter {
    font-size: 3.2rem;
  }
  
  .portfolio-subtitle {
    font-size: 1.6rem;
  }
  
  .progress-bar {
    width: 280px;
    height: 10px;
  }
  
  .loading-text {
    font-size: 1.5rem;
  }

  .dot {
    width: 14px;
    height: 14px;
  }

  .tech-icon {
    font-size: 1.8rem;
  }
}

/* Enhanced Text Visibility for Dark Theme */
.lead {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Enhanced Card Text Visibility */
.card-text {
  color: var(--text-secondary);
}

/* Enhanced Section Text */
section p {
  color: var(--text-secondary);
}

/* Enhanced Button Text */
.btn {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Enhanced Form Elements */
.form-control {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-control:focus {
  background: var(--bg-card-hover);
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 0.2rem var(--shadow-colored);
  color: var(--text-primary);
}

/* Enhanced Table Styling */
.table {
  color: var(--text-primary);
}

.table th {
  background: var(--bg-card);
  color: var(--text-accent);
  border-color: var(--glass-border);
}

.table td {
  border-color: var(--glass-border);
}

/* Enhanced List Styling */
.list-group-item {
  background: var(--bg-card);
  border-color: var(--glass-border);
  color: var(--text-primary);
}

.list-group-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-teal);
}

/* Enhanced Hover Effects and Animations */
.card, .service-card, .portfolio-card-modern {
  position: relative;
  overflow: hidden;
}

.card::after, .service-card::after, .portfolio-card-modern::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.card:hover::after, .service-card:hover::after, .portfolio-card-modern:hover::after {
  left: 100%;
}

/* Enhanced Icon Animations */
.card-icon i, .service-card .card-icon i {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon i, .service-card:hover .card-icon i {
  transform: scale(1.1) rotate(5deg);
  color: var(--accent-teal);
  text-shadow: 0 0 15px var(--shadow-colored);
}

/* Enhanced Text Animations */
.card-title, .service-card .card-title {
  transition: all 0.3s ease;
  position: relative;
}

.card:hover .card-title, .service-card:hover .card-title {
  color: var(--accent-teal) !important;
  transform: translateY(-2px);
}

/* Enhanced Border Glow Effects */
.card, .service-card, .portfolio-card-modern {
  position: relative;
}

.card::before, .service-card::before, .portfolio-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before, .service-card:hover::before, .portfolio-card-modern:hover::before {
  opacity: 1;
}

/* Enhanced Section Headers */
section h2, section h3 {
  position: relative;
  display: inline-block;
}

section h2::after, section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

section h2:hover::after, section h3:hover::after {
  width: 100%;
}

/* Enhanced Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Enhanced Focus States */
*:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}

/* Enhanced Selection */
::selection {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--accent-teal);
  color: var(--bg-primary);
}

/* Fixed Metrics Cards Text Visibility */
.metrics-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,252,0.8)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2) !important;
}

.metrics-card .card-title {
  color: #1e293b !important;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-shadow: none;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.metrics-card .card-text {
  color: #475569 !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  text-shadow: none;
  line-height: 1.4;
}

.metrics-card .metrics-number {
  color: #1e293b !important;
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: none;
  position: relative;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.metrics-card:hover .metrics-number {
  transform: scale(1.1) rotateY(10deg) rotateX(5deg);
  color: var(--accent-teal) !important;
}

.metrics-card:hover .card-title {
  color: var(--accent-teal) !important;
}

.metrics-card:hover .card-text {
  color: var(--accent-blue) !important;
}

