:root {
  /* Vibrant Palette */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  /* Electric Blue to Vivid Purple */
  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  /* Cyan to Blue */
  --accent-color: #ec4899;
  /* Hot Pink */
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f1f5f9;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Glassmorphism Navbar */
.navbar {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 26px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin-left: 20px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-gradient);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #2563eb !important;
}

/* Hero Section */
/* Hero Section - Carousel */
.hero-slider-item {
  height: 100vh;
  /* Full screen height */
  min-height: 650px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex !important;
  /* Force flex to override Bootstrap's default display: block */
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 80px;
  /* Push content down to clear fixed navbar */
  padding-left: 15px;
  padding-right: 15px;
}

/* Slide Gradients */
.slide-1 {
  background: var(--primary-gradient);
}

.slide-2 {
  background: var(--secondary-gradient);
}

.slide-3 {
  background: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  /* Pink to Purple */
}

/* Floating Shapes for Slider */
.hero-slider-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.hero-slider-content {
  z-index: 2;
  max-width: 800px;
}

.hero-slider-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.hero-slider-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: rgba(255, 255, 255, 0.95);
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 10px;
  background-size: 50%;
}

@media (max-width: 768px) {
  .hero-slider-item {
    height: 70vh;
    min-height: 500px;
  }

  .hero-slider-content h1 {
    font-size: 2.5rem;
  }
}

/* Page Header Specifics */
.page-header {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  /* Reduced padding for narrower section - navbar clearance */
  padding-bottom: 50px;
  /* Reduced bottom padding for narrower section */
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  /* Remove min-height to make it truly narrow */
}

.page-header .container {
  max-width: 800px;
  /* Narrower container for page headers */
  width: 100%;
  /* Full width for flexbox */
  position: relative;
  /* Ensure z-index works */
  z-index: 2;
  /* Above the floating shapes */
}

.page-header h1 {
  color: var(--white) !important;
  font-size: 3rem;
  margin-bottom: 15px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header p,
.page-header .lead {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 1.2rem;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

.hero-section {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
  /* Reduced padding for inner pages by default, overridden by inline styles if needed, but here we set a sensible default */
  padding: 100px 0 60px;
  color: var(--white);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(50px, 50px) rotate(180deg);
  }

  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.hero-section h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 25px;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 35px;
}

/* Buttons */
.btn-primary {
  background: var(--secondary-gradient);
  /* Cyan/Blue gradient */
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.6);
  background: var(--secondary-gradient);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  padding: 10px 35px;
  font-weight: 600;
}

.btn-outline-light:hover {
  background: var(--white);
  color: #2563eb;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #2563eb;
  border-color: #2563eb;
  border-radius: 50px;
  padding: 10px 30px;
}

.btn-outline-primary:hover {
  background: var(--primary-gradient);
  border-color: transparent;
  color: white;
}


/* Sections */
.section-padding {
  padding: 80px 0;
}

.bg-light-gray {
  background-color: var(--white);
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Cards */
.feature-card,
.card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before,
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-gradient);
  transition: height 0.3s ease;
  z-index: -1;
}

.feature-card:hover,
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* .feature-card:hover::before, .card:hover::before {
   height: 100%; 
} */
/* Removed full fill on hover for clearer text reading, kept the Lift effect */

.feature-icon {
  font-size: 45px;
  margin-bottom: 25px;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Team Card Images */
.team-card img {
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background: #0f172a;
  /* Dark Slate */
  color: #cbd5e1;
  padding-top: 80px;
  position: relative;
}

footer h5 {
  color: var(--white);
  margin-bottom: 25px;
}

footer a:hover {
  color: var(--accent-color);
  padding-left: 8px;
}

/* Stats Counter */
.counter-box {
  text-align: center;
  margin-bottom: 20px;
}

.counter-box h3 {
  font-size: 3rem;
  font-weight: 800;
  background: var(--secondary-gradient);
  -webkit-background-clip: text;
  /* Clip text to gradient */
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.counter-box p {
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    padding: 120px 0 80px;
    clip-path: none;
  }

  .hero-section h1 {
    font-size: 2.2rem;
  }
}

/* Dropdown Hover Effect for Desktop */
@media all and (min-width: 992px) {
  .navbar .nav-item .dropdown-menu {
    display: none;
    margin-top: 0;
  }

  .navbar .nav-item:hover .nav-link {
    color: #2563eb;
  }

  .navbar .nav-item:hover .dropdown-menu {
    display: block;
  }

  .navbar .nav-item .dropdown-menu {
    margin-top: 0;
  }
}