﻿:root {
  --color-primary: #135bec;
  --color-primary-strong: #1d6bf5;
  --color-bg: #101622;
  --color-bg-alt: #0b0f17;
  --color-surface: #192233;
  --color-surface-alt: #1a2332;
  --color-border: #232f48;
  --color-border-strong: #324467;
  --color-muted: #92a4c9;
  --color-text: #e6ecff;
  --color-text-soft: #b8c3dd;
  --shadow-soft: 0 20px 40px rgba(8, 12, 20, 0.35);
}

* {
  box-sizing: border-box;
}

body.theme-dark {
  font-family: "Space Grotesk", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.font-body {
  font-family: "Noto Sans", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
}

.site-header {
  background: rgba(16, 22, 34, 0.86);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
  z-index: 1000;
}

.navbar-brand .brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-primary);
  background: rgba(19, 91, 236, 0.15);
  border-radius: 10px;
  padding: 6px;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: white;
}

.brand-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  line-height: 1.2;
}

.navbar .nav-link {
  color: var(--color-text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
}

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

.navbar-toggler {
  border: 1px solid var(--color-border);
}

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

.lang-switcher {
  display: inline-flex;
  background: var(--color-surface);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 2px;
}

.lang-btn {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text-soft);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
}

.lang-btn.active {
  background: var(--color-primary);
  color: #fff;
}

.btn-cta {
  font-weight: 700;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
}

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

.btn-primary:hover {
  background: var(--color-primary-strong);
  border-color: var(--color-primary-strong);
}

.btn-outline-light {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn-outline-light:hover {
  background: var(--color-border-strong);
  border-color: var(--color-border-strong);
}

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

.section-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--color-text-soft);
  max-width: 720px;
}

.hero {
  position: relative;
  padding: 5.5rem 0 4rem;
}

.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 320px;
  height: 320px;
  background: rgba(19, 91, 236, 0.2);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  left: -160px;
  bottom: -180px;
  width: 320px;
  height: 320px;
  background: rgba(99, 102, 241, 0.15);
  filter: blur(90px);
  border-radius: 50%;
  z-index: 0;
}

.hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(19, 91, 236, 0.12);
  border: 1px solid rgba(19, 91, 236, 0.4);
  color: var(--color-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(19, 91, 236, 0.6);
  animation: pulse 2.5s infinite;
}

.hero .hero-title {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 1rem 0;
}

.hero .hero-title span {
  color: var(--color-primary);
}

.hero .hero-subtitle {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.hero-contacts .contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-tech {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

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

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 420px;
}

.hero-card .hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-card .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(19, 91, 236, 0.2), rgba(12, 16, 26, 0.7));
}

.hero-card .hero-stat {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
}

.hero-card .hero-stat span {
  color: var(--color-text-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem;
  height: 100%;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.bg-surface {
  background: var(--color-bg-alt);
}

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

.accent-blue .material-symbols-outlined {
  color: #7aa7ff;
}

.accent-sky .material-symbols-outlined {
  color: #69b9ff;
}

.accent-green .material-symbols-outlined {
  color: #6ee7b7;
}

.accent-purple .material-symbols-outlined {
  color: #a78bfa;
}

.card-surface:hover {
  border-color: rgba(19, 91, 236, 0.5);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(19, 91, 236, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.2rem;
}

.kpi-strip {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2.5rem 0;
}

.kpi-item {
  text-align: center;
}

.kpi-item .kpi-value {
  font-size: 2.2rem;
  font-weight: 800;
}

.kpi-item .kpi-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--color-muted);
}

.case-study {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

@media (min-width: 992px) {
  .case-study {
    flex-direction: row;
  }

  .case-study.reverse {
    flex-direction: row-reverse;
  }
}

.case-study .case-image {
  border-radius: 18px;
  overflow: hidden;
  background: var(--color-surface);
  min-height: 260px;
  position: relative;
}

.case-study > div {
  flex: 1;
}

.case-study .case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-study .case-meta {
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.case-study .case-title {
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0.8rem 0;
}

.case-study .case-desc {
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.cta-strip {
  background: var(--color-primary);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.cta-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-strip h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-strip p {
  color: #d8e4ff;
  position: relative;
  z-index: 1;
  font-size: 1rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

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

.page-hero .hero-panel {
  background: var(--color-surface);
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 2.5rem;
}

.timeline {
  position: relative;
  margin-top: 3rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.5rem;
  width: calc(50% - 2rem);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.skill-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.skill-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
}

.skill-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.skill-pill {
  background: rgba(19, 91, 236, 0.12);
  color: var(--color-text);
  border: 1px solid rgba(19, 91, 236, 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card .project-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-case .case-image {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
}

.process-step {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.featured-card {
  border: 2px solid var(--color-primary);
  box-shadow: 0 12px 30px rgba(19, 91, 236, 0.15);
}

.accordion-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.accordion-button {
  background: var(--color-surface);
  color: var(--color-text);
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background: var(--color-border);
  color: var(--color-text);
}

.accordion-button::after {
  filter: invert(1);
}

.alert-success {
  background: rgba(19, 91, 236, 0.15);
  color: #dbe7ff;
  border: 1px solid rgba(19, 91, 236, 0.4);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 91, 236, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(19, 91, 236, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 91, 236, 0); }
}

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

.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  transition: transform 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(19, 91, 236, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.form-control,
.form-select {
  background: #111722;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(19, 91, 236, 0.2);
}

.site-footer {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--color-text-soft);
  margin-top: 0.6rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  color: var(--color-text-soft);
}

.footer-links span {
  display: block;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.footer-link {
  font-weight: 700;
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
}

.social-icon:hover {
  color: #fff;
  border-color: var(--color-primary);
}

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

  .case-study {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0.75rem;
  }

  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
  }

  .timeline-card {
    width: 100%;
    margin-left: 2.5rem;
  }

  .timeline-dot {
    left: 0.75rem;
    transform: translateX(0);
  }
}

@media (max-width: 767px) {
  .hero-card {
    min-height: 340px;
  }

  .cta-strip {
    padding: 2.5rem 1.5rem;
  }
}
