﻿/* Body Styling */
.body {
  margin: 0;
  height: 100%;
  background-color: #F5F5DB;
}

/* Banner Styling */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;  /* Adjust according to your preference */
  background-image: url('images/banners/contact\ 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 (max-width: 768px) {
  .mm-ermac-enterprises-container {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 20px;
  }

  .mm-ermac-enterprises-text {
    font-size: 47px;
    line-height: 43px;
  }

  .description {
    margin: 0 auto;
    width: 200px;
    font-size: 18px;
    line-height: 24px;
  }
  .contact-form {
    margin: 0px;
  }
}



/* Main layout */
/* Main layout */
/* Main layout */
/* Main layout */
.container {
    display: flex;
    gap: 50px;
    justify-content: center;
    padding: 150px 10%;
    background: #1E1E1E;
    flex-wrap: wrap;
}

.left-column {
  flex: 3;
  min-width: 300px;
  max-width: 650px;
  opacity: 0; /* Initially invisible */
  animation: introAnimation 2s ease-in forwards; /* Fade-in animation */
}
/* The fade-in keyframes */
@keyframes introAnimation {
  0% {
    opacity: 0; /* Start invisible */
  }
  100% {
    opacity: 1; /* End fully visible */
  }
}

.left-column h2 {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 400;
  color: rgba(245, 245, 219, 1); 
  font-family: Konkhmer Sleokchher;
  line-height: 70px;
}

.thankyou {
  text-align: center;
  color: rgba(245, 245, 219, 1); 
  font-family: Konkhmer Sleokchher;
}

.right-column {
  flex: 2;
  min-width: 300px;
  max-width: 400px;
  opacity: 0; /* Initially invisible */
  animation: introAnimation 2s ease-in forwards; /* Fade-in animation */
}
/* The fade-in keyframes */
@keyframes introAnimation {
  0% {
    opacity: 0; /* Start invisible */
  }
  100% {
    opacity: 1; /* End fully visible */
  }
}



/* Left side content */
.image-box img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  height: 300px;
  object-fit: cover; /* or try contain depending on what you want */
  display: block;
}


.map-box iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

/* Right side form */
.contact-form {
padding-right: 20px;
max-width: 400px;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 50px;
  font-weight: 400;
  color: rgba(245, 245, 219, 1); 
  font-family: Konkhmer Sleokchher;
  line-height: 70px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: rgba(245, 245, 219, 1); 
  font-family: Jost;

}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  border: 1px solid #ccc;
}

textarea {
  resize: vertical;
}

button {
  padding: 12px;
  background-color: #E3BA28;
  color: 1E1E1E;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #947A1B;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left-column,
  .right-column {
    flex: 1;
    width: 100%;
  }
  .image-box img {
    height: 180px; /* or any height you prefer for mobile */
  }
}
#nav-icon {
  transition: transform 0.3s ease;
}

#nav-check:checked ~ .nav-btn #nav-icon {
  transform: rotate(90deg);
}
/* Add this CSS to your existing stylesheet */

/* Make the container visible immediately, only the content inside will fade in */
#contct {
  background-color: #1E1E1E;  /* Keep the background color unaffected */
  padding: 150px 10%;
  position: relative;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* Apply visible class to make the elements fade in */
.fade-in.visible {
  opacity: 1;
}

/* Optional: Add some styles for specific child elements if needed */
.left-column, .right-column {
  transition: opacity 1.5s ease-in-out; /* Ensures child sections also fade in */
}

.left-column h2, .image-box, .map-box, .contact-form, .form-group, button {
  transition: opacity 1.5s ease-in-out;
}


