/* ── Variables ─────────────────────────────────────────────── */
:root {
  --accent:    #4950bc;
  --accent-dk: #363cb8;
  --bg:        #f6f4f4;
  --bg-alt:    #ffffff;
  --text:      #1a1a2e;
  --muted:     #555570;
  --border:    #e2e0e0;
  --radius:    10px;
  --max-w:     1100px;
  --nav-h:     68px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout helpers ────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── Nav ───────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  --nav-h: 76px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 60px; width: auto; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2f7e 60%, #4950bc 100%);
  color: #fff;
  padding: 110px 0 90px;
  text-align: center;
}
#hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 780px;
  margin: 0 auto 20px;
}
#hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 620px;
  margin: 0 auto 36px;
}
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); text-decoration: none; }
.btn-solid  { background: #fff; color: var(--accent); }
.btn-outline { border: 2px solid rgba(255,255,255,0.7); color: #fff; }

/* ── Section headings ──────────────────────────────────────── */
.section-label {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--muted); font-size: 1.05rem;
  max-width: 580px; margin-bottom: 52px;
}

/* ── Services ──────────────────────────────────────────────── */
#services { background: var(--bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 28px rgba(73,80,188,.12); transform: translateY(-3px); }

.service-img {
  height: 200px;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
  margin: -28px -26px 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #4950bc, #7c83f0);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ── AI card — dark inverted ───────────────────────────────── */
.service-card.dark {
  background: #1a1a2e;
  border-color: #2d2f5e;
  color: #fff;
}
.service-card.dark h3 { color: #fff; }
.service-card.dark p  { color: rgba(255,255,255,0.72); }
.service-card.dark .service-img {
  position: relative;
}
.service-card.dark .service-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to bottom, transparent, #1a1a2e);
  pointer-events: none;
}

/* ── Why DVS ───────────────────────────────────────────────── */
#why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: 0 8px 28px rgba(73,80,188,.12); transform: translateY(-3px); }
.why-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }

/* ── Our Work ──────────────────────────────────────────────── */
#work { background: var(--bg); }
.project-card {
  display: flex; gap: 40px; align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 820px;
}
.project-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  white-space: nowrap; margin-bottom: 14px; display: inline-block;
}
.project-logo { width: 110px; height: 110px; object-fit: contain; flex-shrink: 0; }
.project-card h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.project-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 18px; }
.project-values { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.project-value { display: flex; gap: 10px; align-items: baseline; }
.pv-title { font-weight: 700; font-size: 0.93rem; white-space: nowrap; }
.pv-title::after { content: ' —'; }
.pv-desc { color: var(--muted); font-size: 0.93rem; }
.project-link { font-weight: 600; font-size: 0.93rem; }

/* ── About ─────────────────────────────────────────────────── */
#about { background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-img { border-radius: var(--radius); overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); display: block; }

/* ── Contact ───────────────────────────────────────────────── */
#contact {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2f7e 60%, #4950bc 100%);
  color: #fff;
}
#contact .section-label { color: rgba(255,255,255,0.6); }
#contact .section-title { color: #fff; }
#contact .section-sub { color: rgba(255,255,255,0.7); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact-item p, .contact-item a { color: rgba(255,255,255,.9); font-size: 0.95rem; }
.contact-item a:hover { color: #fff; }

/* ── Messenger buttons ─────────────────────────────────────── */
.messenger-links { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.messenger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem; font-weight: 600;
  color: #fff; text-decoration: none;
  transition: opacity .2s;
}
.messenger-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }
.telegram  { background: #2AABEE; }
.whatsapp  { background: #25D366; }

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: #11112a;
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 22px 24px;
  font-size: 0.82rem;
}
footer span { color: rgba(255,255,255,.6); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-card { flex-direction: column; gap: 0; }
  section { padding: 60px 0; }
}
