/* === GLOBAL STYLES === */
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: black;
  color: white;
  font-family: 'Perfect DOS VGA 437', monospace;
  overflow: hidden;
  text-align: center;
}

/* === SPIRAL CANVAS === */
#spiral-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* === CENTER CONTAINER === */
.container {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 200px;
  margin-bottom: 20px;
}

h1 {
  font-size: 3em;
  letter-spacing: 0.1em;
  margin: 0;
}

h2 {
  font-size: 1.3em;
  margin-top: 0.3em;
  opacity: 0.85;
}

/* === MODAL BUTTONS: SVG TRIANGLE STYLE === */
.corner-btn {
  position: absolute;
  width: 100px;
  height: 100px;
  z-index: 5;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.corner-btn:hover {
  transform: scale(1.05);
}

.triangle-svg {
  width: 100px;
  height: 100px;
  display: block;
  pointer-events: auto; /* Enables interaction if needed */
}

.corner-btn {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: auto;
  overflow: visible; /* Allow glow to overflow */
}

.tl { top: 10px; left: 10px; }
.tr { top: 10px; right: 10px; }
.bl { bottom: 10px; left: 10px; }
.br { bottom: 10px; right: 10px; }

.triangle-svg {
  width: 100%;
  height: 100%;
  overflow: visible; /* Needed for filter/glow visibility */
  display: block;
}

/* === CORNER PLACEMENT === */
.tl {
  top: 40px;
  left: 40px;
}

.tr {
  top: 40px;
  right: 40px;
}

.bl {
  bottom: 40px;
  left: 40px;
}

.br {
  bottom: 40px;
  right: 40px;
}

/* === OVERLAY === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.overlay.active {
  opacity: 1;
}

.overlay.hidden {
  pointer-events: none;
}

/* === GHOST TEXT === */
.ghost-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 30px rgba(255,255,255,0.8);
  z-index: 7;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ghost-text.visible {
  opacity: 1;
}

/* === MODAL BASE === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,1);
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  opacity: 1;
}

.modal.hidden {
  pointer-events: none;
}

/* === MODAL CONTENT (DESKTOP) === */
.modal-content {
  background-color: #111;
  color: white;
  padding: 3em;
  border-radius: 10px;
  text-align: left;
  width: 90%;
  max-width: 800px;
  max-height: 85%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  font-size: 1.2em;
  line-height: 1.8em;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2em;
  cursor: pointer;
}

/* === MOBILE FULLSCREEN MODAL === */
@media (max-width: 768px) {
  .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 4em 2em;
    border-radius: 0;
    font-size: 1.4em;
    line-height: 1.9em;
    box-sizing: border-box;
  }

  .modal-content h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
  }

  .modal-content p,
  .modal-content div {
    font-size: 1.4em;
    line-height: 1.9em;
  }

  .close {
    font-size: 3em;
    top: 15px;
    right: 20px;
  }
}/* === GLOBAL STYLES === */
body {
  margin: 0;
  padding: 0;
  background-color: black;
  color: white;
  font-family: 'Perfect DOS VGA 437', monospace;
  overflow: hidden;
  text-align: center;
}

/* === SPIRAL CANVAS === */
#spiral-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* === CENTER CONTAINER === */
.container {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 200px;
  margin-bottom: 20px;
}

h1 {
  font-size: 3em;
  letter-spacing: 0.1em;
  margin: 0;
}

h2 {
  font-size: 1.3em;
  margin-top: 0.3em;
  opacity: 0.85;
}

/* === MODAL BUTTONS (Triangular Glow Buttons — Refined w/ Even Shadow, Rounded Corners, Darker Tone) === */
.triangle {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(180,180,180,0.9), rgba(120,120,120,0.9)); /* darker neutral gray */
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.08),  /* faint perimeter glow */
    0 6px 16px rgba(0, 0, 0, 0.4);       /* soft, even drop shadow for lift */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  pointer-events: all;
  z-index: 5;
  transition: all 0.3s ease;
  border-radius: 16px;  /* smooths outer and inner edges */
  overflow: hidden;     /* ensures rounded edges stay clean */
}

/* === Hover Glow Effect === */
.triangle:hover {
  box-shadow:
    0 0 18px rgba(255, 255, 255, 0.15),
    0 10px 24px rgba(0, 0, 0, 0.45);
  transform: scale(1.05);
}

/* === TRIANGLE POSITIONS + CLIP PATH SHAPES (with inset padding and consistent rounding) === */
.tl {
  top: 40px;
  left: 40px;
  clip-path: url(#triangle-rounded-tl);
}

.tr {
  top: 40px;
  right: 40px;
  clip-path: url(#triangle-rounded-tr);
}

.bl {
  bottom: 40px;
  left: 40px;
  clip-path: url(#triangle-rounded-bl);
}

.br {
  bottom: 40px;
  right: 40px;
  clip-path: url(#triangle-rounded-br);
}

/* === OVERLAY === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 6;
}

.overlay.active {
  opacity: 1;
}

.overlay.hidden {
  pointer-events: none;
}

/* === GHOST TEXT === */
.ghost-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3em;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 0 30px rgba(255,255,255,0.8);
  z-index: 7;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.ghost-text.visible {
  opacity: 1;
}

/* === MODAL BASE === */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,1);
  opacity: 0;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  opacity: 1;
}

.modal.hidden {
  pointer-events: none;
}

/* === MODAL CONTENT (DESKTOP) === */
.modal-content {
  background-color: #111;
  color: white;
  padding: 3em;
  border-radius: 10px;
  text-align: left;
  width: 90%;
  max-width: 800px;
  max-height: 85%;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  font-size: 1.2em;
  line-height: 1.8em;
}

.modal.show .modal-content {
  transform: scale(1);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2em;
  cursor: pointer;
}

/* === MOBILE FULLSCREEN MODAL === */
@media (max-width: 768px) {
  .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 4em 2em;
    border-radius: 0;
    font-size: 1.4em;
    line-height: 1.9em;
    box-sizing: border-box;
  }

  .modal-content h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
  }

  .modal-content p,
  .modal-content div {
    font-size: 1.4em;
    line-height: 1.9em;
  }

  .close {
    font-size: 3em;
    top: 15px;
    right: 20px;
  }
}