@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500&display=swap");

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
}

body {
  font-family: "Space Grotesk", Helvetica, sans-serif;
  background-color: #ffffff;
  color: #000000;
}

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

button:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.scale-in   { transform: scale(0.94) translateY(20px); }
.reveal.visible    { opacity: 1; transform: none; }

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.22s; }
.reveal.delay-3 { transition-delay: 0.34s; }

/* ── PAGE WRAPPER ── */
.page {
  display: flex;
  flex-direction: column;
  padding: 60px 170px;
  gap: 140px;
  background-color: #ffffff;
}

/* ── HEADER ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  height: 40px;
  width: auto;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-family: "Space Grotesk", Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.9px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-btn:hover  { background-color: #333333; }
.contact-btn:active { background-color: #1a1a1a; }

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  gap: 44px;
  width: 100%;
  min-height: 546px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 49px;
  flex: 1;
}

.hero-text h1 {
  font-size: 78px;
  font-weight: 500;
  line-height: 90px;
  letter-spacing: 0;
  color: #000000;
}

.hero-text p {
  font-size: 23px;
  font-weight: 400;
  line-height: 43px;
  color: #8e8e8e;
  max-width: 569px;
}

.hero-image {
  flex: 0 0 auto;
  width: 50%;
  max-width: 800px;
  height: 546px;
  object-fit: cover;
}

/* ── TESTIMONIAL ── */
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 39px;
  text-align: center;
  width: 100%;
  margin-top: 150px;
}

.testimonial blockquote {
  font-size: 38px;
  font-weight: 500;
  line-height: 51px;
  color: #000000;
  max-width: 1060px;
  /* remove default italic from blockquote */
  font-style: normal;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.author-name {
  font-size: 28px;
  font-weight: 400;
  line-height: 51px;
  color: #000000;
  font-style: normal;
}

.author-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 51px;
  color: #8e8e8e;
}

/* ── PORTFOLIO ── */
.portfolio {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  margin-top:150px;
}

.portfolio h2 {
  font-size: 38px;
  font-weight: 500;
  line-height: 90px;
  text-align: center;
  color: #000000;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 30px;
  width: 100%;
}

/* ── WORK CARD ── */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-image {
  width: 100%;
  overflow: hidden;
  background-color: #d9d9d9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1);
}

.work-card:hover .card-image img {
  transform: scale(1.04);
}

/* background-image variant (for rectangle-5 card) */
.card-image--bg {
  background-size: cover;
  background-position: center;
}

.work-card h3 {
  font-size: 23px;
  font-weight: 400;
  line-height: 51px;
  color: #000000;
}

/* ── FOOTER ── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 60px;
  border-top: 1px solid #dadada;
  width: 100%;
}

.site-footer p,
.site-footer a {
  font-size: 18px;
  font-weight: 400;
  color: #000000;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
}
