/* Global Styles */
:root {
  --primary-color: #4e73df;
  --secondary-color: #1cc88a;
  --dark-color: #2e384d;
  --light-color: #f8f9fc;
  --gray-color: #858796;
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
}

section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--primary-color);
}

.section-header p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #3a5ccc;
  border-color: #3a5ccc;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(78, 115, 223, 0.2);
}

.btn-outline-light {
  border-color: #fff;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  transition: var(--transition);
}

.btn-outline-light:hover {
  background-color: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Navbar Styles */
.navbar {
  padding: 20px 0;
  transition: var(--transition);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
}

.navbar.scrolled .navbar-brand {
  color: var(--dark-color);
}

.navbar-brand span {
  color: var(--primary-color);
}

.navbar-nav .nav-link {
  color: var(--dark-color);
  font-weight: 500;
  padding: 10px 15px;
  transition: var(--transition);
}

.navbar.scrolled .navbar-nav .nav-link {
  color: var(--dark-color);
}

/* Special styling for home page hero section */
body.home-page .navbar:not(.scrolled) .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 100dvh;
  min-height: 700px;
  background: linear-gradient(
    167deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(78, 115, 223, 1) 28%,
    rgba(9, 9, 121, 1) 100%
  );
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-section .lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btns {
  margin-top: 30px;
}

.hero-img {
  animation: float 3s ease-in-out infinite;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

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

.hero-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

/* Services Section */
.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.8rem;
  transition: var(--transition);
}

.service-card:hover .icon-box {
  background: var(--secondary-color);
  transform: rotateY(180deg);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--secondary-color);
}

.service-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.service-link:hover i {
  transform: translateX(5px);
}

/* About Section */
.about-stats h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* Team Section Styles */
.team-card {
  padding: 2rem;
  transition: all 0.3s ease;
  border-radius: 15px;
}

.team-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.team-img {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 50%;
  padding: 15px;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.team-card:hover .team-img img {
  transform: scale(1.1);
}

.team-card h4 {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.team-card:hover h4 {
  color: var(--primary-color);
}

.team-card p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray-color);
}

.testimonial-content:before {
  content: "\201C";
  font-size: 4rem;
  position: absolute;
  left: -20px;
  top: -20px;
  color: rgba(78, 115, 223, 0.1);
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border: 3px solid var(--primary-color);
}

.testimonial-author h5 {
  margin-bottom: 5px;
}

.testimonial-author p {
  margin-bottom: 0;
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Contact Section */
.contact-form .form-control {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border: 1px solid #e1e1e1;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

.info-item {
  display: flex;
  margin-bottom: 30px;
}

.info-item .icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: #fff;
  font-size: 1.2rem;
}

.info-item .text h5 {
  margin-bottom: 5px;
}

.info-item .text p {
  margin-bottom: 0;
  color: var(--gray-color);
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: #fff;
  padding: 70px 0 20px;
}

.footer h4 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer h4 span {
  color: var(--primary-color);
}

.footer h5 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 50px;
  text-align: center;
}

.footer-bottom p {
  margin-bottom: 0;
}

/* Image Styles */
.img-fluid {
  max-width: 100%;
  height: auto;
}

/* Service images with consistent aspect ratio */
.section-padding .img-fluid.rounded {
  height: 300px;
  object-fit: cover;
  width: 100%;
}

/* Responsive Styles */
@media (max-width: 991px) {
  .navbar-collapse {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
  }

  .navbar-nav .nav-link {
    color: var(--dark-color) !important;
  }

  .hero-section {
    height: auto;
    padding: 150px 0 100px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-img {
    margin-top: 50px;
  }
}

@media (max-width: 767px) {
  .section-padding {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-btns .btn {
    display: block;
    width: 100%;
    margin-bottom: 15px;
  }

  .hero-btns .btn:last-child {
    margin-left: 0 !important;
  }

  .about-stats {
    margin-top: 30px;
  }
}
