/* ---------- Base & tokens ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-text: #10151c;
  --color-text-muted: #5b6472;
  --color-border: #e4e7ec;
  --color-accent: #0f766e;
  --color-accent-dark: #0b5d56;
  --color-dark: #0b1220;
  --color-dark-alt: #131c2b;
  --max-width: 1080px;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

.btn-invert {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-invert:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}
.logo:hover { text-decoration: none; color: var(--color-accent); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--color-accent); text-decoration: none; }

.header-cta { margin-left: 8px; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--color-dark);
  background-image: radial-gradient(circle at 15% 20%, rgba(15,118,110,0.35), transparent 45%),
                     radial-gradient(circle at 85% 0%, rgba(15,118,110,0.2), transparent 40%);
  color: #fff;
  padding: 120px 0 96px;
}
.hero-inner { max-width: 720px; }
.eyebrow {
  color: #8fd8cf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  margin-bottom: 8px;
  color: #fff;
}
.hero-role {
  font-size: 1.25rem;
  font-weight: 600;
  color: #c8d3de;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.05rem;
  color: #9aa7b6;
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.8rem;
  margin-bottom: 40px;
}
.section-num {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.section-sub {
  margin-top: -24px;
  margin-bottom: 32px;
  max-width: 560px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text { font-size: 1.02rem; }
.about-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-facts li { display: flex; flex-direction: column; }
.fact-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-accent);
}
.fact-label { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Skills ---------- */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}
.skill-card h3 { font-size: 1rem; margin-bottom: 14px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text);
}
/* ---------- Cloud-Native Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.approach-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}
.approach-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--color-accent);
  margin-bottom: 16px;
}
.approach-icon svg { width: 22px; height: 22px; }
.approach-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.approach-card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Certifications marquee ---------- */
.cert-marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
.cert-track {
  display: flex;
  width: max-content;
  animation: cert-scroll 55s linear infinite;
}
.cert-marquee:hover .cert-track,
.cert-marquee:focus-within .cert-track {
  animation-play-state: paused;
}
.cert-set { display: flex; gap: 16px; padding: 4px 8px; }
@keyframes cert-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cert-badge {
  flex: 0 0 auto;
  width: 190px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-badge-img { width: 48px; height: 48px; object-fit: contain; }
.cert-badge-name { font-size: 0.86rem; font-weight: 600; color: var(--color-text); line-height: 1.35; }
.cert-badge-issuer {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: -4px;
}

@media (prefers-reduced-motion: reduce) {
  .cert-track { animation: none; }
  .cert-set { flex-wrap: wrap; width: 100%; }
  .cert-set-dup { display: none; }
  .cert-marquee { overflow: visible; mask-image: none; -webkit-mask-image: none; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: flex;
  justify-content: center;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: #9aa7b6;
  padding: 28px 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-inner p { margin: 0; color: #9aa7b6; }
.footer-inner a { color: #c8d3de; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .skills-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 72px; }
  .section { padding: 64px 0; }
}
