@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
  font-family: "FontAwesome";
  src: url("fontawesome-webfont.woff2") format("woff2"),
    url("fontawesome-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  background: radial-gradient(circle at top center, #ff0000 20%, #000 60%);
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: white;
  font-family: "Barlow", sans-serif;
}

img {
  width: 100%;
}

a {
  cursor: pointer;
  text-decoration: none;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #b11116 0%, #ed1c24 50%, #f7931e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-block {
  background: linear-gradient(90deg, #b11116 0%, #ed1c24 50%, #f7931e 100%);
  color: white;
}

#CONTAINER {
  background: black;
  margin: 0 auto;
  padding: 0;
  max-width: 1000px;
}

.shine {
  width: 40px;
  height: 100%;
  max-height: 1000px;
  position: absolute;
  top: 0;
  z-index: 2000;
}

.sidebar {
  width: 200px;
  position: fixed;
  height: 100%;
  background: black;
  border-right: 2px solid red;
  z-index: 1000;
}

.logo-container {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-container img {
  width: 150px;
  height: 90px;
}

.nav-btn {
  width: 100%;
  height: 70px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  background: black;
  color: white;
  font-size: 18px;
  font-weight: bold;
  line-height: 70px;
  text-align: center;
  transition: background 0.3s ease;
  display: block;
}

.nav-btn:hover,
.active {
  background: linear-gradient(
    90deg,
    #3e0000 0%,
    #b11116 40%,
    #ed1c24 70%,
    #f7931e 100%
  );
}

.main-content {
  width: auto;
  margin-left: 200px;
  background: linear-gradient(180deg, #1a1a1a 0%, #4d4d4d 100%);
  min-height: 100vh;
  height: 100%;
  position: relative;
  padding-bottom: 90px;
}

section {
  padding: 10px;
}

.header h1 {
  font-size: 60px;
}

.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 50px;
}

.project-item {
  width: calc(33.33% - 10px);
  max-width: 300px;
  min-width: 200px;
  min-height: 250px;
  height: auto;
  background-color: #1e1e1e;
  border: 1px solid red;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(255, 0, 0, 0.5);
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.project-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px 0 rgba(255, 0, 0, 0.5);
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  margin: auto;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
  justify-content: center;
  align-items: center;
}

.modal-container {
  width: auto;
  height: 80%;
  position: relative;
}

.modal-content {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
  border: 2px solid red;
  box-shadow: 0 0 20px 0 rgba(255, 0, 0, 0.5);
}

.modal-close {
  width: 30px;
  height: 30px;
  position: absolute;
  top: -15px;
  right: -15px;
  background: white;
  color: black;
  font-size: 40px;
  font-weight: bold;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  line-height: 25px;
  z-index: 10000;
  transition: transform 0.3s ease, color 0.3s ease;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.8);
}

.modal-close:hover {
  transform: scale(1.2);
  color: red;
}

.card {
  width: 90%;
  display: flex;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px 20px;
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
  align-items: center;
  border: 1px solid rgb(89, 7, 7);
}

/* SERVICE  */
.service-container,
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.service-item,
.contact-item {
  width: 90%;
  display: flex;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 15px 20px;
  color: white;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
  align-items: center;
  border: 1px solid rgb(89, 7, 7);
}

.service-icon,
.contact-icon {
  flex: 0 0 25%;
  text-align: center;
  border-right: 1px grey solid;
  padding: 5px;
}

.service-icon i,
.contact-icon i {
  font-size: 3rem;
  color: #f7931e;
}

.service-icon div,
.contact-icon div {
  margin-top: 8px;
  font-weight: bold;
  font-size: 1.2rem;
}

.service-description,
.contact-description {
  flex: 1 1 75%;
  padding-left: 20px;
  font-size: 1rem;
  color: #ccc;
  line-height: 1.4;
}

/* ABOUT */
.about-container {
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;
}

.about-container .card {
  flex-direction: column;
}
.bahana-team {
  display: block;
  margin: 0px auto;
  text-align: center;
}
.bahana-team img {
  width: 80%;
}

/* CONTACT  */
.contact-item .contact-description {
  height: 100%;
}
.contact-description iframe {
  max-height: 500px;
  position: relative;
  width: 100%;
  border: 0;
}

/* FOOTER  */

.footer {
  background: #1e1e1e;
  height: 90px;
  border-top: 2px solid red;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
}

.container-cta {
  width: 550px;
  height: 80px;
  background: black;
  border-radius: 40px;
  margin: 0 auto;
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-cta {
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
}

.button-cta {
  background: red;
  border-radius: 40px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sosmed {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.button-sosmed {
  width: 40px;
  height: 40px;
}

.button-cta:hover,
.button-sosmed:hover {
  box-shadow: 0 0 25px 15px rgba(255, 0, 0, 0.5);
  background: rgba(255, 0, 0, 1);
  transform: scale(1.1);
  border-radius: 40px;
}

.footer-copyright {
  color: #808080;
  margin-top: 50px;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid red;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#mobileMenu {
  display: none;
}

/* Medium devices (tablet landscape and smaller) */
@media (max-width: 992px) {
  /* Adjust font sizes, spacing, possibly reduce grid columns */
  #CONTAINER {
    max-width: 85%;
  }

  section {
    padding: 5px;
  }

  .project-container {
    padding: 5px;
  }

  .project-item {
    width: calc(50% - 10px);
    min-width: 180px;
    min-height: 225px;
  }

  .modal {
    height: 100vh;
    position: fixed;
  }

  .modal-container {
    width: 80%;
    height: auto;
  }

  .modal-content {
    width: 100%;
    height: auto;
    vertical-align: middle;
  }

  .about-container,
  .service-container,
  .contact-container {
    padding: 0px;
  }

  .service-item,
  .contact-item {
    width: 100%;
  }

  .footer {
    height: 8vh;
  }

  .container-cta {
    width: 90%;
    height: auto;
  }

  .button-sosmed {
    width: 30px;
    height: auto;
  }

  .footer-copyright {
    margin-top: 4vh;
  }
}

/* Small devices (tablet portrait and phones) */
@media (max-width: 768px) {
  /* Stack columns, adjust icons, reduce padding/margin */
  #CONTAINER {
    max-width: 100%;
    background-color: transparent;
  }

  .main-content {
    width: 85%;
    margin: 0px auto;
    display: block;
  }

  .sidebar {
    display: none;
  }

  #mobileMenu {
    background-color: black;
    display: block;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    z-index: 2500;
  }

  .mobile-nav {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    box-shadow: 0 5px 25px 10px rgba(255, 0, 0, 0.5);
  }

  .logo-container {
    width: 100%;
    height: auto;
    padding: 5vw;
  }
  .logo-container img {
    width: 70%;
    height: auto;
  }
  .nav-btn {
    width: calc(25% - 2px);
    height: auto;
    line-height: unset;
    padding: 2.5vw;
    border: 0px;
  }

  .nav-btn i {
    font-size: x-large;
    padding: 5px 0px;
  }

  .active {
    background: linear-gradient(
      180deg,
      #3e0000 0%,
      #b11116 40%,
      #ed1c24 70%,
      #f7931e 100%
    ) !important;
  }

  section {
    padding: 0px;
  }

  .project-container {
    padding: 5px;
  }

  .header {
    margin-top: 15px;
  }

  .service-item,
  .contact-item {
    padding: 10px;
  }

  .service-description, .contact-description {
    padding-left: 10px;
  }
}

/* Extra small devices (large phones and small phones) */
@media (max-width: 576px) {
  /* Single column layout, smaller buttons, simpler interactions */
  body {
    font-size: 12px;
  }
  .nav-btn {
    font-size: 12px;
  }
  .main-content {
    width: 90%;
  }

  .header h1 {
    font-size: x-large;
  }

  .project-container {
    padding: 0;
  }

  .project-item {
    min-width: auto;
    min-height: auto;
  }
  .service-item,
  .contact-item {
    flex-direction: column;
    gap: 10px;
  }

  .service-icon, .contact-icon {
    border: 0;
  }

  .service-description, .contact-description {
    padding-left: 0;
  }

  .w3-large {
    font-size: 15px !important;
  }

  .footer-copyright {
    font-size: smaller;
  }
}
