/* ===== AKTECH Solution — Design System ===== */

:root {
  --primary: #2563eb;
  --secondary: #3b82f6;
  --accent: #0ea5e9;
  --success: #10b981;
  --bg: #ffffff;
  --section-bg: #f8fafc;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --text: #1f2937;
  --text-secondary: #6b7280;

  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.1);
  --container-width: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--text-secondary);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

section[id] {
  scroll-margin-top: 88px;
}

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

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
}

.section-header {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1d4fd1;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

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

.btn-secondary:hover {
  background: var(--section-bg);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.btn-block {
  width: 100%;
}

/* ===== Navigation ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a:not(.btn):not(.lang-switch) {
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-menu a:not(.btn):not(.lang-switch)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-menu a:not(.btn):not(.lang-switch):hover,
.nav-menu a:not(.btn):not(.lang-switch).active {
  color: var(--primary);
}

.nav-menu a:not(.btn):not(.lang-switch):hover::after,
.nav-menu a:not(.btn):not(.lang-switch).active::after {
  transform: scaleX(1);
}

/* Duplicate CTA button lives inside the menu for mobile only */
.nav-menu .btn-primary,
.nav-menu .lang-switch {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions .btn-primary {
  padding: 11px 22px;
}

.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    display: none;
  }

  .nav-menu.open {
    display: flex;
    animation: navSlideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-menu a:not(.btn):not(.lang-switch) {
    width: 100%;
    padding: 12px 0;
  }

  .nav-menu a:not(.btn):not(.lang-switch)::after {
    display: none;
  }

  .nav-actions .btn-primary,
  .nav-actions .lang-switch {
    display: none;
  }

  .nav-menu .btn-primary {
    display: inline-flex;
    width: 100%;
    margin-top: 10px;
  }

  .nav-menu .lang-switch {
    display: inline-flex;
    margin-top: 10px;
  }

  .nav-toggle {
    display: block;
  }
}

/* ===== Hero ===== */

.hero {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-copy p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

@media (max-width: 900px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-media {
    order: -1;
  }
}

/* ===== Cards & Grids ===== */

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: #eff6ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 8px;
}

.card-link:hover {
  text-decoration: underline;
}

/* ===== Feature / Industry lists ===== */

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-item .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.feature-item h3 {
  margin-bottom: 6px;
}

.feature-item p {
  margin-bottom: 0;
}

.industry-card {
  text-align: center;
  padding: 28px 20px;
}

.industry-card .card-icon {
  margin: 0 auto 16px;
}

/* ===== Timeline / Process ===== */

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  counter-reset: step;
}

.timeline-step {
  position: relative;
  text-align: center;
  padding-top: 8px;
}

.timeline-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.timeline-step h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.timeline-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
}

@media (max-width: 480px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ===== Technologies ===== */

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.tech-chip {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

/* ===== Statistics ===== */

.stats {
  background: var(--primary);
  color: #fff;
  padding: 64px 0;
}

.stats .grid-4 {
  text-align: center;
}

.stat-value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

/* ===== Partnerships & Certifications ===== */

.cert-subtitle {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.trust-item svg {
  width: 30px;
  height: 30px;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.trust-item span {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

@media (max-width: 720px) {
  .trust-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-item {
    justify-content: flex-start;
  }
}

/* ===== CTA Banner ===== */

.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 32px;
}

/* ===== Page Hero (inner pages) ===== */

.page-hero {
  padding: 64px 0 56px;
  background: var(--section-bg);
  text-align: center;
}

.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

/* ===== Footer ===== */

.footer {
  background: #111827;
  color: #d1d5db;
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer .logo {
  color: #fff;
}

.footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.footer p, .footer address {
  color: #9ca3af;
  font-style: normal;
  font-size: 0.9rem;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: #9ca3af;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer ul a:hover {
  color: #fff;
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.social-row a:hover {
  background: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Forms ===== */

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

input, textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--success);
  display: none;
}

.form-status.visible {
  display: block;
}

/* ===== Contact info & map ===== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.info-list {
  margin-top: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.info-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.info-item p {
  margin-bottom: 0;
}

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 32px;
}

.map-frame iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ===== About page ===== */

.value-card {
  text-align: center;
}

.timeline-vertical {
  border-left: 2px solid var(--border);
  margin-left: 12px;
  padding-left: 32px;
}

.timeline-vertical .tl-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-vertical .tl-item:last-child {
  padding-bottom: 0;
}

.timeline-vertical .tl-item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #dbeafe;
}

.tl-year {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ===== Service detail page ===== */

.service-hero {
  padding: 56px 0;
  background: var(--section-bg);
}

.service-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .service-hero-inner {
    grid-template-columns: 1fr;
  }

  .service-hero-inner .hero-media {
    order: -1;
  }
}

.service-hero-inner img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.check-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
}

.check-list li svg {
  flex-shrink: 0;
  color: var(--success);
  margin-top: 3px;
}

.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.service-nav a {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.service-nav a.active,
.service-nav a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Utilities ===== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
