/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy:    #0d1b2e;
  --navy2:   #132340;
  --slate:   #1e3050;
  --teal:    #0ea5a0;
  --teal2:   #12bab4;
  --gold:    #f0a500;
  --light:   #f5f7fa;
  --muted:   #64748b;
  --text:    #1e293b;
  --white:   #ffffff;
  --border:  #e2e8f0;
  --radius:  8px;
  --max:     1100px;
  --font:    'Segoe UI', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal2); text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ─── Layout helpers ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--light); }
.section-dark { background: var(--navy); color: var(--white); }

/* ─── Nav ─── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 24px; max-width: var(--max); margin: 0 auto;
}
.nav-brand { font-weight: 700; font-size: 1.1rem; letter-spacing: .5px; color: var(--teal); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,.82); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--teal); text-decoration: none; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 60%, #1a3a5c 100%);
  color: var(--white); padding: 110px 24px 90px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(14,165,160,.18) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.hero-eyebrow {
  display: inline-block; background: rgba(14,165,160,.2); border: 1px solid var(--teal);
  color: var(--teal); font-size: .8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 4px 14px; border-radius: 50px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.hero-title { color: var(--teal); font-size: clamp(1.05rem, 2.5vw, 1.35rem); font-weight: 400; margin-bottom: 22px; }
.hero-summary {
  font-size: 1.05rem; color: rgba(255,255,255,.78); max-width: 680px;
  line-height: 1.75; margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius); font-size: .95rem;
  font-weight: 600; cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal2); text-decoration: none; color: var(--white); }
.btn-outline { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px;
}
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--teal); line-height: 1; }
.stat-label { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 4px; text-transform: uppercase; letter-spacing: .8px; }

/* ─── Section titles ─── */
.section-heading { text-align: center; margin-bottom: 56px; }
.section-heading h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 10px; }
.section-heading p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-dark .section-heading h2 { color: var(--white); }
.section-dark .section-heading p { color: rgba(255,255,255,.6); }
.accent-bar {
  width: 48px; height: 4px; background: var(--teal); border-radius: 2px;
  margin: 14px auto 0;
}

/* ─── Skills grid ─── */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.skill-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s, transform .2s;
}
.skill-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.skill-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), #0d7a76);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 14px;
}
.skill-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: .75rem; background: #eef2f7; color: #445; padding: 3px 9px;
  border-radius: 50px; font-weight: 500;
}

/* ─── Experience timeline ─── */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-left: 56px; margin-bottom: 46px; }
.timeline-dot {
  position: absolute; left: 8px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 28px; transition: box-shadow .2s;
}
.timeline-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); }
.timeline-meta {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 6px; margin-bottom: 8px;
}
.timeline-company { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.timeline-period {
  font-size: .8rem; color: var(--white); background: var(--teal);
  padding: 3px 10px; border-radius: 50px; font-weight: 600; white-space: nowrap;
}
.timeline-role { color: var(--teal); font-size: .92rem; font-weight: 600; margin-bottom: 12px; }
.timeline-location { color: var(--muted); font-size: .82rem; margin-bottom: 14px; }
.timeline-bullets { padding-left: 18px; }
.timeline-bullets li { font-size: .91rem; color: #374151; margin-bottom: 6px; line-height: 1.55; }

/* ─── Industries ─── */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.industry-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 24px 18px; text-align: center;
  transition: background .2s, border-color .2s;
}
.industry-card:hover { background: rgba(14,165,160,.12); border-color: var(--teal); }
.industry-icon { font-size: 2rem; margin-bottom: 10px; }
.industry-card h3 { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.9); }
.industry-card p { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 820px; margin: 0 auto; }
.contact-info p { font-size: 1rem; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(14,165,160,.12);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-label { font-size: .78rem; color: var(--muted); }
.contact-value { font-size: .95rem; font-weight: 600; color: var(--text); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.form-group input, .form-group textarea {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px;
  font-size: .93rem; font-family: var(--font); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,160,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.btn-form {
  background: var(--teal); color: var(--white); border: none; border-radius: var(--radius);
  padding: 12px 28px; font-size: .95rem; font-weight: 600; cursor: pointer;
  align-self: flex-start; transition: background .2s;
}
.btn-form:hover { background: var(--teal2); }
.btn-form:disabled { opacity: .7; cursor: not-allowed; }
.contact-status {
  margin-top: 4px;
  font-size: .85rem;
  font-weight: 600;
}
.contact-status-success { color: #0f766e; }
.contact-status-error { color: #b42318; }

/* ─── Footer ─── */
footer {
  background: #07101f; color: rgba(255,255,255,.5);
  text-align: center; padding: 28px 24px; font-size: .85rem;
}
footer a { color: var(--teal); }

/* ─── Responsive ─── */
@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 480px) {
  .nav-links { display: none; }
}

/* ─── Blazor error UI ─── */
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #ffcd00;
  padding: 8px 16px;
  font-size: .9rem;
  z-index: 1000;
}
#blazor-error-ui .reload { color: #0d1b2e; font-weight: 700; margin-left: 8px; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; font-size: 1.2rem; }
