/* Header */
.header {
    transition: all .3s ease-in-out;
    background-color: #fff;
}
.header-up {
    transform: translateY(-75%);
}
.header-down {
    transform: translateY(0);
}
/* Logo */
.logo-desktop {
  height: 23rem;
}

.logo-mobile {
  height: 10rem;
}
/* Icon */
.phone-icon {
  font-size: 1.8rem;
}
/* Desktop nav animations */
/* Arrow Rotation for dropdown - Apply only to navigation links */
nav .group:hover .fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease-in-out;
}
/* Bottom border and text color change for all nav links */
nav a {
  position: relative;
  display: inline-block; /* Ensures proper width handling */
  color: #4A5568; /* Default text color */
  transition: color 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #f87171; /* Red line color */
  transform: scaleX(0); /* Hide the line initially */
  transform-origin: center;
  transition: transform 0.3s ease;
}
nav a:hover {
  color: #f87171; /* Change text color to red when hovered */
}
nav a:hover::after {
  transform: scaleX(1); /* Show the line */
}
/* Dropdown visibility for both third and fifth links */
nav .th-link:hover .th-link-dropdown-menu,
nav .fifth-link:hover .fifth-link-dropdown-menu {
  display: block; /* Show dropdown when hovering over parent link */
}
nav .th-link .th-link-dropdown-menu,
nav .fifth-link .fifth-link-dropdown-menu {
  display: none; /* Hide the dropdown by default */
  position: absolute;
  top: 70%;
  left: 0;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 100%;
  padding: 10px 0;
  z-index: 10;
}
/* main */
.pt-on-main {
 padding-top: 10rem;
}
/* Masonry Grid Layout */
.gallery-grid {
    column-count: 4; /* Number of columns */
    column-gap: 5px; /* Spacing between columns */
    padding: 20px;
}
.item {
    position: relative;
    background-color: #f0f0f0; /* Optional: for better visibility */
    overflow: hidden;
    break-inside: avoid; /* Prevent items from breaking across columns */
    margin-bottom: 5px; /* Spacing between items */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.item img {
    width: 100%; /* Ensure the image fills the container */
    height: auto; /* Maintain aspect ratio */
}
/* .item img:hover {
    box-shadow: inset 0px 0px 10px 10px rgba(0, 0, 0, 0.5);
} */
/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 3; /* 2 columns on smaller screens */
    }
}
@media (max-width: 480px) {
    .header-up {
    transform: translateY(-10rem);
    }
    .gallery-grid {
        column-count: 3; /* 1 column on mobile */
    }
    .pt-on-main {
      padding-top: 15rem;
     }
}
/* Images icons */
.rotate {
    transition: all 1.4s ease-in-out
}
.rotate-up {
    transform: rotate(90deg);
}

.text-3xl {
  font-size: 4rem;
}


/* Contact Form */
.contact-form {
  --form-ok-color: rgb(109, 238, 109);
  --form-error-color: red;
}
.contact-form [required]:valid {
  border: thin solid var(--form-ok-color);
}
.contact-form [required].input-invalid {
  border: thin solid var(--form-error-color);
}
.contact-form-error {
  margin-top: -1rem;
  font-size: 80%;
  background-color: red;
  color: #fff;
  transition: all 800ms ease;
}
.contact-form-loader {
  text-align: center;
}
.contact-form span {
  width: 100%;
}
.contact-form-error.is-active {
  display: inline-block;
  animation: show-message 1s 1 normal 0s ease-out both; 
}
.none {
  display: none;
}
@keyframes show-message {
  0% {
    visibility: hidden;
    opacity: 0;
  }

  100% {
    visibility: visible;
    opacity: 1;
  }
}









