:root {
  --color-bg: #050d1f;
  --color-bg-soft: #0a1a36;
  --color-surface: rgba(12, 30, 63, 0.62);
  --color-surface-solid: #0f2448;
  --color-primary: #00b7ff;
  --color-primary-dark: #0090ca;
  --color-accent: #55f0cf;
  --color-text: #f3f8ff;
  --color-muted: #9ab0cc;
  --color-border: rgba(165, 210, 255, 0.2);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 40px rgba(0, 6, 20, 0.35);
  --shadow-glow: 0 0 0 1px rgba(95, 187, 255, 0.16), 0 22px 44px rgba(0, 9, 35, 0.38);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(0, 183, 255, 0.2), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(85, 240, 207, 0.13), transparent 32%),
    linear-gradient(165deg, #050d1f 0%, #06142b 42%, #050d1f 100%);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: #86d6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #c3ecff;
}

.site-header {
  background: rgba(5, 12, 27, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(176, 214, 255, 0.16);
}

.navbar-brand,
.nav-link {
  color: var(--color-text);
}

.navbar-brand {
  letter-spacing: 0.01em;
}

.nav-link {
  position: relative;
  font-weight: 600;
  color: rgba(240, 248, 255, 0.82);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.35rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(214, 233, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(85, 240, 207, 0.2);
}

.lang-switcher .btn {
  min-width: 3rem;
  border-radius: 999px;
}

.lang-switcher .btn.active {
  background: linear-gradient(120deg, var(--color-primary), #31d4ff);
  border-color: transparent;
  color: #ffffff;
}

.hero-section {
  position: relative;
}

.carousel-item {
  height: min(88vh, 820px);
  min-height: 560px;
}

.slide-bg {
  position: relative;
  background-size: cover;
  background-position: center;
}

.slide-devops {
  background-image:
    radial-gradient(circle at 18% 25%, rgba(0, 183, 255, 0.3), transparent 42%),
    url("../assets/images/hero.jpg");
}

.slide-monitoring {
  background-image:
    radial-gradient(circle at 80% 20%, rgba(0, 194, 255, 0.26), transparent 44%),
    url("../assets/images/hero.jpg");
}

.slide-webdev {
  background-image:
    radial-gradient(circle at 48% 12%, rgba(85, 240, 207, 0.22), transparent 43%),
    url("../assets/images/hero.jpg");
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 17, 0.86), rgba(5, 12, 27, 0.6)),
    linear-gradient(180deg, rgba(0, 126, 201, 0.14), transparent 45%);
}

.carousel-indicators [data-bs-target] {
  width: 28px;
  height: 4px;
  border-radius: 999px;
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
  background: linear-gradient(140deg, rgba(10, 28, 58, 0.72), rgba(8, 19, 40, 0.48));
  border: 1px solid rgba(175, 216, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: clamp(1.2rem, 1.1rem + 1.4vw, 2rem);
  box-shadow: var(--shadow-glow);
}

.hero-content .display-5 {
  line-height: 1.12;
}

.hero-kicker {
  letter-spacing: 0.16em;
  color: #89dbff;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero-actions .btn {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.45rem;
  min-height: 46px;
}

.btn-primary {
  background: linear-gradient(120deg, var(--color-primary), #23cbff);
  border: 0;
  color: #032843;
  box-shadow: 0 10px 26px rgba(0, 170, 236, 0.35);
  padding-inline: 1.5rem;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(120deg, #08bff9, #47dcff);
  color: #032843;
}

.btn-outline-light {
  border-color: rgba(212, 236, 255, 0.75);
  color: #ebf6ff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #032843;
  background: #eaf6ff;
  border-color: #eaf6ff;
}

.hero-metrics {
  margin-top: 0.25rem;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(171, 219, 255, 0.26);
  background: rgba(5, 15, 33, 0.58);
  color: #d0e8ff;
  font-size: 0.84rem;
}

.metric-pill strong {
  color: #93ecff;
  font-size: 0.92rem;
}

.section-spacing {
  padding: 5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(7, 20, 42, 0.72), rgba(7, 17, 34, 0.6));
  border-top: 1px solid rgba(156, 204, 246, 0.12);
  border-bottom: 1px solid rgba(156, 204, 246, 0.12);
}

.section-title {
  font-weight: 800;
  letter-spacing: 0.01em;
}

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

.about-card,
.service-card,
.why-card,
.contact-form,
.cta-banner {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.about-card {
  background: linear-gradient(150deg, rgba(17, 42, 82, 0.72), rgba(8, 22, 46, 0.68));
}

.about-metrics li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(162, 207, 250, 0.2);
}

.about-metrics li:last-child {
  border-bottom: 0;
}

.metric-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #9aefff;
  min-width: 3.25rem;
}

.service-card,
.why-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card::before,
.why-card::before {
  content: "";
  position: absolute;
  inset: auto -25% -40% auto;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(0, 183, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.service-card:hover,
.why-card:hover {
  transform: translateY(-7px);
  border-color: rgba(115, 206, 255, 0.52);
  box-shadow: 0 20px 44px rgba(0, 9, 27, 0.45);
}

.service-icon,
.why-icon {
  font-size: 1.75rem;
  color: #8ce6ff;
}

.cta-banner {
  background:
    linear-gradient(110deg, rgba(11, 44, 85, 0.92), rgba(10, 29, 58, 0.88));
}

.contact-list li {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.contact-list i {
  color: #97dfff;
}

.contact-form {
  padding: 1.45rem;
}

.form-control {
  background: rgba(4, 16, 34, 0.72);
  border: 1px solid rgba(165, 211, 255, 0.24);
  color: var(--color-text);
  border-radius: 10px;
  min-height: 48px;
}

.form-control:focus {
  border-color: rgba(85, 240, 207, 0.72);
  box-shadow: 0 0 0 0.22rem rgba(85, 240, 207, 0.16);
  background: rgba(4, 16, 34, 0.88);
  color: var(--color-text);
}

.site-footer {
  border-top: 1px solid rgba(148, 197, 245, 0.22);
  background: rgba(4, 11, 24, 0.9);
}

.site-footer a {
  color: #cde8ff;
}

.site-footer a:hover {
  color: #ffffff;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991.98px) {
  .section-spacing {
    padding: 4rem 0;
  }

  .navbar-collapse {
    margin-top: 0.85rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(6, 18, 37, 0.85);
    border: 1px solid rgba(170, 214, 255, 0.2);
  }

  .navbar-nav .nav-link {
    padding: 0.65rem 0.75rem;
  }

  .navbar-nav .nav-link::after {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.45rem;
  }

  .carousel-item {
    min-height: 500px;
  }

  .hero-content {
    max-width: 100%;
  }
}

@media (max-width: 767.98px) {
  .section-spacing {
    padding: 3.2rem 0;
  }

  .carousel-item {
    height: 100svh;
    min-height: 620px;
  }

  .hero-content {
    padding: 1rem;
    border-radius: 18px;
  }

  .hero-content .display-5 {
    font-size: 1.65rem;
  }

  .hero-content .lead {
    font-size: 1.02rem;
    margin-bottom: 1rem !important;
  }

  .carousel-indicators {
    bottom: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .metric-pill {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.8rem;
  }

  .service-card,
  .why-card {
    padding: 1.2rem;
  }

  .contact-form {
    padding: 1.15rem;
  }

  .contact-list li {
    margin-bottom: 0.75rem;
  }

  .site-footer .list-inline-item {
    margin-right: 0.6rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .navbar-brand {
    max-width: 75vw;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    padding: 0.9rem;
  }

  .hero-kicker {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
  }

  .hero-content .display-5 {
    font-size: 1.45rem;
  }

  .hero-actions .btn {
    min-height: 44px;
    padding: 0.7rem 1rem;
    font-size: 0.96rem;
  }

  .metric-pill {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.45rem;
  }
}

@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .why-card:hover {
    transform: none;
    box-shadow: var(--shadow-soft);
    border-color: var(--color-border);
  }
}
