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

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

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

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

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

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

/* 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);
}

/* Quote Loader */
.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 #f3f3f3;
  border-radius: 50%;
  border-top: 5px solid #3452b6;
  animation: spin 1s linear infinite;
}

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

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

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

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

ul {
  list-style: none;
}

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

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

.section-label {
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.2px;
  margin-bottom: 10px;
  display: block;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  transition: background-color 0.3s;
}

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

.btn-secondary {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s;
  margin-top: 20px;
}

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

/* Header */
header {
  background-color: var(--header-bg);
  padding: 10px 0;
  box-shadow: 0px 4px 40px 0px rgba(29, 57, 95, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 60px;
}

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

nav ul li {
  margin-right: 30px;
}

nav ul li:last-child {
  margin-right: 0;
}

nav ul li a {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  transition: color 0.3s;
  text-decoration: none;
}

nav ul li a:hover {
  text-decoration: none;
}

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

.cta-button .btn,
.hero-content .btn,
.section-heading .btn {
  padding: 12px 40px;
  border-radius: 10px;
  background: var(--primary-color);
  border: var(--primary-color) 1px solid;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  line-height: 24px;
  outline: none;
  box-shadow: none !important;
}

.cta-button .btn.btn-primary:active,
.hero-content .btn.btn-primary:active,
.section-heading .btn.btn-primary:active {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: var(--hero-bg);
}

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

.hero-content {
  flex: 0 0 56%;
}

@media (max-width: 1400px) {
  .hero-content {
    flex: 0 0 50%;
  }
}

.hero-content h1 {
  color: var(--text-color);
  font-size: 46px;
  font-weight: 700;
  line-height: 55px;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--text-color);
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  margin-bottom: 30px;
}

.hero-image {
  display: flex;
  justify-content: flex-end;
  height: 400px;
  width: 100%;
}

.hero-image img {
  position: absolute;
  height: 450px;
  right: 0;
  top: 70px;
  border-bottom-left-radius: 50px;
}

/* About Section */
.about {
  padding: 40px 0;
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.about.inner-about .about-content {
  flex-direction: column;
}

.section-heading {
  flex: 0 0 40%;
}

.section-heading .btn {
  margin-top: 15px;
}

.section-heading h2 {
  color: var(--text-color);
  font-size: 40px;
  font-weight: 700;
  line-height: 44px;
  margin-bottom: 10px;
}

.section-heading p {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.about-description {
  flex: 0 0 48%;
}

.about-description img {
  border-radius: 20px;
}

.about-description p {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 20px;
}

/* Machining Image Section */
.machining-image {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.machining-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/machining-background.jpg");
  background-size: cover;
  background-position: center;
}

/* Capabilities Section */
.capabilities {
  padding: 80px 0;
}

.capabilities .container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.capabilities-cards {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.capability-card {
  flex: 1;
  padding: 24px;
  transition: transform 0.3s;
  border-radius: 20px;
  background: var(--card-background);
  min-width: 300px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.capability-card.highlight {
  background-color: var(--primary-color);
  color: white;
}

.capability-card.highlight h3,
.capability-card.highlight p {
  color: #fff;
}

.capability-card .card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}

.capability-card h3 {
  color: var(--text-dark);
  font-size: 24px;
  font-style: normal;
  line-height: 30px;
  font-weight: 700;
}

.capability-card p {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 0 0 48%;
}

.footer-logo img {
  height: 60px;
  margin-bottom: 5px;
}

.footer-logo p {
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  max-width: 400px;
  margin: 0;
}

.footer-info {
  flex: 0 0 48%;
  display: flex;
  justify-content: end;
}

.contact-details h3 {
  color: var(--footer-text);
  font-size: 20px;
  line-height: 30px;
  margin-bottom: 10px;
  font-weight: 700;
}

.footer-info address {
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.footer-info address a {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  background: var(--footer-bottom-bg);
  padding: 25px;
}

.footer-bottom p {
  color: var(--footer-bottom-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  margin: 0;
  opacity: 0.6;
}

.contact-info {
  display: flex;
  gap: 12px;
  margin-bottom: 5px;
}

.contact-info-icon i {
  color: var(--footer-text);
  font-size: 15px;
  opacity: 0.6;
}

.contact-info-text {
  color: var(--footer-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  opacity: 0.6;
}

/* Quote Section Form */
section.quote-section {
  background: var(--quote-page-bg);
  padding-top: 0px;
  padding-bottom: 50px;
}

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

.quotation-block {
  border-radius: 10px;
  padding: 10px 40px 20px 40px;
  background: #fff;
}

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

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

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

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

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

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

.quotation-block .astrick {
  color: #f00;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
}

.quotation-block .text-muted {
  color: var(--text-color);
  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(--border-color);
  background: #fff;
  padding: 15px 45px;
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: 0.32px;
  outline: none;
}

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

.upload-box {
  border: 1px dashed var(--border-color);
  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-color);
  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;
}

.mobile-menu {
  display: none;
}

.inner-section-header {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../images/about-banner.jpg);
  background-size: cover;
  background-position: center;
}

.contact-content .section-heading {
  color: #222;
  text-align: center;
  font-size: 40px;
  font-weight: 600;
  line-height: 40px;
  margin-bottom: 15px;
}

.contact-content p {
  color: #222;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 27px;
  margin-bottom: 40px;
}

.contact-content .contact-info-text {
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  opacity: 1;
}

.contact-content .contact-info-icon i {
  opacity: 1;
}

.capabilities.inner-capabilities {
  background: #fff;
  padding-bottom: 20px;
}

.inner-capabilities .container {
  display: block;
}

.inner-capabilities .contact-content {
  text-align: center;
}

.inner-capabilities .contact-content p {
  font-size: 20px;
  line-height: 30px;
}

.inner-capabilities .contact-content .section-heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 58px;
}

.inner-capabilities-section .capabilities-cards {
  display: block;
  position: relative;
}

.inner-capabilities-section .capabilities-cards::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 420px;
  opacity: 0.1;
  background: #0f73f6;
  filter: blur(100px);
  z-index: -1;
  position: absolute;
  right: 70px;
  bottom: -18px;
}

.inner-capabilities-section .capability-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0px 4px 40px 0px rgba(29, 57, 95, 0.02);
}

.capabilities.inner-capabilities-section {
  padding-top: 0;
  background: #fff;
}

.inner-capabilities-section .capability-card .card-icon {
  display: flex;
  justify-content: center;
  min-width: 56px;
  height: 56px;
  background: #0f73f6;
  border-radius: 10px;
}

.inner-capabilities-section .capability-card .card-icon img {
  width: 32px;
}

.inner-capabilities-section .section-heading h2 {
  color: #222;
  font-size: 40px;
  font-weight: 700;
  line-height: 58px;
}

.inner-capabilities-section .section-heading p {
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  opacity: 0.6;
}

.equipment-section {
  padding: 50px 0;
}

.equipment-card {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.equipment-card img {
  width: 211px;
  background: #23457e;
  border-radius: 25px;
}
.equipment-card-content h3 {
  color: #222;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
}

.equipment-card-content p {
  color: #222;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.equipment-section .section-heading h2 {
  margin-bottom: 50px;
}

.inner-capabilities-block {
  padding: 40px 0;
}

/* Responsive Styles */
@media (max-width: 1199px) {
  .hero-image img {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .hero .container,
  .about-content,
  .footer-top {
    flex-direction: column;
  }

  .hero-content,
  .hero-image,
  .section-heading,
  .about-description,
  .footer-logo,
  .footer-info {
    flex: 0 0 100%;
  }

  .hero-content,
  .section-heading,
  .footer-logo {
    margin-bottom: 40px;
  }

  .hero-image {
    display: none;
  }

  .capabilities .container {
    display: block;
  }

  .inner-section-header {
    height: 270px;
  }

  .hero-content {
    text-align: center;
  }

  .hero,
  .about,
  .capabilities {
    padding: 50px 0;
  }

  .footer-logo,
  .contact-details {
    text-align: center;
    margin-bottom: 15px;
  }

  .contact-info {
    display: block;
  }

  .contact-info-icon i {
    display: none;
  }

  .footer-top {
    margin-bottom: 20px;
  }

  .send-btn {
    gap: 20px;
    justify-content: center;
  }

  .equipment-card {
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links li {
    margin: 15px 0;
  }

  .mobile-menu {
    display: block;
    cursor: pointer;
    color: #292d32;
  }

  .mobile-menu i {
    font-size: 22px;
  }

  .capabilities-cards {
    flex-direction: column;
    gap: 0;
  }

  .capability-card {
    margin-bottom: 20px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
  }

  nav ul li {
    margin: 0 15px 10px;
  }

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

  .section-heading h2 {
    font-size: 1.8rem;
    line-height: 35px;
  }

  .cta-button .btn,
  .hero-content .btn,
  .section-heading .btn {
    width: 100%;
  }

  .hero-image {
    margin-top: 0;
  }

  .logo {
    order: 1;
    margin-left: 80px;
  }

  .cta-button {
    order: 2;
  }

  .cta-button .btn {
    height: 40px;
    padding: 12px 20px;
    line-height: 13px;
  }

  .inner-section-header {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
    line-height: 40px;
  }

  .machining-image {
    height: 250px;
  }

  .logo {
    margin-left: 20px;
  }
}
