/* RESET + GENERAL */
body {
  background-color: black;
  margin: 0;
  padding: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  line-height: 1.6;
}

html, body {
  overflow-x: hidden;
}


h1, h2 {
  font-family: 'Staatliches', sans-serif;
  color: #ab1717;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 0;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.75rem;
}

p {
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 15px;
}

/* Drop shadow for headers */
h1 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
               0 0 10px rgba(171, 23, 23, 0.4);
}

h2 {
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8),
               0 0 6px rgba(171, 23, 23, 0.3);
}


/* HEADER + NAVIGATION */
header {
  background-color: black;
  color: white;
}

nav ul {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  list-style: none;
  margin: 0;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.links img {
  height: auto;
  max-height: 40px;
  max-width: 100%;
}


/* TITLE */
.UC_title {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  width: fit-content;
}

.UC_title img {
  width: 200px;
  display: block;
  filter: drop-shadow(0px 10000px #ab1717);
  transform: translateY(-10000px);
}

/* MAIN ABOUT SECTIONS */
.about_container {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
  gap: 60px;
}

#background-video {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}


.about_section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about_section.reverse {
  flex-direction: row-reverse;
}

.about_text {
  flex: 1 1 50%;
  text-align: left;
}

.about_image_wrapper {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
}

.about_image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}


/* FOOTER */
footer {
  background-color: black;
  padding: 20px;
  text-align: center;
}

/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .about_section,
  .about_section.reverse {
    flex-direction: column;
    text-align: center;
  }
.links img {
    max-height: 24px;
  }
  .about_text,
  .about_image_wrapper {
    flex: 1 1 100%;
  }

  .about_text {
    text-align: center;
  }

    .about_text img {
    width: 200px;
  }
   .logo img {
    height: 40px;
  }

  .links img {
    height: 30px;
  }
}

/* === PRODUCT GALLERY SECTION === */
.product_gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
  width: 100%;
}

.product_gallery .gallery_item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #111;
}

.product_gallery .gallery_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* Hover effect */
.product_gallery .gallery_item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(171, 23, 23, 0.4);
}

/* Optional: subtle border glow to match your red accent color */
.product_gallery .gallery_item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(171, 23, 23, 0.4);
  border-radius: 10px;
  pointer-events: none;
}

/* RESPONSIVE TWEAKS */
@media screen and (max-width: 768px) {
  .product_gallery {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
  }
}

/* === IMAGE MODAL (Improved Centered Layout) === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 60px 80px;
}

.modal-content {
  max-width: 90%;
  max-height: 70vh;
  width: auto;
  height: auto;
  margin: 0 auto 50px auto; /* <-- Centered + spacing for caption */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(171, 23, 23, 0.5);
  display: block;
}


#modalCaption {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  color: #ddd;
  font-size: 1rem;
  line-height: 1.4;
}

#modalCaption h2 {
  margin: 0 0 8px;
  font-family: 'Staatliches', sans-serif;
  font-size: 1.8rem;
  color: #ab1717;
  text-transform: uppercase;
}

#modalCaption p {
  margin: 30px;
  font-size: 1rem;
  opacity: 0.9;
}

/* Close button stays the same but scaled a bit for smaller screens */
.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ab1717;
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
  .modal-content {
    max-width: 95%;
    max-height: 60vh;
  }
  #modalCaption h2 {
    font-size: 1.4rem;
  }
  #modalCaption p {
    font-size: 0.9rem;
  }
  .modal-close {
    font-size: 1.8rem;
  }
}
