/* GLOBAL */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #021728, #04304d, #03283a);
  color: #dffaff;
  overflow-x: hidden;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  background: rgba(10,20,30,0.45);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,255,255,0.15);
  z-index: 5000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo { height: 46px; filter: drop-shadow(0 0 10px #00eaff); }
.header-title { font-size: 22px; color: #00eaff; }

.header-buttons {
  display: flex;
  gap: 20px;
  margin-right: 80px;
}

.pdf-btn, .back-btn {
  padding: 10px 18px;
  background: rgba(0,255,255,0.12);
  border: 1px solid #00eaff;
  border-radius: 8px;
  color: #00eaff;
  text-decoration: none;
}

/* HERO */
.hero {
  padding-top: 160px;
  text-align: center;
  padding-bottom: 100px;
}

.hero-title {
  font-size: 5rem;
  color: #00eaff;
  text-shadow: 0 0 45px #00eaff, 0 0 90px #00eaff;
}

.hero-subtitle {
  font-size: 1.4rem;
  opacity: 0.8;
}

/* HUD */
#hud-left {
  position: fixed;
  top: 200px;
  left: 40px;
  padding: 16px;
  width: 190px;
  font-size: 20px;
  background: rgba(0,0,0,0.35);
  border: 1px solid #00eaff66;
  border-radius: 12px;
}

.hidden { display: none; }

/* CANVAS */
.canvas-section { height: 70vh; }
#p5-container { width: 100%; height: 100%; }

/* BUTTON BELOW CANVAS */
.case-btn-wrap {
  text-align: center;
  margin-top: 40px;
}
.case-btn {
  padding: 14px 30px;
  background: #00eaff;
  color: #01222e;
  border-radius: 10px;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* MODAL (fixed) */
.modal {
  display: none; /* FIXED: modal hidden at page load */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 6000;

  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #04101f;
  padding: 35px;
  width: 85%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 14px;
  color: #c4faff;
  box-shadow: 0 0 35px #00eaff, 0 0 60px #00c0ff55;

  animation: popup 0.25s ease-out;
}

@keyframes popup {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.close {
  float: right;
  font-size: 28px;
  color: #00eaff;
  cursor: pointer;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 40px;
  color: #00eaff;
  font-size: 15px;
}
