/* Homepage hero with portrait + landscape background logic */

:root {
  --hero-radius: 28px;
}

.home-page main {
  padding-bottom: 0;
  min-height: 0;
}

/* HERO SECTION — FIXED, NO SCROLL */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  /* FIXES */
  margin-top: calc(var(--topbar-h) * -1);              /* hero behind header */
  height: calc(100dvh + var(--topbar-h));              /* hero exactly viewport height */
  padding: 0 clamp(28px, 6vw, 120px);                  /* remove vertical padding */

  text-align: center;
  overflow: hidden;
}

/* Static background image (portrait/mobile) */
.home-hero::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  background-image: url('../../assets/images/home-banner-portrait.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Gradient overlay */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,22,0.10), rgba(5,10,22,0.22));
  pointer-events: none;
  z-index: 1;
}

/* Slideshow only for landscape desktop */
.hero-slideshow {
  position: fixed;
  inset: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.6s ease-in-out;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Main content inside hero */
.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
  display: grid;
  gap: clamp(28px, 6vw, 60px);
  justify-items: center;
  padding-bottom: var(--footer-h);
}

.hero-heading h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(231,236,243,0.85);
  letter-spacing: 0.06em;
}

/* GRID FOR CARDS */
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(16px, 4vw, 36px);
  width: min(520px, 100%);
}

/* HERO CARDS */
.hero-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(18px,4vw,28px);
  text-decoration: none;
  color: var(--text-primary);
  border-radius: var(--hero-radius);
  background: var(--panel-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: var(--panel-shadow);
  transition: transform .35s ease, box-shadow .35s ease,
              border-color .35s ease, background .35s ease;
}

.hero-card:hover,
.hero-card:focus-visible {
  transform: translateY(-4px);
  background: var(--panel-hover-bg);
  border-color: var(--glass-border-strong);
  box-shadow: 0 32px 90px rgba(3,6,14,0.52);
}

/* ICON */
.hero-card .material-symbols-outlined {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}

/* TEXT */
.hero-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.hero-card__title {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero-card__subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: rgba(231,236,243,0.75);
  margin-top: -2px;
}

/* MOBILE */
@media (max-width: 1220px) {
  .hero-heading h2 {
    letter-spacing: 0.12em;
  }
  .hero-card {
    justify-content: center;
    text-align: left;
  }
  .hero-card__text {
    align-items: flex-start;
  }
}

/* LANDSCAPE DESKTOP */
@media (orientation: landscape) and (min-width: 1221px) {
  .home-hero {
    align-items: center;
    background: transparent;
  }
  .hero-slideshow {
    display: block;
  }
}

/* LARGE DESKTOP */
@media (min-width: 1221px) {
  .home-hero {
    padding-bottom: clamp(72px, 12vh, 160px);
  }
  .home-hero__content {
    gap: clamp(36px, 6vw, 80px);
  }
}

html, body {
  overflow-x: hidden;
  overflow-y: hidden;
}

