@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 210 11% 15%;
  --card: 0 0% 100%;
  --card-foreground: 210 11% 15%;
  --primary: 210 100% 30%;
  --primary-foreground: 0 0% 100%;
  --secondary: 210 20% 95%;
  --secondary-foreground: 210 11% 15%;
  --muted: 210 20% 96%;
  --muted-foreground: 210 10% 45%;
  --accent: 210 100% 40%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 210 15% 90%;
  --input: 210 15% 90%;
  --ring: 210 100% 30%;
  --radius: 0.25rem;
  --nav-bg: 210 100% 28%;
  --nav-foreground: 0 0% 100%;
  --hero-overlay: 210 30% 15%;
  --section-alt: 210 20% 97%;
  --stat-bg: 210 100% 25%;
  --footer-bg: 210 10% 22%;
  --footer-foreground: 210 10% 80%;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto', sans-serif;
}

.nav-link {
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  transition: color 0.2s, background-color 0.2s;
  color: hsl(var(--nav-foreground));
}
.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.section-heading {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .section-heading {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

.section-subtext {
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
  max-width: 42rem;
}
@media (min-width: 768px) {
  .section-subtext {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s;
}
.category-card:hover::after {
  background-color: rgba(0, 0, 0, 0.2);
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  cursor: pointer;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.service-card {
  background-color: hsl(var(--card));
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}
.service-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.stat-item {
  text-align: center;
  color: hsl(var(--primary-foreground));
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  border: none;
}
.btn-primary:hover {
  background-color: hsl(var(--accent));
}

.btn-outline-light {
  border: 2px solid hsl(var(--primary-foreground));
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s, color 0.2s;
  display: inline-block;
  text-align: center;
}
.btn-outline-light:hover {
  background-color: hsl(var(--primary-foreground));
  color: hsl(var(--primary));
}

.footer-link {
  transition: color 0.2s;
  font-size: 0.875rem;
  color: hsl(var(--footer-foreground));
}
.footer-link:hover {
  color: #fff;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-scroll-left {
  animation: scroll-left 30s linear infinite;
}

/* Custom CSS to handle fading transition in category cards slideshow */
.category-card-slide {
  transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}
