:root {
  --theme: #241df2;
  --theme2: #c6f806;
  --header-bg: #17012c;
  --text: #504e4e;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Navigation */
nav {
  position: fixed;
  width: 100%;
  padding: 1.5rem 5%;
  background: rgba(255, 255, 255, 0.97);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--theme), var(--theme2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--header-bg);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--theme);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Header Section */
.header {
  height: 90vh;
  width: 100%;
  /* padding-top: 120px; */
  overflow: hidden;
  position: relative;
  background-image: url(../img/header/banner2.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; /* Ensures the image covers the entire header */
}
.header-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 2;
  padding: 0 5%;
}

.header h1 {
  font-size: 2rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 2.5rem;
  animation: fadeInUp 3s ease;
  line-height: 1.2;
  color: #05020f;
  padding-top: 20px;
  padding-left: 55px;
  font-weight: bold;
}

.header p {
  font-size: 1.2rem;
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 3s ease 0.4s forwards;
  color: #1e08e1;
  font-weight: lighter;
  /* background: rgba(246, 246, 246, 0.7);  */
  /* display: inline-block;   */
  text-decoration-color: #f6f6f6;
}
/* .cta-button {
  display: inline-block;
  margin-top: 35px;
  padding: 12px 24px;
  background-color: #2418fa;
  color: rgb(223, 221, 230);
  font-size: 18px;
  font-weight: bold;
  border-radius:20px;
  text-decoration: none;
  transition: background 0.3s ease;
  margin-top: -5%;
  animation: fadeInUp 3s ease 0.4s forwards;
 
}
.cta-button:hover {
  background-color: #070535;
  color:#f6f6f6; */
/* 
@media (max-width: 768px) {
  .header {
      padding: 20px;
  }
  .breadcrumb {
      font-size: 12px;
      left: 10px;
  }
  .cta-button {
      font-size: 16px;
      padding: 10px 20px;
    
  }
} */

/* Animated Road */
.road-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.road {
  position: relative;
  height: 100%;
  background: #333;
}

.lane {
  position: absolute;
  top: 50%;
  width: 100%;
  border-top: 2px dashed var(--white);
}

.car {
  position: absolute;
  font-size: 2.5rem;
  animation: carMove 8s linear infinite;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

/* Traffic Light */
.traffic-light {
  position: absolute;
  right: 5%;
  bottom: 60%;
  bottom: 33%; /* Reduced from 60% to move it down */
  transform: translateY(50%);
  width: 80px;
  height: 200px;
  background: #444;
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: trafficLight 3s infinite;
}

.light {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  padding-right: 10%;
}

.red-light {
  background: #ff4444;
}
.yellow-light {
  background: #ffd700;
}
.green-light {
  background: #00ff00;
}

/* Services Section */
.services {
  padding: 5rem 5%;
  background: #f9f9f9;
}

/* .section-title h2 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 24px; 
} */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: cardAppear 0.5s ease forwards;
}

.service-card:nth-child(1) {
  animation-delay: 0.2s;
}
.service-card:nth-child(2) {
  animation-delay: 0.4s;
}
.service-card:nth-child(3) {
  animation-delay: 0.6s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}
.service-card {
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card::after {
  content: "More details here!";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.service-card:hover::after {
  opacity: 1;
  visibility: visible;
}

.service-icon {
  font-size: 2.5rem;
  color: var(--theme);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--header-bg);
}

.service-card p {
  color: var(--text);
  line-height: 1.6;
}

/* Animations */
@keyframes carMove {
  0% {
    right: -100px;
  }
  100% {
    right: 100%;
  }
}

@keyframes trafficLight {
  0%,
  40% {
    box-shadow: 0 0 15px #ff4444;
  }
  41%,
  80% {
    box-shadow: 0 0 15px #ffd700;
  }
  81%,
  100% {
    box-shadow: 0 0 15px #00ff00;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .header h1 {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .traffic-light {
    bottom: 32%;
    right: 12%;
    transform: translate(50%, 50%);
  }
}

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

  .header h1 {
    font-size: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }
}
