@font-face {
  font-family: 'NeonFuture';
  src: url('./fonts/NeonFuture.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background: url("assets/bg.jpg") center / cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ======================
   STAGE
====================== */
.stage {
  width: min(90vw, 90vh);
  aspect-ratio: 1 / 1;
  background: rgba(5, 7, 13, 0.65);
  border-radius: 20px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ======================
   GRID VIEW
====================== */
.grid-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.title {
  text-align: center;
  color: #ffffff;
  letter-spacing: 2px;
  font-size: clamp(40px, 2vw, 20px);
  margin-bottom: 18px;

 font-family: 'NeonFuture', sans-serif;
  font-weight: normal;

   text-shadow:
  0 0 2px #ff4d4d,
  0 0 6px #ff4d4d,
  0 0 12px #ff4d4d,
  0 0 24px #ff4d4d,
  0 0 180px rgba(255, 77, 77, 0.9),
  0 0 240px rgba(255, 77, 77, 0.6);

}

.rooms-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 26px;
  padding: 16px;
}

/* ======================
   ROOM FLOAT + HOVER POP
====================== */

.room {
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;

  animation: float 6s ease-in-out infinite;
  transition: transform 0.4s ease;


}

/* Glow */
.room::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 224, 2),
    rgba(0, 255, 224, 2),
    rgba(0, 255, 224, 2)
  );
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}


/* Glow on hover */
.room:hover::before {
  opacity: 1;
}

/* Room image */
.room img {
  width: 100%;
  max-width: 220px;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

/* Hover pop towards screen */
/* Hover pop happens on IMAGE, not container */
.room:hover img {
  transform: scale(1.8);
}


/* Extra depth */
.room:hover img {
  transform: scale(1.2);
}

/* Floating animation */
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}


/* ======================
   EDITOR VIEW
====================== */
.editor-view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

.editor-canvas {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
image-rendering: auto;
}

/* Room preview */
.room-preview {
  width: 100%;
  z-index: 1;
}

/* ======================
   WALL PLANE (IMPORTANT)
====================== */
.wall-plane {
  position: absolute;
  width: 35%;
  height: 30%;

  /* Position on wall */
  top: 22%;
  left: 59%;
  transform:
    translateX(-50%)
    perspective(900px)
    rotateY(-20deg);

  transform-origin: center;
  z-index: 2;
}

/* Name text */
.name-text {
  position: absolute;
  top: 15%;
  left: 80%;
  text-transform: uppercase;

  font-family: 'NeonFuture', sans-serif;

  transform:
    translateX(-45%)
    skewY(30.5deg)
    scaleX(0.92);

  transform-origin: center;
  color: #eaffff;
  font-size: 50px;
  letter-spacing: 2px;

  /* ✅ CRITICAL FIX (DO NOT CHANGE VALUES ABOVE) */
  white-space: pre;     /* allows <br> only */
  word-break: keep-all;      /* prevents space wrapping */
  overflow-wrap: normal;

  text-align: center;
  line-height: 0.8;
  

text-shadow:
  0 0 2px #00ffe0,
  0 0 6px #00ffe0,
  0 0 12px #00ffe0,
  0 0 24px #00ffe0,
  0 0 120px rgba(0, 255, 224, 9),
  0 0 120px rgba(0, 255, 224, 6);


}



/* DP image */
.dp-preview {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translateX(-50%);
  border-radius: 8px;
  object-fit: cover;
}

/* ======================
   CONTROLS
====================== */
.editor-controls {
  display: flex;
  gap: 10px;
  padding: 12px;
}

.editor-controls input {
  flex: 1;
  padding: 8px;
  background: #0b1220;
  border: 1px solid #1f2a44;
  color: #fff;
}

.editor-controls button {
  background: #00ffe0;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

/* ======================
   FLOAT
====================== */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }

  

  
}

/* ======================
   MADE BY CREDIT
====================== */
.made-by {
  position: absolute;
  right: 12px;
  bottom: 12px;

  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;

  font-family: system-ui, sans-serif;
  z-index: 100;
}

.made-by:hover {
  color: #00ffe0;
}

/* Default glow */
.name-text {
  --glow: #00ffe0;
}

