/* =========================================================
   BASIC RESET
========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;

  color: #111;

  line-height: 1.5;

  background-image: url("media/rainbow background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 65vh;

  display: flex;
  align-items: center;

  position: relative;

  overflow: hidden;

  background: #fff;

  width: min(1400px, 92%);
  margin: 4vh auto 0;
}


.hero-content {
  width: min(1200px, 90%);

  margin: 0 auto;

  padding: 100px 0;
}


.eyebrow {
  margin: 0 0 25px;

  font-size: 40px;

  font-weight: 700;

  letter-spacing: 0.12em;
}


.hero h1 {
  margin: 0;

  font-size: clamp(
    70px,
    12vw,
    170px
  );

  line-height: 0.85;

  letter-spacing: 0em;

  font-weight: 200;
}


/* =========================================================
   PROJECT SECTION
========================================================= */

.projects {
  width: min(1200px, 90%);

  margin: 0 auto;

  padding: 140px 0;
}


.projects-heading {
  margin-bottom: 60px;
}


.projects-heading h2 {
  margin: 0;

  font-size: clamp(
    42px,
    6vw,
    80px
  );

  line-height: 0.95;

  letter-spacing: 0em;

  font-weight: 400;
}


/* =========================================================
   PROJECT CARDS
========================================================= */

.project-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}


.project-card {
  min-height: 380px;

  position: relative;

  padding: 30px;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  text-decoration: none;

  color: #111;

  background: #f3f3f3;

  border: 1px solid #ddd;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
}


.project-card:hover {
  transform: translateY(-10px);

  background: #111;

  color: #fff;
}


.project-number {
  font-size: 20px;

  font-weight: 700;

  letter-spacing: 0.1em;
}


.project-card-content h3 {
  margin: 0 0 8px;

  font-size: clamp(
    32px,
    4vw,
    55px
  );

  line-height: 0.95;

  letter-spacing: 0em;
}


.project-card-content p {
  margin: 0;

  font-size: 16px;
}


.project-arrow {
  position: absolute;

  right: 30px;
  bottom: 25px;

  font-size: 32px;

  transition:
    transform 0.3s ease;
}


.project-card:hover .project-arrow {
  transform:
    translate(6px, -6px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  width: min(1200px, 90%);

  margin: 0 auto;

  padding: 40px 0 60px;

  color: #666;

  font-size: 20px;

  border-top: 1px solid #ddd;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

  .hero {
    min-height: 75vh;
  }


  .hero-content {
    padding: 70px 0;
  }


  .hero h1 {
    font-size:
      clamp(
        60px,
        17vw,
        110px
      );
  }


  .project-grid {
    grid-template-columns: 1fr;
  }


  .project-card {
    min-height: 280px;
  }


  .projects {
    padding: 100px 0;
  }

}