@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");
@import url("color-schemes.css");

/* Global 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: "DM Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

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

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 {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  background-color: var(--btn-primary-hover);
  transform: translateY(-2px);
}

section {
  padding: 50px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.section-label {
  color: var(--primary-darker);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

header.scrolled {
  background-color: var(--header-bg);
  padding: 12px 0;
}

header.inner-header {
  background-color: var(--header-bg);
  padding: 15px 0;
}

.about.inner-about {
  padding-top: 100px;
}

.inner-banner {
  background: url("../images/banner.jpg") no-repeat center center;
  background-size: cover;
  padding-top: 120px;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.inner-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.inner-banner.contact-banner {
  background: var(--background-white);
}

.inner-banner.contact-banner::after {
  display: none;
}

.contact-banner .banner-content h2 {
  color: var(--text-section);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-content h5 {
  color: var(--text-light);
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.banner-content h2 {
  color: var(--text-light);
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  line-height: 55px;
}

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

.logo img {
  height: 60px;
  background: #fff;
}

nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: var(--nav-link-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--nav-link-hover);
  text-decoration: none;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--nav-underline);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: var(--nav-link-active);
}

.menu-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-light);
  cursor: pointer;
}

.hero {
  background: linear-gradient(var(--hero-overlay), var(--hero-overlay)), url(../images/3d-printing-parts.jpg);
  background-size: cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--text-light);
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--hero-title);
}

.hero h2 {
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--hero-subtitle);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.8;
  color: var(--hero-text);
}

.cta-button .btn.btn-primary {
  background: var(--secondary-color);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  transition: all 0.3s ease;
  box-shadow: none !important;
  outline: none;
}

.hero-content a.btn {
  background: var(--secondary-color);
  border: none;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  transition: all 0.3s ease;
  box-shadow: none !important;
  outline: none;
}

.about {
  background-color: var(--background-white);
}

.about h2 {
  color: var(--text-medium);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 0px;
  margin-bottom: 30px;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.about-gallery {
  display: flex;
  gap: 20px;
}

.gallery-image.large {
  flex: 1.5;
  height: 525px;
}

.two-col-gallery {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

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

.gallery-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.two-col-gallery {
  display: grid;
  column-gap: 20px;
  row-gap: inherit;
}

.capabilities {
  background-color: var(--background-white);
}

.capabilities h2 {
  color: var(--text-medium);
}

.capabilities-grid {
  display: flex;
  margin-bottom: 30px;
  gap: 20px;
}

.capabilities .section-label {
  color: var(--primary-darker);
  text-align: left;
  font-size: 22px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.capabilities .section-header {
  margin-bottom: 0;
  text-align: center;
}

.capability-card {
  background-color: var(--background-white);
  padding: 30px 12px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.capability-card:hover {
  transform: translateY(-5px);
}

.capability-card .icon {
  margin-bottom: 20px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.capability-card h3 {
  color: var(--text-medium);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0px;
}

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

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

.footer-logo img {
  height: 60px;
  background: #fff;
}

.footer-contact a {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  transition: color 0.3s ease;
}

.footer-contact p {
  color: var(--text-light);
  margin-bottom: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact p a {
  color: var(--text-light);
}

.footer-bottom p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

.footer-contact h4,
.footer-contact p,
.footer-contact a {
  font-size: 17px;
  margin-bottom: 7px;
  font-weight: 400;
  line-height: 22px;
}

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

img[src=""] {
  background-color: var(--background-placeholder);
  position: relative;
}

img[src=""]::after {
  content: "Loading...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.contact-details {
  display: flex;
}

.contact-detail-item {
  background: var(--contact-bg);
  padding: 20px;
  min-width: 400px;
  display: flex;
  align-items: start;
  flex-direction: column;
  justify-content: end;
}

.contact-detail-img {
  min-width: 250px;
}

.contact-detail-item a {
  color: var(--contact-text);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  text-decoration: underline;
}

.contact-detail-item p a {
  color: var(--contact-text);
  text-decoration: none;
}

.contact-detail-item p {
  color: var(--contact-text);
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  margin: 0;
}

section.contact-section {
  padding: 50px 0;
  padding-top: 0;
}

section.quote-section {
  padding: 90px 0;
  background: var(--quote-page-bg);
}

.quotation-block {
  background: var(--background-card);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quote-header {
  text-align: center;
  margin-bottom: 30px;
}

.quote-header h3 {
  color: var(--text-section);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.quote-header p {
  color: var(--text-form);
  font-size: 1.1rem;
  line-height: 1.6;
}

.quotation-block .form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-form);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--background-white);
  color: var(--text-form);
  transition: border-color 0.3s ease;
}

.quotation-block label {
  color: var(--text-form);
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.quotation-block .astrick {
  color: var(--error-color);
  font-size: 0.9rem;
  margin-left: 3px;
}

.quotation-block .text-muted {
  color: var(--text-form);
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

.send-btn {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.send-btn .btn-reset {
  background: var(--btn-reset-bg);
  color: var(--btn-reset-text);
  border: 1px solid var(--btn-reset-border);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-btn .btn-submit {
  background: var(--btn-submit-bg);
  color: var(--btn-submit-text);
  border: 1px solid var(--btn-submit-border);
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-box {
  border: 1px dashed var(--border-dashed);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  background-color: var(--background-white);
  margin-bottom: 20px;
}

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

.upload-box p {
  color: var(--text-form);
  margin-bottom: 15px;
  font-size: 1rem;
}

.upload-box label {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

/* Equipment Section Styles */
.equipment {
  background-color: var(--background-light);
  padding: 50px 0 50px;
}

.equipment h2 {
  color: var(--text-dark);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.equipment-category {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.equipment-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.equipment-category h3 {
  color: var(--primary-darker);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid var(--primary-lighter);
  padding-bottom: 10px;
}

.equipment-category ul {
  list-style: none;
  padding: 0;
}

.equipment-category ul li {
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  padding-left: 20px;
}

.equipment-category ul li:before {
  content: "•";
  color: var(--primary-darker);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 8px;
}

.equipment-category ul li:last-child {
  border-bottom: none;
}

/* Responsive adjustments for equipment section */
@media screen and (max-width: 768px) {
  .equipment {
    padding: 60px 0;
  }
  
  .equipment h2 {
    font-size: 28px;
  }
  
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
  }
  
  .equipment-category {
    padding: 25px;
  }
  
  .equipment-category h3 {
    font-size: 20px;
  }
}

@media screen and (max-width: 576px) {
  .equipment h2 br {
    display: none;
  }
  
  .equipment-category {
    padding: 20px;
  }
  
  .equipment-category ul li {
    font-size: 14px;
  }
}

@media screen and (max-width: 992px) {
  .about-gallery {
    grid-template-columns: 1fr;
    display: grid
    ;
  }

  .gallery-image.large {
    grid-row: auto;
  }

  .gallery-grid {
    grid-template-rows: auto;
  }

  .two-col-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .capabilities-grid {
    flex-direction: column;
  }
}

@media screen and (max-width: 768px) {
  section {
    padding: 30px 0;
  }

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

  .hero h2 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    padding: 20px 20px 20px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  nav.active {
    right: 0;
  }

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

  nav ul li {
    width: 100%;
  }

  .menu-toggle {
    display: block;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

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

  .hero-content {
    padding: 0 20px;
  }

  nav ul li a::after {
    display: none;
  }
}

@media screen and (max-width: 576px) {
  .cta-button .btn.btn-primary {
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 500;
}

  .capabilities .section-header h2 br {
    display: none;
  }

  .contact-details {
    padding: 30px 0;
  }

  .contact-detail-item {
    margin-bottom: 20px;
  }

  .contact-detail-img img {
    height: 40px;
  }

  .hero {
    height: 80vh;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .logo img {
    height: 40px;
}
}

.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);
  }
}