/* ========================================
   HOMEPAGE STYLES - TRANSATOMIC
   ========================================
   Full-bleed background with frosted-glass
   floating cards and positioned logotype.
   ======================================== */

/* Homepage container - fullscreen */
.homepage {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Background image layer */
.homepage__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.homepage__background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor so the center planter stays visible across viewports */
  object-position: 58% 70%;
}

/* Content overlay on top of background */
.homepage__content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

/* ----------------------------------------
   Header: Full-width semi-transparent bar
   Same hue as case-study pages (#6B8CAE)
   at 70% opacity.
   ---------------------------------------- */
.homepage__header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: rgba(107, 140, 174, 0.70);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 3;
}

.homepage__name {
  font-family: var(--font-secondary);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #000000;
}

/* ----------------------------------------
   Floating Cards
   ---------------------------------------- */
.homepage__cards {
  position: absolute;
  top: 64px;
  left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  z-index: 2;
}

/* Base card: frosted glass effect */
.homepage-card {
  width: 326px;
  padding: var(--space-lg) var(--space-xl);
  background-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Interactive card: hover lift (Portfolio) */
.homepage-card--interactive {
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.homepage-card--interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

/* Static card: no hover effects (Welcome/About) */
.homepage-card--static {
  cursor: default;
}

/* Card typography */
.homepage-card__title {
  font-family: var(--font-primary);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.homepage-card__text {
  font-family: var(--font-secondary);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-primary);
  line-height: 1.5;
  margin: 0;
}

/* ----------------------------------------
   Transatomic Logotype
   ----------------------------------------
   Positioned over the dark planter region.
   Uses percentage-based positioning so it
   tracks with the object-position anchor
   of the background image.
   ---------------------------------------- */
.homepage__logotype {
  position: absolute;
  /* Anchor to the planter region */
  bottom: 8%;
  right: 38%;
  z-index: 2;
  pointer-events: none;
}

.homepage__logotype-img {
  height: 28vh;
  width: auto;
  display: block;
  opacity: 0.92;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */
@media (max-width: 1024px) {
  .homepage__logotype {
    right: 32%;
    bottom: 10%;
  }

  .homepage__logotype-img {
    height: 24vh;
  }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */
@media (max-width: 768px) {
  .homepage__background-image {
    /* Shift to show planter on right side for portrait */
    object-position: 62% 75%;
  }

  .homepage__cards {
    top: 56px;
    left: var(--space-md);
  }

  .homepage-card {
    width: calc(80vw - var(--space-md));
    max-width: 326px;
    padding: var(--space-md) var(--space-lg);
  }

  .homepage__logotype {
    /* Move to right side, over the planter in portrait crop */
    right: 4%;
    bottom: 6%;
  }

  .homepage__logotype-img {
    height: 22vh;
  }
}

/* ========================================
   RESPONSIVE - SMALL PHONE
   ======================================== */
@media (max-width: 480px) {
  .homepage__header {
    top: var(--space-md);
    left: var(--space-md);
  }

  .homepage__cards {
    top: 48px;
    left: var(--space-md);
  }

  .homepage-card {
    width: calc(80vw - var(--space-sm));
    padding: var(--space-md);
  }

  .homepage-card__title {
    font-size: var(--text-base);
  }

  .homepage-card__text {
    font-size: var(--text-xs);
    line-height: 1.45;
  }

  .homepage__logotype {
    right: 2%;
    bottom: 4%;
  }

  .homepage__logotype-img {
    height: 18vh;
  }
}
