.section-1 {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 70px 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 30%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.06), transparent 25%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border-radius: 48% 52% 45% 55% / 42% 46% 54% 58%;
  overflow: hidden;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  isolation: isolate;
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.18),
    transparent 35%,
    transparent 65%,
    rgba(255,255,255,0.10)
  );
  z-index: 3;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition:
    opacity 1.2s ease,
    transform 1.8s ease,
    filter 1.2s ease,
    clip-path 1.2s ease;
  filter: blur(8px);
  clip-path: circle(0% at 50% 50%);
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  clip-path: circle(150% at 50% 50%);
  z-index: 2;
}

.hero-slide.effect-zoom {
  animation: zoomPulse 5s ease forwards;
}

.hero-slide.effect-dispersion {
  animation: dispersionReveal 5s ease forwards;
}

.hero-slide.effect-fade {
  animation: softFade 5s ease forwards;
}

.hero-slide.effect-slide {
  animation: slideReveal 5s ease forwards;
}

@keyframes zoomPulse {
  0% {
    transform: scale(1.22);
    filter: blur(10px);
  }
  100% {
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes dispersionReveal {
  0% {
    transform: scale(1.08) rotate(2deg);
    filter: blur(12px);
    clip-path: polygon(0 0, 15% 0, 10% 25%, 30% 10%, 50% 0, 70% 8%, 100% 0, 100% 100%, 0 100%);
  }
  100% {
    transform: scale(1) rotate(0deg);
    filter: blur(0);
    clip-path: inset(0 round 0);
  }
}

@keyframes softFade {
  0% {
    opacity: 0;
    transform: scale(1.05);
    filter: brightness(1.25) blur(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1) blur(0);
  }
}

@keyframes slideReveal {
  0% {
    opacity: 0;
    transform: translateX(40px) scale(1.06);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.15;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text-color);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: 1.08rem;
  line-height: 1.95;
  color: var(--text-color);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 26px 24px;
  border-radius: 20px;
  min-height: 190px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-description.typing::after {
  content: "|";
  display: inline-block;
  margin-left: 3px;
  animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

body.theme-dark .hero-image-frame,
body.theme-brown .hero-image-frame {
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
}

body.theme-dark .hero-description,
body.theme-brown .hero-description {
  box-shadow: 0 12px 35px rgba(0,0,0,0.24);
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-media {
    order: 1;
  }

  .hero-text {
    order: 2;
    min-height: auto;
  }

  .hero-image-frame {
    max-width: 420px;
  }

  .hero-title,
  .hero-description {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .section-1 {
    padding: 45px 0 60px;
  }

  .hero-container {
    gap: 28px;
  }

  .hero-image-frame {
    max-width: 320px;
    aspect-ratio: 4 / 4.8;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 18px;
  }

  .hero-description {
    font-size: 0.98rem;
    line-height: 1.8;
    min-height: 170px;
    padding: 20px 18px;
  }
}