/* styles/about.css */

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Body & Background Videos === */
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Courier New", monospace;
  color: #fff;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

#bgVideo,
#bgVideoMobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}

.bg-desktop {
  display: block;
}

.bg-mobile {
  display: none;
}

@media screen and (max-width: 480px) {
  .bg-desktop {
    display: none;
  }
  .bg-mobile {
    display: block;
  }
}

/* === Container === */
.container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  text-align: center;
}

/* === Omega Image === */
.omega-image {
  width: 140px;
  height: auto;
  margin-bottom: 20px;
  animation: rotateYLoop 8s linear infinite;
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

/* === About Header === */
.about-header {
  font-family: "Permanent Marker", cursive;
  font-size: 5rem;
  text-transform: uppercase;
  margin-bottom: 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  animation: fadeIn 3s ease-in-out, moveUp 2s ease-in-out infinite alternate;
}

/* Anchor around the header/logo */
.about-header-anchor,
.about-header-anchor:link,
.about-header-anchor:visited,
.about-header-anchor:hover,
.about-header-anchor:focus,
.about-header-anchor:active {
  text-decoration: none;
  color: inherit;
  outline: none;
}

/* === Subtitle === */
.subtitle {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #fff;
  font-family: "Permanent Marker", cursive;
  margin-bottom: 25px;
  text-align: center;
}

/* === Dark Glass Box === */
.overlay {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 30px 25px;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  text-align: left;
}

/* === Section Titles === */
.overlay h2 {
  font-family: "Permanent Marker", cursive;
  font-size: 2rem;
  margin-bottom: 0.5em;
  letter-spacing: 2px;
  text-align: center;
}

/* === Executive Board Table === */
.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1em;
}
.board-table th,
.board-table td {
  border: 1px solid rgba(255, 255, 255, 0);
  padding: 8px;
  text-align: left;
  font-family: "Courier New", monospace;
  background: rgba(255, 255, 255, 0.05);
}
.board-table th {
  background: rgba(255, 255, 255, 0.1);
}

/* === Slideshow Container === */
#slideshow,
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  height: 400px;
  overflow: hidden;
}

/* === Slide Elements === */
.mySlides {
  display: none;
  position: relative;
}

/* === Ensure each image fully fits the container without zooming === */
#slideshow img,
.slideshow-container img {
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Caption text */
.text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* === Prev/Next buttons === */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 12px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 8px;
}
.prev {
  left: 10px;
}
.next {
  right: 10px;
}
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Dots/bullets */
.dots-div span {
  cursor: pointer;
  height: 4px;
  width: 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.dots-div {
  margin-bottom: 40px;
}
.active,
.dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* === Global Animations === */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes moveUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}
@keyframes rotateYLoop {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* === Footer === */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 40px 0;
}

/* === Mobile Overrides === */
@media screen and (max-width: 480px) {
  .container {
    padding: 10px;
  }
  .omega-image {
    width: 100px;
    margin-bottom: 15px;
  }
  .about-header {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .overlay {
    padding: 20px;
  }
  #slideshow,
  .slideshow-container {
    height: auto;
  }
  #slideshow img,
  .slideshow-container img {
    max-height: 60vh;
  }
  .numbertext {
    font-size: 10px;
    padding: 4px 6px;
  }
  .prev,
  .next {
    padding: 8px;
    font-size: 16px;
  }
  .dots-div span {
    height: 6px;
    width: 6px;
  }
  .board-table th,
  .board-table td {
    font-size: 0.9rem;
  }
}
