@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;700&family=Zilla+Slab:wght@400;600&display=swap');

body {
  background-color: #FAF7F2;
  font-family: 'Zilla Slab', serif;
  color: #1A121E;
}

.projects-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 2.5rem;
  color: #7D5471;
  text-align: center;
  margin-top: 2rem;
}

.projects-intro {
  text-align: center;
  margin: 1rem auto 2rem;
  max-width: 800px;
  font-size: 1.1rem;
}

.project-toggle {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.toggle-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-family: 'Unbounded', sans-serif;
  color: #1A121E;
  position: relative;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.3s;
}

.toggle-btn.active {
  color: #7D5471;
}

.toggle-btn.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #7D5471;
  bottom: -5px;
  left: 0;
}

.project-section {
  display: none;
  padding: 0 2rem 4rem;
}

.project-section.active {
  display: block;
}

.drawings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 40px;
  padding: 40px 20px;
  justify-items: center;
}

.drawing-card {
  display: flex;
  background-color: #7D5471; /* Royal Mauve */
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  min-height: 300px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  flex-direction: row;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.drawing-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.drawing-card img {
  height: 90%;
  max-height: 260px;
  width: auto;
  border-radius: 12px;
  margin: 20px;
  object-fit: contain;
}

.drawing-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  flex: 1;
}

.drawing-info h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  color: #FAF7F2; /* Ivory White */
  margin-bottom: 10px;
  font-size: 1.6em;
}

.drawing-info .mbti {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  color: #1A121E; /* Plum Black */
  margin-bottom: 10px;
}

.drawing-info .description {
  font-family: 'Unbounded', sans-serif;
  font-weight: 300;
  color: #1A121E;
  margin-bottom: 15px;
  display: block;
}

.drawing-info a {
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
  color: #FAF7F2; /* Ivory White */
  text-decoration: none;
  position: relative;
  width: fit-content;
  transition: color 0.3s ease;
}

.drawing-info a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #1A121E; /* Plum Black */
  transition: width 0.3s ease;
}

.drawing-info a:hover {
  color: #1A121E; /* Plum Black */
}

.drawing-info a:hover::after {
  width: 100%;
}

@media (max-width: 768px) {
  .drawing-card {
    flex-direction: column;
    text-align: center;
    min-height: auto;
  }

  .drawing-card img {
    margin: 20px auto 0;
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .drawing-info {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .drawing-info h3 {
    font-size: 1.4em;
  }

  .drawing-info .mbti,
  .drawing-info .description {
    font-size: 0.95rem;
  }

  .drawing-info .description {
    display: block;
    margin-top: 10px;
  }

  .drawing-info a {
    font-size: 1rem;
    margin-top: 8px;
  }
}


/* === Section Layout === */
.project-section {
  padding: 100px 30px;
  background-color: #FAF7F2; /* Ivory White */
}

.projects-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2.5rem;
  text-align: center;
  color: #1A121E; /* Plum Black */
  margin-bottom: 10px;
}

.projects-intro {
  font-family: "Zilla Slab", serif;
  font-size: 1.2rem;
  text-align: center;
  color: #1A121E;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* === Card Container === */
.ux-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: #7D5471; /* Royal Mauve */
  border-radius: 20px;
  overflow: hidden;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 60px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ux-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* === Card Image === */
.ux-card img {
  width: 45%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px 0 0 20px;
}

/* === Text Content === */
.ux-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #FAF7F2;
}

.ux-content h3 {
  font-family: "Unbounded", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #FAF7F2;
}

.ux-content h4 {
  font-family: "Unbounded", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #1A121E;
  margin-bottom: 8px;
}

.ux-content p {
  font-family: "Zilla Slab", serif;
  font-size: 1rem;
  color: #1A121E;
  margin-bottom: 15px;
}

/* === See More Button === */
.ux-content a {
  font-family: "Unbounded", sans-serif;
  color: #FAF7F2;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.ux-content a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1A121E;
  transition: width 0.3s ease;
}

.ux-content a:hover {
  color: #1A121E; /* Plum Black */
}

.ux-content a:hover::after {
  width: 100%;
}

/* === Responsive Layout === */
@media (max-width: 768px) {
  .ux-card {
    flex-direction: column;
    max-width: 100%;
  }

  .ux-card img {
    width: 100%;
    height: auto;
    border-radius: 20px 20px 0 0;
  }

  .ux-content {
    padding: 20px;
    align-items: center;
    text-align: center;
  }

  .ux-content h3 {
    font-size: 1.5rem;
  }

  .ux-content h4 {
    font-size: 0.95rem;
  }

  .ux-content p {
    font-size: 0.95rem;
  }
}
