@import url(main_css.css);

* {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  scroll-behavior: smooth;
}

body {
  background-image: var(--bg-img);
  background-repeat: repeat;
  background-size: contain;
  overflow-x: hidden;
}

/* font awesome tweaks */
.fa-arrow-right {
  transform: rotate(-45deg);
}
.fa-solid {
  margin-left: 8px;
  font-size: 10px;
  line-height: 20px !important;
}

/* scroll to top */
.scroll-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.95rem 1.2rem;
  background-color: var(--white);
  color: var(--primary-text);
  transition: 0.3s ease-in-out;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.scroll-to-top:hover {
  background-color: var(--muted-color);
}
.scroll-to-top .fa-solid {
  margin-left: 0;
  font-size: 0.85rem;
}

/* modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 999;
}
.modal {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}
.modal-header {
  padding: 0.75rem 1rem;
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: var(--primary-text);
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05);
}
.modal-header .fa-xmark {
  font-size: 0.75rem;
  line-height: 30px !important;
}
.close-btn {
  cursor: pointer;
  font-size: 1.5rem;
  border: none;
  background: none;
}
.modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1 1 auto;
  color: var(--secondary-text);
  font-size: 0.85rem;
  line-height: 150%;
}
.modal-footer {
  padding: 1rem;
  background: var(--white);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.05);
}
.modal-footer a {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  background: var(--white);
  color: var(--primary-text);
  transition: 0.3s;
  border: 1px solid var(--primary-text);
}
@media (max-width: 480px) {
  .modal {
    max-width: 100%;
  }
  .modal-body {
    max-height: 60vh;
  }
}

/* navbar */
.menu-btn {
  text-align: center;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: none;
}
.fa-bars {
  font-size: 1.2rem !important;
  color: var(--primary-text);
  margin-left: 0;
}

.navbar-responsive {
  width: 100%;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: absolute;
  top: 75px;
  background: var(--white);
  box-shadow: 0 10px 5px 2px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}
.navbar-responsive ul {
  width: 100%;
}
.navbar-responsive li {
  list-style: none;
  display: block;
  margin: 1rem;
}
.navbar-responsive a {
  width: 100%;
  text-decoration: none;
  color: var(--primary-text);
  padding: 12px 16px;
  display: block;
}
.nav_header {
  width: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: saturate(180%) blur(20px);
  position: fixed;
  z-index: 9;
}
.header_all {
  width: calc(100% + 20px);
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo{
  width: 150px;
}

.navbar ul li {
  list-style: none;
  display: inline-flex;
  margin-left: 16px;
}
.navbar a {
  text-decoration: none;
  color: var(--primary-text);
  padding: 12px 16px;
  display: inline-block;
  position: relative;
}
.navbar a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  left: 0;
  bottom: 0;
  background-color: var(--primary-text);
  transition: 0.3s;
}
.navbar a:hover::before {
  width: 100%;
}

/* banner */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.banner_container {
  width: 100%;
  max-width: 1440px;
  margin: 90px auto 0;
  display: flex;
  flex-flow: column;
  gap: 36px;
  padding: 3.125rem;
}
.banner_container p {
  color: var(--secondary-text);
  line-height: 170%;
  font-size: 20px;
}
.text-part {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.text-part span {
  color: var(--secondary-text);
}
.banner_container h3 {
  font-size: 72px;
  font-weight: 400;
  color: var(--primary-text);
}

/* parallax */
.img-parallax {
  position: relative;
  height: 50vh;
  background-image: url("/images_final/ForWebsite/Contactbg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-position;
}

/* contact form section starts here */
.contact {
  width: 100%;
  padding: 1rem;
}

.contact-container {
  width: 100%;
  max-width: 1440px;
  padding: 1rem;
  margin: 0 auto;
}

.contact-container h2 {
  font-size: 2.575rem;
  margin-bottom: 2.455rem;
  font-weight: 400;
  color: var(--primary-text);
}

.contact-container h2::before {
  content: "";
  display: block;
  background: var(--primary-color);
  height: 3px;
  width: 60px;
  margin-bottom: 5px;
  border-radius: 3px;
}

.form > div {
  width: 50%;
}

.form {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

.detail {
  width: 100%;
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
}

.detail .fa-solid {
  font-size: 1rem;
  color: var(--link-color);
  margin-left: 0;
  height: 35px;
  width: 35px;
  background-color: #0b59e913;
  line-height: 35px !important;
  text-align: center;
  border-radius: 5px;
  flex-shrink: 0;
}

.detail a {
  font-size: 1rem;
  color: var(--link-color);
  line-height: 170%;
}

.form-container {
  width: 100%;
  background: var(--white);
  padding: 30px 25px;
  border-radius: 16px;
  border: 1px solid var(--border);
  animation: fadeIn 0.6s ease;
}

.form-container p {
  font-size: 1rem;
  color: var(--secondary-text);
  font-weight: 300;
  margin-bottom: 0.65rem;
}

.form-container h3 {
  font-size: 1.7rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 500;
}

.form-group {
  margin-bottom: 22px;
  position: relative;
}

/* Floating Labels */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 12px;
  border: 1.5px solid #dfe6f1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: transparent;
  transition: 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #4f8ef7;
  box-shadow: 0 0 0 4px rgba(79, 142, 247, 0.1);
}

.form-group label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 14px;
  color: #888;
  pointer-events: none;
  transition: 0.25s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:not([value=""]) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  background: #fff;
  padding: 0 6px;
  font-size: 12px;
  color: #4f8ef7;
}

/* Error messages */
.error-msg {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  height: 0;
  overflow: hidden;
}
.error-msg.show {
  opacity: 1;
  transform: translateY(0);
  height: auto;
}

/* File upload */
.file-upload {
  border: 2px dashed #4f8ef7;
  border-radius: 10px;
  text-align: center;
  padding: 25px 10px;
  cursor: pointer;
  color: #4f8ef7;
  font-weight: 500;
  transition: 0.3s;
}
.file-upload:hover {
  background: rgba(79, 142, 247, 0.05);
}

#fileList {
  margin-top: 10px;
}
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f9ff;
  border: 1px solid #e0e7ff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
  animation: slideIn 0.3s ease;
}
.file-item button {
  background: transparent;
  color: var(--link-color);
  border: none;
  cursor: pointer;
  margin-left: 6px;
  transition: color 0.2s;
}

.file-item button .fa-solid {
  font-size: 1rem;
}

.file-item button:hover {
  color: #e74c3c;
}

/* Inline file action message */
.file-msg {
  font-size: 13px;
  color: #e67e22;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.4s ease;
}
.file-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Submit button */
.submit-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f8ef7, #2563eb);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(79, 142, 247, 0.3);
}

/* Loader */
.loading {
  display: none;
  text-align: center;
  margin-top: 14px;
}
.loading img {
  width: 28px;
  animation: spin 1s linear infinite;
}

/* Response */
.response {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-15px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .form-container {
    padding: 20px;
  }
  h2 {
    font-size: 1.3rem;
  }
}
/* contact form section ends here */

/* footer */
footer {
  width: 100%;
  padding: 1rem;
  background: var(--muted-color);
}

.footer-container {
  width: 100%;
  max-width: 1440px;
  padding: 1rem;
  margin: 0 auto;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-container > div:nth-child(1) {
  width: 35%;
}

.footer-container > div:nth-child(2),
.footer-container > div:nth-child(3),
.footer-container > div:nth-child(4) {
  width: calc(65% / 3);
}

.footer-section span {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-section span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 50%;
  background-color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  padding: 0 0 0.65rem;
  font-size: 0.9rem;
}

.footer-section ul li a {
  color: var(--secondary-text);
  text-decoration: underline;
}

.footer-section p {
  color: var(--secondary-text);
  font-size: 0.9rem;
  line-height: 150%;
}

.footer-btm-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  width: 100%;
  max-width: 1440px;
  padding: 0.75rem 2rem;
}

.footer-bottom h3 {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--primary-text);
  text-align: center;
  margin: 0.55rem 0;
  line-height: 150%;
}

/* responsive */
@media (max-width: 800px) {
  .nav_header {
    padding: 1rem;
  }

  .navbar ul {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .banner_container h3 {
    font-size: 2.5rem;
  }

  .banner_container p {
    font-size: 0.7rem;
  }

  .filters button {
    display: none;
  }
  .portfolio-heading select {
    display: inline-block;
  }

  .gallery {
    padding: 0;
  }

  .portfolio,
  .gallery-container {
    padding: 0;
  }

  .portfolio-heading {
    margin-bottom: 1rem;
  }

  .portfolio-container h2 {
    font-size: 1.85rem;
    margin-bottom: 0;
  }

  .form > div {
    width: 100%;
  }

  .form {
    flex-direction: column;
  }

  .contact,
  .contact-container {
    padding: 0.5rem;
  }

  .contact-container h2 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
  }

  footer,
  .footer-container {
    padding: 0.5rem;
  }

  .footer-container h2 {
    font-size: 1.25rem;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 655px) {
  .footer-container > div:nth-child(1),
  .footer-container > div:nth-child(2),
  .footer-container > div:nth-child(3),
  .footer-container > div:nth-child(4) {
    width: 100%;
  }
}
