/* ===== Base & Variables ===== */
:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --dark: #0f172a;
  --gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

.fw-800 { font-weight: 800; }
.ls-wide { letter-spacing: 0.1em; }
.z-1 { z-index: 1; }

/* ===== Navbar ===== */
.navbar {
  background: transparent;
  transition: all 0.3s ease;
  padding: 1rem 0;
}

.navbar-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.4rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #93c5fd !important;
}

/* ===== Hero ===== */
.hero-section {
  min-height: 100vh;
  background: var(--dark);
  background-image: url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?w=1920&q=80');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75));
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  line-height: 1.1;
}

.hero-img {
  animation: float 6s ease-in-out infinite;
}

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

/* ===== Icon Boxes ===== */
.icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* ===== Service Cards ===== */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Brand Cards ===== */
.brand-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.brand-card:hover {
  background: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(26, 86, 219, 0.1);
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--primary);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--gradient);
  position: relative;
}

/* ===== Footer ===== */
.footer-link:hover {
  color: #fff !important;
}

footer a:hover {
  color: #fff !important;
}

/* ===== Back to Top ===== */
.btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.btn-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Form Controls ===== */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(26, 86, 219, 0.15);
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background: rgba(15, 23, 42, 0.98);
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .display-6 {
    font-size: 1.75rem;
  }
}
