/* General Styling */
body {
  background-color: #f4f7fb; /* Light gray background */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header Styling */
header {
  background: #17a2b8;
  color: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: yellow; /* Yellow text color for the logo */
  margin-right: auto; /* Aligns to the left */
}

/* Navigation Styling */
nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  padding: 50px 20px;
  text-align: center;
  background: linear-gradient(to right, #17a2b8, #138496);
  color: #fff;
  margin-bottom: 30px;
}

.hero h2 {
  margin-top: 0;
  font-size: 2.5em;
}

.hero p {
  margin: 15px 0;
  font-size: 1.2em;
}

.hero button {
  background: #fff;
  color: #17a2b8;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero button:hover {
  background: #e6f7ff;
  transform: translateY(-3px);
}

/* Services Highlight */
.services-highlight {
  text-align: center;
  padding: 20px;
  background: #fff;
  margin-bottom: 30px;
}

.services-highlight .service-cards {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.services-highlight .card {
  background: #f4f7fb;
  padding: 20px;
  margin: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  flex: 1;
  max-width: 30%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-highlight .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.services-highlight .card h4 {
  margin-top: 0;
  color: #17a2b8;
}

.services-highlight .card a {
  display: inline-block;
  margin-top: 10px;
  color: #17a2b8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.services-highlight .card a:hover {
  color: #138496;
}

/* Quick Links */
.quick-links {
  padding: 20px;
  text-align: center;
}

.quick-links ul {
  list-style: none;
  padding: 0;
}

.quick-links ul li {
  margin: 10px 0;
}

.quick-links ul li a {
  color: #17a2b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.quick-links ul li a:hover {
  color: #138496;
}

/* Footer Styling */
footer {
  text-align: center;
  padding: 15px 0;
  background: #17a2b8;
  color: #fff;
  margin-top: 20px;
  box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  /* 🔧 Fix navigation links hidden on mobile */
  nav ul {
    display: flex !important; /* ✅ Force nav to show */
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-bottom: 15px;
  }

  /* ✅ Make service cards responsive */
  .services-highlight .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .services-highlight .card {
    max-width: 90%;
    width: 100%;
    margin: 10px 0;
  }
}

/* Contact Information Styling */
footer .contact-info {
  margin-bottom: 10px;
}

footer .contact-info p {
  margin: 0;
  color: #fff;
}

footer .contact-info a {
  color: #ffe600; /* Yellow color for the email link */
  text-decoration: none;
}

footer .contact-info a:hover {
  text-decoration: underline;
}

/* # for js  */

.nav-toggle {
  display: none;
  background: #17a2b8;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  margin: 10px 0;
}

nav ul.visible {
  display: block;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #ff8c42;
  color: white;
  border: none;
  border-radius: 5px;
  display: none;
  cursor: pointer;
}

.scroll-to-top:hover {
  background: #e07a35;
}

@media (max-width: 768px) {
  .testimonials-carousel h3 {
    font-size: 1.5rem;
    padding: 0 15px;
  }

  .testimonial {
    font-size: 1rem;
    padding: 20px;
    margin: 0 10px;
  }

  .carousel {
    min-height: 180px;
  }
}

#dynamic-headline::after {
  content: "|";
  animation: blink 1s infinite;
  margin-left: 5px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* 🌄 Set the background image for the entire page */
body {
  background-color: #0f172a; /* fallback color */
  background-image: url("/static/images/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: white; /* ensure text is readable on dark backgrounds */
}
