@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap");
@import url("color-schemes.css");

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::-webkit-scrollbar-track {
  background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar {
  width: 6px;
  background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Lazy Loading Styles */
.lazy-load {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: blur(5px);
  position: relative;
  z-index: 2;
}

.lazy-load[src],
.loaded {
  opacity: 1;
  filter: blur(0);
  transition: opacity 1s ease-in-out, filter 1s ease-in-out;
}

/* Image placeholder for lazy loading */
.image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(15px);
  z-index: 1;
  transform: scale(1.1);
}

/* Background lazy loading */
section[data-src] {
  background-color: var(--dark-bg);
  /* Placeholder color before image loads */
  transition: background-image 0.5s ease-in-out;
  position: relative;
}

/* Section animations */
.section-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: none;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.background-loaded {
  animation: fadeIn 0.8s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

/* Add staggered animation for service cards */
.service-grid .service-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out,
    box-shadow 0.3s ease, transform 0.3s ease;
}

.section-visible .service-card:nth-child(1) {
  transition-delay: 0.1s;
}

.section-visible .service-card:nth-child(2) {
  transition-delay: 0.2s;
}

.section-visible .service-card:nth-child(3) {
  transition-delay: 0.3s;
}

.section-visible .service-card:nth-child(4) {
  transition-delay: 0.4s;
}

.section-visible .service-card {
  opacity: 1;
  transform: translateY(0);
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--btn-primary-text);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.highlight {
  color: var(--primary-color);
}

.section-label {
  color: var(--section-label-color);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.about-content .section-label {
  display: block;
  margin-bottom: 12px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--header-bg);
  padding: 12px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
}

header.inner-header {
  background-color: var(--header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 18px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  margin: 0;
}

nav ul li {
  margin-left: 40px;
}

nav ul li a {
  transition: color 0.3s ease;
  color: var(--nav-link-color);
  font-family: Lato;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 27px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

nav ul li a.active,
nav ul li a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.cta-button .btn {
  border-radius: 100px;
  background: var(--btn-secondary-bg);
  box-shadow: 0px 20px 50px 0px rgba(230, 0, 19, 0.05);
  display: flex;
  width: 188px;
  height: 35px;
  padding: 20px 40px;
  justify-content: center;
  align-items: center;
  color: var(--btn-secondary-text);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  outline: none;
  border: 0;
}

.hero-content .btn,
.about-content .btn {
  border-radius: 100px;
  background: var(--btn-secondary-bg);
  box-shadow: 0px 20px 50px 0px rgba(230, 0, 19, 0.05);
  display: flex;
  width: 200px;
  height: 40px;
  padding: 20px 40px;
  justify-content: center;
  align-items: center;
  color: var(--btn-secondary-text);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  outline: none;
  border: 0;
}

/* Hero Section */
.hero {
  padding: 100px 0 20px 0;
  background-color: var(--background-white);
  position: relative;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 80vh;
}

.hero-content {
  flex: 1;
  opacity: 1 !important;
  transform: none !important;
}

.hero-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.hero-image img {
  position: absolute;
  right: 0;
  top: 100px;
  height: 450px;
}

.hero h1 {
  color: var(--text-dark);
  font-family: Lato;
  font-size: 60px;
  font-style: normal;
  font-weight: 700;
  line-height: 70px;
  text-transform: capitalize;
  margin-bottom: 25px;
}

.hero p {
  color: var(--text-dark);
  font-family: Lato;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 27px;
  margin-bottom: 30px;
}

/* Intro Section */
.intro {
  padding: 50px 0;
  text-align: center;
  background-color: var(--background-white);
}

.intro p {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* About Section */
.about {
  padding: 50px 0;
  background-color: var(--bg-light);
}

.about.inner-about {
  padding: 110px 0 50px 0;
  margin-top: 20px;
}

.about .about-container {
  display: flex;
  align-items: center;
  gap: 4em;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
}

.about-content {
  flex: 1;
  padding: 10px 20px;
}

.about h2 {
  color: var(--text-medium);
  font-size: 40px;
  font-weight: 700;
  line-height: 50px;
}

.about-content p {
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
}

/* Capabilities Section */
.capabilities {
  padding: 80px 0;
  background-color: var(--background-white);
  text-align: center;
}

.capabilities.inner-capabilities {
  padding-top: 110px;
  margin-top: 20px;
}

.capabilities h2 {
  color: var(--text-section);
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 55px;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  overflow: hidden;
  border-radius: 30px;
  background: var(--background-card);
  box-shadow: 0px 4px 100px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.service-card h3 {
  margin: 30px 0 12px;
  color: var(--text-section);
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.service-card p {
  padding: 0 25px 10px;
  color: var(--text-section);
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--text-light);
  padding: 50px 0 20px;
}

.footer-logo {
  text-align: center;
  margin-bottom: 30px;
}

.footer-logo img {
  height: 50px;
}

.footer-details {
  display: flex;
  justify-content: space-between;
  margin: 0 auto 30px;
  text-align: center;
  align-items: end;
}

.address {
  text-align: left;
}

.address p {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 5px;
}

.footer-details p {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 5px;
}

.footer-details a {
  color: var(--text-light);
  text-decoration: underline;
}

.copyright {
  text-align: left;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright p {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
  line-height: 27px;
  margin: 0;
}

/* Contact Section */
.contact-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-card {
  background-color: var(--contact-card-bg);
  color: white;
  padding: 50px 20px;
  width: 31%;
  min-height: 180px;
  border-radius: 5px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.contact-card i {
  font-size: 20px;
  margin-right: 8px;
}

.contact-card p {
  color: var(--contact-card-text);
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
}

.icon-row {
  margin-bottom: 10px;
}

.icon-row i {
  margin-right: 10px;
  background: white;
  color: var(--contact-icon-color);
  padding: 8px;
  border-radius: 4px;
}

.contact-card a {
  color: white;
  text-decoration: underline;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  line-height: normal;
  margin-bottom: 15px;
}

.inner-title h2 {
  color: var(--text-section);
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  line-height: 55px;
}

/* Quote Section */
section.quote-section {
  padding-top: 40px;
  padding-bottom: 50px;
  background: var(--background-white);
}

.quote-section .container {
  max-width: 1340px;
}

.quotation-block {
  border-radius: 10px;
  padding: 10px 40px 20px 40px;
  background: var(--background-white);
}

.quote-header {
  text-align: center;
}

.quote-header h3 {
  color: var(--text-section);
  text-align: center;
  font-size: 30px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.6px;
}

.quote-header h3 span {
  color: var(--section-label-color);
}

.quote-header p {
  color: var(--text-muted);
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  line-height: normal;
}

.quotation-block .form-control {
  border-radius: 8px;
  border: 1px solid var(--border-form);
  background: var(--background-white);
  padding: 5px;
  height: 40px;
  box-shadow: none;
}

.quotation-block label {
  color: var(--text-form);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.quotation-block .astrick {
  color: var(--error-color);
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}

.quotation-block .text-muted {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-top: 10px;
  margin-bottom: 0;
}

.send-btn {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: end;
}

.send-btn .btn-reset {
  border-radius: 8px;
  border: 1px solid var(--btn-reset-border);
  background: var(--btn-reset-bg);
  padding: 15px 45px;
  color: var(--btn-reset-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.32px;
  outline: none;
}

.send-btn .btn-submit {
  border-radius: 8px;
  background: var(--btn-submit-bg);
  padding: 15px 45px;
  color: var(--btn-submit-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.32px;
  border: 1px solid var(--btn-submit-border);
  outline: none;
}

.upload-box {
  border: 1px dashed var(--border-dashed);
  border-radius: 4px;
  padding: 15px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.upload-box input[type="file"] {
  display: none;
}

.upload-box p {
  color: var(--text-form);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.upload-box label {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
  text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 1199px) {
  .hero-image img {
    position: relative;
    top: 0;
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 50px;
  }

  .about .about-container {
    align-items: self-start;
  }

  nav ul li {
    margin-left: 20px;
  }

  nav ul li a {
    letter-spacing: 0;
  }
}

@media (max-width: 768px) {
  header .container {
    flex-wrap: wrap;
  }

  .cta-button {
    display: none;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100vh;
    background-color: var(--background-white);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
  }

  nav.active {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    padding: 20px 30px 30px;
  }

  nav ul li {
    margin: 15px 0;
  }

  .mobile-menu-toggle {
    display: block;
    z-index: 1001;
  }

  .hero .container,
  .about .container {
    flex-direction: column;
  }

  .hero-content,
  .about-content,
  .about-image {
    width: 100%;
    padding: 0;
    margin: 0 0 30px 0;
  }

  .hero-content {
    margin: 30px 0 30px 0;
  }

  .hero-image img {
    display: none;
  }

  .hero {
    background-color: var(--dark-bg);
  }

  .hero .container {
    height: auto;
  }

  .hero h1,
  .hero p {
    color: var(--text-light);
  }

  .footer-details {
    flex-direction: column;
    align-items: center;
  }

  .address {
    text-align: center;
  }

  .address,
  .contact,
  .hours {
    margin-bottom: 20px;
  }

  .about .about-container {
    display: block;
  }

  .about-image {
    margin: 0;
  }

  .about-image img {
    width: 100%;
  }

  .about-content {
    padding: 30px;
  }

  .copyright {
    text-align: center;
  }

  .contact-card {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .intro p,
  .about p {
    font-size: 1rem;
  }
}

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-container .loader {
  width: 50px;
  height: 50px;
  border: 5px solid var(--loader-bg);
  border-radius: 50%;
  border-top: 5px solid var(--loader-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}