/* ============================================================
   HOME PAGE · home.css
   ============================================================ */
@import url("shared.css");

/* ── Hero Slideshow ── */
.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
}

.hero-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 6s ease-out;
}

.hero-slides img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(46, 16, 101, 0.65) 100%
  );
  z-index: 1;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 80%,
    rgba(124, 58, 237, 0.3) 0%,
    transparent 60%
  );
  animation: fadeIn 2s ease both;
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 64px) clamp(56px, 10vh, 120px);
  color: white;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  animation: fadeUp 1s var(--ease-out) 0.3s both;
}

.hero-content h1 span {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}

.hero-content p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 540px;
  opacity: 0.92;
  line-height: 1.55;
  margin-bottom: 32px;
  animation: fadeUp 1s var(--ease-out) 0.5s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}

.hero-cta .btn-primary {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Slide controls */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  z-index: 3;
  opacity: 0;
  transition: opacity var(--duration-normal) ease,
    background var(--duration-fast) ease;
}

.hero:hover .slide-btn {
  opacity: 1;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.slide-btn.prev { left: 24px; }
.slide-btn.next { right: 24px; }

.slide-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid white;
  border-right: 2px solid white;
  transform: rotate(45deg);
}

.slide-btn.prev::before {
  transform: rotate(-135deg);
}

/* Slide indicators */
.slide-dots {
  position: absolute;
  bottom: 28px;
  right: clamp(24px, 5vw, 64px);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--duration-fast) ease,
    transform var(--duration-fast) ease,
    width var(--duration-fast) ease;
  padding: 0;
}

.slide-dot.active {
  background: white;
  transform: scale(1.2);
  width: 28px;
  border-radius: var(--radius-pill);
}

/* ── Manifesto ── */
.manifesto {
  position: relative;
  padding: 120px 24px;
  background: var(--bg-primary);
  text-align: center;
  overflow: hidden;
}

.manifesto-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.manifesto-text {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-text .line {
  display: block;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  will-change: transform;
  transition: transform 0.1s linear;
}

.manifesto-text .line + .line {
  margin-top: 12px;
}

.manifesto-text strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Mission Section ── */
.mission {
  background: var(--bg-surface);
}

.mission-header {
  text-align: center;
  margin-bottom: 64px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mission-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px 32px;
  transition: transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) ease;
  position: relative;
  overflow: hidden;
}

.mission-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.mission-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-brand);
}

.mission-card:hover::before {
  opacity: 1;
}

.mission-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.mission-card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

.mission-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.mission-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Home Stats Bar ── */
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.home-stat {
  padding: 20px;
}

.home-stat .stat-number {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
}

.home-stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Background Blobs ── */
.bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-blobs::before,
.bg-blobs::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  animation: driftBlob 20s ease-in-out infinite alternate;
}

.bg-blobs::before {
  background: var(--purple-500);
  top: -10%;
  left: -5%;
}

.bg-blobs::after {
  background: var(--pink-500);
  bottom: -10%;
  right: -5%;
  animation-delay: -10s;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero {
    height: 75vh;
    min-height: 440px;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .manifesto {
    padding: 72px 20px;
  }

  .manifesto-canvas {
    display: none;
  }

  .home-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .slide-dots {
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 65vh;
    min-height: 380px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }
}
