html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fefefe;
  line-height: 1.6;
}

/* 🌟 Hero Section with Blur */
.hero {
  position: relative;
  color: white;
  text-align: center;
  padding: 180px 20px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0,0,0,0.7);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* 🔵 Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}
.navbar-toggler { border: none; }
.navbar-toggler-icon { filter: brightness(0) invert(0.4); }

/* 🤝 Partners */
.partner-logo {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.partner-logo img {
  max-height: 70px;
  max-width: 100%;
  height: auto;
}

/* 📦 Service Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.card i { color: #0d6efd; }

/* ✅ Service Tabs */
.nav-tabs {
  border-bottom: none !important;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; } /* Hide scroll bar on mobile */

.nav-tabs .nav-link {
  border: none !important;
  background: #fff;
}

.custom-tabs .nav-link {
  background: #fff;
  border-radius: 50px !important;
  margin: 0 8px;
  padding: 12px 25px;
  font-weight: 600;
  color: #333;
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent breaking on mobile */
}
.custom-tabs .nav-link:hover {
  transform: translateY(-2px);
  background: #f3f3f3;
}
.custom-tabs .nav-link.active {
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(37, 117, 252, 0.4);
}

/* ✅ Service Card Enhancements */
.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* 📞 Contact */
#contactForm .form-control {
  border-radius: 8px;
  padding: 12px;
}
#contactForm button {
  padding: 10px 30px;
  border-radius: 25px;
  font-weight: 600;
}

/* ⚫ Footer */
footer { background: #0d1b2a; }
footer a {
  color: #adb5bd;
  transition: color 0.3s ease;
}
footer a:hover { color: white; }

/* ⬆ Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px; right: 20px;
  background: #0d6efd; color: white;
  border: none; border-radius: 50%;
  padding: 12px 16px; font-size: 20px;
  display: none; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
#backToTop:hover { background: #084298; }

/* ✅ Responsive */
@media (max-width: 991px) {
  .service-card { padding: 20px; }
  .custom-tabs .nav-link { padding: 10px 20px; font-size: 0.95rem; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  /* Make services stack on mobile */
  .service-card { margin-bottom: 20px; }
  .custom-tabs { justify-content: start; overflow-x: scroll; }
  .custom-tabs .nav-link { font-size: 0.9rem; margin: 0 5px; padding: 8px 18px; }
}
