:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #1abc9c;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-color: #212529;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  transition: var(--transition);
}

.logo {
  position: relative;
  width: 50px;
  height: 50px;
  margin-right: 15px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  flex-shrink: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text {
  color: white;
  font-weight: 800;
  font-size: 20px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.logo:hover {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
}

.logo::before {
  content: "";
  position: absolute;
  width: 150%;
  height: 20px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  top: 0;
  left: -50%;
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    top: -100%;
    left: -100%;
  }
  20%,
  100% {
    top: 100%;
    left: 100%;
  }
}

/* Logo responsiveness */
@media (max-width: 1200px) {
  .logo-container h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 992px) {
  .logo-container h1 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .logo {
    width: 40px;
    height: 40px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-container h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 576px) {
  .logo {
    width: 35px;
    height: 35px;
  }

  .logo-text {
    font-size: 14px;
  }

  .logo-container h1 {
    font-size: 1.1rem;
  }
}

/* Override Bootstrap theme colors with logo colors */
:root {
  --bs-primary: var(--primary-color) !important;
  --bs-primary-rgb: 52, 152, 219 !important;
  --bs-secondary: var(--secondary-color) !important;
  --bs-secondary-rgb: 44, 62, 80 !important;
}

/* Background colors */
.bg-primary,
.btn-square.bg-primary,
.btn-lg-square.bg-primary,
.service-icon,
.footer .btn-link::before {
  background-color: var(--primary-color) !important;
}

/* Text colors */
.text-primary {
  color: var(--primary-color) !important;
}

/* Headings with secondary color for better contrast */
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary .h1,
.bg-primary .h2,
.bg-primary .h3,
.bg-primary .h4,
.bg-primary .h5,
.bg-primary .h6 {
  color: #fff !important;
}

/* Primary colored headings */
h2:not(.accordion-header),
h3:not(.accordion-header),
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--primary-color) !important;
}

/* Secondary colored elements */
.text-secondary,
.bg-light h2,
footer .text-light {
  color: var(--secondary-color) !important;
}

/* Border colors */
.border-primary {
  border-color: var(--primary-color) !important;
}

/* Button styles */
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #2980b9 !important;
  border-color: #2980b9 !important;
}

/* Link colors */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #2980b9;
}

/* Custom elements */
.back-to-top {
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
  transition: var(--transition);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.4);
}

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

.carousel-caption h5 {
  color: var(--primary-color) !important;
}

.section-title::after {
  background: var(--primary-color) !important;
}

.owl-carousel .owl-dot.active {
  background-color: var(--primary-color) !important;
}

/* Additional theme color overrides */
.accordion-button:not(.collapsed) {
  color: var(--primary-color) !important;
  background-color: rgba(52, 152, 219, 0.1) !important;
}

.accordion-button:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25) !important;
}

.progress-bar,
.nav-pills .nav-link.active {
  background-color: var(--primary-color) !important;
}

.page-link {
  color: var(--primary-color) !important;
}

.page-item.active .page-link {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.25) !important;
}

/* Fix for detailed services section */
#detailed-services .bg-primary p,
#detailed-services .bg-primary h3 {
  color: white !important;
}

/* Fix for specific color elements */
.service-item .service-icon {
  background: var(--primary-color) !important;
}

.btn-square,
.btn-lg-square {
  background: var(--primary-color) !important;
}

/* Enhanced navbar */
.navbar {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 10px;
  padding: 10px 0 !important;
  font-weight: 600;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Enhanced carousel */
.carousel-caption {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--border-radius);
  backdrop-filter: blur(5px);
  padding: 30px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: rgba(52, 152, 219, 0.7);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: var(--transition);
}

.carousel-control-prev {
  left: 30px;
}

.carousel-control-next {
  right: 30px;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
  opacity: 1;
}

/* Section enhancements */
.container-xxl,
.container-fluid {
  padding: 5rem 1rem;
}

/* Card and content box styling */
.service-item,
.bg-light,
.accordion-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: none !important;
  margin-bottom: 20px;
}

.service-item:hover,
.bg-light:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Service icon styling */
.service-icon {
  border-radius: 50%;
  width: 70px !important;
  height: 70px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  margin: 15px;
}

.service-item:hover .service-icon {
  transform: scale(1.1);
}

.service-item .d-flex {
  align-items: center;
  padding: 10px;
}

.service-item h4 {
  margin-bottom: 0;
  transition: var(--transition);
}

.service-item:hover h4 {
  color: var(--primary-color) !important;
}

/* Button styling */
.btn {
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
  background-color: #2874a6 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

/* Section headers */
.display-6,
.display-5,
.display-4 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.display-6:after,
.display-5:after,
.display-4:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.text-center .display-6:after,
.text-center .display-5:after,
.text-center .display-4:after {
  left: 50%;
  transform: translateX(-50%);
}

.text-start .display-6:after,
.text-start .display-5:after,
.text-start .display-4:after {
  left: 0;
  transform: none;
}

/* Enhanced detailed services section */
#detailed-services .bg-primary {
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

#detailed-services .position-relative {
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

#detailed-services .position-relative:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Enhanced contact section */
#contact .bg-light {
  padding: 40px !important;
}

/* Modern Footer */
.footer {
  background-color: var(--dark-color);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
}

.footer .btn-link {
  position: relative;
  padding-left: 15px;
  transition: var(--transition);
}

.footer .btn-link:hover {
  transform: translateX(5px);
}

.footer .btn-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

/* FAQ section enhancement */
.accordion-button {
  border-radius: var(--border-radius) !important;
  padding: 20px;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.1),
    rgba(52, 152, 219, 0.2)
  ) !important;
}

/* Add scroll animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Apply animations to elements */
.wow.fadeInUp {
  animation: fadeInUp 0.8s both;
}

.wow.fadeInLeft {
  animation: fadeInLeft 0.8s both;
}

.wow.fadeInRight {
  animation: fadeInRight 0.8s both;
}

/* Enhanced hover effects */
.service-item img,
.about-img img,
.team-item img {
  transition: var(--transition);
}

.service-item:hover img,
.about-img:hover img,
.team-item:hover img {
  transform: scale(1.05);
}

/* Gradient text for emphasis */
.gradient-text {
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Enhanced image styling */
.img-fluid {
  border-radius: var(--border-radius);
}

/* Scrolling indicators on long sections */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 15px;
}

.scroll-indicator::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  background-color: var(--primary-color);
  border-radius: 50%;
  animation: scrollIndicate 2s infinite;
}

@keyframes scrollIndicate {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(20px);
    opacity: 0;
  }
}
