/* ==========================================================================
   Anthony Skolozdrzyk-Ardouin — Personal brand site
   Corporate professional theme: navy + blue accent, light background
   ========================================================================== */

:root {
  --navy-900: #0a1f44;
  --navy-800: #102a54;
  --blue-600: #2f6fed;
  --blue-700: #2557c7;
  --blue-100: #eaf1ff;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --bg-card: #ffffff;
  --text: #16213a;
  --text-muted: #57647a;
  --text-faint: #8592a6;
  --border: #e4e9f1;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.06);
  --shadow: 0 8px 30px rgba(10, 31, 68, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 31, 68, 0.12);
  --max-width: 1120px;
  --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(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}

.section {
  padding-block: 88px;
}

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

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

#projects .section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

#projects .section-head .eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue-600);
}

#projects .section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 111, 237, 0.28);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--blue-600);
  color: var(--blue-600);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  white-space: nowrap;
}

.lang-switch a {
  padding: 4px 4px;
  border-radius: 6px;
}

.lang-switch a[aria-current="true"] {
  color: var(--navy-900);
  background: var(--blue-100);
}

.lang-switch span {
  color: var(--border);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 12px 0;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.nav-mobile .lang-switch {
  padding-top: 10px;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 88px 72px;
  background:
    radial-gradient(circle at 85% -10%, rgba(47, 111, 237, 0.12), transparent 45%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  margin-bottom: 16px;
}

.hero-role {
  font-size: 1.2rem;
  color: var(--navy-900);
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-summary {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-meta svg {
  width: 15px;
  height: 15px;
  color: var(--blue-600);
  flex-shrink: 0;
}

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

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}

.hero-photo {
  width: 280px;
  height: 280px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
}

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

.hero-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge strong {
  color: var(--blue-600);
  font-size: 1rem;
}

.hero-photo-secondary {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: var(--shadow);
}

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

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-block: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy-900);
  font-weight: 800;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-body strong {
  color: var(--navy-900);
}

.expertise-list {
  display: grid;
  gap: 12px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-900);
}

.expertise-item svg {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---------- Experience ---------- */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.company-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.company-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.company-head h3 {
  font-size: 1.25rem;
}

.company-head .company-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.role {
  position: relative;
  padding-left: 24px;
  margin-bottom: 24px;
}

.role:last-child {
  margin-bottom: 0;
}

.role::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-600);
}

.role::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: -18px;
  width: 1px;
  background: var(--border);
}

.role:last-child::after {
  display: none;
}

.role-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.role-title-row h4 {
  font-size: 1.02rem;
}

.role-dates {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
}

.role-location {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.role ul {
  display: grid;
  gap: 8px;
}

.role li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.role li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-faint);
}

/* ---------- Education ---------- */

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.edu-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.edu-card .edu-meta {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
  margin-bottom: 10px;
}

.edu-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.skill-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 19px;
  height: 19px;
}

.skill-card h3 {
  font-size: 1.02rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Projects ---------- */

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--project-accent, var(--blue-600));
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-card--ledger {
  --project-accent: var(--blue-600);
}

.project-card--fraud {
  --project-accent: #b3261e;
}

.project-card--decline {
  --project-accent: var(--navy-900);
}

.project-card + .project-card {
  margin-top: 56px;
}

.project-info .eyebrow {
  margin-bottom: 10px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.metric-box strong {
  display: block;
  font-size: 1.4rem;
  color: var(--navy-900);
  font-weight: 800;
  margin-bottom: 2px;
}

.metric-box span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-reco {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.project-reco h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.project-reco ul {
  display: grid;
  gap: 10px;
}

.project-reco li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-reco li strong {
  color: var(--navy-900);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 800px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
}

.faq-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */

.contact-section {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800) 60%, var(--blue-700));
  border-radius: var(--radius-lg);
  padding: 64px;
  color: #fff;
  text-align: center;
  margin-inline: 24px;
}

.contact-section h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

.contact-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.contact-section .btn-primary {
  background: #fff;
  color: var(--navy-900);
  box-shadow: none;
}

.contact-section .btn-primary:hover {
  background: var(--blue-100);
}

.contact-section .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.contact-section .btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.contact-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.copy-toast {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--blue-600);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-social a:hover {
  color: var(--blue-600);
  border-color: var(--blue-600);
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-faint);
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

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

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

  .project-card {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 28px;
  }

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

  .contact-section {
    padding: 44px 28px;
  }
}

@media (max-width: 760px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding-block: 60px;
  }
}

@media (max-width: 480px) {
  .hero-photo {
    width: 220px;
    height: 220px;
  }

  .hero-photo-secondary {
    width: 68px;
    height: 68px;
    top: -14px;
    right: -10px;
  }

  .company-card {
    padding: 24px 20px;
  }

  .project-card {
    padding: 28px 22px;
  }

  .contact-section {
    margin-inline: 12px;
    padding: 36px 20px;
  }
}
