@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0a1628;
  --navy-light: #111d35;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-pale: #dbeafe;
  --cyan: #06b6d4;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --dark: #0f172a;
  --text: #1e293b;
  --text-light: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff; letter-spacing: -0.5px;
}
.logo-text { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.logo-sub { font-size: 11px; color: var(--slate-light); font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; margin-top: -2px; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 8px; }
.nav-links a {
  color: #cbd5e1; font-size: 14px; font-weight: 500; padding: 8px 16px;
  border-radius: 8px; transition: all .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links .btn-nav {
  background: var(--blue); color: #fff; font-weight: 600;
  padding: 10px 22px; border-radius: 8px;
}
.nav-links .btn-nav:hover { background: var(--blue-light); }

.menu-toggle {
  display: none; background: none; border: none; color: #fff;
  font-size: 26px; cursor: pointer; padding: 4px 8px;
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background: var(--navy); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
  opacity: .18;
}
.hero-gradient {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(10,22,40,.97) 0%, rgba(10,22,40,.7) 50%, rgba(37,99,235,.15) 100%);
}
.hero-content {
  position: relative; z-index: 3;
  padding: 140px 0 100px;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.25);
  color: var(--blue-light); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 50px; margin-bottom: 24px;
  letter-spacing: .3px;
}
.hero-badge .dot { width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; }
.hero h1 {
  font-size: clamp(36px, 5vw, 58px); font-weight: 800; color: #fff;
  line-height: 1.12; letter-spacing: -1.5px; margin-bottom: 20px;
}
.hero h1 span { color: var(--blue-light); }
.hero-sub {
  font-size: 18px; color: var(--slate-light); line-height: 1.7;
  margin-bottom: 36px; max-width: 560px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: var(--blue); color: #fff; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: all .2s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.3); }
.btn-outline {
  background: transparent; color: #fff; padding: 14px 32px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255,255,255,.2); transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }

/* ===== METRICS BAR ===== */
.metrics {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  text-align: center;
}
.metric-num { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -1px; }
.metric-num span { color: var(--blue-light); }
.metric-label { font-size: 14px; color: var(--slate-light); margin-top: 4px; font-weight: 500; }

/* ===== SECTION COMMON ===== */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #fff; }
.section-label {
  font-size: 13px; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px;
}
.section-navy .section-label { color: var(--cyan); }
.section-title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
  letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 16px;
}
.section-desc {
  font-size: 17px; color: var(--text-light); line-height: 1.7;
  max-width: 600px; margin-bottom: 48px;
}
.section-navy .section-desc { color: var(--slate-light); }

/* ===== SERVICES GRID ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  transition: all .25s; position: relative; overflow: hidden;
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--blue-pale); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--blue); }
.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* ===== ABOUT PREVIEW ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.about-img img { width: 100%; height: 400px; object-fit: cover; }
.about-text .highlight {
  display: inline-block; background: var(--blue-pale); color: var(--blue);
  font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 6px;
  margin-bottom: 16px;
}
.about-text h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 16px; line-height: 1.2; }
.about-text p { font-size: 16px; color: var(--text-light); line-height: 1.75; margin-bottom: 14px; }
.about-text ul { list-style: none; padding: 0; margin-top: 20px; }
.about-text ul li {
  font-size: 15px; padding: 8px 0; display: flex; align-items: center; gap: 10px;
  color: var(--text);
}
.about-text ul li::before {
  content: ''; width: 8px; height: 8px; background: var(--blue);
  border-radius: 50%; flex-shrink: 0;
}

/* ===== TECH STACK ===== */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tech-item {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 28px 16px; text-align: center;
  transition: all .2s;
}
.tech-item:hover { border-color: rgba(37,99,235,.3); background: rgba(37,99,235,.05); }
.tech-item .tech-name { font-size: 13px; color: #cbd5e1; font-weight: 600; margin-top: 12px; }
.tech-item svg { width: 36px; height: 36px; color: var(--slate-light); margin: 0 auto; }

/* ===== PROCESS ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: center; position: relative; }
.process-num {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--blue); color: #fff; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.process-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-size: 60px; color: var(--blue-pale);
  position: absolute; top: 16px; left: 24px; line-height: 1; font-family: Georgia, serif;
}
.testimonial-text { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 20px; padding-top: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: var(--blue);
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-role { font-size: 12px; color: var(--slate); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #1e3a5f 100%);
  padding: 80px 0; text-align: center;
}
.cta-section h2 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; letter-spacing: -0.8px; }
.cta-section p { font-size: 17px; color: var(--slate-light); margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--slate-light); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 14px; color: var(--slate-light); transition: color .2s; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}

/* ===== PAGES ===== */
.page-hero {
  background: var(--navy); padding: 140px 0 72px; text-align: center;
}
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px); font-weight: 800; color: #fff;
  letter-spacing: -1px; margin-bottom: 16px;
}
.page-hero p { font-size: 17px; color: var(--slate-light); max-width: 560px; margin: 0 auto; }

/* service detail cards */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.service-detail-img img { width: 100%; height: 320px; object-fit: cover; }
.service-detail-text h3 { font-size: 24px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.4px; }
.service-detail-text p { font-size: 15px; color: var(--text-light); line-height: 1.75; margin-bottom: 12px; }
.service-detail-text ul { list-style: none; padding: 0; }
.service-detail-text ul li { font-size: 14px; padding: 6px 0; display: flex; align-items: center; gap: 8px; }
.service-detail-text ul li::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }

/* About page */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.value-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: var(--text-light); line-height: 1.65; }
.value-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--blue-pale); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.value-icon svg { width: 28px; height: 28px; color: var(--blue); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card { text-align: center; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px; overflow: hidden; background: var(--bg-alt); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.team-card .role { font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 22px; height: 22px; color: var(--blue); }
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.contact-item p { font-size: 14px; color: var(--text-light); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.contact-form h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 14px; color: var(--text); background: var(--bg-alt);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit {
  width: 100%; padding: 14px; background: var(--blue); color: #fff; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.form-submit:hover { background: #1d4ed8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid, .testimonials-grid, .values-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 20px; gap: 4px; border-top: 1px solid rgba(255,255,255,.06);
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 12px 16px; }

  .hero-content { padding: 120px 0 64px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid, .testimonials-grid, .values-grid, .team-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img img { height: 260px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 64px 0; }
  .cta-section { padding: 56px 0; }
  .cta-section h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
