:root {
  --primary-color: #002d40;
  --secondary-color: #005f73;
  --accent-color: #0a9396;
  --light-bg: #f8f9fa;
  --text-dark: #333;
  --text-light: #fff;
}

body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #fff;
  margin: 0;
  padding: 0;
}

/* Navbar Customization */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand, .nav-link {
  color: var(--text-light) !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 45, 64, 0.8), rgba(0, 45, 64, 0.8)), url('images/Cement_plant.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Section Styling */
section {
  padding: 80px 0;
}

h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-weight: 700;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.h2-centered::after {
  left: 50% !important;
  transform: translateX(-50%);
}

.section-light {
  background-color: var(--light-bg);
}

/* Logo Slider */
.logo-slider {
  overflow: hidden;
  padding: 20px 0;
  position: relative;
  width: 100%;
  background: white;
}

.logo-slide-track {
  display: flex;
  width: calc(250px * 14);
  animation: scroll 40s linear infinite;
}

.logo-slide-track:hover {
  animation-play-state: paused;
}

.slide {
  width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

.slide img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.4s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.15);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-250px * 7)); }
}

/* Business Cards */
.business-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.business-card:hover {
  transform: translateY(-10px);
}

.business-card img {
  height: 200px;
  object-fit: cover;
}

.business-card-body {
  padding: 20px;
}

/* Stat Cards */
.stat-card {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 45, 64, 0.1);
  border-color: var(--accent-color);
}

.stat-card.accent {
  background: var(--primary-color);
  color: white;
}

.stat-card.accent .stat-number {
  color: var(--accent-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #666;
}

.stat-card.accent .stat-label {
  color: rgba(255,255,255,0.8);
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--accent-color);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 18px;
  width: 50px;
  height: 50px;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

#backToTop:hover {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 40px 0 20px;
  text-align: center;
}

.footer-quote {
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-style: italic;
}

.cr {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .logo-slide-track {
    width: calc(150px * 14);
    animation-duration: 20s;
  }

  .slide {
    width: 150px;
    padding: 0 20px;
  }

  @keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 7)); }
  }

  .navbar-brand span {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .stat-card {
    padding: 20px 10px;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    padding: 10px;
    font-size: 14px;
  }
}
