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

:root {
  --primary:   #0A2463;
  --secondary: #3E92CC;
  --accent:    #D8315B;
  --teal:      #00B4D8;
  --text:      #1E1E1E;
  --muted:     #666;
  --bg:        #F5F5F5;
  --white:     #ffffff;
  --shadow:    rgba(10, 36, 99, 0.08);
  --radius:    12px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 36, 99, 0.96);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 16px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-links .nav-cta:hover {
  background: #c02850;
  transform: translateY(-1px);
}

/* ── Hero ── */

.hero {
  background: linear-gradient(150deg, #061640 0%, var(--primary) 45%, #1a5276 100%);
  color: var(--white);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(62,146,204,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-accent-line {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 28px;
}

.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-title {
  font-size: 22px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-title span {
  color: var(--teal);
  font-weight: 600;
}

.hero-quote {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 48px;
  font-style: italic;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s;
}

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

.btn-primary:hover {
  background: #c02850;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 49, 91, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn-ghost {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  padding: 14px 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover { color: var(--white); }

/* ── Stats ── */

.stats {
  background: var(--white);
  border-bottom: 1px solid #E8E8E8;
  padding: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid #E8E8E8;
}

.stat-item {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid #E8E8E8;
  position: relative;
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span {
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Section common ── */

section { padding: 88px 0; }

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ── Expertise ── */

.expertise { background: var(--bg); }

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.expertise-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 4px 16px var(--shadow);
  border-top: 4px solid var(--primary);
  transition: transform 0.25s, box-shadow 0.25s;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,36,99,0.12);
}

.expertise-card:nth-child(2) { border-top-color: var(--secondary); }
.expertise-card:nth-child(3) { border-top-color: var(--teal); }
.expertise-card:nth-child(4) { border-top-color: var(--accent); }

.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.expertise-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  background: #E3F2FD;
  color: var(--secondary);
  border-radius: 4px;
}

.tag.accent { background: #FDE8ED; color: var(--accent); }
.tag.teal   { background: #E0F7FA; color: #00838F; }

/* ── Projects ── */

.projects { background: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: block;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,36,99,0.14);
}

.project-header {
  padding: 36px 36px 28px;
  color: var(--white);
}

.project-card:first-child .project-header {
  background: linear-gradient(135deg, var(--primary) 0%, #1a5276 100%);
}

.project-card:last-child .project-header {
  background: linear-gradient(135deg, #1a5276 0%, var(--secondary) 100%);
}

.project-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.project-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-header p {
  font-size: 15px;
  opacity: 0.82;
  line-height: 1.5;
}

.project-body {
  padding: 28px 36px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-body span {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.project-arrow {
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  box-shadow: 0 2px 8px var(--shadow);
  transition: background 0.2s, color 0.2s;
}

.project-card:hover .project-arrow {
  background: var(--accent);
  color: var(--white);
}

/* ── Stack ── */

.stack { background: var(--bg); }

.stack-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-group {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.stack-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  min-width: 160px;
  padding-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  background: var(--white);
  color: var(--primary);
  border: 1px solid #D0DCF0;
  box-shadow: 0 1px 4px var(--shadow);
}

/* ── Certs ── */

.certs-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #E0E0E0;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid #D0DCF0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

/* ── Connect ── */

.connect {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4a7a 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.connect h2 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.connect p {
  font-size: 17px;
  opacity: 0.8;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.connect-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.connect-link:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ── Footer ── */

footer {
  background: #050f2e;
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 24px;
  font-size: 13px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .hero h1      { font-size: 44px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .stack-group    { flex-direction: column; gap: 10px; }
}

@media (max-width: 600px) {
  .hero         { padding: 120px 0 72px; }
  .hero h1      { font-size: 32px; }
  .hero-title   { font-size: 17px; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .nav-links    { display: none; }
  .section-title { font-size: 28px; }
}
