/* =========================
   Global
========================= */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --surface-border: 10px solid #ffffff2f;
  --shadow-soft: rgba(0, 0, 0, 0.55) 0 0 10px;
  --shadow-deep: rgba(0, 0, 0, 0.55) 0 5px 15px;
}

/* =========================
   Hero Animation
========================= */

@keyframes heroFade {
  0%, 20%, 25% {
    background-image: url("/images/desert.webp");
    opacity: 1;
  }

  30%, 45%, 50% {
    background-image: url("/images/waves.webp");
    opacity: 1;
  }

  55%, 70%, 75% {
    background-image: url("/images/forest.webp");
    opacity: 1;
  }

  80%, 95% {
    background-image: url("/images/mountains.webp");
    opacity: 1;
  }

  100% {
    background-image: url("/images/desert.webp");
    opacity: 1;
  }
}

/* =========================
   Intro Block
========================= */

.introduction-text {
  text-align: center;
}


.section-page-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
  margin-top: 2.5rem; /* 40px */
}

/* =========================
   Portfolio Layout
========================= */

.portfolio-items {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.875rem; /* 30px */
  margin-bottom: 1.875rem; /* 30px */
}

.portfolio-item,
.portfolio-item-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem; /* 20px */
  margin-bottom: 3.125rem; /* 50px */
}

.portfolio-item {
  width: 70%;
}

.portfolio-item-main {
  width: 100%;
}

/* Make anchors behave as full-width wrappers */
.portfolio-item > a,
.portfolio-item-main > a {
  display: block;
  width: 100%;
}

/* =========================
   Shared Surface Styles
========================= */

:where(
  .portfolio-image,
  .portfolio-image-main,
  .portfolio-item-header,
  .portfolio-item-header-main
) {
  border: var(--surface-border);
}

/* Header surfaces */
:where(.portfolio-item-header, .portfolio-item-header-main) {
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin: 0 auto;
}

/* Image surfaces */
:where(.portfolio-image, .portfolio-image-main) {
  box-shadow: var(--shadow-deep);
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  overflow: hidden;
  transition: transform 0.3s ease;
  z-index: 2;
}

/* =========================
   Header Blocks
========================= */

.portfolio-item-header {
  width: 90%;
}

.portfolio-item-header-main {
  width: 100%;
}

.portfolio-item-header h4,
.portfolio-item-header p {
  margin: 0.625rem; /* 10px */
}

.portfolio-item-header-main h4,
.portfolio-item-header-main p {
  margin: 0;
}

.portfolio-intro-header {
  text-align: center;
  margin-bottom: 1.875rem; /* 30px */
}

/* =========================
   Images
========================= */

.portfolio-image {
  width: 90%;
}

.portfolio-image-main {
  width: 100%;
}

.portfolio-image:hover {
  transform: scale(1.01);
}

/* =========================
   Button
========================= */

.contact-us-button {
  margin-top: 3.125rem; /* 50px */
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
  .portfolio-item {
    width: 90%;
  }
}

@media (max-width: 768px) {

  .home-page-section-tagline-main {
    margin-top: 0.75rem;
    font-size: clamp(1.5rem, 8vw, 3rem);
    line-height: 1.2;
    text-align: center;
  }

    .home-page-section-tagline-sub {
    margin-top: 0.75rem;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
    text-align: center;
  }
}

.intro-text-description {
  text-align: center;
}
