:root {
  --brand-primary: #0f766e;
  --brand-secondary: #0c4a6e;
  --brand-accent: #f97316;
  --brand-lime: #84cc16;
  --surface-soft: #f3f9ff;
  --text-main: #102536;
  --text-muted: #4b6478;
  --outline-soft: #d8e7f5;
  --bg-base: #f8fcff;
  --surface-card: #ffffff;
  --surface-header: rgba(255, 255, 255, 0.78);
}

html[data-theme="dark"] {
  --brand-primary: #14b8a6;
  --brand-secondary: #38bdf8;
  --brand-accent: #fb7185;
  --brand-lime: #a3e635;
  --surface-soft: #0a1523;
  --text-main: #e6f0fb;
  --text-muted: #9ab1c7;
  --outline-soft: #264057;
  --bg-base: #07101a;
  --surface-card: #202d3b;
  --surface-header: rgba(7, 16, 26, 0.82);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.22), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(12, 74, 110, 0.2), transparent 32%),
    radial-gradient(
      circle at 80% 80%,
      rgba(249, 115, 22, 0.16),
      transparent 28%
    ),
    var(--bg-base);
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
.navbar-brand {
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.01em;
}

.hero-header {
  position: relative;
  z-index: 1000;
  background: var(--surface-card);
  border-bottom: 1px solid var(--outline-soft);
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.hero-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--surface-card) 96%, #ffffff 4%);
}

.hero-header nav {
  position: relative;
  z-index: 2;
  transition:
    padding-top 0.22s ease,
    padding-bottom 0.22s ease,
    gap 0.22s ease;
}

.hero-header .brand-mark {
  transition:
    width 0.22s ease,
    height 0.22s ease,
    border-radius 0.22s ease;
}

.hero-header .navbar-brand {
  transition: font-size 0.22s ease;
}

.hero-header .nav-link,
.hero-header .theme-toggle,
.hero-header .ml-auto > li > a {
  transition:
    padding 0.22s ease,
    font-size 0.22s ease;
}

.hero-header.is-scrolled {
  box-shadow: 0 6px 16px rgba(8, 22, 35, 0.1);
  backdrop-filter: saturate(118%) blur(4px);
}

.hero-header.is-scrolled::after {
  background: color-mix(in srgb, var(--surface-card) 98%, #ffffff 2%);
}

.hero-header.is-scrolled nav {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 0.55rem;
}

.hero-header.is-scrolled .brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.55rem;
}

.hero-header.is-scrolled .navbar-brand {
  font-size: 1rem;
}

.hero-header.is-scrolled .nav-link {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.hero-header.is-scrolled .theme-toggle,
.hero-header.is-scrolled .ml-auto > li > a {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

@media (max-width: 900px) {
  .hero-header.is-scrolled nav {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  box-shadow: 0 8px 18px rgba(12, 74, 110, 0.28);
}

.icon-4 {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.15;
}

.icon-5 {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.2;
}

.icon-6 {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2.2;
}

.navbar-brand {
  color: var(--brand-secondary);
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-primary);
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
}

.hero-section::before {
  right: -140px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: linear-gradient(
    145deg,
    rgba(249, 115, 22, 0.28),
    rgba(15, 118, 110, 0.18)
  );
}

.hero-section::after {
  left: -180px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  background: linear-gradient(
    145deg,
    rgba(132, 204, 22, 0.2),
    rgba(12, 74, 110, 0.18)
  );
}

.hero-badge {
  color: var(--brand-secondary);
  background: color-mix(in srgb, var(--surface-card) 90%, #ffffff 10%);
  border: 1px solid #c9e2f8;
  box-shadow: 0 6px 16px rgba(12, 74, 110, 0.1);
  font-weight: 700;
}

.container-logo-hero {
  overflow: hidden;
  height: auto;
  padding: 2rem;
}

.logo-hero {
  border-radius: 35px;
  box-shadow: 0px 0px 20px 0px #0f766e87;
  transform: rotate(10deg);
  width: 15rem;
  height: 15rem;
}

.py-lg-6 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.glass-card {
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 1.1rem;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--surface-card) 95%, #ffffff 5%),
    color-mix(in srgb, var(--surface-card) 86%, #9cc6eb 14%)
  );
  box-shadow: 0 16px 34px rgba(12, 74, 110, 0.12);
}

.glass-card li {
  margin-bottom: 0.5rem;
}

.kpi-card {
  border-radius: 0.95rem;
  border: 1px solid #d2e6f7;
  background: var(--surface-card);
  box-shadow: 0 10px 26px rgba(12, 74, 110, 0.08);
}

.kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

.section-soft {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-base) 70%, #ffffff 30%) 0%,
    var(--surface-soft) 100%
  );
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--surface-card);
  border: 1px solid var(--outline-soft);
  padding: 0.52rem 0.92rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 5px 12px rgba(12, 74, 110, 0.07);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.chip svg {
  color: var(--brand-primary);
}

.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 16px rgba(12, 74, 110, 0.12);
}

.project-card,
.review-card,
.contact-card {
  border: 1px solid var(--outline-soft);
  border-radius: 1.1rem;
  background: var(--surface-card);
  box-shadow: 0 12px 28px rgba(12, 74, 110, 0.09);
}

.project-card {
  max-width: 820px;
  margin: 0 auto;
}

.project-icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  background: linear-gradient(
    145deg,
    var(--brand-secondary),
    var(--brand-primary)
  );
}

.review-card {
  position: relative;
}

.review-card::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-lime));
}

.stars {
  color: #f59e0b;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(12, 74, 110, 0.8);
  border-radius: 999px;
  background-size: 56%;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid #dceaf8;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.06), rgba(12, 74, 110, 0.06)),
    var(--surface-card);
}

.site-footer svg {
  color: var(--brand-primary);
}

.text-body-secondary {
  color: var(--text-muted) !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #06263a;
  color: #ffffff;
  padding: 0.75rem;
  border-radius: 0.5rem;
  z-index: 2000;
}

.btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  border-color: transparent;
  padding: 0.55rem 1.25rem;
  border-radius: 0.7rem;
  color: #ffffff;
  margin: 0 auto;
  display: block;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, #0d5f59, #0b3f5d);
  border-color: transparent;
}

.btn-outline-dark {
  border-color: #173a53;
  color: #173a53;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #173a53;
  color: #ffffff;
}

.theme-toggle {
  border-color: var(--outline-soft);
  color: var(--text-main);
  background: color-mix(in srgb, var(--surface-card) 88%, #ffffff 12%);
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.hero-cta-secondary {
  border-color: var(--outline-soft);
  color: var(--text-main);
  background: transparent;
}

.hero-cta-secondary:hover,
.hero-cta-secondary:focus {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: var(--surface-card);
}

#contactForm .form-control,
.contact-card .form-control {
  border-radius: 0.7rem;
  background: color-mix(in srgb, var(--surface-card) 92%, #ffffff 8%);
  color: var(--text-main);
  border: 2px solid var(--brand-primary);
}

#contactForm .form-control:focus,
.contact-card .form-control:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.25);
}

.hero-section .col-lg-7,
.glass-card,
.kpi-card,
.chip,
.project-card,
.review-card,
.contact-card {
  animation: riseIn 0.6s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

@keyframes fadeInBottom {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

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

.open {
  animation: fadeInBottom 0.3s ease both;
}

#menuToggle i {
  font-size: 1.7rem;
  color: #0f766e;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  .container-logo-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0 0;
  }

  .logo-hero {
    width: min(12rem, 70vw);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transform: rotate(6deg);
  }
}

@media (max-width: 768px) {
  .py-lg-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .project-card {
    max-width: 100%;
  }

  .hero-header nav {
    height: 4rem;
    gap: 0;
    display: flex;
    justify-content: space-between;
  }

  .hero-section {
    padding: 4rem 0;
  }

  #mainMenu {
    position: absolute;
    left: 0;
    top: 4rem;
    width: 100%;
    gap: 15px;
    background: var(--surface-card);
    color: var(--text-main);
    padding: 1rem 1rem 2rem 1rem;
    border: 1px solid var(--outline-soft);
    border-radius: 0px 0px 20px 20px;
    box-shadow: 0px 24px 12px -18px #0000001f;
    height: 0;
    display: none;
  }

  #mainMenu li {
    width: 100%;
    text-align: center;
  }

  #mainMenu li .nav-link {
    display: inline-block;
    width: 100%;
    padding: 0.5rem 1rem;
  }
}
