/* ==========================================================================
   Components — Navbar / Hero / Buttons / Cards / Timeline / Contact / Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Navbar
   -------------------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    padding var(--duration-base) var(--ease-out);

  /* Glassmorphism base */
  background-color: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  padding-block: var(--space-6);
}

.navbar.is-scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--theme_shadow-nav), var(--theme_shadow-soft);
  padding-block: var(--space-4);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--theme_text-primary);
  transition: opacity var(--duration-fast) var(--ease-out);
}

.navbar__logo:hover {
  opacity: 0.8;
  color: var(--theme_text-primary);
}

.navbar__logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.navbar__logo-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--theme_text-primary);
}

/* Nav links (desktop) */
.navbar__links {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme_text-weak);
  text-decoration: none;
  line-height: 1;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--theme_text-primary);
}

/* Hamburger (mobile) */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  padding: var(--space-1);
}

@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }
}

.navbar__hamburger span {
  display: block;
  height: 1.5px;
  background-color: var(--theme_text-primary);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out), opacity var(--duration-base) var(--ease-out);
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.navbar__mobile-menu {
  position: fixed;
  inset: 0;
  top: 0;
  background-color: var(--theme_bg-canvas);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.navbar__mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.navbar__mobile-menu .nav-link {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  font-family: var(--font-display);
  color: var(--theme_text-primary);
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-block: 120px 80px;
}

/* SVG dot grid background */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--theme_border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Contour line accent (level design metaphor) */
.hero__contour {
  position: absolute;
  right: -10%;
  top: 15%;
  width: 70%;
  height: 70%;
  opacity: 0.06;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__contour {
    right: -5%;
    top: 10%;
    width: 55%;
    height: 80%;
  }
}

/* Soft blue glow */
.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(27, 97, 201, 0.08) 0%, transparent 70%);
  top: -100px;
  right: 5%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* Mono label */
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 400;
  color: var(--theme_cta);
  letter-spacing: var(--tracking-mono);
  margin-bottom: var(--space-5);
}

.hero-label__cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--theme_cta);
  border-radius: 1px;
  margin-left: 2px;
  animation: blinkCursor 1s step-end infinite;
}

/* Name */
.hero-name {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  color: var(--theme_text-primary);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-4);
}

/* Title */
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 400;
  color: var(--theme_text-weak);
  line-height: 1.4;
  letter-spacing: 0.08px;
  margin-bottom: var(--space-6);
}

/* Catchphrase */
.hero-catchphrase {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--theme_text-weak);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  max-width: 540px;
  margin-bottom: var(--space-10);
}

/* CTA actions row */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

/* Stat chips */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid var(--theme_border);
}

.hero-meta__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-meta__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--theme_text-primary);
  line-height: 1;
}

.hero-meta__label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--theme_text-weaker);
  letter-spacing: var(--tracking-caption);
  text-transform: uppercase;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  animation: fadeIn 1s var(--ease-out) 1200ms both;
}

.hero__scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--theme_cta), transparent);
  animation: fadeUp 1.5s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme_text-weaker);
}

/* --------------------------------------------------------------------------
   3. Buttons (DESIGN.md §4)
   -------------------------------------------------------------------------- */

/* Primary Blue */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-btn);
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  line-height: 1.25;
  padding: 12px var(--space-6);
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

/* Shimmer sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: btnSweep 0.55s var(--ease-out) forwards;
}

/* Primary */
.btn--primary {
  background-color: var(--theme_cta);
  color: var(--color-white);
  box-shadow: var(--theme_shadow-blue);
}

.btn--primary:hover {
  background-color: var(--theme_cta-hover);
  color: var(--color-white);
  box-shadow: var(--theme_shadow-blue-hover);
}

/* Disabled / Service Ended */
.btn--disabled,
.btn--disabled:hover,
.btn--disabled:active {
  background-color: #eaecef;
  color: var(--theme_text-weaker);
  border-color: var(--theme_border);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.btn--disabled::after {
  display: none;
}

/* Secondary / Outline */
.btn--secondary {
  background-color: var(--color-white);
  color: var(--theme_text-primary);
  border-color: var(--theme_border);
  box-shadow: var(--theme_shadow-soft);
}

.btn--secondary:hover {
  border-color: rgba(27, 97, 201, 0.3);
  color: var(--theme_text-primary);
  box-shadow: var(--theme_shadow-blue);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   4. About Section
   -------------------------------------------------------------------------- */

.about__text {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--theme_text-weak);
  letter-spacing: var(--tracking-body);
  margin-bottom: var(--space-6);
}

.about__socials {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--theme_border);
  color: var(--theme_text-weak);
  background-color: var(--color-white);
  box-shadow: var(--theme_shadow-soft);
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.social-link:hover {
  color: var(--theme_cta);
  border-color: rgba(27, 97, 201, 0.3);
  box-shadow: var(--theme_shadow-blue);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* Profile image placeholder */
.about__image-wrapper {
  position: relative;
}

.about__image-wrapper::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-card) + 2px);
  background: linear-gradient(
    135deg,
    rgba(27, 97, 201, 0.22) 0%,
    rgba(27, 97, 201, 0.04) 60%,
    transparent 100%
  );
  z-index: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.about__image-wrapper:hover::before {
  opacity: 1.5;
}

.about__image-frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--theme_border);
  background-color: var(--theme_bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Code block placeholder (when no photo) */
.about__code-placeholder {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--theme_text-weaker);
  line-height: 2;
  letter-spacing: var(--tracking-mono);
  padding: var(--space-6);
}

.about__code-placeholder .code-keyword { color: var(--theme_cta); }
.about__code-placeholder .code-string  { color: #006400; }
.about__code-placeholder .code-comment { color: var(--theme_text-weaker); opacity: 0.7; }

/* --------------------------------------------------------------------------
   5. Skills Cards
   -------------------------------------------------------------------------- */

.skill-card {
  background-color: var(--color-white);
  border: 1px solid var(--theme_border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--theme_shadow-soft);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}

.skill-card:hover {
  box-shadow: var(--theme_shadow-blue-hover);
  border-color: rgba(27, 97, 201, 0.2);
  transform: translateY(-3px);
}

.skill-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--theme_border);
}

.skill-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background-color: rgba(27, 97, 201, 0.07);
  color: var(--theme_cta);
  flex-shrink: 0;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.skill-card:hover .skill-card__icon {
  background-color: rgba(27, 97, 201, 0.13);
}

.skill-card__icon svg {
  width: 18px;
  height: 18px;
}

.skill-card__category {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--theme_text-primary);
  letter-spacing: 0.04em;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 14px;
  font-weight: 400;
  color: var(--theme_text-weak);
  letter-spacing: var(--tracking-body);
  transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.skill-item:hover {
  transform: translateX(4px);
  color: var(--theme_text-primary);
}

/* Blue square bullet (game pixel feel) */
.skill-item::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background-color: var(--theme_cta);
  border-radius: 1px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.skill-item:hover::before {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   6. Project Cards
   -------------------------------------------------------------------------- */

.project-card {
  background-color: var(--color-white);
  border: 1px solid var(--theme_border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--theme_shadow-soft);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--theme_shadow-blue-hover);
  border-color: rgba(27, 97, 201, 0.2);
}

/* Thumbnail */
.project-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--theme_bg-surface);
}

.project-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

/* Gradient overlay */
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(24, 29, 38, 0.18) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

.project-card:hover .project-thumb::after {
  opacity: 0.7;
}

/* Role badge */
.project-role {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--theme_cta);
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(27, 97, 201, 0.15);
  letter-spacing: 0.04em;
}

/* Card body */
.project-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: var(--text-card);
  font-weight: 600;
  line-height: var(--leading-card);
  letter-spacing: 0.02em;
}

.project-title-link {
  color: var(--theme_text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.project-title-link:hover {
  color: var(--theme_cta);
}

.project-desc {
  font-size: 14px;
  color: var(--theme_text-weak);
  line-height: 1.65;
  letter-spacing: 0.1px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tech tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--theme_text-weak);
  padding: 3px 8px;
  border: 1px solid var(--theme_border);
  border-radius: var(--radius-sm);
  background-color: var(--theme_bg-surface);
  letter-spacing: 0.04em;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.project-card:hover .tech-tag {
  border-color: rgba(27, 97, 201, 0.2);
  color: var(--theme_text-primary);
}

/* View link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--theme_cta);
  letter-spacing: 0.06em;
  transition: gap var(--duration-fast) var(--ease-out);
}

.project-link:hover {
  gap: 10px;
  color: var(--theme_cta-hover);
}

.project-link svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   6.5 Project Carousel
   -------------------------------------------------------------------------- */

.carousel-wrapper {
  position: relative;
  margin-inline: calc(-1 * var(--space-6));
  padding-inline: var(--space-6);
  padding-bottom: var(--space-4);
}

/* Scroll hint fade — right edge (mobile) */
.carousel-wrapper::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: var(--space-4);
  width: 32px;
  background: linear-gradient(to right, transparent, var(--theme_bg-canvas));
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-out);
}

@media (min-width: 768px) {
  .carousel-wrapper::after {
    display: none;
  }
}

.carousel-track {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  padding-block: 8px;
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* Base item width for mobile */
.carousel-track > * {
  scroll-snap-align: start;
  flex: 0 0 85%;
}

@media (min-width: 768px) {
  .carousel-wrapper {
    margin-inline: 0;
    padding-inline: 0;
  }
  .carousel-track > * {
    flex: 0 0 calc(50% - (var(--space-8) / 2));
  }
}

@media (min-width: 1024px) {
  .carousel-track > * {
    flex: 0 0 calc(33.333% - (var(--space-8) * 2 / 3));
  }
}

/* Carousel Controls */
.carousel-controls {
  display: none;
}

@media (min-width: 768px) {
  .carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    margin-top: var(--space-6);
  }
  
  .carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-btn);
    border: 1px solid var(--theme_border);
    background-color: var(--color-white);
    color: var(--theme_text-primary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
  }

  .carousel-btn svg { width: 18px; height: 18px; }

  .carousel-btn:hover:not(:disabled) {
    border-color: rgba(27, 97, 201, 0.3);
    color: var(--theme_cta);
    box-shadow: var(--theme_shadow-soft);
  }

  .carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }
}

/* --------------------------------------------------------------------------
   7. Experience Timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  padding-left: var(--space-10);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--theme_border) 10%,
    var(--theme_border) 90%,
    transparent 100%
  );
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-12);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Dot */
.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-10) + 7px);
  top: 6px;
  width: 10px;
  height: 10px;
  background-color: var(--theme_cta);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--theme_border);
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.timeline-item:hover .timeline-dot {
  box-shadow: 0 0 0 3px rgba(27, 97, 201, 0.25);
}

/* Card */
.timeline-card {
  background-color: var(--color-white);
  border: 1px solid var(--theme_border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
  box-shadow: var(--theme_shadow-soft);
  transition:
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.timeline-item:hover .timeline-card {
  box-shadow: var(--theme_shadow-blue);
  border-color: rgba(27, 97, 201, 0.15);
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--theme_cta);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.timeline-position {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--theme_text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-1);
}

.timeline-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--theme_text-weak);
  letter-spacing: var(--tracking-md);
  margin-bottom: var(--space-4);
}

.timeline-desc {
  font-size: 14px;
  color: var(--theme_text-weak);
  line-height: 1.7;
  letter-spacing: 0.1px;
}

/* Details-card (expandable timeline) */
.details-card {
  list-style: none;
}

.details-card summary {
  display: flex;
  flex-direction: column;
  list-style: none;
  outline: none;
  cursor: pointer;
}

.details-card summary::-webkit-details-marker {
  display: none;
}

.details-card summary::marker {
  content: none;
  display: none;
}

.details-card[open] summary .toggle-icon {
  transform: rotate(180deg);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.timeline-bullets {
  list-style-type: none;
  margin-left: 0;
  margin-bottom: 1.5rem;
  color: var(--theme_text-weak);
  line-height: 1.7;
  font-size: 0.9rem;
}

.timeline-bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.timeline-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--theme_cta);
  font-weight: bold;
}

.timeline-achievements-title {
  color: var(--theme_text-primary);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Achievement highlight */
.timeline-achievement {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-success);
  background-color: rgba(0, 100, 0, 0.07);
  padding: 2px var(--space-2);
  border-radius: var(--radius-xs);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   8. Contact Section
   -------------------------------------------------------------------------- */

.contact-wrap {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.contact__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  color: var(--theme_cta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.contact__heading {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--theme_text-primary);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-6);
}

.contact__sub {
  font-size: var(--text-body-md);
  color: var(--theme_text-weak);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   9. Footer
   -------------------------------------------------------------------------- */

.footer {
  background-color: var(--theme_bg-surface);
  border-top: 1px solid var(--theme_border);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--theme_text-primary);
  letter-spacing: 0.02em;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
}

.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--theme_text-weak);
  letter-spacing: var(--tracking-md);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__nav a:hover {
  color: var(--theme_cta);
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--theme_text-weaker);
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   10. Misc — Section badge / eyebrow
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--theme_cta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  background-color: rgba(27, 97, 201, 0.07);
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(27, 97, 201, 0.15);
}

/* Custom cursor dot */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--theme_cta);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 80ms linear, opacity var(--duration-fast) var(--ease-out);
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(27, 97, 201, 0.5);
  border-radius: var(--radius-full);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 180ms var(--ease-out), width 200ms var(--ease-out),
    height 200ms var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}
/* --------------------------------------------------------------------------
   9. Project Detail Page
   -------------------------------------------------------------------------- */

.project-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--theme_text-weak);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-10);
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.project-back-link:hover {
  color: var(--theme_cta);
  transform: translateX(-4px);
}

.project-back-link svg {
  width: 16px;
  height: 16px;
}

.project-header {
  margin-bottom: var(--space-8);
}

.project-header__meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--theme_cta);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.project-header__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--theme_text-primary);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
}

.project-hero {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--theme_shadow-soft);
  margin-bottom: var(--space-12);
  aspect-ratio: 21/9;
  background-color: var(--theme_bg-surface);
}

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

.detail-story h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--theme_text-primary);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.detail-story h2:first-child {
  margin-top: 0;
}

.detail-story p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--theme_text-weak);
  letter-spacing: var(--tracking-body);
  margin-bottom: var(--space-6);
}

.detail-story strong {
  font-weight: 600;
  color: var(--theme_text-primary);
}

.detail-story ul {
  list-style-type: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
}

.detail-story li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--theme_text-weak);
  margin-bottom: var(--space-2);
}

.detail-code {
  background-color: var(--theme_bg-surface);
  border: 1px solid var(--theme_border);
  border-radius: var(--radius-card);
  padding: var(--space-5);
  margin-block: var(--space-8);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--theme_text-primary);
  overflow-x: auto;
}

.detail-code .code-keyword { color: var(--theme_cta); }
.detail-code .code-string  { color: #006400; }
.detail-code .code-comment { color: var(--theme_text-weaker); }

.detail-sidebar {
  position: sticky;
  top: 100px;
}

.detail-widget {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--theme_border);
}

.detail-widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.detail-widget__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--theme_text-primary);
  margin-bottom: var(--space-4);
}

.detail-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.detail-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-facts__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--theme_text-weaker);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.detail-facts__val {
  font-size: 14px;
  font-weight: 500;
  color: var(--theme_text-primary);
}

.next-project {
  margin-top: var(--space-24);
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.next-project__label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--theme_text-weaker);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.next-project__link {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--theme_text-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.next-project__link:hover {
  color: var(--theme_cta);
}

/* Image credit */
.image-credit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--theme_text-weaker);
  letter-spacing: 0.06em;
  margin-top: var(--space-12);
  padding-top: var(--space-4);
  border-top: 1px solid var(--theme_border);
}
