/* ============================= */
/* 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;
}

.contact-container {
  background: #f5f5f5;
  padding: 2.5rem;
  border-radius: 2%;
  margin-top: 1rem;
  margin-bottom: 2rem;
}


/* Title */
.title-section {
  padding: 30px;
}

.title-section h1 {
  font-size: 36px;
}



/* Project Card */
.project-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #dcdcdc;
  margin: 20px 30px;
  padding: 25px;
  border-radius: 5px;
  gap: 20px;
}

/* Left */
.project-left {
  width: 20%;
}

.date {
  font-size: 18px;
  margin-bottom: 40px;
}

.skill-label {
  font-size: 16px;
}

/* Center */
.project-center {
  width: 50%;
  text-align: left;
}

.project-center h2 {
  margin-bottom: 10px;
}

.project-center p {
  line-height: 1.5;
}

/* Buttons */
.skills {
  margin-top: 15px;
}

.skills button {
  padding: 10px 20px;
  margin-right: 10px;
  border-radius: 8px;
  border: 1px solid black;
  background: #e6e6e6;
  cursor: pointer;
}

.skills button:hover {
  background: #ccc;
}

/* Right */
.project-right {
  width: 25%;
  display: flex;
  justify-content: center;
}

.project-right img {
  width: 100%;
  max-width: 250px;
  border-radius: 5px;
}

/* Popup window*/
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.project-modal {
  background: white;

  width: min(90vw, 1200px);
  height: min(80vh, 700px);

  display: flex;
  position: relative;
  overflow: hidden;
}

.modal-left {
  width: 60%;
  height: 100%;
  position: relative;
  background: #111;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
}

.modal-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-right {
  width: 40%;
  height: 100%;
  padding: 70px 35px 35px;
  overflow-y: auto;
}

.close-btn {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  z-index: 5;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;
  z-index: 2;
}

.left {
  left: 10px;
}

.right {
  right: 10px;
}
@media (max-width: 768px) {
  .overlay {
    padding: 1rem;
  }

  .project-modal {
    width: 95vw;
    height: 90vh;
    flex-direction: column;
  }

  .modal-left {
    width: 100%;
    height: 55%;
  }

  .modal-right {
    width: 100%;
    height: 45%;
    padding: 50px 25px 25px;
  }

  .close-btn {
    top: 10px;
    right: 15px;
  }
}

