/* ========== GLOBAL RESET & BASE ========== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background: #000 url('Images/Background6.jpg') top center / cover fixed;
  font-family: 'VT323', monospace, Courier;
  color: #c8cdd1;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

/* ========== TYPOGRAPHY ========== */
@font-face {
  font-family: 'VT323';
  src: url('VT323-Regular.ttf') format('truetype');
}

p, h1, h2, h3 {
  color: #c8cdd1;
  text-shadow: 1px 1px 0 #000;
}

h1, h2, h3 {
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ========== HEADER ========== */
header {
  text-align: center;
  background: url('Images/Header4.gif') center/cover no-repeat;
  font-family: 'VT323', monospace;
  color: #dce3f0;
  text-shadow: 2px 2px 0 #000, 0 0 6px #111;
  border-bottom: 3px solid #2a3a4a;
  height: 35vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(28px, 5vw, 60px);
  filter: contrast(90%) brightness(90%);
}

/* ========== GIF CONTAINER ========== */
.gif-container {
  width: 100vw;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  background: #0b0f18;
  border-top: 2px solid #2a3a4a;
  border-bottom: 2px solid #2a3a4a;
}

.gif-container img {
  max-height: 100%;
  border: 2px solid #2a3a4a;
}

/* ========== BOX ========== */
.box {
  box-sizing: border-box;
  border: 2px solid #2a3a4a;
  background: rgba(10, 15, 25, 0.85);
  padding: 40px;
  margin: 20px auto;
  width: 700px;
  max-width: 95%;
  box-shadow: inset 0 0 10px #000, 0 0 15px rgba(0,0,50,0.3);
  font-size: 15px;
}

/* ========== VIDEO FRAME ========== */
.video-frame-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #000;
  border: 2px solid #2a3a4a;
}

.video-frame {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #10141e;
  border: 2px solid #2a3a4a;
  padding: 20px;
  border-radius: 4px;
  color: #c8cdd1;
}

/* ========== BUTTONS ========== */
.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.button, .clickedbutton, .open-btn, .scroll-button {
  font-family: "VT323", monospace;
  color: #c8cdd1;
  cursor: pointer;
  user-select: none;
  border-radius: 2px;
  letter-spacing: 1px;
  font-size: 16px;
  box-sizing: border-box;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.button {
  background: #1a2230;
  border: 2px solid #2a3a4a;
  padding: 10px 20px;
}

.button:hover {
  background: #25344a;
  border-color: #88aaff;
  color: #e0e6ff;
}

.clickedbutton {
  background: #2b2f3a;
  border: 2px solid #3a4a5a;
  padding: 10px 20px;
  color: #aab0bb;
}

.open-btn {
  display: block;
  width: 220px;
  height: 35px;
  line-height: 35px;
  margin: 10px auto 0;
  background: #161c28;
  border: 2px solid #2a3a4a;
  text-align: center;
  text-decoration: none;
  color: #c8cdd1;
}

.open-btn:hover {
  background: #25344a;
  color: #e0e6ff;
}

.scroll-button {
  position: fixed;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  background: #1b2330;
  border: 2px solid #2a3a4a;
  padding: 10px 20px;
  color: #aab0bb;
}

.scroll-button:hover {
  background: #25344a;
  color: #e0e6ff;
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item,
.image-wrapper {
  position: relative;
  overflow: hidden;
  border: 2px solid #2a3a4a;
  background: #0b0f18;
}

.gallery-item img,
.image-wrapper img {
  width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img,
.image-wrapper:hover img {
  transform: scale(1.03);
  filter: brightness(85%);
}

.caption-panel {
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 25, 0.95);
  color: #c8cdd1;
  padding: 15px;
  font-size: 14px;
  overflow-y: auto;
  transition: left 0.3s ease;
}

.image-wrapper:hover .caption-panel {
  left: 0;
}

.gallery-item {
  margin-bottom: 20px;
}

/* ========== SIDEBARS ========== */
.sidebar {
  position: fixed;
  top: 0;
  width: 280px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  background: rgba(5, 5, 10, 0.85);
  z-index: 10;
}

.left-sidebar { left: 0; }
.right-sidebar { right: 0; }

.sidebar img {
  width: 100%;
  border: 2px solid #2a3a4a;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.sidebar img:hover {
  transform: scale(1.03);
  filter: brightness(85%);
}

@media (max-width: 1580px) {
  .left-sidebar,
  .right-sidebar {
    display: none;
  }
}
