/* Service icon styles are defined later for layout; color is applied on the nested <i> */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: #000000 !important;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff !important;
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.sticky {
  position: fixed;
  background: #ffffff !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 8px;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000000 !important;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #000000 !important;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: #4ade80 !important;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4ade80;
}

.nav-cta {
  background: #4ade80;
  color: #ffffff !important;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #000000;
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #374151 !important;
  line-height: 1.6;
}

/* Services Section */
.services {
  padding: 80px 0;
  background: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Make all service icons green */
.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
}
.service-icon i {
  color: #4ade80 !important;
}

.service-description {
  color: #374151 !important;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.6;
}


.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}

.service-list li {
  color: #222;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 0.85rem 0 0.5rem 0;
  position: relative;
}

.service-list li:not(:last-child)::after {
  content: "";
  display: block;
  margin: 0.5rem auto 0 auto;
  width: 70%;
  height: 3px;
  background: #4ade80;
  border-radius: 2px;
  opacity: 0.9;
  position: relative;
  top: 0.5rem;
  transition: width 0.4s cubic-bezier(.4,2,.3,1), opacity 0.3s;
}

.service-card:hover .service-list li:not(:last-child)::after {
  width: 80%;
  opacity: 1;
  background: #22c55e;
}

/* Sectors Section */
.sectors {
  padding: 80px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000 !important;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #374151 !important;
  max-width: 600px;
  margin: 0 auto;
}

/* Marquee / Continuous Scroll */
.sectors-carousel {
  overflow: hidden;
  position: relative;
}

.sectors-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 20s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.sector-slide {
  flex: 0 0 auto;
  margin-right: 2rem;
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Slower on mobile for readability */
@media (max-width: 768px) {
  .sectors-track {
    animation-duration: 25s;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .sectors-track {
    animation: none;
    transform: none;
  }
}

.sector-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e5e7eb;
  /* Fix width for smooth marquee halves */
  flex: 0 0 280px;
}

.sector-card:hover {
  transform: translateY(-3px);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sector-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.sector-icon i {
  color: #4ade80 !important;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  color: #ffffff !important;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #ffffff;
  color: #4ade80 !important;
}

.btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* Footer */

.footer {
  background: #000000;
  color: #ffffff !important;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-bottom: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  border-radius: 8px;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-text {
  color: #cccccc;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af !important;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4ade80 !important;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #9ca3af !important;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #4ade80 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    display: flex;
    gap: 2rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .sectors-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Keyframes for animations */
@keyframes sectorsMarquee {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100vw); }
}

.sectors-grid.marquee {
  display: flex;
  flex-direction: row-reverse;
  gap: 0;
  width: 100vw;
  overflow: hidden;
  animation: sectorsMarquee 18s linear infinite;
  /* Remove manual scrolling */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sectors-grid.marquee::-webkit-scrollbar {
  display: none;
}
.sector-card {
  flex: 0 0 auto;
  margin: 0;
  border-right: 1px solid #e5e7eb;
}
.sector-card:last-child {
  border-right: none;
}
