:root {
  --primary: #1652f0;
  --primary-dark: #0f3bb8;
  --secondary: #111827;
  --accent: #00b894;
  --muted: #6b7280;
  --light: #f8fafc;
  --border: rgba(15, 23, 42, 0.08);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--secondary);
  background: #ffffff;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Top bar + navigation */

.top-bar {
  background: #0b1b3a;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.top-bar a {
  color: #e5e7eb;
  text-decoration: none;
}

.navbar {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

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

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

.navbar-logo {
  display: block;
  height: 32px;
  max-height: 32px;
  width: auto;
  max-width: 140px;
}

.footer-logo {
  display: inline-block;
  height: 20px;
  width: auto;
  vertical-align: middle;
  margin-left: 0.35rem;
}

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

.nav-link.active {
  color: var(--primary) !important;
}

.navbar .nav-link.active {
  pointer-events: none;
  cursor: default;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary);
  border-color: var(--primary);
}

/* Layout */

.hero {
  background: linear-gradient(120deg, #f6f8ff 0%, #e9f4ff 50%, #ffffff 50%);
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.88) 56%, rgba(255, 255, 255, 0.28) 72%, rgba(255, 255, 255, 0) 100%);
  z-index: 0;
}

.hero,
.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero .text-muted,
.hero .small-muted,
.hero .callout,
.hero .trust-pill,
.hero .stats-strip,
.hero .stats-strip .small-muted {
  color: #111827;
}


.hero > .container {
  position: relative;
  z-index: 1;
}

.hero .hero-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero .lead {
  max-width: 60ch;
}

.section {
  padding: 4rem 0;
  scroll-margin-top: 90px;
}

.route-view {
  min-height: 60vh;
}

.page-enter {
  animation: pageIn 0.45s ease;
}

.page-exit {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stretched-link {
  text-decoration: none !important;
}

.section.bg-light {
  background: var(--light);
}

.why-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.technologies-section {
  background: #ffffff;
}

.about-section {
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
    url("../img/profile_background.png") center/cover no-repeat;
}

.it-section {
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    url("../img/it_background.png") center/cover no-repeat;
}

.portfolio-grid {
  margin-top: 1rem;
}

.portfolio-card {
  position: relative;
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.portfolio-card:hover img,
.portfolio-card:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(22, 82, 240, 0.8), rgba(15, 23, 42, 0.65));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-card:hover .portfolio-overlay,
.portfolio-card:focus-visible .portfolio-overlay {
  opacity: 1;
}

.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section > .container {
  position: relative;
  z-index: 1;
}

.contact-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.service-section {
  position: relative;
  overflow: hidden;
}

.service-section > .container {
  position: relative;
  z-index: 1;
}

.service-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

.programming-section {
  position: relative;
  overflow: hidden;
}

.programming-section > .container {
  position: relative;
  z-index: 1;
}

.programming-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}

/* Typography */

.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
}

.small-muted {
  /* color: var(--muted); */
  font-size: 0.95rem;
}

/* Components */

.icon-badge {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(22, 82, 240, 0.12);
  color: var(--primary);
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.card .card-title {
  font-weight: 700;
}

.post-card .card-title {
  margin: 10px 0;
}

.post-meta {
  margin: 10px 0;
}

.price-tag {
  font-weight: 700;
  font-size: 1.3rem;
}

.price-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 82, 240, 0.12);
  color: var(--primary);
  border: 1px solid rgba(22, 82, 240, 0.24);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}

.pricing-board {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pricing-grid > [class*="col-"] > .card {
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}

.pricing-grid h4.h6 {
  font-weight: 700;
}

.process-step {
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
}

.contact-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 2rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(22, 82, 240, 0.2);
}

.footer {
  background: #0b1b3a;
  color: #e5e7eb;
  padding: 3rem 0 2rem;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
}

.badge-category {
  background: rgba(22, 82, 240, 0.12);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px !important;
}

.post-cover {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  height: 180px;
}

.post-cover img {
  display: block;
}

.post-cover.post-cover-lg {
  height: 280px;
}

.list-icon {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.list-icon li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.info-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(22, 82, 240, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #ffffff;
}

.why-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  min-height: 132px;
}

.why-icon {
  color: var(--primary);
  font-size: 2.2rem;
  line-height: 1;
}

.stats-strip {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.callout {
  background: #ffffff;
  border: 1px dashed var(--primary);
  border-radius: 1rem;
  padding: 1.5rem;
}

/* Responsive */

@media (max-width: 991.98px) {
  .hero {
    padding-top: 3rem;
  }

  .navbar .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .trust-pill {
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
    background: #ffffff;
    flex: 1 1 100%;
  }

  .icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
}
