body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0b0c10;
  color: white;
  overflow: hidden;

}

/* =========================
   SCREEN SYSTEM
========================= */
.screen {
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.screen.active {
  display: flex;
}

/* =========================
   HERO
========================= */
#hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

/* =========================
   BUTTONS
========================= */
button {
  padding: 12px 20px;
  border: none;
  background: #4a90e2;
  color: white;
  cursor: pointer;
  border-radius: 8px;
  margin-top: 20px;
  transition: transform 0.2s ease, background 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:active {
  transform: scale(0.99);
}

button:focus {
  outline: 3px solid rgba(74, 144, 226, 0.8);
  outline-offset: 3px;
}

/* =========================
   TOPBAR
========================= */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-sizing: border-box;
  padding-right: 30px;
}

.brand {
  font-weight: bold;
  cursor: pointer;
  opacity: 0.9;
  user-select: none;
}

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-actions button {
  margin-top: 0;
  padding: 8px 14px;
  font-size: 12px;
  white-space: nowrap;
}

/* =========================
   MAP SYSTEM
========================= */
#map {
  position: relative;
  background: radial-gradient(circle at center, #141420 0%, #0b0c10 70%);
  overflow: hidden;
}

/* GRID LAYER */
#map::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(60deg);
  pointer-events: none;
}

/* VIGNETTE + LINES */
#map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)),
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)),
    linear-gradient(rgba(255,255,255,0.05), rgba(255,255,255,0.05)),
    radial-gradient(circle at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);

  background-size:
    2px 200px,
    200px 2px,
    2px 200px,
    cover;

  background-position:
    25% 35%,
    50% 60%,
    70% 45%,
    center;

  background-repeat: no-repeat;
}

/* DIM STATE */
#map.dimmed {
  filter: brightness(0.9) saturate(0.9);
}

/* =========================
   CONTENT SCREEN (FIXED)
========================= */
#content {
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 120px 20px 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* =========================
   MAP CAMERA
========================= */
.map-camera {
  width: 100%;
  height: 100%;
  position: relative;
  transform: scale(1);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

#map.active .map-camera {
  transform: scale(1.03);
}

#map.dimmed .map-camera {
  transform: scale(1.05) translateY(-8px);
}

/* =========================
   PIN SYSTEM (CLEAN)
========================= */
.pin {
  position: absolute;
  padding: 12px 16px;
  background: rgba(31, 31, 46, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;

  font-weight: 500;
  letter-spacing: 0.3px;
  user-select: none;

  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  will-change: transform;
  transform-origin: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  animation: softPulse 3.5s infinite ease-in-out;
}

.pin:hover {
  transform: translateY(-6px) scale(1.08);
  background: #4a90e2;
  box-shadow: 0 0 20px rgba(74,144,226,0.6);
}

.pin:active {
  transform: scale(0.99);
}

.pin:focus {
  outline: 2px solid rgba(74,144,226,0.8);
  outline-offset: 4px;
}

/* ACTIVE PIN */
.pin.active {
  transform: scale(1.19);
  background: rgba(74,144,226,0.15);
  box-shadow: 0 0 22px rgba(74,144,226,0.45),
               0 12px 28px rgba(0,0,0,0.9);
}

/* DIM + ACTIVE COMBO */
#map.dimmed .pin {
  opacity: 0.3;
}

#map.dimmed .pin.active {
  opacity: 1; /* Resetting based on intent (CSS doesn't use 10) */
  transform: scale(1.19);

  /* keep original glass look */
  background: rgba(31, 31, 46, 0.7);

  /* THIS is what you wanted */
  color: rgba(255,255,255,0.99);
  font-weight: 600;

  box-shadow: 0 0 25px rgba(74,144,226,0.7);
}

/* PIN POSITIONS */
.pin:nth-child(2) { top: 30%; left: 20%; }
.pin:nth-child(3) { top: 40%; left: 70%; }
.pin:nth-child(4) { top: 60%; left: 25%; }
.pin:nth-child(5) { top: 65%; left: 60%; }
.pin:nth-child(6) { top: 80%; left: 45%; }

/* =========================
   CONTENT UI
========================= */
.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  width: 220px;
  text-align: left;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.wide {
  max-width: 520px;
  margin: 10px auto 0;
  opacity: 0.8;
  line-height: 1.6;
}

/* CTA */
.cta {
  margin-top: 25px;
  background: #4a90e2;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(74,144,226,0.4);
}

/* =========================
   ANIMATION
========================= */
@keyframes softPulse {
  0%, 100% { box-shadow: 0 10px 25px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 10px 35px rgba(74,144,226,0.25); }
}

/* ===== FINAL MAP CENTER UI (CLEAN, NO CONFLICTS) ===== */

.map-ui {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;

  z-index: 20;
  pointer-events: none;
}

.map-ui h2 {
  font-size: 30px;
  margin: 0;
  opacity: 0.95;
}

/* Only button is clickable */
.map-home {
  pointer-events: auto;
}

/* Default visible */
.nav-actions {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Hide when hero is active (using body state fallback) */
body.hero-mode .nav-actions {
  opacity: 0;
  pointer-events: none;
}

.contact-card {
  text-decoration: none;
  color: white;
}

@media (max-width: 768px) {
  /* 1. Navbar & Logo Fixes */
  .topbar {
    padding: 10px 15px; 
    z-index: 9999; /* Fixes the "not clicking" issue */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo {
    font-size: 1.1rem !important; /* Resizes "The SC Flow" text */
  }

  .nav-actions .btn { 
    font-size: 10px !important; 
    padding: 6px 10px !important; 
    white-space: nowrap; 
    margin-top: 0; /* Fixes button alignment */
  }

  .nav-actions {
    display: flex;
    gap: 7px; 
  }

  /* 2. Title & Layout Fixes */
  .roadmap-title {
    white-space: nowrap;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
  }

  .cards {
    flex-direction: column;
    gap: 16px;
  }

  .card {
    width: 80%;
    max-width: 340px;
    margin: 0 auto;
  }

  /* 3. Global Pin Fixes */
  .pin {
    font-size: 15px;
    padding: 6px 10px;
    position: absolute;
    transform: translate(-50%, -50%); /* Keeps them centered */
    z-index: 10;
  }

  /* 4. Final Mobile Pin Positions */
  .pin:nth-child(2) { top: 30%; left: 20%; } /* Power-Ups */
  .pin:nth-child(3) { top: 30%; left: 80%; } /* Project Files */
  .pin:nth-child(4) { top: 52%; left: 18%; } /* The Maker */
  .pin:nth-child(5) { top: 52%; left: 82%; } /* Feedbacks */
  .pin:nth-child(6) { top: 73%; left: 50%; } /* Say Hello */
}

