/* Root Variables - Color Scheme */

:root {
  /* Primary colors - Tema Merah Putih */
  --bg: #dc2626;
  --bg-color: #dc2626;
  --bg-color2: #b91c1c;
  --text-color: #b91c1c;
  --text-color-darker: #b91c1c;
  --text-color2: #fef2f2;
  /* UI colors */
  --nav-headings: white;
  --overlay-bg: rgba(220, 38, 38, 0.8);
  --accent-color: white;
  --nav-bg: #b91c1c;
  --dropdown-bg: #991b1b;
  --splash-bg: rgb(133, 20, 20);
}

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

html,
body {
  background-color: var(--bg-color);
  color: white;
  width: 100vw;
}

p,
li {
  font-size: 110%;
}

a.btn {
  background-color: var(--bg-color2);
  color: white;
}

/* Layout Components */

.kewa {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.kepan {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Navigation Styles */

.navbarlogo {
  color: white;
}

.navbar-heading a button {
  color: white;
}

div.navbarMain div.navbar-dropdown {
  background-color: var(--nav-bg);
}

div.navbarMain div.navbar-dropdown button:hover {
  background-color: var(--nav-bg-darker);
}

div.navbarMain div.navbar-heading button {
  text-shadow: 0 0.2vh 0.6vh rgba(16, 16, 230, 0.3),
    0 -0.2vh 0.6vh rgba(6, 102, 236, 0.3), 0.3vh 0 0.6vh rgba(0, 98, 255, 0.3),
    -0.3vh 0 0.6vh rgba(255, 255, 255, 0.3);
}

div.navbarMain div.navbar-heading button:hover {
  color: var(--text-color2) !important;
  text-decoration: none;
  animation: hovering 0.2s linear !important;
  text-shadow: 0 0.6vh 1vh rgba(182, 54, 107, 0.8),
    0 -0.6vh 1vh rgba(182, 54, 107, 0.8), 0.4vh 0 1vh rgba(182, 54, 107, 0.8),
    -0.4vh 0 1vh rgba(182, 54, 107, 0.8);
}

span.showNav {
  animation: colorLetters 0.75s linear !important;
}

/* Banner Section */

section.banner {
  --size: 100vw;
  position: relative;
  width: var(--size);
  height: calc(var(--size) / 1.6);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
  background-color: var(--bg-color);
}

section.banner img {
  width: 100vw;
  height: calc(100vw / 1.6);
  object-fit: cover;
}

section.banner .gradient-banner {
  position: absolute;
  z-index: 10;
  left: 0;
  bottom: 0;
  height: 10rem;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--bg-color));
}

/* Content Sections */

section.about {
  display: flex;
  margin: 1rem auto;
  flex-direction: column;
  width: 90%;
  text-align: center;
}

section.about h1 {
  margin-top: 5rem;
  font-weight: 700;
}

section.content {
  display: flex;
  flex-direction: column;
  width: 100vw;
  background-color: var(--bg-color);
  padding: 2rem 5%;
  box-sizing: border-box;
  align-items: center;
  text-align: center;
}

section.content h1 {
  font-weight: 700;
  color: white;
  margin: 0;
}

section.content h2 {
  font-weight: 700;
  color: var(--accent-color);
}

/* List Cards */

section.content .lists {
  margin-top: 50px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  margin-bottom: 5rem;
}

section.content .list {
  width: 200px;
  height: 200px;
  background-color: var(--text-color);
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px #ddbb00;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

section.content .list:hover {
  animation: box-hover 0.5s linear, box-size 0.3s linear;
  scale: 1.05;
  background-color: var(--text-color-darker);
}

section.content .list i {
  font-size: 50pt;
  color: var(--box-list-colour);
}

section.content .list p {
  font-weight: bold;
  color: var(--box-list-colour);
  margin-bottom: 0;
}

.detail {
  display: none;
  position: fixed;
  z-index: 9999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.599);
}

.detail .detail-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.detail .content {
  position: relative;
  width: 70vw;
  height: 350px;
  border-radius: 15px;
  background-color: var(--text-color);
  padding: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
  font-weight: 600;
  box-shadow: 0px 0px 20px white;
}

.detail .content .close {
  position: absolute;
  display: inline;
  color: white;
  cursor: pointer;
  top: 25px;
  right: 30px;
  font-weight: bold;
  font-size: 28px;
  color: var(--box-list-colour);
}

.detail .content .content-desc {
  width: 75%;
  height: 100%;
  overflow: auto;
  color: var(--text-color-darker);
  background-color: rgba(229, 229, 229, 0.327);
  padding: 30px;
  border-radius: 15px;
  color: var(--box-list-colour);
}

.detail .content .content-logo {
  width: 250px;
  height: 250px;
  /* background-color: red; */
  border-radius: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 140px;
  cursor: pointer;
  color: var(--box-list-colour);
}

/* Performance Section */
.performance .gambar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  width: calc(33.333% - 2rem);
  min-width: 300px;
  max-width: 400px;
  transition: transform 0.3s ease-in-out;
  box-shadow: 0px 0px 20px white;
}

.image-container:hover {
  transform: translateY(-10px);
}

.image-container::before {
  content: "";
  display: block;
  padding-top: 177.78%;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem;
}

.image-container:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */

footer {
  margin-top: 0;
  background-color: var(--text-color);
  width: 100vw;
  margin-bottom: 0;
}

footer .gradient {
  background: linear-gradient(var(--bg-color), var(--text-color));
}

footer .column2 a h1,
footer .column3 a h2 {
  margin: 0;
  color: var(--bg-color);
}

footer .copyright {
  color: var(--bg-color);
}

footer .footer-content a:hover {
  color: var(--nav-headings);
  animation: nav-hover-a 0.2s linear;
}

/* Waves Footer */

.waves-footer {
  background-color: var(--bg-color);
}

/* Second Content Section */

section.second-content {
  background-color: var(--bg-color2);
}

/* Utility Classes */

.hidden {
  transform: translateY(100%);
  filter: blur(10px);
}

.show {
  transform: translateY(0);
  filter: blur(0);
  transition: all 0.7s ease-in-out;
}

/* Animations */

@keyframes colorLetters {
  0% {
    color: var(--nav-headings);
    text-shadow: none;
  }

  25% {
    color: rgb(228, 15, 115);
    text-shadow: 0 0.05vh 0.5vh rgba(238, 98, 240, 0.8),
      0 -0.4vh 0.5vh rgba(238, 98, 240, 0.8),
      0.2vh 0 0.5vh rgba(238, 98, 240, 0.8),
      -0.2vh 0 0.5vh rgba(238, 98, 240, 0.8);
  }

  50% {
    color: rgb(172, 8, 84);
    text-shadow: 0 0.3vh 0.5vh rgba(238, 98, 240, 0.8),
      0 -0.3vh 0.5vh rgba(238, 98, 240, 0.8),
      0.2vh 0 0.5vh rgba(238, 98, 240, 0.8),
      -0.2vh 0 0.5vh rgba(238, 98, 240, 0.8);
  }

  75% {
    color: rgb(228, 15, 115);
    text-shadow: 0 0.4vh 0.5vh rgba(238, 98, 240, 0.8),
      0 -0.05vh 0.5vh rgba(238, 98, 240, 0.8),
      0.2vh 0 0.5vh rgba(238, 98, 240, 0.8),
      -0.2vh 0 0.5vh rgba(238, 98, 240, 0.8);
  }

  100% {
    color: var(--nav-headings);
    text-shadow: none;
  }
}

@keyframes hovering {
  0% {
    color: white;
  }

  100% {
    color: var(--text-color2);
  }
}

@keyframes box-hover {
  0% {
    background-color: var(--text-color);
  }

  100% {
    background-color: var(--text-color-darker);
  }
}

@keyframes box-size {
  0% {
    scale: 1;
  }

  100% {
    scale: 1.05;
  }
}

/* Media Queries */

@media screen and (max-width: 1200px) {
  .image-container {
    width: calc(50% - 2rem);
  }
}

@media screen and (max-width: 850px) {
  p,
  li {
    font-size: 100%;
  }

  section.banner .gradient-banner {
    height: 5rem;
  }
}

@media screen and (max-width: 768px) {
  .performance .gambar {
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .image-container {
    width: calc(100% - 2rem);
    max-width: 500px;
  }

  .overlay h5 {
    font-size: 1.25rem;
  }

  .overlay .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 590px) {
  header nav ul.menu-nav {
    background-color: var(--bg-color);
    border-color: white;
    box-shadow: 0px 0px 10px white;
  }

  .detail .content {
    display: flex;
    flex-direction: column-reverse;
    height: 50vh;
  }

  .detail .content .content-desc {
    width: 100%;
  }

  .detail .content .content-logo {
    font-size: 100px;
  }
}

@media screen and (max-width: 480px) {
  .performance .gambar {
    gap: 1rem;
    padding: 1rem;
  }

  .overlay {
    padding: 1rem;
  }

  .overlay h5 {
    font-size: 1.1rem;
  }
}

/* documentations */

.hero-section {
  min-height: 80vh;
  background-color: var(--bg-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-section__header {
  text-align: center;
  padding: 1rem 0;
}

.hero-section__title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
}

.gallery {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.gallery__container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: start;
}

.gallery__item {
  width: calc(33.333% - 1.35rem);
  min-width: 280px;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #c6ebc5;
  box-shadow: 0px 0px 10px white;
}

.gallery__item-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #fbf2cf;
  border-radius: 15px;
}

/* Example background images */
.gallery__item:nth-child(1) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/1.JPG);
}
.gallery__item:nth-child(2) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/2.JPG);
}
.gallery__item:nth-child(3) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/3.jpeg);
}
.gallery__item:nth-child(4) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/4.JPG);
}
.gallery__item:nth-child(5) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/5.JPG);
}
.gallery__item:nth-child(6) .gallery__item-inner {
  background-image: url(/static/valiance/img/documentations/atheria/6.JPG);
}

@media screen and (max-width: 1200px) {
  .gallery__item {
    width: calc(50% - 1rem);
  }

  .hero-section {
    padding: 1.5rem;
  }

  .gallery__container {
    gap: 1.5rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-section {
    padding: 1rem;
  }

  .hero-section__title {
    font-size: 2rem;
  }

  .gallery__container {
    gap: 1rem;
  }

  .gallery__item {
    width: 100%;
    min-width: unset;
  }

  .gallery__item-inner {
    border-width: 3px;
  }
}

@media screen and (max-width: 480px) {
  .hero-section__title {
    font-size: 1.5rem;
  }

  .gallery__item-inner {
    border-width: 2px;
  }
}
