/* =========================
   Design tokens
   ========================= */
:root {
  /* Brand */
  --blue: #417fb8;
  --blue-light: #78a2c6;
  --blue-soft: #bad1e4;

  /* Surfaces */
  --bg: #f7fafb;
  --bg-alt: #e9f1f6;
  --bg-card: var(--bg-alt);

  /* Text */
  --text: #1f2933;
  --muted: #4b5563;
  --on-blue: #f7fafb;

  /* Lines & FX */
  --border: #d8e2eb;
  --shadow: 0 6px 20px rgba(65, 127, 184, 0.15);

  /* Radii */
  --radius-lg: 15px;
  --radius: 12px;
  --radius-sm: 8px;

  /* Layout */
  --max: 1336px;
}

/* =========================
   Base reset
   ========================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;

  /* Sticky footer */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.footer { margin-top: auto !important; }

/* Focus visibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, .project-link:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--blue) 60%, white);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: padding .3s ease, box-shadow .3s ease;
}
.navbar.scrolled { padding: .5rem 0; box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.nav-container,
.navbar .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 1.5rem; font-weight: 700; color: var(--text); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Links */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: .35rem .1rem;
  transition: color .2s ease, transform .2s ease;
}
.nav-links a:hover { color: var(--blue); transform: translateY(-3px); }
.nav-links a.active { color: var(--blue); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--blue);
}

/* Resume pill */
.resume-link { font-size: .95rem; font-weight: 600; padding: .8rem 1.25rem; border-radius: 999px; white-space: nowrap; }
.navbar .resume-link { padding: .55rem 1rem; font-size: .9rem; }

/* =========================
   Buttons
   ========================= */
.cta-buttons { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  padding: .8rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: var(--on-blue);
  box-shadow: 0 8px 22px rgba(65, 127, 184, .22);
  border-color: rgba(65, 127, 184, .28);
}
.btn-primary:hover { background: var(--blue-light); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.btn-secondary:hover { background: var(--blue-soft); color: var(--text); }

/* =========================
   Hero
   ========================= */
.hero {
  min-height: 82vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 96px 0 64px;
}
.hero .container { max-width: 1600px; padding: 0 3rem; }
.hero-content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 10rem;
  align-items: center;
  padding: 0 2rem;
}
.hero-left { display: flex; justify-content: center; align-items: center; width: 100%; }
.profile-avatar {
  width: 280px; height: 280px; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--blue-soft); box-shadow: var(--shadow);
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.profile-avatar:hover {
  border-color: var(--blue);
  box-shadow:
    0 0 0 6px color-mix(in oklab, var(--blue) 18%, transparent),
    0 18px 36px rgba(65,127,184,.27);
  transform: translateY(-2px);
}
.hero-right { display: flex; flex-direction: column; gap: 1rem; max-width: 800px; }
.hero-right h1 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.15; font-weight: 700; color: var(--blue);
  margin: 0 0 .25rem; max-width: 30ch;
}
/* Subtitles & typewriter */
.subtitle, .typing-line {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--blue-light);
  white-space: nowrap;
}
.subtitle { font-weight: 600; }
#phrase-rotator { position: relative; min-width: 12ch; }
#phrase-rotator::after { content: "│"; margin-left: 2px; opacity: .8; animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Bulleted description */
.description-list { font-size: 1rem; line-height: 1.7; color: var(--muted); margin: 1rem 0 2rem; }
.description-list ul { list-style: none; }
.description-list li { position: relative; padding-left: 1.5rem; margin-bottom: .75rem; }
.description-list li::before {
  content: "▶"; position: absolute; left: 0; top: .1rem;
  color: var(--blue); font-size: .8rem;
}
.description-list strong { color: var(--blue); font-weight: 700; }

/* Waving emoji */
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave-hand 2.2s ease-in-out infinite; }
@keyframes wave-hand {
  0%{transform:rotate(0)}10%{transform:rotate(14deg)}20%{transform:rotate(-6deg)}
  30%{transform:rotate(10deg)}40%{transform:rotate(-3deg)}50%{transform:rotate(6deg)}
  60%,100%{transform:rotate(0)}
}

/* =========================
   Footer
   ========================= */
.footer {
  padding: 2rem 0; text-align: center; border-top: 1px solid var(--border);
  color: var(--muted); background: var(--bg);
}

/* =========================
   Shared socials
   ========================= */
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a img { width: 36px; height: 36px; transition: transform .2s ease, filter .2s ease; }
.social-links a:hover img { transform: translateY(-3px); filter: brightness(1.1); }

.nav-container { position: relative; }

/* =========================
   Global mobile tweaks
   ========================= */
@media (max-width: 768px) {
    /* show hamburger on mobile; make it easy to tap */
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .5rem;          /* bigger hit area */
    min-width: 44px;
    min-height: 44px;
  }

  /* collapsed links container (drops under the bar) */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 1001; /* above page content */
  }
  .nav-links.active { display: flex; }

    /* tap-targets: full-row, comfy spacing */
  .nav-links li { list-style: none; }
  .nav-links a {
    display: block;
    padding: 0.9rem 0;  /* ~46px row height with line-height */
    line-height: 1.4;
  }
  .nav-links li + li a {
    border-top: 1px solid color-mix(in oklab, var(--border) 80%, transparent);
  }

  .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .hero-left { order: -1; }
  .hero-right { align-items: center; max-width: none; }
  .hero-right h1 { max-width: none; }
  .profile-avatar { width: 200px; height: 200px; }
  .subtitle { font-size: 1.05rem; }
  .typing-line { font-size: .96rem; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .navbar .btn,
  .navbar .resume-link { width: auto; }
  .navbar .resume-link { flex: 0 0 auto; }
  .description-list { text-align: left; }

  .subtitle,
  .typing-line {
    white-space: normal;     /* allow wrapping */
  }

  #phrase-rotator {
    display: inline-block;
    max-width: 100%;
    /* optional, if you prefer truncation to wrapping: */
    /* white-space: nowrap; overflow: hidden; text-overflow: ellipsis; */
  }
}

/* =========================
   Reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .profile-avatar, .btn, .wave { transition: none; animation: none; }
}

/* =========================
   Section headers (shared)
   ========================= */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title  { font-size: 2.2rem; font-weight: 700; color: var(--text); }

/* =========================
   About (Modern)
   ========================= */
.about.about--modern { padding: 3rem 0 6rem; background: var(--bg); }
.about.about--modern .about-header { margin-bottom: 3rem; text-align: center; }
.about.about--modern .about-accent { color: var(--blue); }
.about.about--modern .about-sub { color: var(--muted); max-width: 70ch; margin: .5rem auto 1.25rem; }
.about.about--modern .container { max-width: 1647px; padding: 0 3rem; }

.about.about--modern .about-grid {
  display:grid;
  grid-template-columns: 1.25fr minmax(700px, 740px);
  column-gap: 8rem; row-gap: 2rem; align-items:start; margin-top: 4rem;
}
.about.about--modern .about-h2 { font-size:1.35rem; font-weight:800; color:var(--text); margin:.25rem 0 1rem; }
.about.about--modern .about-journey p { color:var(--muted); line-height:1.8; margin:.8rem 0; }

.about.about--modern .about-bullets { margin:.5rem 0 0; padding-left:1.25rem; color:var(--muted); line-height:1.8; }
.about.about--modern .about-bullets li { margin:.6rem 0; }
.about.about--modern .about-bullets li::marker { color:var(--blue); font-weight:700; }

.about.about--modern .about-work__title { text-align:left; }
.about.about--modern .about-work { max-width:740px; }

.about.about--modern .about-work__grid {
  display:grid; grid-template-columns: repeat(2, 350px);
  justify-content:start; gap:1rem;
}

/* Card family (grouped to reduce repetition) */
.about.about--modern .about-card,
.certifications-section .certx-card,
.edu-card,
.project-card,
.about.about--modern .about-stat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.about.about--modern .about-card:hover,
.certifications-section .certx-card:hover,
.edu-card:hover,
.project-card:hover,
.about.about--modern .about-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in oklab, var(--blue) 22%, var(--border));
}

.about.about--modern .about-card { padding: 1.25rem; position: relative; overflow: hidden; }
.about.about--modern .about-card::before,
.certifications-section .certx-card::before,
.edu-card::before,
.skills.skills--modern .skillsx-card::before {
  content:""; position:absolute; left:0; right:0; top:0; height:4px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light)); opacity:.9;
}
.about.about--modern .about-card__head { display:flex; align-items:center; gap:.75rem; margin-bottom:.5rem; }
.about.about--modern .about-card__icon {
  width:44px; height:44px; border-radius:12px; background: var(--blue); color: var(--on-blue);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.1rem; box-shadow: var(--shadow);
}
.about.about--modern .about-card h3 { font-size:1.05rem; font-weight:700; color:var(--text); }
.about.about--modern .about-card p { color:var(--muted); line-height:1.6; margin-top:.35rem; }

.about.about--modern .about-stats {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:1.25rem; margin-top:2.5rem;
}
.about.about--modern .about-stat { text-align:center; padding: 2rem 1rem; position: relative; overflow: hidden; }
.about.about--modern .about-stat__num { display:block; font-weight:800; font-size:2.2rem; color:var(--blue); line-height:1; margin-bottom:.25rem; }
.about.about--modern .about-stat__label { color:var(--muted); font-weight:600; }

@media (max-width: 1200px) {
  .about.about--modern .about-grid { grid-template-columns: 1fr; }
  .about.about--modern .about-work { max-width: none; }
  .about.about--modern .about-work__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .about.about--modern .about-work__grid { grid-template-columns: 1fr; }
  .about.about--modern .about-stats { grid-template-columns: 1fr; }
  .about.about--modern .container { padding: 0 1.25rem; }
  .about.about--modern .about-grid { column-gap: 1.5rem; }
}

/* Subtle entrance animation */
@keyframes about-fadeInUp { from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:translateY(0)} }
@media (prefers-reduced-motion: no-preference) {
  .about.about--modern .about-header,
  .about.about--modern .about-journey,
  .about.about--modern .about-work,
  .about.about--modern .about-stats > * {
    animation: about-fadeInUp .6s ease both;
  }
  .about.about--modern .about-stats > *:nth-child(2){ animation-delay:.05s; }
  .about.about--modern .about-stats > *:nth-child(3){ animation-delay:.1s; }
}

/* =========================
   Certifications
   ========================= */
.certifications-section { padding: 6rem 0; background: var(--bg); }
.certifications-section .certx-grid { display: grid; gap: 2rem; }
.certifications-section .certx-grid.modern { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.certifications-section .certx-card {
  position: relative; padding: 2rem; overflow: hidden; min-height: 300px;
  display: flex; flex-direction: column;
}
.certifications-section .certx-header {
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.certifications-section .certx-logo, .certifications-section .certx-icon {
  background: var(--bg); width: 70px; height: 70px; min-width: 70px; min-height: 70px;
  align-self: flex-start; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--on-blue); font-weight: 700; font-size: 1rem; line-height: 1; border: 2px solid var(--border); box-shadow: var(--shadow);
}
.certifications-section .certx-logo img { width: 80%; height: 80%; object-fit: contain; }
.certifications-section .certx-icon.is-award { font-size: 1.4rem; }
.certifications-section .certx-title { font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.2; margin-bottom: .15rem; }
.certifications-section .certx-provider { color: var(--blue); font-size: .95rem; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.certifications-section .certx-body { color: var(--muted); margin: .5rem 0 1.25rem; line-height: 1.6; flex: 1 1 auto; }
.certifications-section .certx-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto;
}
.certifications-section .certx-date { color: #6b7280; font-size: .9rem; }
.certifications-section .certx-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--on-blue); padding: .6rem 1rem; border-radius: 25px;
  text-decoration: none; font-weight: 600; font-size: .9rem; border: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  align-self: flex-end;
}
.certifications-section .certx-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(65,127,184,.20); }

@media (max-width: 768px) {
  .certifications-section .certx-grid.modern { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* =========================
   Contact
   ========================= */
.contact { padding: 6rem 0; background: var(--bg); }
.contact-cta { margin: 0 auto 4rem; text-align: center; }
.contact-hero { font-size: clamp(1.35rem, 2.4vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: .4rem; }
.contact-sub { color: var(--muted); }

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 560px) 380px;
  gap: 9rem; justify-content: center;
}
.contact-info {
  max-width: 560px; width: 100%; justify-self: end;
  display: flex; flex-direction: column; gap: 2rem;
}
.contact-socials { width: 100%; max-width: 380px; justify-self: start; align-self: start; }
.contact-socials h4 { margin: 0 0 .75rem; color: var(--text); font-weight: 700; }

.contact-item {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.1rem 1.25rem; background: var(--bg-alt);
  border: 1px solid color-mix(in oklab, var(--border) 85%, transparent);
  border-radius: var(--radius-lg); box-shadow: 0 3px 14px rgba(0,0,0,.04);
}
.contact-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  background: var(--blue-soft); color: var(--blue);
}
.contact-details h4 { margin-bottom: .35rem; color: var(--text); }
.contact-details p { color: var(--muted); }
.contact-details a { color: var(--blue); text-decoration: none; }
.contact-socials .social-links a img { width: 44px; height: 44px; }

@media (max-width: 768px) {
  .contact-content { grid-template-columns: 1fr; gap: 1.5rem; justify-content: stretch; }
  .contact-info, .contact-socials { max-width: none; justify-self: stretch; }
  .contact-socials { order: 2; }
  .contact-info { order: 1; }
}

/* =========================
   Education
   ========================= */
.education { padding: 6rem 0; background: var(--bg); }

.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  gap: 2rem; align-items: stretch;
}
@media (max-width: 1200px) { .edu-grid { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); } }
@media (max-width: 768px) { .edu-grid { grid-template-columns: 1fr; } }

.edu-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.25rem;
  padding: 2rem; position: relative; overflow: hidden;
}
.edu-logo {
  width: 64px; height: 64px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 2px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow);
}
.edu-logo img { width: 80%; height: 80%; object-fit: contain; }
.edu-degree { font-size: 1.25rem; font-weight: 800; color: var(--text); line-height: 1.25; }
.edu-school { color: var(--blue); font-weight: 700; margin-top: .35rem; }
.edu-meta { color: var(--muted); margin-top: .35rem; }

/* Hide legacy narrow layout if present */
.education-content { display: none; }

/* =========================
   Projects
   ========================= */
.projects { padding: 6rem 0; background: var(--bg); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.projects.projects--lock .projects-grid { grid-template-columns: repeat(3, minmax(350px, 1fr)); }
@media (max-width: 768px) { .projects.projects--lock .projects-grid { grid-template-columns: 1fr; } }

.project-card { overflow: hidden; }
.project-image {
  height: 200px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--on-blue); font-size: 3rem; overflow: hidden;
}
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-content { padding: 2rem; }
.project-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; color: var(--text); }
.project-description { color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.project-tech { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tech-tag {
  padding: .25rem .75rem; background: rgba(65,127,184,.10); color: var(--blue);
  border-radius: 15px; font-size: .8rem; font-weight: 500; border: 1px solid rgba(65,127,184,.15);
}
.project-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.project-link {
  padding: .5rem 1rem; background: transparent; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 25px; text-decoration: none; font-weight: 500;
  transition: all .3s ease;
}
.project-link:hover { background: var(--blue); color: var(--on-blue); }

/* =========================
   Skills (Modern)
   ========================= */
.skills.skills--modern { padding: 6rem 0; background: var(--bg); }
.skills.skills--modern .skillsx-header { text-align: center; margin-bottom: 2.5rem; }
.skills.skills--modern .skillsx-title { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.skills.skills--modern .skillsx-underline { display:block; width:80px; height:4px; margin:.6rem auto 0; border-radius:2px; background: var(--blue); }

.skills.skills--modern .skillsx-grid {
  display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem;
}
.skills.skills--modern .skillsx-card {
  padding: 1.5rem; position: relative; overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: skills-fade .6s ease-out both;
}
.skills.skills--modern .skillsx-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--blue) 22%, var(--border)); }
.skills.skills--modern .skillsx-head { display:flex; align-items:center; gap: .85rem; margin-bottom: 1rem; }
.skills.skills--modern .skillsx-icon{
  width:52px; height:52px; border-radius:12px; flex:0 0 52px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--on-blue); font-weight:800; font-size:1.2rem; box-shadow: var(--shadow);
}
.skills.skills--modern .skillsx-cat{ font-size:1.1rem; font-weight:800; color: var(--text); }

.skills.skills--modern .skillsx-item { margin:.75rem 0 1rem; }
.skills.skills--modern .skillsx-row { display:flex; align-items:center; justify-content:space-between; transition: transform .25s ease; }
.skills.skills--modern .skillsx-row.is-hovered { transform: translateX(4px); }
.skills.skills--modern .skillsx-name { color: var(--text); font-weight:600; }
.skills.skills--modern .skillsx-level { color: var(--blue); font-weight:700; margin-left: .75rem; }

.skills.skills--modern .skillsx-bar{
  height:8px; width:100%; border-radius:4px; overflow:hidden;
  background: color-mix(in oklab, var(--border) 70%, transparent);
  margin-top:.5rem; position:relative;
}
.skills.skills--modern .skillsx-fill{
  position:absolute; left:0; top:0; bottom:0; width:0%;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius:4px; transition: width 1.2s ease-out;
}

@keyframes skills-fade { from{opacity:0; transform:translateY(12px)} to{opacity:1; transform:translateY(0)} }
@media (max-width: 480px){ .skills.skills--modern .skillsx-title { font-size: 1.9rem; } }
@media (prefers-reduced-motion: reduce){
  .skills.skills--modern .skillsx-card, .skills.skills--modern .skillsx-fill { transition: none !important; animation: none !important; }
}

/* ===== Experience – Timeline (as per your snippet) ===== */

/* Section on light background (matches other sections) */
.experience.experience--timeline { background: var(--bg); color: var(--text); padding: 6rem 0; }

/* Header */
.experience-header { text-align: center; margin-bottom: 3rem; }
.experience-main-title { font-size: 2.2rem; color: var(--text); }

/* Timeline layout */
.tl { position: relative; display: grid; gap: 3rem; padding: .5rem 0 0; }
.tl::before {
  content:""; position:absolute; inset:0 auto 0 50%; width:2px;
  background: var(--border); transform: translateX(-1px);
}

/* Items alternate across the center line */
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.tl-item.left  .tl-card { grid-column: 1; margin-right: 3rem; }
.tl-item.right .tl-card { grid-column: 2; margin-left: 3rem; }

/* Dot on the line */
.tl-dot {
  position: absolute; left: 50%; top: 24px; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--blue) 12%, transparent);
}

/* Cards (no top blue strip; use site card surface) */
.tl-card {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,.10);
  padding: 1.5rem 1.75rem;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tl-card::before { display: none; }
.tl-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in oklab, var(--blue) 22%, var(--border)); }

/* Header / meta */
.tl-head { margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.tl-role   { font-size: 1.3rem; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 0.75rem; }
.tl-meta   { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; color: var(--muted); font-size: .95rem; }
.tl-company-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.company-logo { width: 24px; height: 24px; object-fit: contain; border-radius: 4px; flex-shrink: 0; }
.tl-company { color: var(--blue); font-weight: 700; font-size: 1rem; }
.tl-period  { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* Bullets */
.tl-points { margin-top: 1rem; padding-left: 1.2rem; color: var(--muted); line-height: 1.65; }
.tl-points li { margin: 0.5rem 0; font-size: .95rem; }

/* Responsive collapse */
@media (max-width: 900px) {
  .tl::before { left: 28px; transform: none; }
  .tl-item { grid-template-columns: 36px 1fr; }
  .tl-dot { left: 28px; }
  .tl-item.left .tl-card,
  .tl-item.right .tl-card { grid-column: 2; margin: 0 0 0 1.25rem; }
}
@media (prefers-reduced-motion: reduce){ .tl-card { transition: none; } }