/* =========================
   IMPORT FONTS
========================= */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100..900&display=swap");

/* =========================
   BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(180deg, #d9604b, #f0c77a);
  color: black;
  animation: fadeIn 0.8s ease forwards;
}

/* =========================
   FADE-IN ANIMATION
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   TOPNAV
========================= */
.topnav {
  padding: clamp(0.5rem, 1vw, 1rem);
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  text-align: center;
  font-weight: bold;
}

.topnav ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.topnav a {
  position: relative;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  display: inline-block;

  transition:
    color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: rgb(255, 255, 255);

  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.topnav a:hover {
  color: rgb(255, 255, 255);
  transform: translateY(-3px);
}

.topnav a:hover::after {
  width: 100%;
}

/* =========================
   SECTION TITLE
========================= */
.project-section {
  padding: clamp(2rem, 5vw, 5rem);
}

.project-section h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

/* =========================
   GALLERY STACK
========================= */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 4rem);
}

/* =========================
   CARD
========================= */
.project-card {
  background: #e9e9e9;
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);

  display: grid;
  gap: 2rem;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* DESKTOP LAYOUT */
@media (min-width: 900px) {
  .project-card {
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
  }
}

/* =========================
   LEFT SIDE
========================= */
.project-card > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card h2 {
  font-family: "Bebas Neue", sans-serif;
  color: #b33300;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.project-card h3 {
  font-size: 0.9rem;
  opacity: 0.7;
}

.project-card img {
  width: clamp(160px, 60vw, 420px);

  align-items: start;

  transform: rotate(-5deg);

  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.main-img {
  width: clamp(160px, 60vw, 420px);
  transform: rotate(-5deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.process-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.process-gallery img {
  width: 100%;
  height: auto;

  transform: rotate(2deg);
  opacity: 0.85;

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.process-gallery img:nth-child(2) {
  transform: rotate(-3deg) translateY(8px);
}

.process-gallery img:nth-child(3) {
  transform: rotate(3deg) translateY(-8px);
}

.process-gallery img:hover {
  transform: scale(1.1) rotate(0deg);
  opacity: 1;
  z-index: 2;
}

@media (max-width: 768px) {
  .process-gallery img {
    opacity: 1;
  }
}

/* =========================
   RIGHT SIDE CONTENT
========================= */
.project-card > div:last-child {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* HEADINGS INSIDE */
.project-card > div:last-child h2 {
  font-size: 1.3rem;
}

/* PARAGRAPH */
.project-card p {
  line-height: 1.5;
  max-width: 550px;
}

/* =========================
   PROBLEM / SOLUTION BLOCKS
========================= */
.project-card ul {
  padding-left: 1.2rem;
}

.project-card li {
  margin-bottom: 0.5rem;
}

/* =========================
   SPLIT PROBLEM + SOLUTION
========================= */
.project-card .ps-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 1rem;
}

/* =========================
   SPACING BETWEEN SECTIONS
========================= */
.project-card > div:last-child > div + div {
  margin-top: 1rem;
}

/* =========================
   OTHER PROJECTS SECTION
========================= */
.other-projects {
  display: grid;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 700px) {
  .other-projects {
    grid-template-columns: 1fr 1fr;
  }
}

.other-projects a {
  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;

  background: #e9e9e9;
  border-radius: 20px;
  padding: 2rem;

  text-decoration: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #b33300;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.other-projects a:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
