/* ============================================
   SERVICES SECTION ENHANCEMENTS
   ============================================ */

/* Services Section Container */
#services {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Animated Background Pattern */
#services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(239, 55, 36, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(239, 55, 36, 0.05) 0%, transparent 50%),
    linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%);
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  animation: patternMove 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes patternMove {
  0% {
    background-position: 0% 0%, 100% 100%, 0 0, 0 0;
  }
  100% {
    background-position: 100% 100%, 0% 0%, 60px 60px, -60px 60px;
  }
}

/* Floating orbs in background */
#services::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  top: 10%;
  right: -5%;
  animation: floatOrb 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-30px, 30px) scale(1.2);
    opacity: 0.8;
  }
}

/* Services content z-index */
#services .container {
  position: relative;
  z-index: 1;
}

/* Services section heading */
#services h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#services .badge-subhead {
  background: rgba(239, 55, 36, 0.2);
  color: #ef3724;
  border: 1px solid rgba(239, 55, 36, 0.3);
}

/* Services Grid */
#services .row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#services .row > [class*="col-"] {
  max-width: 100%;
  flex: none;
  padding: 0;
}

/* Glassmorphism Service Cards */
#services .card-service {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  height: 100%;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

/* Card Glow Border Effect */
#services .card-service::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(239, 55, 36, 0.5) 25%,
    rgba(255, 107, 91, 0.5) 50%,
    rgba(239, 55, 36, 0.5) 75%,
    transparent 100%
  );
  background-size: 400% 400%;
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: glowRotate 3s linear infinite;
}

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

#services .card-service:hover::before {
  opacity: 1;
}

/* Shimmer effect overlay */
#services .card-service::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

#services .card-service:hover::after {
  left: 150%;
}

/* Hover Card Expansion */
#services .card-service:hover {
  transform: translateY(-15px) scale(1.03);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 55, 36, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(239, 55, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Icon Container with Animation */
#services .card-service .icon {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon pulse ring */
#services .card-service .icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid rgba(239, 55, 36, 0.3);
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

#services .card-service:hover .icon::before {
  opacity: 1;
  transform: scale(1);
  animation: iconPulseRing 1.5s ease-in-out infinite;
}

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

/* Icon glow effect */
#services .card-service .icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.4) 0%, transparent 70%);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.4s ease;
  border-radius: 50%;
}

#services .card-service:hover .icon::after {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Icon image morph on hover */
#services .card-service .icon img,
#services .card-service .icon .icon-50 {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: brightness(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 2;
}

#services .card-service:hover .icon {
  background: linear-gradient(145deg, #ef3724 0%, #ff6b5b 100%);
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.4);
}

#services .card-service:hover .icon img,
#services .card-service:hover .icon .icon-50 {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
  transform: scale(1.15) rotate(-5deg);
}

/* Caption Styles */
#services .card-service .caption {
  position: relative;
  z-index: 2;
  text-align: center;
}

#services .card-service .caption h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
  transition: all 0.3s ease;
}

#services .card-service:hover .caption h4 {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
}

#services .card-service .caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
  transition: color 0.3s ease;
}

#services .card-service:hover .caption p {
  color: rgba(255, 255, 255, 0.9);
}

/* Staggered Grid Reveal Animation */
#services .card-service {
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

#services .card-service.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Staggered reveal delays */
#services .row > div:nth-child(1) .card-service { transition-delay: 0.1s; }
#services .row > div:nth-child(2) .card-service { transition-delay: 0.2s; }
#services .row > div:nth-child(3) .card-service { transition-delay: 0.3s; }
#services .row > div:nth-child(4) .card-service { transition-delay: 0.4s; }
#services .row > div:nth-child(5) .card-service { transition-delay: 0.5s; }
#services .row > div:nth-child(6) .card-service { transition-delay: 0.6s; }

/* Interactive cursor effect for service cards */
#services .card-service:hover ~ .cursor-follower,
#services .card-service:hover ~ .cursor-dot {
  transform: scale(1.5);
}

/* Corner decorations */
#services .card-service .corner-decoration {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(239, 55, 36, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

#services .card-service .corner-decoration.top-left {
  top: 10px;
  left: 10px;
  border-right: none;
  border-bottom: none;
}

#services .card-service .corner-decoration.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: none;
  border-top: none;
}

#services .card-service:hover .corner-decoration {
  opacity: 1;
}

/* Tech line decoration */
#services .card-service .tech-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ef3724, transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

#services .card-service:hover .tech-line {
  transform: scaleX(1);
}

/* Floating particles in service cards */
#services .card-service .service-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(239, 55, 36, 0.5);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#services .card-service:hover .service-particle {
  opacity: 1;
  animation: serviceParticleFloat 3s ease-in-out infinite;
}

#services .card-service .service-particle:nth-child(1) { top: 15%; left: 15%; animation-delay: 0s; }
#services .card-service .service-particle:nth-child(2) { top: 25%; right: 20%; animation-delay: 0.5s; }
#services .card-service .service-particle:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 1s; }
#services .card-service .service-particle:nth-child(4) { bottom: 20%; right: 15%; animation-delay: 1.5s; }

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

/* Responsive Grid */
@media (max-width: 1199.98px) {
  #services .row {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 991.98px) {
  #services .row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  #services .card-service {
    padding: 30px 25px;
  }

  #services .card-service .icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 575.98px) {
  #services .row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #services .card-service .icon {
    width: 70px;
    height: 70px;
  }

  #services .card-service .icon img,
  #services .card-service .icon .icon-50 {
    width: 40px;
    height: 40px;
  }

  #services::before {
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  }
}

/* Print styles */
@media print {
  #services {
    background: #fff;
  }

  #services .card-service {
    opacity: 1;
    transform: none;
    background: #f8f9fa;
    border: 1px solid #ddd;
  }

  #services .card-service .caption h4,
  #services .card-service .caption p {
    color: #333;
  }
}

/* ============================================
   SERVICES SECTION - ADVANCED ENHANCEMENTS
   ============================================ */

/* Continuous Icon Float Animation */
#services .card-service .icon {
  animation: serviceIconFloat 4s ease-in-out infinite;
}

#services .card-service:nth-child(odd) .icon {
  animation-delay: 0.5s;
}

#services .card-service:nth-child(even) .icon {
  animation-delay: 1s;
}

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

#services .card-service:hover .icon {
  animation: none;
  transform: scale(1.1) rotate(5deg);
}

/* Mouse Tracking Background Pattern */
#services .pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#services .pattern-overlay .pattern-dot {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239, 55, 36, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.15s ease-out;
}

/* SVG Connecting Lines */
#services .service-connections,
#services .connections-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#services.show-connections .service-connections,
#services.show-connections .connections-svg,
#services .service-connections.active {
  opacity: 1;
}

#services .service-connections line,
#services .service-connections .connection-line,
#services .connections-svg path {
  fill: none;
  stroke: rgba(239, 55, 36, 0.4);
  stroke-width: 2;
  stroke-dasharray: 8, 4;
  animation: connectionFlow 20s linear infinite;
}

#services .card-service.highlighted {
  z-index: 10;
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(239, 55, 36, 0.3);
}

#services .card-service.related-highlight {
  z-index: 5;
  border-color: rgba(239, 55, 36, 0.6);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.2);
}

@keyframes connectionFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 100;
  }
}

/* Neon Glow Toggle Button */
.services-style-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-style-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(239, 55, 36, 0.5);
}

.services-style-toggle .toggle-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
}

.services-style-toggle .toggle-btn,
.services-style-toggle .toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.services-style-toggle .toggle-btn .toggle-slider,
.services-style-toggle .toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: block;
}

.services-style-toggle .toggle-btn.active,
.services-style-toggle.neon-active .toggle-btn,
.services-style-toggle.neon-active .toggle-switch {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
}

.services-style-toggle .toggle-btn.active .toggle-slider,
.services-style-toggle.neon-active .toggle-btn .toggle-slider,
.services-style-toggle.neon-active .toggle-switch::after {
  left: 27px;
}

/* Neon Style Mode */
#services.neon-mode .card-service {
  background: rgba(10, 10, 20, 0.9);
  border: 2px solid transparent;
  box-shadow:
    0 0 20px rgba(239, 55, 36, 0.3),
    0 0 40px rgba(239, 55, 36, 0.1),
    inset 0 0 20px rgba(239, 55, 36, 0.05);
}

#services.neon-mode .card-service::before {
  background: linear-gradient(
    90deg,
    #ef3724 0%,
    #ff6b5b 25%,
    #ffd700 50%,
    #ff6b5b 75%,
    #ef3724 100%
  );
  opacity: 1;
  animation: neonBorderFlow 3s linear infinite;
}

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

#services.neon-mode .card-service .icon {
  background: transparent;
  border: 2px solid #ef3724;
  box-shadow:
    0 0 15px rgba(239, 55, 36, 0.5),
    inset 0 0 15px rgba(239, 55, 36, 0.2);
}

#services.neon-mode .card-service .icon img {
  filter: drop-shadow(0 0 10px rgba(239, 55, 36, 0.8));
}

#services.neon-mode .card-service .caption h4 {
  text-shadow: 0 0 10px rgba(239, 55, 36, 0.5);
}

#services.neon-mode .card-service:hover {
  box-shadow:
    0 0 30px rgba(239, 55, 36, 0.5),
    0 0 60px rgba(239, 55, 36, 0.3),
    0 0 90px rgba(239, 55, 36, 0.1),
    inset 0 0 30px rgba(239, 55, 36, 0.1);
  transform: translateY(-15px) scale(1.05);
}

/* Service Modal Styles */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.service-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.service-modal {
  position: relative;
  max-width: 600px;
  width: 100%;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(239, 55, 36, 0.3);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(239, 55, 36, 0.2);
  transform: scale(0.8) translateY(50px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-modal-overlay.active .service-modal {
  transform: scale(1) translateY(0);
}

.service-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal-close:hover {
  background: #ef3724;
  transform: rotate(90deg);
}

.service-modal-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: linear-gradient(145deg, #ef3724 0%, #ff6b5b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.4);
}

.service-modal-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.service-modal-title {
  text-align: center;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.service-modal-description {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.service-modal-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 25px;
}

.service-modal-feature,
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 55, 36, 0.15);
  color: #ef3724;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(239, 55, 36, 0.3);
  transition: all 0.3s ease;
}

.feature-tag:hover {
  background: rgba(239, 55, 36, 0.25);
  transform: translateY(-2px);
}

.feature-tag i {
  color: #4ade80;
  font-size: 0.75rem;
}

.service-modal-cta {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.service-modal-btn {
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.service-modal-btn.primary {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  color: #fff;
  border: none;
}

.service-modal-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.4);
}

.service-modal-btn.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-modal-btn.secondary:hover {
  border-color: #ef3724;
  color: #ef3724;
}

/* Expand indicator on cards */
#services .card-service .expand-indicator {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

#services .card-service:hover .expand-indicator {
  opacity: 1;
  transform: scale(1);
}

#services .card-service:hover .expand-indicator:hover {
  background: #ef3724;
  color: #fff;
}

/* ============================================
   SERVICES SECTION - LIGHT/DARK MODE THEMES
   ============================================ */

/* ==========================================
   LIGHT MODE - Services Section (Default)
   ========================================== */

/* Light Mode - Section Background */
#services {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
  position: relative;
}

/* Light Mode - Section Title */
#services h1 {
  color: #1a1a2e;
}

#services .badge-subhead {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.1) 0%, rgba(255, 107, 91, 0.1) 100%);
  color: #ef3724;
  border: 1px solid rgba(239, 55, 36, 0.2);
}

/* Light Mode - Service Cards */
#services .card-service {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

#services .card-service:hover {
  background: linear-gradient(145deg, #ffffff 0%, #fef5f4 100%);
  border-color: rgba(239, 55, 36, 0.25);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.12),
    0 0 30px rgba(239, 55, 36, 0.08),
    0 0 0 1px rgba(239, 55, 36, 0.15) inset;
}

/* Light Mode - Card Glow Border */
#services .card-service::before {
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(239, 55, 36, 0.4) 25%,
    rgba(255, 107, 91, 0.4) 50%,
    rgba(239, 55, 36, 0.4) 75%,
    transparent 100%
  );
}

/* Light Mode - Shimmer effect */
#services .card-service::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
}

/* Light Mode - Icon Container */
#services .card-service .icon {
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#services .card-service .icon img,
#services .card-service .icon .icon-50 {
  filter: brightness(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

#services .card-service:hover .icon {
  background: linear-gradient(145deg, #ef3724 0%, #ff6b5b 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.35);
}

#services .card-service:hover .icon img,
#services .card-service:hover .icon .icon-50 {
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Light Mode - Caption Text */
#services .card-service .caption h4 {
  color: #1a1a2e;
}

#services .card-service .caption h4.fg-theme {
  color: #ef3724;
}

#services .card-service:hover .caption h4 {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#services .card-service .caption p {
  color: rgba(26, 26, 46, 0.7);
}

#services .card-service:hover .caption p {
  color: rgba(26, 26, 46, 0.85);
}

/* Light Mode - Corner Decorations */
#services .card-service .corner-decoration {
  border-color: rgba(239, 55, 36, 0.25);
}

/* Light Mode - Expand Indicator */
#services .card-service .expand-indicator {
  background: rgba(0, 0, 0, 0.05);
  color: rgba(26, 26, 46, 0.5);
}

#services .card-service:hover .expand-indicator {
  background: rgba(239, 55, 36, 0.1);
  color: #ef3724;
}

/* Light Mode - Pattern Overlay */
#services .pattern-overlay {
  opacity: 0.3;
}

#services .pattern-dot {
  background: radial-gradient(circle, rgba(239, 55, 36, 0.4) 0%, transparent 70%);
}

/* Light Mode - Service Connections SVG */
#services .service-connections .connection-line {
  stroke: rgba(239, 55, 36, 0.15);
  stroke-width: 1;
}

#services .service-connections.active .connection-line {
  stroke: rgba(239, 55, 36, 0.35);
  stroke-width: 2;
}

/* Light Mode - Service Modal */
.service-modal-overlay {
  background: rgba(255, 255, 255, 0.9);
}

.service-modal {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 0 40px rgba(239, 55, 36, 0.08);
}

.service-modal-close {
  background: rgba(0, 0, 0, 0.05);
  color: #1a1a2e;
}

.service-modal-close:hover {
  background: #ef3724;
  color: #fff;
}

.service-modal-title {
  color: #1a1a2e;
}

.service-modal-desc,
.service-modal-description {
  color: rgba(26, 26, 46, 0.8);
}

.service-modal-feature,
.feature-tag {
  background: rgba(239, 55, 36, 0.08);
  color: #ef3724;
  border-color: rgba(239, 55, 36, 0.2);
}

.feature-tag:hover {
  background: rgba(239, 55, 36, 0.15);
}

.service-modal-btn.secondary {
  color: #1a1a2e;
  border-color: rgba(26, 26, 46, 0.2);
}

.service-modal-btn.secondary:hover {
  border-color: #ef3724;
  color: #ef3724;
}

/* ==========================================
   DARK MODE - Services Section
   ========================================== */

/* Dark Mode - Section Background */
[data-theme="dark"] #services {
  background: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 50%, #0f0f1a 100%);
}

/* Dark Mode - Section Title */
[data-theme="dark"] #services h1 {
  color: #ffffff;
}

[data-theme="dark"] #services .badge-subhead {
  background: linear-gradient(135deg, rgba(239, 55, 36, 0.2) 0%, rgba(255, 107, 91, 0.15) 100%);
  color: #ef3724;
  border-color: rgba(239, 55, 36, 0.3);
}

/* Dark Mode - Service Cards */
[data-theme="dark"] #services .card-service {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] #services .card-service:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(239, 55, 36, 0.3);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(239, 55, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Dark Mode - Card Glow Border */
[data-theme="dark"] #services .card-service::before {
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(239, 55, 36, 0.5) 25%,
    rgba(255, 107, 91, 0.5) 50%,
    rgba(239, 55, 36, 0.5) 75%,
    transparent 100%
  );
}

/* Dark Mode - Shimmer Effect */
[data-theme="dark"] #services .card-service::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
}

/* Dark Mode - Icon Container */
[data-theme="dark"] #services .card-service .icon {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #services .card-service .icon img,
[data-theme="dark"] #services .card-service .icon .icon-50 {
  filter: brightness(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

[data-theme="dark"] #services .card-service:hover .icon {
  background: linear-gradient(145deg, #ef3724 0%, #ff6b5b 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(239, 55, 36, 0.4);
}

[data-theme="dark"] #services .card-service:hover .icon img,
[data-theme="dark"] #services .card-service:hover .icon .icon-50 {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* Dark Mode - Caption Text */
[data-theme="dark"] #services .card-service .caption h4 {
  color: #ffffff;
}

[data-theme="dark"] #services .card-service .caption h4.fg-theme {
  color: #ef3724;
}

[data-theme="dark"] #services .card-service:hover .caption h4 {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] #services .card-service .caption p {
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] #services .card-service:hover .caption p {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark Mode - Corner Decorations */
[data-theme="dark"] #services .card-service .corner-decoration {
  border-color: rgba(239, 55, 36, 0.35);
}

/* Dark Mode - Tech Line */
[data-theme="dark"] #services .card-service .tech-line {
  background: linear-gradient(90deg, transparent, #ef3724, transparent);
}

/* Dark Mode - Service Particles */
[data-theme="dark"] #services .card-service .service-particle {
  background: rgba(239, 55, 36, 0.6);
}

/* Dark Mode - Expand Indicator */
[data-theme="dark"] #services .card-service .expand-indicator {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] #services .card-service:hover .expand-indicator {
  background: rgba(239, 55, 36, 0.2);
  color: #ef3724;
}

[data-theme="dark"] #services .card-service:hover .expand-indicator:hover {
  background: #ef3724;
  color: #fff;
}

/* Dark Mode - Pattern Overlay */
[data-theme="dark"] #services .pattern-overlay {
  opacity: 0.5;
}

[data-theme="dark"] #services .pattern-dot {
  background: radial-gradient(circle, rgba(239, 55, 36, 0.5) 0%, transparent 70%);
}

/* Dark Mode - Service Connections SVG */
[data-theme="dark"] #services .service-connections .connection-line {
  stroke: rgba(239, 55, 36, 0.2);
  stroke-width: 1;
}

[data-theme="dark"] #services .service-connections.active .connection-line {
  stroke: rgba(239, 55, 36, 0.5);
  stroke-width: 2;
}

/* Dark Mode - Service Card Highlighted States */
[data-theme="dark"] #services .card-service.highlighted {
  border-color: rgba(239, 55, 36, 0.5);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(239, 55, 36, 0.2);
}

[data-theme="dark"] #services .card-service.related-highlight {
  border-color: rgba(255, 215, 0, 0.3);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 215, 0, 0.1);
}

/* Dark Mode - Service Modal */
[data-theme="dark"] .service-modal-overlay {
  background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .service-modal {
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(239, 55, 36, 0.3);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(239, 55, 36, 0.2);
}

[data-theme="dark"] .service-modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

[data-theme="dark"] .service-modal-title {
  color: #ffffff;
}

[data-theme="dark"] .service-modal-desc,
[data-theme="dark"] .service-modal-description {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .service-modal-feature,
[data-theme="dark"] .feature-tag {
  background: rgba(239, 55, 36, 0.15);
  color: #ef3724;
  border-color: rgba(239, 55, 36, 0.3);
}

[data-theme="dark"] .feature-tag:hover {
  background: rgba(239, 55, 36, 0.25);
}

[data-theme="dark"] .service-modal-btn.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .service-modal-btn.secondary:hover {
  border-color: #ef3724;
  color: #ef3724;
}

/* Dark Mode - Neon Mode Enhancements */
[data-theme="dark"] #services.neon-mode .card-service {
  background: rgba(10, 10, 20, 0.95);
}

[data-theme="dark"] #services.neon-mode .card-service:hover {
  box-shadow:
    0 0 40px rgba(239, 55, 36, 0.5),
    0 0 80px rgba(239, 55, 36, 0.3),
    0 0 120px rgba(239, 55, 36, 0.1),
    inset 0 0 40px rgba(239, 55, 36, 0.1);
}

