:root {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(34, 211, 238, 0.14);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fbff;
  --text-soft: #c7d6e7;
  --text-muted: #8da1b8;
  --accent: #72e6f6;
  --accent-2: #b9a0ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(185, 160, 255, 0.12), transparent 24%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--bg);
}

a {
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(96px);
  pointer-events: none;
}

.page-glow-left {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -120px;
  background: rgba(37, 207, 235, 0.12);
}

.page-glow-right {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -180px;
  background: rgba(185, 160, 255, 0.09);
}

.glass-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.glass-card {
  background: var(--panel);
}

.hero-card {
  padding: 2rem;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(114, 230, 246, 0.22);
  border-radius: 999px;
  background: rgba(114, 230, 246, 0.12);
  color: #d7fbff;
  font-size: 0.95rem;
}

.hero-title {
  max-width: 980px;
  line-height: 1.04;
}

.text-gradient {
  background: linear-gradient(90deg, #72e6f6 0%, #ffffff 45%, #cab8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy,
.section-text,
.project-description,
.project-impact,
.project-extra-card,
.tag-chip,
.stack-chip,
.channel-text {
  color: var(--text-soft);
}

.hero-copy,
.section-text {
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 850px;
}

.stat-card {
  height: 100%;
  padding: 1.35rem;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
}

.stat-card.featured {
  background: var(--panel-strong);
  border-color: rgba(114, 230, 246, 0.22);
}

.stat-value {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.stat-label {
  margin-top: 0.6rem;
  color: var(--text-soft);
}

.section-gap {
  margin-top: 5rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.8rem;
  color: rgba(114, 230, 246, 0.75);
}

.section-title {
  font-weight: 800;
  line-height: 1.1;
  max-width: 900px;
  margin-top: 0.9rem;
  font-size: clamp(2.15rem, 5vw, 3.5rem);
}

.timeline-wrap {
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(114, 230, 246, 0.8), rgba(255, 255, 255, 0.2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 1rem;
}

.timeline-node {
  position: absolute;
  top: 2rem;
  left: 50%;
  width: 1.35rem;
  height: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid rgba(114, 230, 246, 0.45);
  background: rgba(7, 17, 31, 1);
  box-shadow: 0 0 0 8px rgba(7, 17, 31, 1), 0 0 28px rgba(114, 230, 246, 0.5);
  z-index: 2;
}

.timeline-node::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.project-card {
  padding: 1.3rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
  box-shadow: var(--shadow);
  height: 100%;
}

.project-card-highlight {
  border-color: rgba(114, 230, 246, 0.25);
  background:
    radial-gradient(circle at top left, rgba(114, 230, 246, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04)),
    rgba(7, 17, 31, 0.82);
}

.project-card-foundation {
  border-color: rgba(185, 160, 255, 0.2);
  background:
    radial-gradient(circle at top left, rgba(185, 160, 255, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
}

.project-card-article {
  border-color: rgba(255, 190, 92, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 190, 92, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
}

.project-card-journey {
  border-color: rgba(114, 230, 246, 0.22);
  background:
    radial-gradient(circle at top left, rgba(114, 230, 246, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
}

.project-card-oracle {
  border-color: rgba(185, 160, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(185, 160, 255, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
}

.project-card-quest {
  border-color: rgba(255, 190, 92, 0.22);
  background:
    radial-gradient(circle at top left, rgba(255, 190, 92, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035)),
    rgba(7, 17, 31, 0.78);
}

.project-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 1rem;
  object-fit: cover;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.quest-gallery {
  max-width: 360px;
  margin: 0 auto 1rem;
}

.quest-gallery-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1.1rem;
  background: rgba(0, 0, 0, 0.24);
}

.quest-gallery-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quest-gallery-image-crop {
  object-fit: cover;
}

.quest-gallery-image-control {
  object-position: center 74%;
}

.quest-gallery-image-electronics {
  object-position: center 56%;
}

.quest-gallery-image-workbench {
  transform: scale(1.3);
}

.quest-gallery-image[hidden] {
  display: none;
}

.quest-gallery-arrow,
.quest-gallery-pause {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(7, 17, 31, 0.76);
  color: var(--text-main);
  cursor: pointer;
}

.quest-gallery-arrow:hover,
.quest-gallery-arrow:focus-visible,
.quest-gallery-pause:hover,
.quest-gallery-pause:focus-visible {
  background: rgba(34, 211, 238, 0.24);
  color: var(--text-main);
}

.quest-gallery-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  transform: translateY(-50%);
}

.quest-gallery-prev {
  left: 0.65rem;
}

.quest-gallery-next {
  right: 0.65rem;
}

.quest-gallery-footer,
.quest-gallery-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.quest-gallery-footer {
  justify-content: space-between;
  min-height: 2.7rem;
  color: var(--text-muted);
  font-size: 0.83rem;
}

.quest-gallery-actions {
  flex-shrink: 0;
}

.quest-gallery-pause {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
}

.quest-gallery:not(.is-ready) .quest-gallery-arrow,
.quest-gallery:not(.is-ready) .quest-gallery-pause {
  display: none;
}

.project-logo {
  display: block;
  width: 136px;
  max-width: 38%;
  height: auto;
  padding: 0.6rem;
  object-fit: contain;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.project-year-badge {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6fbff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-title {
  margin-top: 0;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: 800;
  line-height: 1.15;
}

.project-subtitle {
  margin-top: 0.35rem;
  color: var(--text-muted);
}

.project-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid rgba(114, 230, 246, 0.2);
  background: rgba(114, 230, 246, 0.12);
  color: #d9fbff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.project-icon i {
  line-height: 1;
}

.project-avatar,
.channel-avatar {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.project-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
}

.channel-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
}

.project-icon-orb {
  border-color: rgba(185, 160, 255, 0.34);
  background: rgba(185, 160, 255, 0.16);
  font-size: 1.6rem;
}

.type-chip,
.tag-chip,
.stack-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}

.type-chip {
  margin-top: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  background: rgba(3, 10, 19, 0.45);
  color: #d6dfeb;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-impact {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #f4fbff;
}

.project-description {
  margin-top: 0.75rem;
  line-height: 1.65;
}

.project-extra-card,
.channel-card {
  padding: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(3, 10, 19, 0.56);
  line-height: 1.65;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 230, 246, 0.18);
  background: rgba(114, 230, 246, 0.08);
  color: #ddfbff;
  font-size: 0.88rem;
  line-height: 1.2;
}

.project-link:hover {
  color: #07111f;
  background: var(--accent);
}

.stack-label {
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.tag-chip,
.stack-chip {
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.stack-chip {
  border-color: rgba(114, 230, 246, 0.2);
  background: rgba(114, 230, 246, 0.12);
  color: #d7fbff;
}

.channel-name {
  font-weight: 700;
  color: var(--text-main);
}

.channel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.channel-name a {
  color: #f8fbff;
}

.channel-name a:hover {
  color: var(--accent);
}

.channel-text {
  margin: 0.6rem 0 0;
  line-height: 1.7;
}

.footer-card {
  padding: 2rem;
}

.footer-copy {
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-contact-button {
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  border-color: rgba(114, 230, 246, 0.5);
  background: rgba(114, 230, 246, 0.12);
  color: var(--text-main);
}

@media (max-width: 991.98px) {
  .hero-card,
  .footer-card,
  .project-card {
    border-radius: 1.6rem;
  }

  .timeline-item {
    margin-bottom: 0.85rem;
  }
}

@media (max-width: 767.98px) {
  .hero-card {
    padding: 1.4rem;
  }

  .section-gap {
    margin-top: 3.5rem;
  }

  .timeline-node {
    display: none;
  }

  .timeline-wrap {
    padding-left: 0;
  }

  .project-card {
    padding: 1.05rem;
  }

  .hero-copy,
  .section-text {
    font-size: 1rem;
    line-height: 1.8;
  }

  .stat-card {
    padding: 1.05rem;
  }

  .stat-value {
    font-size: clamp(1.28rem, 6vw, 1.55rem);
  }

  .stat-label {
    font-size: 0.92rem;
  }
}
