* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

/* Top Bar */
.top-bar {
  background: white;
  color: #1a1a63;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  font-size: 14px;
}
.top-bar .left span {
  margin-right: 15px;
}
.top-bar .right a {
  margin-left: 10px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 24px;
}
.top-bar .right a:hover {
  color: #f9a825;
}

/* Navbar */
nav {
  background: #1a1a63;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 30px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav img {
  height: 50px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li {
  position: relative;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #f9a825;
}

/* Dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* ✅ sits directly below parent item */
  left: 0;
  background: #cfcdcd;
  min-width: 180px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  z-index: 999; /* ✅ keeps it on top */
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: rgb(37, 36, 36);
  white-space: nowrap; /* avoid text wrapping */
}

.dropdown-content a:hover {
  background: #444;
  color: #fff;
}

/* Keep dropdown visible when hovering li or dropdown */
.nav-links li:hover > .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 768px) {
  /* Make dropdowns part of the flow in mobile */
  .dropdown-content {
    position: static; /* ✅ no absolute positioning */
    background: #333; /* dark dropdown for contrast */
    box-shadow: none;
    border-radius: 0;
    display: none; /* hidden by default */
    padding-left: 15px; /* slight indent for hierarchy */
  }

  .dropdown-content a {
    color: #fff;
    padding: 8px 0;
  }

  /* Show dropdown when parent is tapped/expanded */
  .nav-links li.open > .dropdown-content {
    display: block;
  }

  /* Optional: style parent items */
  .nav-links li a {
    display: block;
    padding: 10px 0;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 20px;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    color: white;
  }
}

/* Carousel */
.carousel {
  position: relative;
  width: 100%;
  height: 75vh; /* default for desktop */
  max-height: 800px;
  overflow: hidden;
}

.carousel-slide {
  display: flex;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.carousel-item {
  width: 100%;
  flex-shrink: 0;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ensures images scale without distortion */
}

.carousel-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 8px;
}

.carousel-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.carousel-content p {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 900;
}

.carousel-content button {
  padding: 10px 20px;
  border: none;
  background: #f9a825;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.carousel-content button:hover {
  background: #f1b91c;
  color: #ffffff;
  transform: scale(1.07);
}

/* Marquee */
/* Marquee Container */
.marquee {
  background: #404958;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 5px 0;
  position: relative;
}

/* Content wrapper that scrolls */
.marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 20px; /* space between items */
  animation: marquee 50s linear infinite;
}

/* Individual items */
.marquee-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: transparent;
  padding: 12px 10px;
  border-radius: 5px;
  border: 2px solid #fffbfb;
}

.marquee-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background-color: white;
  border-radius: 5px;
  object-fit: cover;
}

/* About Section */
.about-section {
  background: linear-gradient(135deg, #f9f9f9, #eef3ff);
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  animation: fadeInUp 1.2s ease-in-out;
}

.about-left img {
  width: 220px;
  height: auto;
  filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.1));
  animation: float 3s ease-in-out infinite;
}

.about-right {
  flex: 1;
}

.about-right h2 {
  font-size: 2.2rem;
  color: #1a1a63;
  margin-bottom: 20px;
  position: relative;
}

.about-right h2 span {
  color: #f9a825;
}

.about-right .about-quote {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #444;
  animation: fadeIn 2s ease-in-out;
}

.about-right p {
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
  animation: fadeIn 2s ease-in-out;
}

/* Projects Section */
.projects-section {
  padding: 40px 5%;
  background: #eef3ff;
}

.projects-container h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1a1a63;
  margin-bottom: 50px;
}

.projects-container h2 span {
  color: #f9a825;
}

/* Grid layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Project Card */
.project-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #1a1a63;
}

.project-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.4;
}
.project-card a {
  text-decoration: none;
}

.project-card button {
  padding: 10px 20px;
  border: none;
  background: #f9a825;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: auto;
}

.project-card button:hover {
  background: #1a1a63;
  color: #f9a825;
  transform: scale(1.05);
}

/* Animation */
.project-card {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeUp 0.8s forwards;
}

.project-card:nth-child(1) {
  animation-delay: 0.2s;
}
.project-card:nth-child(2) {
  animation-delay: 0.4s;
}
.project-card:nth-child(3) {
  animation-delay: 0.6s;
}
.project-card:nth-child(4) {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.projects-locations-section {
  background: #f4f6ff;
  padding: 20px 5%;
}

.counters {
  display: flex;
  justify-content: space-around;
  margin-bottom: 60px;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.counter-item {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.counter-item h2 {
  font-size: 2.5rem;
  color: #1a1a63;
}

.counter-item p {
  font-weight: 600;
  color: #f9a825;
  margin-top: 5px;
}

/* Locations Section */
.locations-section {
  margin-top: 80px;
  padding: 10px 1%;
}

.locations-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #1a1a63;
  margin-bottom: 50px;
}

.locations-section h2 span {
  color: #f9a825;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(
    4,
    1fr
  ); /* ✅ always 4 columns on large screens */
  gap: 20px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .locations-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
  }
}

@media (max-width: 768px) {
  .locations-grid {
    grid-template-columns: 1fr; /* 1 per row on mobile */
  }
}

.location-card {
  background: white;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s, box-shadow 0.5s;
  display: flex;
  flex-direction: column;
}

.location-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.2);
}

.location-card h3 {
  color: #1a1a63;
  margin-bottom: 15px;
}

.location-card p {
  color: #444;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.location-card iframe {
  border-radius: 8px;
  margin-top: 10px;
  width: 100%;
  height: 250px;
  margin-top: auto;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #1a1a63, #292358);
  color: white;
  padding: 60px 10%;
  position: relative;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-company img {
  width: 150px;
  margin-bottom: 15px;
  transition: transform 0.5s ease;
}

.footer-company img:hover {
  transform: rotate(-10deg) scale(1.1);
}

.footer-company p {
  font-style: italic;
  margin-bottom: 20px;
}

.footer-social a {
  color: white;
  margin-right: 15px;
  font-size: 18px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #e79804;
  transform: scale(1.2);
}

.footer-links h3,
.footer-locations h3,
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: #dbf305;
}

.footer-locations p,
.footer-contact p {
  margin-bottom: 10px;
  font-size: 14px;
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 30px;
  font-size: 14px;
}

/* Animations */
.footer-container > div {
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s forwards;
}

.footer-company {
  animation-delay: 0.1s;
}
.footer-links {
  animation-delay: 0.3s;
}
.footer-locations {
  animation-delay: 0.5s;
}
.footer-contact {
  animation-delay: 0.7s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-company,
  .footer-links,
  .footer-locations,
  .footer-contact {
    margin-bottom: 30px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-left img {
    margin-bottom: 20px;
  }

  .about-right h2 {
    font-size: 1.8rem;
  }
}

/* Keyframes for scrolling effect */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 1024px) {
  .carousel {
    height: 60vh; /* tablet */
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 50vh; /* mobile landscape */
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 40vh; /* small mobile */
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
