/* =======================================
   RESET & BASE STYLES
======================================= */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #111;
  color: #fff;
}

/* =======================================
   Info Modal
======================================= */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.info-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.3);
  color:#000
}

/* =======================================
   ELEVATOR WRAPPER & INTERIOR
======================================= */
.elevator-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #222; /* Dark outer wrapper */
}

.elevator {
  position: relative;
  width: 100%;
  height: 100%;
  background: #333; /* Inner elevator space */
  z-index: 1;
}

/* =======================================
   ELEVATOR DOORS
======================================= */
.door {
  position: absolute;
  width: 25vw;
  height: 100vh;
  background-image: url('Image/ElevatorDoor.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  transition: transform 1s ease;
  z-index: 2;
}

.left-door {
  left: 25vw; /* Positioned after left wall */
  border-right: 2px solid #333;
}

.right-door {
  right: 25vw; /* Positioned before right wall */
  border-left: 2px solid #333;
}

.open-left {
  transform: translateX(-25vw); /* Slide left door out */
}

.open-right {
  transform: translateX(25vw); /* Slide right door out */
}

/* =======================================
   SIDE WALLS (Left & Right Panels)
======================================= */
.left-wall, .right-wall {
  position: absolute;
  width: 25vw;
  height: 100vh;
  top: 0;
  background-image: url('Image/MahoganyWalls.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Align floor buttons to bottom */
  padding: 1rem;
}

.left-wall {
  left: 0;
}

.right-wall {
  right: 0;
}

/* Utility Class */
.hidden {
  display: none !important;
}

/* =======================================
   POSTERS (Centered on Side Walls)
======================================= */
.left-poster, .right-poster {
  position: absolute;
  top: 10%;
  bottom: 50%;
  width: 300px; /* Fixed width for poster */
  margin: 0 2rem; /* Space from wall edges */
  padding: 1rem;
  background: #fff; /* Poster background */
  border: 10px solid #5c3a21; /* Mahogany-like frame */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); /* Depth */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.5rem;
  color: #222;
  z-index: 2;
}

.right-poster img,
.left-poster img {
  max-width: 100%;
  max-height: 150px;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}


/* =======================================
   FLOOR SELECTION BUTTONS
======================================= */
.floor-buttons {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 0); /* Centered horizontally at 50% height */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 4;
}

.floor-buttons button {
  margin: 8px 0;
  padding: 14px 0;
  width: 50px;
  height: 40px;
  font-size: 1.2rem;
  font-weight: bold;
  background: #fdf5c2; /* Milky yellow-white */
  border: 2px solid #d4c27a;
  border-radius: 8px;
  color: #333;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.floor-buttons button:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}



.floor-buttons button.lit {
  background: #fff8b0;
  box-shadow: 0 0 14px 5px rgba(255, 255, 150, 0.75);
  border-color: #e6d97a;
}


.floor-buttons button:hover {
  background: #fff9d6;
}


/* =======================================
   FLOOR CONTENT AREA
======================================= */
.floor-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: inherit;
}

.floor-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* =======================================
   FLOOR 3 CUSTOM STYLES
======================================= */
.floor3-wrapper {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 40px 20px 120px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.floor3-poster-left {
  flex: 0 0 15%;
  background-color: #f0f0f0;
  border-left: 5px solid #333;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.5;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.floor3-main {
  flex: 1;
  overflow-y: auto;
}

#floor-3 {
  background: #ffffff;
  color: #222;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  border-left: 8px solid #4CAF50;
  border-right: 8px solid #4CAF50;
  padding: 2rem;
  line-height: 1.6;
  overflow-y: auto;
}

#floor-3 h1 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #ccc;
  padding-bottom: 0.5rem;
}

#floor-3 p {
  margin-bottom: 1rem;
}

/* =======================================
   FLOOR 2 CUSTOM STYLES
======================================= */
.crosshair-active {
  cursor: url('Image/crosshair.png') 16 16, crosshair;
}

#floor-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* full screen height */
  background-image: url('Image/Shooting_Gallery.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 100; /* Ensure it's above elevator walls but below modals */
  overflow-y: auto; /* Allow scrolling if content grows */
  padding: 2rem;
}

.project-gallery {
  transform: translate(10%, 75%);
}

.project-row.row-1 {
  margin-left: -40px;
}

.project-row.row-2 {
  margin-left: 50px;
}

.project-row {
  display: flex;
  gap: 2rem;
  overflow: visible;
  padding: 1rem;
  position: relative;
  perspective: 1000px;

}

.row-1 {
  animation: slideRightLeft 6s infinite alternate ease-in-out;
}

.row-2 {
  animation: slideLeftRight 6s infinite alternate ease-in-out;
}

@keyframes slideRightLeft {
   0%   { transform: translateX(-30px); }
  50%  { transform: translateX(30px); }
  100% { transform: translateX(-30px); }

}

@keyframes slideLeftRight {
  0%   { transform: translateX(30px); }
  50%  { transform: translateX(-30px); }
  100% { transform: translateX(30px); }

}


.project-card {
  width: 275px; /* fixed width */
  height: 160px; /* fixed height */
  padding: 0;
  border: none;
  overflow: hidden;
  position: relative;
  z-index: 20;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  backface-visibility: hidden;

}

.image-container {
  flex: 1;
  width: 100%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* prevents distortion */
  display: block;
}

.project-card h3 {
  height: 10%;
  margin: 0;
  padding: 0.3rem;
  font-size: 0.9rem;
  text-align: center;
  background-color: #000;
  color: #fff;
  display: block;
}

/* =======================================
   Card Spin
======================================= */
@keyframes cardSpin {
  0%   { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.project-card.card-spin {
  animation: cardSpin 0.6s ease-in-out;
}

/* Modal Overlay */
#modalImage.spin {
  animation: spinImage 0.6s ease-in-out;
}

@keyframes spinImage {
  0% { transform: rotateY(0deg); opacity: 1; }
  49% { transform: rotateY(90deg); opacity: 0; }
  50% { transform: rotateY(-90deg); opacity: 0; }
  100% { transform: rotateY(0deg); opacity: 1; }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  perspective: 1000px;
}

.modal-content {
  width: 90%;
  max-width: 700px;
  height: 80vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.image-wrapper {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
  pointer-events: none; /* Prevents image from blocking button clicks */
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 2; /* Ensure buttons are above the image */
}

.modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 1rem;
}



.modal-content .text-area {
  flex: 0 0 30%;
  padding: 1rem;
  background: #f0f0f0;
  color: #111;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}
.play-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

.controls-description {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}



.nav-button.left {
  left: 10px;
}

.nav-button.right {
  right: -10px;
}


/* Close Button */
.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  z-index: 10;
}


.shooting-gallery-banner {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 14vh; /* Increased for visibility */
  padding-top: 1vh;
  padding-bottom: 2vh;
  background: #111;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 20;
  overflow: hidden;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.6); /* subtle shadow above banner */
}

#gunWrapper {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  z-index: 999;
  pointer-events: none;
  display: none; /* Start hidden */
}

#gunArm {
  width: 160px;
  transition: transform 0.1s ease-out;
}

.projectile {
  position: fixed;
  width: 8px;
  height: 8px;
  background: red;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.4s linear;
}


@media (max-width: 768px) {
  .project-row {
    overflow: visible; /* Already set, but double-check */
    flex-wrap: wrap;
    justify-content: center;
    animation: none; /* Disable animation on mobile */
  }

  .project-card {
    width: 80vw;
    margin-bottom: 1.5rem;
  }

  .modal-content {
    width: 95%;
    max-width: 90vw;
    max-height: 80vh;
    padding: 1rem;
  }

  .back-button {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
  }
}

/* =======================================
   FLOOR 1 CUSTOM STYLES
======================================= */
/* Floor 1 Contact Layout */
#floor-1 {
  position: absolute;         /* Required for layering */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;              /* Full viewport */
  overflow: hidden;           /* Prevent spillover */
  z-index: 1000;              /* Above elevator background */
  background-color: #f4f4f4;  /* Optional fallback */
}

.contact-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Image/contact_scene_background.jpg');
  background-size: cover;         /* Ensures full coverage */
  background-position: center;    /* Keeps it centered */
  background-repeat: no-repeat;
  z-index: 1;
}


.contact-overlay {
  position: absolute;
  bottom: 51%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: left;
  color: #222; /* Dark marker color */
  padding: 1.5rem 2rem;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.8rem;
  line-height: 1.6;
  max-width: 400px;
}


.contact-overlay2 {
  position: absolute;
  bottom: 5%;
  left: 30%;
  transform: translateX(-50%);
  z-index: 2;                /* Above background */
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  min-width: 320px;             /* Optional: ensures a wider button */
  min-height: 300px;             /* Optional: ensures a taller button */

}

.contact-overlay3 {
  position: absolute;
  bottom: 5%;
  left: 73%;
  transform: translateX(-50%);
  z-index: 2;                /* Above background */
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  min-width: 320px;             /* Optional: ensures a wider button */
  min-height: 300px;             /* Optional: ensures a taller button */
}



/* =======================================
   BACK TO ELEVATOR BUTTON
======================================= */
.back-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%); /* Center horizontally */
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1000; /* Make sure it's above other elements */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;

}


.back-button:hover {
  background: #666;
}

/* =======================================
   SHAKE ANIMATION
======================================= */
@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  20%, 60% { transform: translate(-1px, 0); }
  40%, 80% { transform: translate(1px, 0); }
}

.shake {
  animation: shake 0.5s;
}

/* =======================================
   GUN RECOIL
======================================= */
@keyframes recoil {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-10px) scale(1.05); }
  60%  { transform: translateY(2px) scale(0.98); }
  100% { transform: translateY(0) scale(1); }
}

.recoil {
  animation: recoil 0.2s ease-out;
}



