/* =====================================================================
   Joseph Ricciuti - Senior Project Manager portfolio
   Styles: deep navy + teal finance-professional palette
   ===================================================================== */

:root {
  --navy-950: #0b1f33;
  --navy-900: #102a45;
  --navy-800: #14355c;
  --navy-700: #1b4a7a;
  --teal: #0fb5a0;
  --teal-dark: #0a8575;
  --gold: #e8b14e;
  --ink: #1f2a37;
  --muted: #5b6b7c;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --line: #e4e9ef;
  --white: #ffffff;

  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 31, 51, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 31, 51, 0.12);
  --radius: 14px;
  --container: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--navy-900);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 8px;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy-900);
}
.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
  color: var(--navy-900);
  background: var(--bg-alt);
}
.nav-link.active {
  color: var(--teal-dark);
  background: rgba(15, 181, 160, 0.12);
}
.nav-link.nav-cta {
  background: var(--navy-900);
  color: #fff;
  margin-left: 10px;
}
.nav-link.nav-cta:hover {
  background: var(--navy-800);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(15, 181, 160, 0.12), transparent 60%),
    radial-gradient(900px 400px at 0% 20%, rgba(27, 74, 122, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-alt), var(--bg));
  border-bottom: 1px solid var(--line);
  padding: 72px 0 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-title .accent {
  color: var(--teal-dark);
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn-primary {
  background: var(--teal);
  color: #063a33;
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Hero card */
.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  overflow: hidden;
}
.card-inner {
  padding: 32px;
}
.card-title {
  font-size: 1.15rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--teal);
}
.quick-facts li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.quick-facts li:last-child {
  border-bottom: none;
}
.quick-facts strong {
  color: var(--navy-900);
  min-width: 5.5em;
}
.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.badge {
  background: rgba(15, 181, 160, 0.12);
  color: var(--teal-dark);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
}

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

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 20px;
}
.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 40px;
}

/* About */
.about-body p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #33414f;
  max-width: 72ch;
}
.about-body p:last-child {
  margin-bottom: 0;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--teal);
}

.role {
  font-size: 1.35rem;
  margin-bottom: 2px;
}
.org {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-700);
  font-size: 1.02rem;
  margin-bottom: 14px;
}
.dates {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.role-summary {
  color: var(--muted);
  margin-bottom: 14px;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.achievements li {
  position: relative;
  padding-left: 22px;
  color: #33414f;
}
.achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--teal);
}
.achievements strong {
  color: var(--navy-900);
}

/* ---------- AI grid ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ai-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  border-top: 4px solid var(--teal);
}
.ai-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ai-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.ai-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Skills ---------- */
.skill-group {
  margin-bottom: 34px;
}
.skill-group:last-child {
  margin-bottom: 0;
}
.skill-cat {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--navy-800);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy-800);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.chip:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: rgba(15, 181, 160, 0.06);
}

/* ---------- Credentials ---------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cred-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.cred-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.cred-card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.cred-sub {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.section-contact {
  background: var(--navy-950);
  color: #d5e0ea;
}
.section-contact .section-title {
  color: #fff;
}
.section-contact .section-lead {
  color: #b0c0cf;
}
.section-contact .eyebrow {
  color: var(--teal);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #fff;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal);
  transform: translateY(-4px);
}
.contact-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-value {
  font-size: 1rem;
  word-break: break-word;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #8fa4b6;
  font-size: 0.85rem;
}
.footer-note {
  font-size: 0.78rem;
  opacity: 0.7;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Print styles ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-actions, .contact-grid, .skip-link {
    display: none !important;
  }
  body, .hero, .section {
    background: #fff !important;
    color: #000;
  }
  .hero {
    padding: 24px 0;
    border: none;
  }
  .section {
    padding: 24px 0;
    page-break-inside: avoid;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 900px) {
  .hero-grid,
  .ai-grid,
  .cred-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }
  .nav {
    height: 64px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-link {
    padding: 12px 10px;
  }
  .nav-link.nav-cta {
    margin-left: 0;
    text-align: center;
  }
  .hero {
    padding: 48px 0 60px;
  }
  .section {
    padding: 60px 0;
  }
  .timeline {
    padding-left: 24px;
  }
  .timeline-item::before {
    left: -32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
