:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  scroll-behavior: smooth;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  background: var(--surface);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.search-toggle,
.search-close {
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  padding: 0.4rem;
  border-radius: 10px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus-visible,
.search-close:hover,
.search-close:focus-visible {
  background: #eff6ff;
  color: var(--accent);
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #eff6ff;
  color: var(--accent);
}

.site-nav a.active {
  background: #dbeafe;
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: var(--text);
  cursor: pointer;
}

.hero {
  width: min(1200px, 100%);
  margin: 1rem auto;
  padding: 0 5%;
}

.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1100;
}

.search-modal.open {
  display: flex;
}

.search-panel {
  width: min(720px, 100%);
  background: var(--surface);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.search-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.search-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.search-input:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--accent);
}

.search-results {
  display: grid;
  gap: 0.8rem;
  max-height: 55vh;
  overflow: auto;
}

.search-result-item {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 0.95rem 1rem;
}

.search-result-item a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.search-result-snippet {
  color: var(--muted);
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-media {
  position: relative;
}

.hero img {
  width: 100%;
  height: 60vh;
  min-height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: clamp(1rem, 2.8vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.12));
}

.hero-overlay h1 {
  font-size: clamp(1.4rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 0.45rem;
}

.hero-overlay p {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  max-width: 52ch;
}

.cards-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem 5%;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.card-body h3 {
  font-size: 1.1rem;
}

.card-body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-btn {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  text-decoration: none;
  background: var(--accent);
  color: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-btn:hover,
.card-btn:focus-visible {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.clients-section {
  width: min(1200px, 100%);
  margin: 0.85rem auto 0;
  padding: 1rem 5%;
}

.clients-header {
  margin-bottom: 0.9rem;
}

.clients-header h2 {
  margin-bottom: 0.35rem;
}

.clients-header p {
  color: var(--muted);
}

.clients-carousel {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.carousel-track-wrapper {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.35s ease;
}

.client-card {
  flex: 0 0 calc((100% - 2rem) / 3);
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.client-card img {
  width: min(120px, 100%);
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 0.7rem;
}

.client-card h3 {
  font-size: 1rem;
}

.carousel-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  padding: 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  color: #1d4ed8;
  transform: scale(1.08);
}

.about-roadmap {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem 5%;
}

.about-header {
  margin-bottom: 1rem;
}

.about-header h2 {
  margin-bottom: 0.35rem;
}

.about-header p {
  color: var(--muted);
}

.snake-roadmap {
  position: relative;
  display: grid;
  gap: 0.9rem;
}

.snake-path {
  position: absolute;
  top: 0.2rem;
  bottom: 0.2rem;
  left: 50%;
  height: calc(100% - 0.4rem);
  width: 120px;
  transform: translateX(-50%);
  pointer-events: none;
}

.snake-path path {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.snake-item {
  width: calc(50% - 1.1rem);
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 0.9rem;
  position: relative;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
}

.snake-item::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px #dbeafe;
}

.snake-item:nth-child(odd) {
  justify-self: start;
}

.snake-item:nth-child(odd)::after {
  right: -1.45rem;
}

.snake-item:nth-child(even) {
  justify-self: end;
}

.snake-item:nth-child(even)::after {
  left: -1.45rem;
}

.snake-item h3 {
  margin-bottom: 0.4rem;
}

.snake-item p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.services-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem 5%;
}

.services-hero {
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 1.1rem;
}

.services-hero h1 {
  margin-bottom: 0.35rem;
}

.services-hero p {
  color: var(--muted);
}

.services-grid-section {
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-box {
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.08);
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: #eff6ff;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.service-box h2 {
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
}

.service-box p {
  color: var(--muted);
  font-size: 0.95rem;
}

.portfolio-page {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem 5%;
}

.portfolio-heading-wrap {
  margin-bottom: 1rem;
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 1rem;
  width: 100%;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.08);
}

.portfolio-cards-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .portfolio-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.portfolio-company-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.portfolio-company-row img {
  width: 120px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.portfolio-company-meta h2 {
  margin-bottom: 0.2rem;
}

.portfolio-company-meta p {
  color: var(--muted);
}

.portfolio-gallery-section {
  margin-top: 1rem;
}

.portfolio-gallery-section h3,
.portfolio-details h3 {
  margin-bottom: 0.6rem;
}

.portfolio-grid-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.portfolio-grid-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.portfolio-details {
  margin-top: 1rem;
}

.portfolio-details p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.content-section {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 1rem 5%;
}

.section-anchor {
  height: 1px;
}

.section-inner {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.25rem;
}

.section-inner h2 {
  margin-bottom: 0.5rem;
}

.section-inner p {
  color: var(--muted);
}

.contact-intro {
  margin-bottom: 0.8rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 1rem;
  align-items: start;
}

.contact-copy {
  background: linear-gradient(145deg, #eff6ff, #f8fafc);
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1rem;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 1.1rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.contact-card label {
  font-weight: 600;
  font-size: 0.92rem;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.contact-card input:focus,
.contact-card textarea:focus {
  outline: 2px solid #bfdbfe;
  border-color: var(--accent);
}

.contact-submit {
  width: 100%;
  justify-content: center;
  align-self: stretch;
  margin-top: 0.2rem;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.97rem;
  letter-spacing: 0.2px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.1rem 5%;
  background: var(--surface);
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  text-align: center;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.95rem;
}

.social-icons {
  display: inline-flex;
  gap: 0.55rem;
}

.social-icons a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  background: #f1f5f9;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.social-icons a:hover,
.social-icons a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  background: var(--accent);
}

.floating-call-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(21, 128, 61, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.floating-call-btn:hover,
.floating-call-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 24px rgba(21, 128, 61, 0.32);
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .site-header {
    padding-inline: 4%;
  }

  .hero {
    padding-inline: 4%;
  }

  .cards-section {
    padding-inline: 4%;
  }

  .clients-section {
    padding-inline: 4%;
  }

  .about-roadmap {
    padding-inline: 4%;
  }

  .services-page {
    padding-inline: 4%;
  }

  .portfolio-page {
    padding-inline: 4%;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-section {
    padding-inline: 4%;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-inline: 4%;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 320px;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem 4%;
  }

  .site-nav a {
    display: block;
  }

  .hero img {
    height: 60vh;
    min-height: 220px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-company-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio-grid-images {
    grid-template-columns: 1fr;
  }

  .client-card {
    flex: 0 0 100%;
  }

  .snake-roadmap::before {
    display: none;
  }

  .snake-path {
    left: 1.2rem;
    transform: none;
    width: 28px;
  }

  .snake-item {
    width: calc(100% - 2rem);
    justify-self: end;
  }

  .snake-item:nth-child(odd)::after,
  .snake-item:nth-child(even)::after {
    left: -1.45rem;
    right: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .floating-call-btn {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.68rem 0.9rem;
    font-size: 0.88rem;
  }
}
