/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --black: #111111;
  --padding: clamp(20px, 4vw, 60px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}


/* PROJECT IMAGE GRID */

.project-description {
  max-width: 650px;
  margin-bottom: 50px;
  font-size: 18px;
  line-height: 1.6;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-top: 45px;
  align-items: start;
}

.image-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}


/* TEAM SECTION */

.team-section {
  margin-top: 100px;
}

.team-section h2 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.05em;
  margin-bottom: 35px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 35px 18px;
  align-items: start;
}

.team-member img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.team-member h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 5px;
}

.team-member p {
  font-size: 13px;
  line-height: 1.5;
  color: #777;
}


/* RANDOM TYPOGRAPHY — HOMEPAGE ONLY */
.ugly-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.015em;
  font-size: clamp(100px, 23vw, 320px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.07em;
  color: white;
  white-space: nowrap;
}

.ugly-letter {
  display: inline-block;
  transform-origin: center;
  transition:
    font-family 0.18s ease,
    transform 0.22s ease,
    letter-spacing 0.22s ease;
}

/* Font variations */
.ugly-letter.font-anton {
  font-family: "Anton", sans-serif;
}

.ugly-letter.font-metal {
  font-family: "Metal Mania", cursive;
}

.ugly-letter.font-bangers {
  font-family: "Bangers", cursive;
}

.ugly-letter.font-creepster {
  font-family: "Creepster", cursive;
}

.ugly-letter.font-monoton {
  font-family: "Monoton", cursive;
}

.ugly-letter.font-glitch {
  font-family: "Rubik Glitch", cursive;
}

.ugly-letter.font-shade {
  font-family: "Bungee Shade", cursive;
}

.ugly-letter.font-pixel {
  font-family: "Press Start 2P", cursive;
}

.ugly-letter.jump {
  transform: translateY(-0.09em) rotate(-7deg) scale(1.08);
}

.ugly-letter.tilt {
  transform: rotate(8deg) scale(0.94);
}

.ugly-letter.stretch {
  transform: scaleX(1.2);
}

@media (max-width: 650px) {
  .ugly-title {
    font-size: 25vw;
  }
}


/* NAVIGATION */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 28px var(--padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.nav-logo {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 45px);
}

.nav-links a,
.language-switch {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a {
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.55;
}

.language-switch {
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50px;
  padding: 9px 14px;
  color: inherit;
}

/* HOMEPAGE */
.home {
  color: var(--white);
  background: var(--black);
}

.hero {
  height: 100svh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.slideshow,
.slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.hero-content h1 {
  font-size: clamp(100px, 23vw, 320px);
  line-height: 0.78;
  font-weight: 900;
  letter-spacing: -0.095em;
  color: white;
}

.hero-content p {
  font-size: clamp(12px, 1.2vw, 16px);
  margin-top: 35px;
  margin-bottom: 26px;
  letter-spacing: 0.04em;
}

.support-button {
  display: inline-block;
  padding: 13px 23px;
  border: 1px solid greenyellow;
  border-radius: 0px;
  color: greenyellow;
  font-size: 13px;
  transition: background 0.3s, color 0.3s;
}

.support-button:hover {
  background: greenyellow;
  color: black;
}

.hero-footer {
  position: absolute;
  bottom: 24px;
  left: var(--padding);
  right: var(--padding);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

/* GENERAL PAGES */
.page {
  min-height: 100svh;
  padding: 150px var(--padding) 60px;
}

.page h1 {
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.075em;
  margin-bottom: 35px;
}

.page-intro {
  max-width: 700px;
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.4;
}

/* WORK GRID */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 45px 20px;
  margin-top: 60px;
}

.project img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8e8e8;
  transition: opacity 0.3s;
}

.project:hover img {
  opacity: 0.8;
}

.project h2 {
  font-size: 18px;
  margin-top: 15px;
}

.project p {
  font-size: 13px;
  margin-top: 6px;
  color: #777;
}

/* CONTACT */
.contact-link {
  display: inline-block;
  font-size: clamp(22px, 4vw, 48px);
  border-bottom: 1px solid currentColor;
  padding-bottom: 5px;
  margin-top: 20px;
}

/* PROJECT DETAIL */
.project-detail img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 40px;
}

.project-detail p {
  max-width: 650px;
  font-size: 18px;
  line-height: 1.6;
}

/* TABLET */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 15px;
  }

  .team-section {
    margin-top: 70px;
  }
}

/* MOBILE */
@media (max-width: 650px) {
  .navbar {
    padding-top: 22px;
    padding-bottom: 22px;
    flex-wrap: wrap;
    gap: 20px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .nav-links a {
    font-size: 11px;
  }

  .language-switch {
    margin-left: auto;
    font-size: 11px;
  }

  .hero {
    min-height: 550px;
  }

  .hero-content h1 {
    font-size: clamp(90px, 25vw, 180px);
  }

  .hero-content p {
    margin-top: 25px;
  }

  .hero-footer {
    font-size: 8px;
  }

  .page {
    padding-top: 150px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px 12px;
  }

  .team-member h3 {
    font-size: 15px;
  }

  .team-member p {
    font-size: 12px;
  }
}

.work-grid {
  grid-template-columns: 1fr;
  gap: 35px;
  margin-top: 40px;
}

.image-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

.project-description {
  margin-bottom: 30px;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}