/* MPro Dark Automotive Theme – Global Styles */

/* ===========================================
   CSS VARIABLES
   =========================================== */
:root {
  --mpro-dark: #050608;
  --mpro-dark-soft: #0d0f12;
  --mpro-dark-lighter: #151820;
  --mpro-red: #ff2b3d;
  --mpro-red-light: #ff4d5e;
  --mpro-red-dark: #cc222f;
  --mpro-yellow: #ffd75a;
  --mpro-light: #f8f9fa;
  --mpro-light-soft: #cfd3da;
  --mpro-gray: #6c757d;
}

/* ===========================================
   BASE & TYPOGRAPHY
   =========================================== */
html,
body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--mpro-dark);
  color: var(--mpro-light);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: ltr;
  text-align: left;
}

/* Prevent horizontal scroll on all containers */
.site-wrapper {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
}

.bg-dark-deep { background-color: var(--mpro-dark); }
.bg-dark-soft { background-color: var(--mpro-dark-soft); }
.text-light-soft { color: var(--mpro-light-soft); }
.text-accent-red { color: var(--mpro-red); }
.bg-accent-red { background-color: var(--mpro-red); }
.border-accent-red { border-color: var(--mpro-red) !important; }
.accent-yellow { color: var(--mpro-yellow); }

a { 
  color: var(--mpro-red); 
  transition: color 0.2s ease; 
  text-decoration: none; 
}
a:hover { 
  color: var(--mpro-red-light); 
  text-decoration: none; 
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn-accent-red {
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-accent-red:hover {
  background: linear-gradient(135deg, var(--mpro-red-light) 0%, var(--mpro-red) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 43, 61, 0.4);
}

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

.btn-glow {
  box-shadow: 0 0 20px rgba(255, 43, 61, 0.4);
}

.btn-outline-accent-red {
  border: 2px solid var(--mpro-red);
  color: var(--mpro-red);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-accent-red:hover {
  background: var(--mpro-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 43, 61, 0.3);
}

.btn-outline-light {
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ===========================================
   UTILITIES
   =========================================== */
.bg-glass-dark {
  background: rgba(5, 6, 8, 0.85);
  backdrop-filter: blur(12px);
}

.shadow-soft {
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.75);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.tracking-wide {
  letter-spacing: 0.1em;
}

/* ===========================================
   HEADER
   =========================================== */
header.site-header {
  z-index: 1040;
  transition: all 0.35s ease;
  background: transparent;
}

header.site-header.header-solid {
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-logo {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: all 0.3s ease;
}

/* Navbar Toggler (Mobile Hamburger) */
.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(255, 43, 61, 0.3);
  outline: none;
}

.navbar-toggler:hover {
  background: rgba(255, 43, 61, 0.2);
  border-color: rgba(255, 43, 61, 0.4);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.25em;
  height: 1.25em;
}

/* Mobile Nav Dropdown */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(15px);
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  }
  
  .navbar-nav {
    text-align: center;
    gap: 0.25rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
    border-radius: 10px;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover {
    background: rgba(255, 43, 61, 0.1);
  }
  
  .navbar .btn {
    margin-top: 1rem;
    width: 100%;
  }
}

/* Center nav links */
.navbar-collapse {
  justify-content: center !important;
}

.navbar-nav {
  flex-grow: 0;
}

.navbar-nav .nav-link,
.navbar-nav .menu-item a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after,
.navbar-nav .menu-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--mpro-red);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover,
.navbar-nav .menu-item a:hover {
  color: var(--mpro-red);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .menu-item a:hover::after {
  width: 100%;
}

.navbar-nav .current-menu-item a,
.navbar-nav .current_page_item a {
  color: var(--mpro-red);
}

/* ===========================================
   SITE WRAPPER
   =========================================== */
.home .site-wrapper { padding-top: 0; }
.site-wrapper { 
  padding-top: 70px; 
  overflow-x: hidden;
  max-width: 100vw;
}
.site-main { 
  min-height: 60vh; 
  overflow-x: hidden;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero-section {
  min-height: 100vh;
  background: var(--mpro-dark);
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  z-index: 0;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 6, 8, 0.75) 0%,
    rgba(5, 6, 8, 0.5) 40%,
    rgba(5, 6, 8, 0.85) 100%
  );
  z-index: 1;
}

/* Hero Glow Effects */
.hero-glow-effects {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--mpro-red);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--mpro-red-dark);
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
}

.glow-orb-3 {
  width: 200px;
  height: 200px;
  background: var(--mpro-yellow);
  top: 50%;
  right: 30%;
  opacity: 0.2;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Hero Content */
.hero-content { z-index: 2; max-width: 900px; }

/* Animated Text */
.text-glow {
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.text-glow-red {
  text-shadow: 0 0 60px rgba(255, 43, 61, 0.6), 0 0 120px rgba(255, 43, 61, 0.4);
}

.animate-text-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease forwards;
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* Hero Features */
.hero-feature {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.hero-feature:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 1rem;
}

/* Hero CTA Buttons Container */
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-ctas .btn {
  min-width: 160px;
}

/* Scroll Indicator */
.hero-scroll-indicator {
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--mpro-red);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* ===========================================
   WHY CHOOSE MPRO - MODERN CARDS
   =========================================== */
.why-card-modern {
  background: linear-gradient(145deg, var(--mpro-dark-lighter) 0%, var(--mpro-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.why-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--mpro-red), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.why-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 43, 61, 0.3);
  box-shadow: 0 20px 50px rgba(255, 43, 61, 0.15);
}

.why-card-modern:hover::before {
  opacity: 1;
}

.why-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.4s ease;
}

.why-card-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.why-card-modern:hover .why-card-icon {
  transform: scale(1.1) rotate(-5deg);
}

/* ===========================================
   SERVICES – ADVANCED FLIP CARDS
   =========================================== */
.service-card-advanced {
  perspective: 1000px;
  height: 380px;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.service-card-advanced:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.service-card-front {
  background: var(--mpro-dark-lighter);
}

.service-card-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}

.service-card-advanced:hover .service-card-image {
  transform: scale(1.1);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 8, 0.95) 100%);
}

.service-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  text-align: center;
}

.service-icon-badge {
  width: 56px;
  height: 56px;
  background: var(--mpro-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(255, 43, 61, 0.4);
}

.service-icon-badge i {
  font-size: 1.5rem;
  color: #fff;
}

.service-card-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card-hint {
  color: var(--mpro-light-soft);
  font-size: 0.85rem;
  opacity: 0.7;
}

.service-card-back {
  background: linear-gradient(145deg, #d42839 0%, #a01525 50%, #7a1020 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-back-content {
  padding: 1.75rem;
  text-align: center;
}

.service-back-icon {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.service-card-back h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem !important;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.service-card-back p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 1.25rem !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.service-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.service-card-actions .btn {
  border-radius: 50px;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.service-card-actions .btn-light {
  background: #fff;
  color: var(--mpro-red);
  border: 2px solid #fff;
}

.service-card-actions .btn-light:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: scale(1.03);
}

.service-card-actions .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.service-card-actions .btn-outline-light:hover {
  background: #fff;
  color: var(--mpro-red);
  border-color: #fff;
  transform: scale(1.03);
}

/* ===========================================
   MOBILE SERVICES CAROUSEL
   =========================================== */
#servicesCarouselMobile {
  position: relative;
  padding: 0 2.5rem;
}

.service-mobile-card {
  background: var(--mpro-dark-soft);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-mobile-image {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.service-mobile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

.service-mobile-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 48px;
  height: 48px;
  background: var(--mpro-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(255, 43, 61, 0.5);
}

.service-mobile-badge i {
  font-size: 1.25rem;
  color: #fff;
}

.service-mobile-content {
  padding: 1.25rem;
  background: var(--mpro-dark-soft);
}

.service-mobile-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.service-mobile-desc {
  font-size: 0.85rem;
  color: var(--mpro-light-soft);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.service-mobile-buttons {
  display: flex;
  gap: 0.6rem;
}

.service-mobile-buttons .btn {
  flex: 1;
  padding: 0.7rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.service-mobile-buttons .btn-accent-red {
  background: var(--mpro-red);
  border: none;
  color: #fff;
}

.service-mobile-buttons .btn-accent-red:hover {
  background: var(--mpro-red-light);
}

.service-mobile-buttons .btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.service-mobile-buttons .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Mobile Carousel Controls */
#servicesCarouselMobile .carousel-control-prev,
#servicesCarouselMobile .carousel-control-next {
  width: 36px;
  height: 36px;
  background: var(--mpro-red);
  border-radius: 50%;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

#servicesCarouselMobile .carousel-control-prev {
  left: 0;
}

#servicesCarouselMobile .carousel-control-next {
  right: 0;
}

#servicesCarouselMobile .carousel-control-prev:hover,
#servicesCarouselMobile .carousel-control-next:hover {
  background: var(--mpro-red-light);
}

#servicesCarouselMobile .carousel-control-prev-icon,
#servicesCarouselMobile .carousel-control-next-icon {
  display: none;
}

.carousel-control-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.carousel-control-icon i {
  font-size: 1rem;
  color: #fff;
}

#servicesCarouselMobile .carousel-indicators {
  position: relative;
  bottom: auto;
  margin-top: 1.25rem;
  margin-bottom: 0;
}

#servicesCarouselMobile .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  margin: 0 4px;
  transition: all 0.3s ease;
}

#servicesCarouselMobile .carousel-indicators button.active {
  background: var(--mpro-red);
  width: 24px;
  border-radius: 4px;
}

/* Keep desktop flip cards as-is */
@media (min-width: 768px) {
  .service-card-advanced {
    height: 380px;
  }
}

/* ===========================================
   EXPERIENCE SECTION
   =========================================== */
.experience-section {
  position: relative;
}

.experience-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.experience-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 6, 8, 0.97) 0%, rgba(5, 6, 8, 0.85) 50%, rgba(5, 6, 8, 0.7) 100%);
}

.experience-stats {
  display: flex;
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--mpro-red);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--mpro-light-soft);
}

.experience-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.experience-feature-card:hover {
  background: rgba(255, 43, 61, 0.08);
  border-color: rgba(255, 43, 61, 0.3);
  transform: translateX(8px);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-box i {
  font-size: 1.25rem;
  color: #fff;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-card {
  background: linear-gradient(145deg, var(--mpro-dark-lighter) 0%, var(--mpro-dark) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-card-bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 43, 61, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cta-contact-card:hover {
  background: rgba(255, 43, 61, 0.1);
}

.cta-contact-card .contact-icon {
  width: 48px;
  height: 48px;
  background: var(--mpro-red);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-contact-card .contact-icon i {
  font-size: 1.25rem;
  color: #fff;
}

.cta-contact-card .contact-link {
  color: var(--mpro-light-soft);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-contact-card:hover .contact-link {
  color: var(--mpro-red);
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
  background: var(--mpro-dark-soft);
}

.footer-logo {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.social-links .social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mpro-light-soft);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links .social-link:hover {
  background: var(--mpro-red);
  border-color: var(--mpro-red);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--mpro-light-soft);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--mpro-red);
  padding-left: 5px;
}

.footer-contact-item a {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: var(--mpro-red) !important;
}

.footer-legal-links a:hover {
  color: var(--mpro-red) !important;
}

/* Footer Policy Links */
.footer-policy-links {
  flex-wrap: wrap;
}

.policy-link {
  color: var(--mpro-light-soft);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.policy-link:hover {
  background: rgba(255, 43, 61, 0.1);
  border-color: rgba(255, 43, 61, 0.3);
  color: var(--mpro-red);
  transform: translateY(-2px);
}

.policy-link i {
  font-size: 0.75rem;
}

/* Coded by ABN */
.coded-by {
  font-size: 0.85rem;
  color: var(--mpro-light-soft);
}

.abn-link {
  color: var(--mpro-red);
  text-decoration: none;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 43, 61, 0.1);
  transition: all 0.3s ease;
}

.abn-link:hover {
  background: var(--mpro-red);
  color: #fff;
  transform: scale(1.05);
}

/* ===========================================
   FLOATING CONTACTS
   =========================================== */
.floating-contacts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1050;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}

/* Main Toggle Button */
.floating-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 43, 61, 0.4);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
}

.floating-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(255, 43, 61, 0.5);
}

.floating-toggle i {
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.floating-toggle .toggle-icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.floating-contacts.is-open .floating-toggle .toggle-icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.floating-contacts.is-open .floating-toggle .toggle-icon-close {
  opacity: 1;
  transform: rotate(0);
}

/* Contact Items Container */
.floating-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.floating-contacts.is-open .floating-items {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-contact-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.floating-contacts.is-open .floating-contact-item {
  opacity: 1;
  transform: scale(1);
}

.floating-contacts.is-open .floating-contact-item:nth-child(1) { transition-delay: 0.05s; }
.floating-contacts.is-open .floating-contact-item:nth-child(2) { transition-delay: 0.1s; }
.floating-contacts.is-open .floating-contact-item:nth-child(3) { transition-delay: 0.15s; }
.floating-contacts.is-open .floating-contact-item:nth-child(4) { transition-delay: 0.2s; }

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.floating-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-shifa {
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%);
}

.floating-qadisiyah {
  background: linear-gradient(135deg, #ff6b35 0%, #cc5528 100%);
}

.floating-admin {
  background: linear-gradient(135deg, #6c5ce7 0%, #5541d7 100%);
}

.floating-btn i {
  font-size: 1.2rem;
}

.floating-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  color: #fff;
}

/* Floating Tooltip */
.floating-tooltip {
  position: absolute;
  right: 100%;
  margin-right: 12px;
  background: rgba(5, 6, 8, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 43, 61, 0.3);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}

.floating-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(5, 6, 8, 0.95);
}

.floating-contact-item:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 575.98px) {
  .floating-contacts {
    bottom: 16px;
    right: 16px;
    gap: 8px;
  }
  
  .floating-toggle {
    width: 50px;
    height: 50px;
  }
  
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  
  .floating-btn i {
    font-size: 1.1rem;
  }
  
  .floating-tooltip {
    display: none;
  }
}

/* ===========================================
   PAGE HERO
   =========================================== */
.page-hero {
  background: linear-gradient(135deg, var(--mpro-dark-soft) 0%, var(--mpro-dark) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 30% 70%, rgba(255, 43, 61, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 43, 61, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* ===========================================
   FORMS
   =========================================== */
.form-control,
.form-select {
  background-color: var(--mpro-dark-lighter);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mpro-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--mpro-dark-lighter);
  border-color: var(--mpro-red);
  box-shadow: 0 0 0 3px rgba(255, 43, 61, 0.15);
  color: var(--mpro-light);
}

.form-label {
  color: var(--mpro-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Date input */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

/* ===========================================
   BLOG CARDS
   =========================================== */
.blog-card {
  transition: all 0.4s ease;
  border-radius: 16px;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 43, 61, 0.4) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image img {
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.08);
}

.blog-card-title a {
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: var(--mpro-red) !important;
}

/* ===========================================
   ALERTS
   =========================================== */
.alert-success {
  background-color: rgba(25, 135, 84, 0.15);
  border: 1px solid rgba(25, 135, 84, 0.3);
  color: #75b798;
  border-radius: 12px;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ea868f;
  border-radius: 12px;
}

/* ===========================================
   CONTENT TYPOGRAPHY
   =========================================== */
.post-body h2, .post-body h3, .post-body h4,
.page-body h2, .page-body h3, .page-body h4 {
  color: #fff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.post-body p, .page-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.post-body a, .page-body a {
  color: var(--mpro-red);
  text-decoration: underline;
}

.post-body ul, .post-body ol,
.page-body ul, .page-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body blockquote, .page-body blockquote {
  border-left: 4px solid var(--mpro-red);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--mpro-light-soft);
}

/* ===========================================
   BADGES
   =========================================== */
.badge.bg-accent-red {
  background: linear-gradient(135deg, var(--mpro-red) 0%, var(--mpro-red-dark) 100%) !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.5em 1em;
}

/* ===========================================
   SCROLLBAR
   =========================================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--mpro-dark-soft);
}

::-webkit-scrollbar-thumb {
  background: var(--mpro-red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mpro-red-light);
}

/* ===========================================
   SELECTION
   =========================================== */
::selection {
  background-color: var(--mpro-red);
  color: #fff;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* Global mobile overflow fix */
@media (max-width: 991.98px) {
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }
  
  main,
  section,
  .container,
  .container-fluid {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  .row {
    --bs-gutter-x: 1rem;
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
  }
  
  .container,
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero-section .display-2 {
    font-size: 2.5rem;
  }
  
  .hero-features {
    flex-wrap: wrap;
    gap: 0.5rem !important;
    justify-content: center;
  }
  
  .hero-feature {
    font-size: 0.75rem;
    padding: 0.5rem 0.85rem;
  }
  
  .feature-icon {
    font-size: 0.85rem;
  }
  
  .experience-stats {
    justify-content: center;
  }
  
  .cta-card {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  /* Hero Section */
  .hero-section .display-2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .hero-section .lead {
    font-size: 0.9rem;
    margin-bottom: 1.5rem !important;
  }
  
  /* Hero buttons side-by-side on mobile */
  .hero-ctas {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    justify-content: center;
  }
  
  .hero-ctas .btn {
    flex: 0 1 auto;
    min-width: auto !important;
    max-width: none;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
    white-space: nowrap;
  }
  
  .hero-ctas .btn.btn-lg {
    padding: 0.5rem 0.85rem !important;
    font-size: 0.8rem !important;
  }
  
  .hero-ctas .btn.px-5 {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  
  .hero-ctas .btn.py-3 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }
  
  /* Hero features in a row (compact) */
  .hero-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem !important;
  }
  
  .hero-feature {
    font-size: 0.65rem;
    padding: 0.35rem 0.6rem;
  }
  
  .feature-icon {
    font-size: 0.7rem;
  }
  
  /* Mobile Carousel Cards (smaller screens) */
  #servicesCarouselMobile {
    padding: 0 2rem;
  }
  
  .service-mobile-image {
    height: 180px;
  }
  
  .service-mobile-content {
    padding: 1rem;
  }
  
  .service-mobile-title {
    font-size: 1rem;
  }
  
  .service-mobile-desc {
    font-size: 0.8rem;
    margin-bottom: 0.85rem;
  }
  
  .service-mobile-buttons .btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .service-mobile-buttons .btn i {
    font-size: 0.85rem;
  }
  
  #servicesCarouselMobile .carousel-control-prev,
  #servicesCarouselMobile .carousel-control-next {
    width: 32px;
    height: 32px;
  }
  
  .carousel-control-icon i {
    font-size: 0.85rem;
  }
  
  /* Section Headings */
  section h2 {
    font-size: 1.5rem !important;
  }
  
  section .lead {
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer-logo {
    height: 50px;
  }
  
  .site-footer h5 {
    font-size: 1rem;
  }
  
  /* Map */
  .mpro-map-container {
    height: 280px !important;
  }
}

/* ===========================================
   PARTNERS SECTION
   =========================================== */
.partners-section {
  overflow: hidden;
  position: relative;
}

.partners-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 43, 61, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ===========================================
   PARTNERS CAROUSEL (Front Page)
   =========================================== */
.partners-carousel-section {
  overflow: hidden !important;
  position: relative;
}

.partners-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden !important;
  padding: 1rem 0 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.partners-carousel-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: partnersCarouselScroll 40s linear infinite;
  will-change: transform;
}

.partners-carousel-track:hover {
  animation-play-state: paused;
}

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

.partner-carousel-item {
  flex-shrink: 0;
}

.partner-carousel-item .partner-logo-wrapper {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-carousel-item .partner-logo-wrapper:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 43, 61, 0.4);
  background: linear-gradient(145deg, rgba(255, 43, 61, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 43, 61, 0.2),
    0 0 40px rgba(255, 43, 61, 0.08);
}

.partner-carousel-item .partner-logo {
  max-width: 90%;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.6);
  transition: all 0.4s ease;
}

.partner-carousel-item .partner-logo-wrapper:hover .partner-logo {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.05);
}

.partner-carousel-item .partner-logo.partner-logo-original {
  filter: opacity(0.7);
}

.partner-carousel-item .partner-logo-wrapper:hover .partner-logo.partner-logo-original {
  filter: opacity(1);
}

/* Responsive Carousel */
@media (max-width: 991.98px) {
  .partners-carousel-track {
    gap: 2rem;
    animation-duration: 35s;
  }
  
  .partner-carousel-item .partner-logo-wrapper {
    width: 150px;
    height: 85px;
    padding: 1.25rem 1rem;
  }
  
  .partner-carousel-item .partner-logo {
    max-height: 45px;
  }
}

@media (max-width: 575.98px) {
  .partners-carousel-wrapper {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  }
  
  .partners-carousel-track {
    gap: 1.5rem;
    animation-duration: 30s;
  }
  
  .partner-carousel-item .partner-logo-wrapper {
    width: 130px;
    height: 75px;
    padding: 1rem 0.875rem;
    border-radius: 12px;
  }
  
  .partner-carousel-item .partner-logo {
    max-height: 38px;
  }
}

/* Partners Grid Layout */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 1.5rem 1.25rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.partner-logo-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255, 43, 61, 0.1), transparent 30%);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: partnerShine 3s linear infinite paused;
}

.partner-logo-wrapper:hover::before {
  opacity: 1;
  animation-play-state: running;
}

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

.partner-logo-wrapper:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 43, 61, 0.4);
  background: linear-gradient(145deg, rgba(255, 43, 61, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 43, 61, 0.2),
    0 0 40px rgba(255, 43, 61, 0.08);
}

.partner-logo {
  max-width: 85%;
  max-height: 55px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.55);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.partner-logo-wrapper:hover .partner-logo {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.08);
}

/* Original color logos (no white filter) */
.partner-logo.partner-logo-original {
  filter: opacity(0.75);
}

.partner-logo-wrapper:hover .partner-logo.partner-logo-original {
  filter: opacity(1);
}

/* Tablet - 3 columns */
@media (max-width: 991.98px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 600px;
  }
  
  .partner-logo-wrapper {
    padding: 1.25rem 1rem;
    border-radius: 14px;
  }
  
  .partner-logo {
    max-height: 45px;
  }
}

/* Mobile Large - 3 columns compact */
@media (max-width: 767.98px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .partner-logo-wrapper {
    padding: 1rem 0.75rem;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
  }
  
  .partner-logo {
    max-height: 38px;
    max-width: 80%;
  }
  
  .partners-section .badge {
    font-size: 0.7rem;
  }
  
  .partners-section h2 {
    font-size: 1.5rem !important;
  }
  
  .partners-section p {
    font-size: 0.9rem;
  }
}

/* Mobile Small - 2 columns */
@media (max-width: 479.98px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .partner-logo-wrapper {
    padding: 0.875rem 0.625rem;
    border-radius: 10px;
  }
  
  .partner-logo {
    max-height: 32px;
  }
}

/* Extra class for last row centering when odd number */
.partners-grid.center-last .partner-item:last-child:nth-child(odd) {
  grid-column: span 2;
  justify-self: center;
  max-width: 50%;
}
