:root {
  --hero-base: hsl(122 38% 84%);
  --hero-background: hsl(from var(--hero-base) h s l);
  --hero-foreground: hsl(from var(--hero-background) h s calc(100 - l));

  --main-background: hsl(from var(--hero-base) h s 95%);
  --main-foreground: hsl(0, 0%, 45%);

  --button-background: hsl(14, 100%, 78%);
  --button-foreground: hsl(0, 0%, 45%);
  --button-hover-background: hsl(from var(--button-background) h s 70%);

  --button-disabled-background: hsl(0, 0%, 45%);
  --button-disabled-foreground: hsl(14, 100%, 78%);

  --badge-background: var(--button-background);
  --badge-foreground: var(--button-foreground);

  --footer-foreground: var(--hero-foreground);
  --footer-background: var(--hero-background);
}

span.FIXME {
  color: hsl(0 100% 50%) !important;
  background-color: hsl(60 100% 50%);
}

.badge.not {
  background-color: hsl(from var(--badge-background) calc(360 - h) s l);
  text-decoration: line-through;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--main-foreground);
  background-color: var(--main-background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-sm {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero {
  background-color: var(--hero-background);
  color: var(--hero-foreground);
  padding: 5rem 1rem;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
  text-wrap: pretty;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--button-background);
  color: var(--button-foreground);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--button-hover-background);
}

.btn:disabled,
.btn:disabled:hover {
  background-color: var(--button-disabled-background);
  color: var(--button-disabled-foreground);
  font-style: italic;
}

/* About Section */
.about {
  padding: 4rem 1rem;
}

.about h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--main-foreground);
  text-wrap: balance;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  background-color: var(--badge-background);
  color: var(--badge-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

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

.stat-card {
  background-color: #fafafa;
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  border: 1px solid #e5e5e5;
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.5rem;
  color: #c8e6c9;
}

.stat-card h3 {
  font-weight: 600;
  color: #737373;
}

.stat-card p {
  font-size: 0.875rem;
  color: #a3a3a3;
}

/* Services Section */
.services {
  padding: 4rem 1rem;
  background-color: rgba(250, 250, 250, 0.3);
}

.services h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #737373;
  text-wrap: balance;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s;
}

.service-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #737373;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #c8e6c9;
}

.service-card p {
  line-height: 1.6;
  color: #a3a3a3;
}

/* Portfolio Section */
.portfolio {
  padding: 4rem 1rem;
}

.portfolio h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #737373;
  text-wrap: balance;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s;
}

.portfolio-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.portfolio-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #737373;
}

.portfolio-card .category {
  font-size: 0.875rem;
  color: #a3a3a3;
  margin-bottom: 1rem;
}

.portfolio-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #737373;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.tech-badge {
  background-color: transparent;
  color: #737373;
  padding: 0.125rem 0.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Contact Section */
.contact {
  padding: 4rem 1rem;
  background-color: rgba(250, 250, 250, 0.3);
}

.contact h2 {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #737373;
  text-wrap: balance;
}

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

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #737373;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #c8e6c9;
}

.contact-form {
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e5e5;
}

.contact-form h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #737373;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:has(> #ouo) {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #737373;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.375rem;
  background-color: #c8e6c9;
  color: #737373;
  font-size: 0.875rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-full {
  width: 100%;
  margin-top: 1rem;
}

.why-choose {
  margin-top: 2rem;
}

.why-choose h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #737373;
}

.why-choose ul {
  list-style: none;
}

.why-choose li {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: #737373;
}

/* Footer */
.footer {
  background-color: var(--footer-background);
  color: var(--footer-foreground);
  padding: 2rem 1rem;
  text-align: center;
}

.footer p {
  font-size: 0.875rem;
  opacity: 0.9;
}

.footer .small {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Success message */
.success-message {
  background-color: var(--hero-background);
  color: var(--hero-foreground);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  display: none;
}

.error-message {
  background-color: var(--hero-background);
  color: var(--hero-foreground);
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  display: none;
}

.error-message strong {
  color: red;
}
