/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background-color: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: whitesmoke;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 5%;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.navbar.scrolled .nav-links a {
  color: #333;
}

.nav-links a:hover {
  color: #e63946;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: all 0.3s ease;
}

.navbar.scrolled .burger div {
  background-color: #333;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: url("cranes\(1\).webp") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
  z-index: 1;
}

.tagline {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.typing-text {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
  color: whitesmoke;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Image Rotator Box */
.image-rotator {
  width: 80%;
  height: 600px;
  overflow: hidden;
  position: relative;
  margin: 2rem auto; /* this horizontally centers it */
}

.rotator-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.rotator-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.rotator-slide.active {
  opacity: 1;
}

.rotator-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  color: #333;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.arrow:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}

/* Quick Services Section */
.quick-services {
  padding: 5rem 5%;
  background-color: white;
  margin: 0 auto; /* This centers the whole section horizontally */
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  color: #333;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background-color: #e63946;
  margin: 1rem auto;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 300px; /* Fixed width for consistent sizing */
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 3rem;
  color: #e63946;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: #333;
}

.service-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

.learn-more {
  color: #e63946;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.learn-more:hover {
  color: #c1121f;
}

/* Footer */
.footer {
  background-color: #333;
  color: white;
  padding: 2rem 5%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-contact {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact .contact-item {
  background-color: transparent;
  box-shadow: none;
  color: white;
}

.footer-contact .contact-item i {
  color: white;
}

.footer-contact .contact-item:hover {
  transform: none;
  box-shadow: none;
}

.copyright {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: circle(0px at 90% -10%);
    transition: all 0.5s ease-out;
    pointer-events: none;
  }

  .nav-links.active {
    clip-path: circle(1500px at 90% -10%);
    pointer-events: all;
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .burger {
    display: block;
    z-index: 1001;
  }

  .logo {
    height: 50px;
    z-index: 1001;
  }

  .tagline {
    font-size: 2.5rem;
  }

  .typing-text {
    font-size: 1.5rem;
    min-height: 50px;
  }

  .image-rotator {
    height: 300px;
  }
}

@media screen and (max-width: 480px) {
  .tagline {
    font-size: 2rem;
  }

  .typing-text {
    font-size: 1.2rem;
    min-height: 40px;
  }

  .logo {
    height: 40px;
  }

  .image-rotator {
    height: 200px;
  }
}

/* Burger animation when clicked */
.burger.toggle .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle .line2 {
  opacity: 0;
}
.burger.toggle .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}
