
:root {
  --bg: #f8fafc;
  --bg-gradient-1: rgba(56, 189, 248, 0.08);
  --bg-gradient-2: rgba(34, 197, 94, 0.07);
  --panel: rgba(255, 255, 255, 0.84);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
  --soft: #334155;
  --accent: #0ea5e9;
  --accent-2: #16a34a;
  --chip: rgba(14, 165, 233, 0.1);
  --bar-bg: rgba(148, 163, 184, 0.24);
  --bar-fill: #0ea5e9;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max: 1320px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071224;
    --bg-gradient-1: rgba(56, 189, 248, 0.12);
    --bg-gradient-2: rgba(34, 197, 94, 0.08);
    --panel: rgba(11, 23, 42, 0.72);
    --panel-border: rgba(148, 163, 184, 0.14);
    --text: #e5eefb;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #38bdf8;
    --accent-2: #22c55e;
    --chip: rgba(56, 189, 248, 0.12);
    --bar-bg: rgba(255, 255, 255, 0.16);
    --bar-fill: #0ea5e9;
    --shadow: 0 20px 60px rgba(2, 8, 23, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-gradient-1), transparent 30%),
    radial-gradient(circle at top right, var(--bg-gradient-2), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--panel-border);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
}

.menu-toggle {
  display: none;
  border: none;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  font-size: 1.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.72rem 0.95rem;
  color: var(--soft);
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.5rem;
  align-items: center;
}

.hero-card,
.hero-image-card,
.page-hero-card,
.preview-card,
.info-card,
.award-card,
.project-card,
.cert-card,
.footer-map-card,
.footer-contact-card,
.achievement-side-card,
.storymap-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.hero-card,
.hero-image-card {
  min-width: 0;
}

.hero-card {
  padding: 2.2rem;
  border-radius: var(--radius-xl);
}

.hero-image-card {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}

.profile-image-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto 1rem;
  padding: 8px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.9),
    rgba(34, 197, 94, 0.7)
  );
  box-shadow: 0 20px 40px rgba(56, 189, 248, 0.14);
}

.profile-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-image-info h3 {
  margin: 0;
  font-size: 1.45rem;
}

.hero-image-info p {
  margin: 0.5rem 0 0;
  color: var(--accent);
  font-weight: 600;
  min-height: 24px;
}

.page-hero {
  padding: 4.2rem 0 1.5rem;
}

.page-hero-card {
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2.2rem, 5.2vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.accent-text {
  color: var(--accent);
}

.lead {
  margin: 0;
  max-width: 900px;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary {
  color: #03111f;
  background: linear-gradient(135deg, #67e8f9, #38bdf8);
}

.btn-secondary {
  color: var(--text);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 1rem 0 4rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.4rem;
}

.center-head {
  justify-content: center;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 780px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: var(--chip);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.about-achievement-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.about-block {
  min-width: 0;
}

.achievement-side-card {
  border-radius: var(--radius-xl);
  padding: 1.8rem;
}

.achievement-side-title {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
}

.achievement-side-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.achievement-side-item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.achievement-side-item strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.achievement-side-item span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Skills */
#skills .section-head {
  justify-content: flex-start;
  text-align: left;
}

.skills-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.skills-column {
  padding: 1rem 0;
}

.skills-subtitle {
  margin: 0 0 1.5rem;
  font-size: 1.6rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-align: left;
}

.skill-progress-item {
  margin-bottom: 1.15rem;
}

.skill-progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  color: var(--soft);
  font-size: 1.05rem;
  font-weight: 500;
}

.skill-progress-bar {
  width: 100%;
  height: 20px;
  border-radius: 6px;
  background: var(--bar-bg);
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: var(--bar-fill);
  border-radius: 6px;
}

/* Grid cards */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.preview-card,
.info-card,
.award-card,
.project-card,
.cert-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.preview-card:hover,
.info-card:hover,
.award-card:hover,
.project-card:hover,
.cert-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.18);
}

.preview-content,
.info-card-content,
.project-content,
.cert-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.preview-title,
.info-card-content h3,
.award-card h3,
.project-title,
.cert-title {
  margin: 0 0 0.7rem;
  font-size: 1.18rem;
  line-height: 1.35;
}

.preview-desc,
.info-card-content p,
.award-card p,
.project-desc,
.cert-desc {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
  font-size: 0.98rem;
}

.award-card {
  padding: 1.35rem;
}

.award-icon {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

/* Projects & Certifications default grids */
.projects-grid,
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Two-column layouts for full pages */
.two-column-projects,
.two-column-certs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

/* Larger project cards */
.project-card-lg {
  min-height: 560px;
}

.project-image,
.preview-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid var(--panel-border);
}

.project-image-lg {
  height: 300px;
}

.project-content-lg {
  padding: 1.5rem;
}

.project-card-lg .project-title {
  font-size: 1.28rem;
  line-height: 1.4;
}

.project-card-lg .tag-list {
  margin-top: 1rem;
}

.project-card-lg .project-desc {
  display: block;
  overflow: visible;
}

/* Certification cards: 70/30 layout */
.cert-card-lg {
  display: grid;
  grid-template-rows: 70% 30%;
  height: 560px;
}

.cert-image,
.cert-image-lg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid var(--panel-border);
}

.cert-image-lg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: rgba(7, 18, 36, 0.6);
  padding: 10px;
}

.cert-content-lg {
  padding: 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cert-card-lg .cert-title {
  font-size: 1.22rem;
  line-height: 1.35;
}

.cert-card-lg .cert-desc {
  display: block;
  overflow: visible;
}

.cert-card-lg .tag-list {
  margin-top: 0.9rem;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-image::before,
.cert-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.04),
    rgba(2, 6, 23, 0.42)
  );
  pointer-events: none;
}

.project-badges,
.cert-badges {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.84rem;
  font-weight: 600;
}

.project-meta,
.cert-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 0.8rem;
}

/* StoryMaps slider */
.storymaps-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.storymaps-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
  width: 100%;
}

.storymaps-slider::-webkit-scrollbar {
  display: none;
}

.storymap-card {
  flex: 0 0 calc(33.333% - 0.85rem);
  min-width: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.storymap-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.35);
}

.storymap-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
}

.storymap-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storymap-content {
  padding: 1.2rem;
}

.storymap-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--text);
}

.storymaps-nav {
  width: 46px;
  height: 46px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: 0.25s ease;
  flex-shrink: 0;
}

.storymaps-nav:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

/* Footer */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-map-card,
.footer-contact-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.footer-map-card h3,
.footer-contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.footer-map-card p,
.footer-contact-card p {
  margin: 0 0 1rem;
  color: var(--soft);
  line-height: 1.7;
}

.map-embed {
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(148, 163, 184, 0.06);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: 0.25s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--muted);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.form-status {
  min-height: 22px;
  margin: 0.4rem 0 0;
  color: var(--accent);
  font-size: 0.95rem;
}

.contact-details {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.contact-details p {
  margin: 0.45rem 0;
  color: var(--soft);
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.4rem;
  color: var(--muted);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  transition: 0.25s ease;
}

.social-icon img {
  width: 20px;
  height: 20px;
  object-fit: fill;
}

.social-icon:hover {
  transform: translateY(-4px);
  background: var(--accent);
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 1150px) {
  .hero-layout,
  .preview-grid,
  .footer-grid,
  .about-achievement-layout {
    grid-template-columns: 1fr 1fr;
  }

  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-grid,
  .skills-progress-grid,
  .two-column-projects,
  .two-column-certs {
    grid-template-columns: 1fr 1fr;
  }

  .storymap-card {
    flex: 0 0 calc(50% - 0.65rem);
  }

  .project-card-lg {
    min-height: 540px;
  }

  .project-image-lg {
    height: 280px;
  }

  .cert-card-lg {
    height: 540px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    flex-wrap: wrap;
    padding: 1rem 0;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
  }

  .nav-links.show {
    display: flex;
  }

  .hero-layout,
  .preview-grid,
  .info-grid,
  .awards-grid,
  .footer-grid,
  .skills-progress-grid,
  .about-achievement-layout,
  .achievement-side-grid,
  .two-column-projects,
  .two-column-certs {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero-card,
  .hero-image-card,
  .page-hero-card,
  .achievement-side-card {
    padding: 1.25rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-image {
    height: 320px;
  }

  .container {
    width: min(calc(100% - 1.4rem), var(--max));
  }

  .project-image,
  .preview-image {
    height: 220px;
  }

  .project-image-lg {
    height: 240px;
  }

  .project-card-lg {
    min-height: auto;
  }

  .cert-card-lg {
    grid-template-rows: 62% 38%;
    height: 520px;
  }

  .cert-content-lg {
    padding: 1rem 1.1rem;
  }

  .storymaps-slider-wrap {
    gap: 0.6rem;
  }

  .storymap-card {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .storymap-image {
    height: 200px;
  }

  .storymaps-nav {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
/* ── Vertical Timeline – Work Experience ─────────────────────────── */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--panel-border);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--bg);
  z-index: 1;
  transition: border-color 0.2s;
}

.timeline-dot.active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.timeline-card {
  display: block;
  background: var(--panel);
  border: 1.5px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

@media (prefers-color-scheme: dark) {
  .timeline-card {
    border-color: rgba(148, 163, 184, 0.25);
    background: rgba(15, 30, 55, 0.85);
  }
  .timeline::before {
    background: rgba(148, 163, 184, 0.25);
  }
}

.timeline-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.timeline-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.timeline-job-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.timeline-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  background: var(--chip);
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline-badge.present {
  background: rgba(34, 197, 94, 0.12);
  color: var(--accent-2);
}

.timeline-company-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.timeline-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.timeline-location {
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 600px) {
  .timeline {
    padding-left: 28px;
  }

  .timeline-dot {
    left: -21px;
  }

  .timeline-card-header {
    flex-direction: column;
    gap: 6px;
  }

  .timeline-badge {
    align-self: flex-start;
  }
}

/* ── Apps & Tools Cards ──────────────────────────────────────────── */
.tool-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tool-card-placeholder {
  opacity: 0.55;
}

.tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tool-icon {
  font-size: 1.4rem;
}

.tool-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.tool-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--chip);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.tool-card-body {
  flex: 1;
}

.tool-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.65;
  margin: 0;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0.75rem;
  border-top: 1px solid var(--panel-border);
  flex-wrap: wrap;
  margin-top: auto;
}

.tool-link-btn {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  transition: background 0.2s, color 0.2s;
}

.tool-link-btn:hover {
  background: var(--chip);
}

.tool-type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-2);
}

/* ── 3D Model Cards ──────────────────────────────────────────────── */
.model-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}

.model-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.model-card-placeholder {
  opacity: 0.55;
}

.model-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.model-video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.model-placeholder-wrap {
  aspect-ratio: 16 / 9;
  background: var(--chip);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.model-placeholder-icon {
  font-size: 2.5rem;
}

.model-placeholder-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

.model-card-body {
  padding: 1.1rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.model-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.model-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.model-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--chip);
  color: var(--accent);
  border: 1px solid rgba(14, 165, 233, 0.2);
  white-space: nowrap;
}

.model-desc {
  font-size: 0.875rem;
  color: var(--soft);
  line-height: 1.65;
  margin: 0;
}
