@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --bg: #080b10;
  --panel: #10151d;
  --panel-2: #151c26;
  --line: #263241;
  --text: #edf4f2;
  --muted: #8c9aa7;
  --lime: #c8f25b;
  --cyan: #5de3e7;
  --orange: #ff9e66;
  --pink: #f079b7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 78% -10%, #152633 0, transparent 32rem), var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  min-height: 100vh;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a {
  color: inherit;
  text-decoration: none;
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.1rem;
}
.brand span {
  color: var(--lime);
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a {
  font-family: "DM Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 9px 13px;
  border: 1px solid transparent;
  transition: 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}
.nav-links a.active {
  color: var(--lime);
}
.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 78px 28px 100px;
}
.eyebrow {
  font:
    500 0.72rem "DM Mono",
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lime);
  margin: 0 0 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: end;
  margin-bottom: 42px;
}
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
  max-width: 800px;
  margin: 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.lede {
  color: var(--muted);
  line-height: 1.7;
  max-width: 330px;
  margin: 0 0 6px;
}
.card {
  background: linear-gradient(
    145deg,
    rgba(21, 28, 38, 0.94),
    rgba(11, 15, 21, 0.96)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
}
.game-shell {
  padding: 14px;
}
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 14px;
}
.game-top .label {
  font:
    500 0.7rem "DM Mono",
    monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.score {
  color: var(--lime);
  font:
    500 1rem "DM Mono",
    monospace;
}
.canvas-wrap {
  position: relative;
  background: #05070a;
  border-radius: 10px;
  overflow: hidden;
}
.canvas-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(200, 242, 91, 0.025) 50%);
  background-size: 100% 4px;
}
.game-canvas {
  width: 100%;
  display: block;
  aspect-ratio: 2/1;
}
.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 10, 0.78);
  text-align: center;
}
.game-overlay[hidden] {
  display: none;
}
.game-overlay h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
  letter-spacing: -0.05em;
}
.game-overlay p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.9rem;
}
.btn {
  border: 0;
  background: var(--lime);
  color: #10150b;
  font:
    700 0.78rem Manrope,
    sans-serif;
  padding: 12px 18px;
  border-radius: 99px;
  cursor: pointer;
  transition:
    transform 0.2s,
    filter 0.2s;
}

.btn-nav {
  border: 0;
  background: var(--lime);
  color: #10150b;
  font:
    700 0.78rem Manrope,
    sans-serif;
  padding: 12px 18px;
  border-radius: 99px;
  position: relative;
  bottom: 12px;
  cursor: pointer;
  transition:
    transform 0.2s,
    filter 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.hint {
  font:
    400 0.7rem "DM Mono",
    monospace;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 2px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 18px;
}
.section-head h2 {
  font-size: 1.6rem;
  letter-spacing: -0.05em;
  margin: 0;
}
.section-head p {
  font:
    400 0.72rem "DM Mono",
    monospace;
  color: var(--muted);
}
/* Star Wars */
.stars {
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #18222c 0, #050608 63%);
}
.stars:before,
.stars:after {
  content: "";
  position: absolute;
  inset: 76px 0 0;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(#fff 1px, transparent 1px);
  background-size:
    97px 113px,
    151px 177px;
  background-position:
    13px 31px,
    61px 87px;
  opacity: 0.35;
}
.crawl-stage {
  position: relative;
  z-index: 0;
  height: calc(100vh - 76px);
  perspective: 360px;
  overflow: hidden;
}
.crawl {
  position: absolute;
  top: 62%;
  left: 50%;
  width: min(760px, 84vw);
  transform: translateX(-50%) rotateX(24deg);
  transform-origin: 50% 100%;
  animation: crawl 54s linear;
  
  color: #ffe14f;
  text-align: center;
  text-transform: uppercase;
}
.crawl h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: 0.1em;
  margin: 0 0 46px;
}
.crawl p {
  font-size: clamp(1.1rem, 2.3vw, 1.7rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.11em;
  margin: 0 0 50px;
}
.crawl .chapter {
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}
@keyframes crawl {
  0% {
    transform: translate(-50%, 0) rotateX(24deg);
  }
  100% {
    transform: translate(-50%, -220%) rotateX(24deg);
  }
}
.crawl-controls {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  color: var(--muted);
  font:
    400 0.68rem "DM Mono",
    monospace;
  letter-spacing: 0.08em;
}
.crawl-controls button {
  background: none;
  border: 1px solid #46515c;
  color: var(--muted);
  border-radius: 99px;
  padding: 8px 13px;
  margin-left: 8px;
  cursor: pointer;
}
.crawl-controls button:hover {
  color: var(--text);
  border-color: var(--lime);
}
/* Gantt */
.page-title {
  max-width: 760px;
  margin-bottom: 40px;
}
.page-title h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  margin: 0 0 20px;
}
.page-title h1 em {
  color: var(--cyan);
  font-style: normal;
}
.page-title p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}
.gantt-card {
  padding: 22px;
  padding-bottom: 150px;
  overflow-y: auto;
  overflow-x: auto;
}
.gantt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.gantt-toolbar strong {
  font-size: 1.05rem;
}
.gantt-toolbar span {
  font:
    400 0.7rem "DM Mono",
    monospace;
  color: var(--muted);
}
.gantt {
  min-width: 800px;
  display: grid;
  grid-template-columns: 190px 1fr;
}
.gantt-head {
  display: grid;
  grid-template-columns: repeat(35, 1fr);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.gantt-head span {
  text-align: center;
  font:
    400 0.62rem "DM Mono",
    monospace;
  color: var(--muted);
}
.task-labels {
  padding-top: 18px;
}
.task-row-label {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}
.task-row-label small {
  display: block;
  color: var(--muted);
  font:
    400 0.62rem "DM Mono",
    monospace;
  margin-top: 3px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}
.timeline {
  position: relative;
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: calc(100% / 35) 100%;
  padding-top: 18px;
}
.task-line {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}
.bar {
  position: absolute;
  top: 17px;
  height: 22px;
  border-radius: 3px;
  background: var(--cyan);
  box-shadow: 0 5px 16px rgba(93, 227, 231, 0.15);
  font:
    500 0.62rem "DM Mono",
    monospace;
  color: #071114;
  padding: 5px 9px;
  white-space: nowrap;
  /* overflow: hidden; */
}
/* .bar:after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: rgba(255, 255, 255, 0.34);
} */
.bar span {
  position: relative;
  z-index: 1;
}
.bar.orange {
  background: var(--orange);
}
.bar.pink {
  background: var(--pink);
}

.end-bar {
    border-radius: 3px 0 0 3px;
}

.legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font:
    400 0.68rem "DM Mono",
    monospace;
  margin-top: 20px;
}
.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 5px;
  background: var(--cyan);
}
.legend i.o {
  background: var(--orange);
}
.legend i.p {
  background: var(--pink);
}
footer {
  max-width: 1200px;
  margin: auto;
  padding: 22px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font:
    400 0.66rem "DM Mono",
    monospace;
  color: var(--muted);
}
@media (max-width: 720px) {
  .nav {
    padding: 0 16px;
  }
  .nav-links a {
    padding: 8px 6px;
    font-size: 0.63rem;
  }
  .brand {
    font-size: 0.95rem;
  }
  .wrap {
    padding: 52px 16px 70px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }
  .lede {
    max-width: 500px;
  }
  .gantt-card {
    padding: 14px;
  }
  .crawl {
    top: 55%;
  }
}

.lien {
    color: lightblue;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black; /* Add dots under the hoverable text */
  cursor: pointer;
}

/* Tooltip text */
.tooltiptext {
  visibility: hidden; /* Hidden by default */
  width: 250px;
  background-color: black;
  color: #ffffff;
  text-align: left;
  white-space: normal; 
  padding: 5px;
  border-radius: 6px;
  position: relative;
  top: -25px;
  right: 220px;
  z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
}


/* STAR WARS */
.stars-wrapper{
        background: rgb(20,20,20);
        overflow: hidden;
        margin: 50% 0 0 0 ;
        position: relative;
    }

    .star-wrapper::after {
        content: '';
        position: fixed;
        top: 76px;
        width: 100%;
        height: 50%;

        background: linear-gradient(180deg, rgba(20,20,20,1) 40%, rgba(20,20,20,0) 100%) ;
    }
    .wrapper {
        display: flex;
        height: 100vh;
        width: 60%;
        margin: 0 auto;
        perspective: 450px;
    }

    .scroll-text {
        color: #ffc909;
        font-size: 3vw;
        line-height: 1.5em;
        font-weight: bold;
        text-align: justify;
        position: relative;
        top:100vh;
        animation: scroll 60s linear forwards;
    }

    @keyframes scroll {
        from {top: 100vh; transform: translateZ(0px) rotateX(30deg)}
        to { top: -7500px; transform: translateZ(-4000px) rotateX(31deg)}
    }
