:root {
  /* Colors */
  --primary: #6f42c1;
  --primary-dark: #563d7c;
  --secondary: #d63384;
  --accent: #f8f9fa;
  --text-dark: #212529;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);

  /* Fonts */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
  width: 100%;
}

html {
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Global Utilities */
.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-main);
  color: white;
}

.section-padding {
  padding: 80px 0;
}

/* Buttons */
.btn-gradient {
  background: var(--gradient-main);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.4);
}

.btn-gradient:hover {
  background: var(--gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(118, 75, 162, 0.6);
  color: white;
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
  background: var(--primary-dark);
  color: white;
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.top-bar a:hover {
  color: white;
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  padding: 15px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary) !important;
  transition: color 0.3s;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin: 0 12px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 20px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary) !important;
}

/* Dropdown */
.dropdown-menu {
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 15px;
  font-weight: 500;
  transition: all 0.3s;
}

.dropdown-item:hover {
  background-color: rgba(111, 66, 193, 0.05);
  color: var(--primary);
  transform: translateX(5px);
}

/* Cards */
.card-custom {
  border: none;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  overflow: hidden;
  height: 100%;
}

.card-custom:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(118, 75, 162, 0.1);
  color: var(--primary);
  transition: all 0.3s ease;
}

.card-custom:hover .feature-icon {
  background: var(--gradient-main);
  color: white;
}

/* Animations */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Floating Elements Animation */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.floating-anim {
  animation: float 6s ease-in-out infinite;
}

/* Specific Sections */
.hero-section {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(111, 66, 193, 0.05) 0%,
    rgba(214, 51, 132, 0.05) 100%
  );
}

/* Inner Page Headers */
header.bg-light.section-padding {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary) 100%
  ) !important;
  color: white !important;
  padding-top: 150px !important;
  padding-bottom: 80px !important;
  margin-top: 0 !important;
}

header.bg-light.section-padding h1,
header.bg-light.section-padding p {
  color: white !important;
}

header.bg-light.section-padding .text-gradient {
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.trust-logo {
  height: 30px;
  transition: all 0.3s ease;
  /* Dark color enforced via image source, ensuring no opacity drop */
}

.trust-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Form Styles */
.form-control-lg {
  border-radius: 50px;
  padding: 15px 25px;
  border: 1px solid #e0e0e0;
}

.form-control-lg:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.25);
}

/* Footer */
footer {
  background: #1a1a2e; /* Dark purple/slate */
  color: white;
  padding-top: 80px;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

footer a:hover {
  color: white;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: white;
}
