@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=PT+Serif:ital,wght@0,400;0,700;1,400&family=PT+Serif+Caption&family=PT+Sans+Caption&family=Public+Sans:wght@400;500;600&family=Lora:wght@400;700&family=Bricolage+Grotesque:wght@600;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  overflow-x: hidden;
}

#slides {
  width: 100%;
}

.slide {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
  background: #000;
  scroll-margin-top: 57px;
}

.canvas {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--s, 1));
}

.el {
  position: absolute;
  white-space: normal;
  pointer-events: none;
}

.el img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.badge {
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  transform: scale(0.82);
}

.pill {
  border-radius: 999px;
  display: flex;
  align-items: center;
}

.card {
  border-radius: 40px;
}

.line {
  position: absolute;
  background: currentColor;
}

/* --- nav dots --- */
#navdots {
  position: fixed;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  z-index: 1000;
}
#navdots a {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: block;
  transition: background 0.2s, transform 0.2s;
}
#navdots a:hover, #navdots a.active {
  background: rgba(255,255,255,0.9);
  transform: scale(1.3);
}

#topbar {
  position: fixed;
  top: 54px;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
  z-index: 1000;
}
#topbar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #f6ce54, #349d9d, #609259);
}

/* --- top navigation --- */
#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Public Sans', sans-serif;
}
#topnav > a,
#topnav .dropdown-toggle {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}
#topnav > a:hover,
#topnav .dropdown-toggle:hover {
  border-bottom-color: #fff;
}
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: rgba(15,15,15,0.96);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 190px;
  display: none;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.dropdown-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  padding: 10px 20px;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: rgba(255,255,255,0.1);
}
.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: flex;
}

/* --- clickable hotspots (invisible, added interactivity) --- */
.hotspot {
  cursor: pointer;
  display: block;
  border-radius: 14px;
  transition: background 0.15s, box-shadow 0.15s;
  pointer-events: auto;
}
.hotspot:hover {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.22);
}

/* --- hero cursor tooltip --- */
.cursor-wrap {
  pointer-events: auto;
  cursor: default;
}
.cursor-tip {
  position: absolute;
  left: 100%;
  top: 38%;
  margin-left: 14px;
  white-space: nowrap;
  color: #f6ce54;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  font-size: 20px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cursor-wrap:hover .cursor-tip {
  opacity: 1;
  transform: translateX(0);
}

/* --- back-to-home button (project end pages) --- */
.back-home-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  color: #fff;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.back-home-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.back-home-btn .arrow {
  font-size: 0.85em;
  transition: transform 0.18s ease;
}
.back-home-btn:hover .arrow {
  transform: translateX(-4px);
}

@media (max-width: 700px) {
  #navdots { display: none; }
  #topnav { gap: 22px; }
  #topnav > a, #topnav .dropdown-toggle { font-size: 11px; }
}
