* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: #1f2937;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.1rem;
  color: #ccc;
}

nav {
  background-color: #111827;
  display: flex;
  justify-content: center;
  padding: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #3b82f6;
}

section {
  padding: 2rem 2rem;
  max-width: 1400px;
  margin: auto;
}

h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #1f2937;
}

/* About Section */
#about p {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

/* Services Section */
.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.Services {
  background-color: #e5e7eb;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s;
}

.Services:hover {
  transform: scale(1.05);
}

/* Pricing Section */
.Pricing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pricing-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.Pricing {
  background-color: #e5e7eb;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s;
}

.Pricing:hover {
  transform: scale(1.05);
}

/* Projects Section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 15px;
}

.project {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

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

.project img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project h3 {
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.project p {
  color: #555;
  font-size: 0.95rem;
}

.model-viewer-D001 {
  width: 100%;
  height: 350px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1rem;
}

.model-viewer-placeholder {
  width: 100%;
  height: 350px;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 2rem;
  border-radius: 8px;
}

/* Contact Section */
#contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: auto;
  gap: 1rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
}

#contact button {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  background-color: #3b82f6;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contact button:hover {
  background-color: #2563eb;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #1f2937;
  color: #fff;
  margin-top: 2rem;
}

#Qualifications img {
  display: block;
  max-width: 400px;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 3D Model Viewer */
#model-viewer-D001,
#model-viewer-D002,
#model-viewer-TCH2 {
  width: 625px;
  height: 375px;
  margin-top: 1rem;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  header {
    padding: 1rem 0.5rem;
  }

  header h1 {
    font-size: 2rem;
  }

  section {
    padding: 1rem 1rem;
  }

  nav a {
    margin: 0 0.5rem;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project iframe {
    height: 300px;
  }

  .skill {
    padding: 0.75rem 1.5rem;
  }

  #Qualifications img {
    max-width: 100%;
  }
}