/* PM Portfolio — Yuvaraj Devadoss */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Tokens ── */
:root {
  --bg:       #EEF2F7;
  --bg-card:  #FFFFFF;
  --navy:     #173F5F;
  --teal:     #2A7F82;
  --blue-mid: #6B9FBF;
  --text:     #3D4F5C;
  --muted:    #7E95A3;
  --border:   #D9E5EE;

  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --radius:   12px;
  --shadow:   0 2px 12px rgba(23,63,95,0.08);
  --shadow-hover: 0 6px 24px rgba(23,63,95,0.14);
}

/* ── Base ── */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Container ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section wrapper ── */
.section {
  padding: 80px 0;
}

/* ── Section label ── */
.section-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Section heading ── */
.section-heading {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__brand {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.3px;
}
.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--teal); }

/* Hamburger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__burger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .nav__links.open { display: flex; }
  .nav__links li a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
  }
}

main { padding-top: 60px; }

/* ── Hero ── */
.hero {
  background: var(--bg);
  padding: 100px 0 80px;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: center;
}
.hero__name {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 14px;
}
.hero__role {
  font-size: 18px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
  line-height: 1.4;
}
.hero__tagline {
  font-size: 17px;
  color: var(--text);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all 0.2s;
  cursor: pointer;
  line-height: 1;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
}
.btn--primary:hover {
  background: var(--teal);
  border-color: var(--teal);
}
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

/* Photo */
.hero__photo-wrap {
  flex-shrink: 0;
}
.hero__photo {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--blue-mid);
  box-shadow: 0 8px 32px rgba(23,63,95,0.16);
}

/* Hero mobile */
@media (max-width: 768px) {
  .hero { padding: 60px 0 60px; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero__photo-wrap { order: -1; margin: 0 auto; }
  .hero__tagline { max-width: 100%; }
  .hero__ctas { justify-content: center; }
  .hero__name { font-size: 36px; }
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.project-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  background: var(--bg);
  color: var(--teal);
  border: 1px solid var(--blue-mid);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.project-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.project-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  flex: 1;
}
.metric-pill {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}

@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
  display: flex;
  gap: 20px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--teal);
  flex-shrink: 0;
}
.timeline-content { flex: 1; }
.timeline-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.timeline-company {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}
.timeline-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
.timeline-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

/* ── Writing ── */
.writing-sub {
  font-size: 16px;
  color: var(--muted);
  margin-top: -28px;
  margin-bottom: 36px;
}
.writing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.writing-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}
.writing-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.writing-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  flex: 1;
}
.writing-excerpt {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.writing-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-top: auto;
}
.writing-footer {
  text-align: center;
  padding-top: 8px;
}
.writing-all-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.writing-all-link:hover { color: var(--navy); border-color: var(--navy); }

@media (max-width: 768px) {
  .writing-grid { grid-template-columns: 1fr; }
}

/* ── Contact ── */
.contact-inner { text-align: center; }
.contact-sub {
  font-size: 17px;
  color: var(--muted);
  margin-top: -28px;
  margin-bottom: 40px;
}
.contact-list {
  list-style: none;
  display: inline-flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--text);
}
.contact-item a {
  color: var(--navy);
  font-weight: 500;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.contact-item a:hover {
  color: var(--teal);
  border-color: var(--teal);
}
.contact-icon {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
}
