/* ================================
   Reset & Variables
================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:         #1B3A5C;
  --navy-hover:   #254e7a;
  --orange:       #FF8020;
  --orange-light: #FF9A42;
  --blue:         #4080B8;
  --bg:           #ffffff;
  --bg-alt:       #EDF4FC;
  --text:         #1a1a1a;
  --text-muted:   #4a617a;
  --border:       #C8DCEA;
  --shadow-sm:    0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md:    0 4px 20px rgba(0, 0, 0, 0.11);
  --radius:       8px;
  --max-width:    1100px;
  --section-pad:  88px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ================================
   Layout
================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.container.narrow {
  max-width: 760px;
}

.section     { padding: var(--section-pad); }
.section-alt { background: var(--bg-alt); }

/* ================================
   Navigation
================================ */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

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

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.btn-nav {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--blue) !important;
  border: 1.5px solid var(--blue) !important;
  padding: 6px 16px !important;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}

.btn-nav:hover {
  background: var(--blue) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: opacity 0.2s;
}

/* ================================
   Hero
================================ */
.hero {
  background: var(--navy);
  color: white;
  padding: 88px 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 72px;
  align-items: center;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: white;
}

.hero-creds {
  font-size: 0.52em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: 1.15rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
  margin-bottom: 8px;
}

.hero-company {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.hero-years {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--orange-light);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background: var(--orange-light);
  border-color: var(--orange-light);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
}

.photo-placeholder span {
  font-size: 0.95rem;
  font-weight: 600;
}

.photo-placeholder small {
  font-size: 0.68rem;
  opacity: 0.7;
}

/* ================================
   Section Titles
================================ */
.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  margin-top: 10px;
  width: 44px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

/* ================================
   About
================================ */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-body p {
  font-size: 1.05rem;
  color: #2e2e2e;
  line-height: 1.78;
}

/* ================================
   Expertise
================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.expertise-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 18px;
  height: 18px;
  background: var(--orange);
  border-radius: 3px;
  transform: rotate(45deg);
  margin-bottom: 20px;
}

.expertise-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.expertise-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ================================
   Projects
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.project-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.project-card:hover .project-img img {
  transform: scale(1.04);
}

.placeholder-img {
  background: linear-gradient(135deg, #ddeef8 0%, #bcd5e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  font-size: 0.72rem;
  color: #9a9489;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orange);
}

.project-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
}

.project-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 2px;
}

/* ================================
   Experience Timeline
================================ */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 128px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0 44px;
  padding-bottom: 44px;
  position: relative;
}

.timeline-entry:last-child { padding-bottom: 0; }

.timeline-entry::after {
  content: '';
  position: absolute;
  left: 121px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--orange);
}

.timeline-meta { text-align: right; padding-top: 4px; padding-right: 22px; }

.timeline-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 2px;
}

.timeline-note {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.timeline-location {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: #3a3a3a;
  line-height: 1.7;
}

/* ================================
   Credentials
================================ */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.credential-heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--orange);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.credential-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.credential-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cred-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.cred-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cred-bullets {
  list-style: none;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cred-bullets li {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 14px;
  position: relative;
}

.cred-bullets li::before {
  content: '•';
  color: var(--orange);
  position: absolute;
  left: 0;
  font-size: 0.9rem;
}

/* ================================
   Footer
================================ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  padding: 52px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
}

.footer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
}

.footer-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
}

.footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange-light);
  transition: color 0.2s;
}

.footer-link:hover { color: white; }

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.28);
}

/* ================================
   Responsive — Tablet
================================ */
@media (max-width: 960px) {
  :root { --section-pad: 64px 0; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }

  .hero-badges,
  .hero-cta { justify-content: center; }

  .hero-photo-wrap { order: -1; }

  .hero-photo {
    width: 220px;
    height: 220px;
  }

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

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

  .credentials-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ================================
   Responsive — Mobile
================================ */
@media (max-width: 620px) {
  :root { --section-pad: 52px 0; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px;
    gap: 18px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* Flatten timeline on mobile */
  .timeline::before { display: none; }

  .timeline-entry {
    grid-template-columns: 1fr;
    padding-left: 20px;
    border-left: 2px solid var(--border);
    gap: 4px;
  }

  .timeline-entry::after {
    left: -8px;
    top: 6px;
  }

  .timeline-meta { text-align: left; }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}
