﻿/* Fade-in animation base */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* When visible */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#nav-icon {
  transition: transform 0.3s ease;
}

#nav-check:checked ~ .nav-btn #nav-icon {
  transform: rotate(90deg);
}

/* Body Styling */
.body {
  margin: 0;
  height: 100%;
  background-color: #F5F5DB;
}

/* Banner Styling */
.intro {
  position: relative;
  width: 100%;
  height: 850px;  /* Adjust according to your preference */
  background-image: url('images/banners/about\ banner.webp');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;  /* Fix the background image */
  background-repeat: no-repeat;
  opacity: 0; /* Initially invisible */
  animation: introAnimation 1s ease-in forwards; /* Fade-in animation */
}

/* The fade-in keyframes */
@keyframes introAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Centering the content over the banner image */
.mm-ermac-enterprises-container {
  position: absolute;
  top: 60%;
  left: 40%;
  transform: translate(-50%, -50%); /* Centers the container */
  color: #E3BA28;
  padding: 20px; /* Add padding around the container */
  width: 100%; /* Let the container take full width */
  max-width: 752px; /* Optional: Limit its size */
  box-sizing: border-box; /* Include padding in width/height calculations */
}


/* MM Ermac Enterprises Text Styling */
.mm-ermac-enterprises-text {
    position: relative;
    color: #E3BA28;
    font-size: 75px;
    font-family: Konkhmer Sleokchher;
    font-weight: 400;
    line-height: 70px;
    word-wrap: break-word;
    margin-bottom: 10px;
    transform: translateY(50px);
    animation: floatIn 1s ease-out forwards;
}

/* Floating Entrance Animation */
@keyframes floatIn {
  0% {
    opacity: 0; /* Start invisible */
    transform: translateY(90px); /* Start below */
  }
  100% {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* End at original position */
  }
}

/* Description Styling */
.description {
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    color: #1E1E1E;
    font-size: 20px;
    background: #E3BA28;
    font-family: Jost;
    font-weight: 400;
    padding: 10px;
    width: 250px;
    line-height: 21px;
    word-wrap: break-word;
    transform: translateY(50px);
    animation: floatIn 1s ease-out forwards;
}

/* Floating Entrance Animation */
@keyframes floatIn {
  0% {
    opacity: 0; /* Start invisible */
    transform: translateY(90px); /* Start below */
  }
  100% {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* End at original position */
  }
}

@media screen and (max-width: 768px) {
  .intro {
    height: 100vh; /* Reduce banner height for smaller screens */
    background-attachment: scroll; /* Prevent janky behavior on mobile */
    background-attachment: fixed;  /* Fix the background image */
  }

  .mm-ermac-enterprises-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    max-width: 90%; /* Allow more flexible width */
  }

  .mm-ermac-enterprises-text {
    font-size: 47px; /* Smaller font for mobile */
    line-height: 45px;
    text-align: center;
  }

  .description {
    font-size: 16px;
    padding: 8px;
    margin: auto;
    width: 200px;
  }
}

@media screen and (max-width: 480px) {
  .mm-ermac-enterprises-text {
    font-size: 47px;
    line-height: 43px;
  }

  .description {
    font-size: 18px;
    padding: 6px;
  }
}


 
/* ABOUT BODY*/
/* ABOUT BODY*/
/* ABOUT BODY*/

/* General Styling */
.about-body {
  width: 100%;
  height: 100vh; /* Use full viewport height */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 50px 25%; /* 10% padding on the left and right */
  box-sizing: border-box; /* Ensure padding is included in the element's total width */
  height: 100%;
  opacity: 0; /* Initially invisible */
  animation: introAnimation 1s ease-in forwards; /* Fade-in animation */
}

/* The fade-in keyframes */
@keyframes introAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/* Background */
.garments-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  background: #1E1E1E;
  z-index: -1; /* Place the background behind the content */
}


/* Text Styling */
.about-us {
  left: 0px;
  top: 10%;
    text-align: center;
  display: flex;
  flex-direction: column;
  color: #1E1E1E;
  background: #E3BA28;
  font-size: 36px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  word-wrap: break-word;
  padding: 10px;
  margin-bottom: 20px;
  width: 200px;
  opacity: 0; /* Initially invisible */
  animation: introAnimation 1s ease-in forwards; /* Fade-in animation */
}

/* The fade-in keyframes */
@keyframes introAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


.mission {
  left: 50%;
  top: 20%;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #1E1E1E;
  background: #E3BA28;
  font-size: 36px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  word-wrap: break-word;
  padding: 10px;
  margin-bottom: 20px;
  width: 180px;
}


.vision-statement {
  left: 50%;
  top: 30%;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #1E1E1E;
  background: #E3BA28;
  font-size: 36px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  word-wrap: break-word;
  padding: 10px;
  margin-bottom: 20px;
  width: 340px;
}


.our-services {
  left: 50%;
  top: 40%;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #1E1E1E;
  background: #E3BA28;
  font-size: 36px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  word-wrap: break-word;
  padding: 10px;
  margin-bottom: 20px;
  width: 250px;
}



/* Descriptions */
/* Common styles for description 1–4 */
.description-1,
.description-2,
.description-3,
.description-4 {
  text-align: justify;
  color: #F5F5DB;
  font-size: 20px;
  font-family: Jost;
  font-weight: 400;
  line-height: 2;
  word-wrap: break-word;
  padding-top: 15px;
  margin-bottom: 100px;
  width: 100%;
  text-indent: 50px;
}

/* Specific styling for description 5 */
.description-5 {
  color: #F5F5DB;
  font-size: 20px;
  font-family: Jost;
  font-weight: 400;
  line-height: 3;
  word-wrap: break-word;
  padding-top: 15px;
  margin-bottom: 20px;
  width: 100%;
  padding: 0 20px;
}


.end-desc {
  text-align: justify;
  color: #F5F5DB;
  font-size: 20px;
  font-family: Jost;
  font-weight: 400;
  line-height: 2;
  word-wrap: break-word;
  padding-top: 15px;
  margin-bottom: 200px;
  width: 100%;
}


/* Detailed description */
.detailed-description {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 100px;
  padding: 0 20px; /* Add some padding */
}

.detailed-description p {
  color: #F5F5DB;
  font-size: 20px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  text-align: justify;
}

.bold-text {
  font-weight: 700;
}


/* Styling for the "Why Choose Us" section */

.why-choose-us {
  left: 50%;
  top: 40%;
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #1E1E1E;
  background: #E3BA28;
  font-size: 36px;
  font-family: Jost;
  font-weight: 400;
  line-height: 29px;
  word-wrap: break-word;
  padding: 10px;
  margin-bottom: 20px;
  width: 340px;
}

.why-choose-us-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 100px;
}

.pair {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vector {
  width: 28px;
  flex-shrink: 0;
}

.why-choose-us-container p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Specific vector positioning adjustments */
.vector-1, .vector-2, .vector-3, .vector-4, .vector-5 {
  transform: translateX(-50%); /* Center the vectors horizontally */
}

.description-5 .vector-pair {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.description-5 p {
  margin: 0;
  font-weight: 400;
  line-height: 2;
  font-size: 20px;
}

@media screen and (max-width: 768px) {

  .pair {
    gap: 10px;
  }

  .vector {
    width: 26px;
  }

  .why-choose-us-container p {
    padding-bottom: 8px;
  }
}



@media screen and (max-width: 768px) {
  .about-body {
    padding: 20px 20px;
  }

  .about-us,
  .mission,
  .vision-statement,
  .our-services,
  .why-choose-us {
    font-size: 30px;
    line-height: 1.4;
    max-width: 100%;
    margin: 10px auto;
    padding: 8px;
  }

  .about-us {
    width: 150px;
  }
  .mission {
    width: 140px;
  }
  .vision-statement {
    width: 250px;
  }
  .our-services {
    width: 200px;
  }
  .why-choose-us {
    width: 260px;
  }





  .description-1,
  .description-2,
  .description-3,
  .description-4,
  .description-5,
  .end-desc {
    font-size: 20px;
    line-height: 1.6;
    padding: 10px 0;
    margin-bottom: 40px;
  }

  .detailed-description {
    padding: 0;
  }

  .detailed-description p {
    line-height: 1.6;
  }

  .why-choose-us-container {
    flex-direction: column; /* Stack vertically */
    align-items: flex-start;
    gap: 20px;
  }

  .vectors-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .vector {
    width: 30px;
  }
}


