:root {
  --primary: 227 40% 19%;
  /* #1c2340 */
  --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 25%;
  --secondary-foreground: 0 0% 89%;
  --accent: 0 0% 20%;
  --accent-foreground: 211 53% 70%;
  --background: 0 0% 100%;
  --foreground: 227 40% 19%;
  --muted: 0 0% 96.1%;
  --muted-foreground: 240 11% 96%;
  --radius: 0.5rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior: smooth; - Removed to use JS for speed control */
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* Header */
header {
  background-color: hsl(var(--foreground));
  padding: 1.5rem 0;
  color: white;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:hover {
  color: hsl(var(--accent-foreground));
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: hsl(var(--accent-foreground));
  color: hsl(var(--accent));
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

/* Hero */
.hero {
  background-color: hsl(var(--foreground));
  color: white;
  padding: 5rem 0;
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 800px;
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 4px;
  background-color: hsl(var(--primary));
  display: block;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: hsl(var(--primary));
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Footer */
footer {
  background-color: hsl(var(--secondary));
  color: #cccccc;
  padding: 4rem 0;
}

footer h2 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

footer a:hover {
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: hsl(var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 20px;
  height: 20px;
}

/* Utilities */
.text-primary {
  color: hsl(var(--primary));
}

.text-secondary {
  color: hsl(var(--secondary));
}

.mb-4 {
  margin-bottom: 1rem;
}

.mt-4 {
  margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes expandLine {
  from {
    width: 0;
  }

  to {
    width: 100px;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animated-line {
  height: 4px;
  background-color: hsl(var(--primary));
  width: 0;
  margin-top: 0.5rem;
  transition: width 1s ease-out;
}

.animated-line.is-visible {
  width: 100px;
}

/* Icon Box */
.icon-box {
  margin-bottom: 1rem;
  color: hsl(var(--primary));
  width: 48px;
  height: 48px;
}

/* Case Advantages */
.case-advantages {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: hsl(var(--muted));
  border-radius: var(--radius);
  border-left: 4px solid hsl(var(--primary));
}

.case-advantages p {
  margin-bottom: 0.5rem;
  color: hsl(var(--primary));
}

.case-advantages p:last-child {
  margin-bottom: 0;
}