html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

header {
  background: #262626;
  color: #fff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between; /* Push elements to edges */
  align-items: center; /* Align items vertically */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header nav {
  display: flex; /* Display nav links horizontally by default */
  align-items: center;
}

.nav-links ul {
  list-style: none;
  display: flex; /* Ensure links are visible and horizontal in desktop */
  margin: 0;
  padding: 0;
}

.nav-links ul li {
  margin-right: 20px; /* Spacing between links */
}

.nav-links ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-links ul li a:hover {
  color: #e7741b; /* Hover effect */
}

.menu-icon {
  display: none; /* Hide menu icon in desktop view */
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #e7741b;
  white-space: nowrap; /* Prevent text wrapping */
}

nav ul li a.active {
  color: #e7751d;
  font-weight: bold;
}

.hero {
  background-image: url('images/3d-printing-stock.jpg'); 
  background-size: cover; 
  background-position: center; 
  background-repeat: no-repeat;
  color: #fff; 
  text-align: center;
  padding: 150px 20px; 
  position: relative; 
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.hero h1, .hero p {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 4rem; 
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.5rem;
  color: #f0f0f0;
  max-width: 700px;
  margin: 0 auto;
}

.about {
  background-color: #f4f4f4; 
  padding: 60px 20px;
  text-align: center;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.about h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.about p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about strong {
  color: #e7741b; 
}

.portfolio, .our-equipment {
  padding: 60px 20px;
  text-align: center;
}

.portfolio h2, .our-equipment h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.portfolio-item {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.services {
  background-color: #f4f4f4;
  padding: 60px 20px;
  text-align: center;
}

.services h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.services-container {
  display: flex; 
  gap: 30px; 
  justify-content: center; 
  flex-wrap: wrap; 
  max-width: 1100px;
  margin: 0 auto;
}

.service-item-link {
  text-decoration: none; 
  color: inherit; 
  flex: 1 1 calc(50% - 30px); 
  box-sizing: border-box; 
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

@media (max-width: 768px) {
  .service-item-link {
    flex: 1 1 100%; 
  }
}

.service-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
  font-size: 1.5rem;
  color: #e7741b;
  margin-bottom: 10px;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.our-equipment {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.equipment-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

.equipment-text {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.equipment-text h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.equipment-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
}

.equipment-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.equipment-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.form-container {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin-bottom: 20px;
}

.form-container label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-container input[type="file"] {
  padding: 5px;
}

.form-container button {
  margin-top: 20px;
  padding: 12px;
  background-color: #e7741b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
  transition: background 0.3s ease;
}

.form-container button:hover {
  background-color: #c65c10;
}

@media (max-width: 768px) {
  header {
    display: flex;
    position: relative;
    z-index: 9999;
    flex-direction: row;
    text-align: center;
    justify-content: space-between;
    padding: 10px 20px;
  }

  header ul {
    flex-direction: column;
  }

  header ul li {
    margin: 10px 0;
  }

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

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

.footer {
  background-color: #262626;
  color: #f4f4f4;
  padding: 40px 20px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-about, .footer-links, .footer-contact {
  flex: 1;
  margin: 10px;
  min-width: 250px;
}

.footer h3, .footer h4 {
  color: #e7741b;
  margin-bottom: 15px;
}

.footer p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin: 5px 0;
}

.footer-links ul li a {
  color: #f4f4f4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #e7741b;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.custom-qr-description {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.custom-qr-description h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #333;
}

.custom-qr-description p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto 10px;
}

.qr-examples {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.qr-examples h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #333;
}

.example-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.example-item {
  flex: 1 1 300px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.example-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.example-item p {
  font-size: 1rem;
  color: #555;
}

.qr-preview {
  margin-top: 20px;
  text-align: center;
}

.qr-preview p {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.qr-preview img {
  max-width: 100%;
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.on-demand-intro {
  background-color: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.on-demand-intro h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 20px;
}

.on-demand-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 800px;
  margin: 0 auto 15px;
}

.on-demand-intro a {
  color: #e7741b;
  text-decoration: none;
}

.on-demand-intro a:hover {
  text-decoration: underline;
}

.form-container input[type="file"] {
  padding: 5px;
}

.announcement-banner {
  background-color: #e7751d;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  z-index: 10; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.announcement-banner p {
  margin: 0;
}

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

.menu-icon {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-right: 20px;
}

@media (max-width: 768px) {
  header {
    flex-direction: row; /* Horizontal alignment for menu and logo */
    justify-content: space-between;
    padding: 10px 20px;
  }

  .menu-icon {
    display: block; /* Show menu icon in mobile */
    font-size: 1.8rem;
    margin-right: auto;
  }

  .nav-links ul {
    display: none; /* Hide links initially */
    flex-direction: column; /* Vertical layout for links */
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #262626;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
  }

  .nav-links.show ul {
    display: flex; /* Show menu when toggled */
  }

  .nav-links ul li {
    margin: 15px 0; /* Add spacing between vertical items */
  }

  .logo {
    margin-left: auto; /* Keep logo on the right in mobile */
  }
}
