/* ============================= */
/* Global Reset */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #e5e5e5;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
}

/* Shared centered page wrapper effect */
.header,
.hero,
.manufacturing-container,
.contact-container,
.project-container {
  width: min(92%, 75rem);
  margin-left: auto;
  margin-right: auto;
}

/* All images centered by default */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================= */
/* Header / Navigation */
/* ============================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  gap: 2rem;
}

.logo {
  background: #00bcd4;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ============================= */
/* Home Page Styles */
/* ============================= */

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 3rem 0 4rem;
  flex-wrap: wrap;
  min-height: 70vh;
}

.hero-left,
.hero-center,
.hero-right {
  flex: 1 1 18rem;
}

.hero-left h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center img {
  width: min(100%, 22rem);
  border-radius: 2rem;
  object-fit: cover;
}

.hero-right {
  display: flex;
  align-items: center;
}

.hero-right p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.6;
}

/* ============================= */
/* Manufacturing Page Styles */
/* ============================= */

.manufacturing-container {
  background: #f5f5f5;
  padding: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.manufacturing-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.machine-section,
.section {
  margin-bottom: 2rem;
}

.machine-section h2,
.section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.machine-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #d3d3d3;
  padding: 1rem;
  flex-wrap: wrap;
}

.machine-box img {
  width: clamp(10rem, 18vw, 13rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: white;
  margin: 0 auto;
}

.machine-details,
.details {
  flex: 1 1 18rem;
  display: flex;
  align-items: center;
}

.machine-details ul,
.details ul {
  list-style: none;
}

.machine-details li,
.details li {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* For older manufacturing page structure */
.container {
  width: min(92%, 75rem);
  margin: 1rem auto 2rem;
  background: #f5f5f5;
  padding: 1.5rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.menu {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu a {
  text-decoration: none;
  color: black;
  font-weight: 600;
}

/* ============================= */
/* Contact Page */
/* ============================= */

.contact-container {
  background: #f5f5f5;
  padding: 2.5rem;
  border-radius: 2%;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-top {
  display: flex;
  align-items: left;
  flex-direction: column;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  flex-direction: row;
  width: 25%;
  height: 25%;
  gap: 1rem;
 }
.social-links img{
  object-fit: contain;
  width: 100%;
  height: 100%;
 }


.profile-image {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 25rem;
  
}

.profile-image img {
  width: min(100%, 25rem);
  aspect-ratio: 2 / 2;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 50%;
}

.email-title {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
}

.contact-form {
  
  text-align: center;
  gap: 5vw;
  
}
.message {
  min-width: 50%;
  min-height: auto;
}


.message textarea {
  min-height: 100%;
  min-width: 50%;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  background: #d3d3d3;
  resize: vertical;
  width: 100%;
}

.form-left input {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: none;
  background: #d3d3d3;
  width: 100%;
}


.form-right textarea {
  min-height: 13rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: none;
  background: #d3d3d3;
  width: 100%;
}

.form-button {
  width: 100%;
  margin-top: 1.25rem;
}

.send-btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 1.25rem;
  background: #00bcd4;
  color: black;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.send-btn:hover {
  background: #0097a7;
}

/* ============================= */
/* Project Page */
/* ============================= */

.project-container {
  background: #f5f5f5;
  padding: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.project-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.project-date {
  flex: 0 1 10rem;
  font-size: 1rem;
  color: #333;
}

.project-content {
  flex: 1 1 22rem;
}

.project-content h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.project-skills button {
  padding: 0.45rem 0.9rem;
  border: none;
  border-radius: 999px;
  background: #d3d3d3;
  cursor: default;
}

.project-image {
  flex: 0 1 16rem;
  display: flex;
  justify-content: center;
}

.project-image img {
  width: min(100%, 16rem);
  border-radius: 1rem;
  object-fit: cover;
  margin: 0 auto;
}

/* ============================= */
/* Utility */
/* ============================= */

main {
  width: 100%;
}

h1, h2, h3, p {
  word-wrap: break-word;
}

/* ============================= */
/* Responsive */
/* ============================= */

@media (max-width: 56.25rem) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }

  .nav,
  .contact-top,
  .machine-box,
  .project-row {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    justify-content: center;
  }

  .hero {
    text-align: center;
    gap: 2rem;
  }

  .hero-right {
    justify-content: center;
  }

  .machine-details,
  .details,
  .form-right,
  .project-content {
    width: 100%;
  }

  .machine-details,
  .details,
  .project-content,
  .form-left,
  .form-right {
    text-align: center;
  }

  .project-skills {
    justify-content: center;
  }

  .form-button {
    text-align: center;
  }
}

@media (max-width: 37.5rem) {
  .header,
  .hero,
  .manufacturing-container,
  .contact-container,
  .project-container,
  .container {
    width: 94%;
  }

  .contact-container,
  .manufacturing-container,
  .project-container,
  .container {
    padding: 1.25rem;
  }

  .nav-links,
  .menu {
    gap: 1rem;
  }

  .hero-left h1 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .hero-right p {
    font-size: 1rem;
  }
  
 
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease forwards;
}

.fade-up:nth-child(1) {
  animation-delay: 0.2s;
}

.fade-up:nth-child(2) {
  animation-delay: 0.6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

  
}
