* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  overflow-x: hidden;
  position: relative;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.decor {
  position: absolute;
  font-size: clamp(20px, 2.4vw, 34px);
  opacity: 0.45;
  animation: floatDecor 7s ease-in-out infinite;
  user-select: none;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.08));
}

.decor-1 {
  top: 8%;
  left: 8%;
  color: #ff6f91;
  animation-delay: 0s;
}

.decor-2 {
  top: 16%;
  right: 12%;
  color: #ff8a5b;
  animation-delay: 1s;
}

.decor-3 {
  top: 38%;
  left: 6%;
  color: #3dbdff;
  animation-delay: 2s;
}

.decor-4 {
  top: 52%;
  right: 8%;
  color: #9b7bff;
  animation-delay: 3s;
}

.decor-5 {
  top: 72%;
  left: 10%;
  color: #ff5fa2;
  animation-delay: 1.5s;
}

.decor-6 {
  top: 82%;
  right: 14%;
  color: #00b7ff;
  animation-delay: 2.5s;
}

.decor-7 {
  top: 28%;
  left: 82%;
  color: #ffb347;
  animation-delay: 4s;
}

.decor-8 {
  top: 88%;
  left: 50%;
  color: #ff7f7f;
  animation-delay: 5s;
}

.page {
  position: relative;
  z-index: 1;
  width: min(92vw, 900px);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vw, 24px);
  background-color: #ffffff;
}

.nav-card,
.hero-card,
.about-card,
.slider-card,
.footer-card {
  width: 100%;
  background-color: #97eaff;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.nav-card:hover,
.hero-card:hover,
.about-card:hover,
.slider-card:hover,
.footer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.nav-card {
  position: sticky;
  top: 14px;
  z-index: 20;
  padding: 14px 22px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-logo {
  color: #fffaf3;
  text-decoration: none;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  text-decoration: none;
  color: #fffaf3;
  background-color: rgba(255, 255, 255, 0.18);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.nav-links a:hover {
  transform: translateY(-2px);
  background-color: #ffffff;
  color: #ff9f7a;
}

.hero-card {
  min-height: clamp(180px, 30vw, 280px);
  padding: clamp(20px, 4vw, 36px);
  display: flex;
  align-items: flex-start;
  scroll-margin-top: 120px;
}

.hero-text h1 {
  margin: 0;
  color: #fffaf3;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 700;
  animation: fadeInUp 0.9s ease both;
}

.hero-text h2 {
  margin: clamp(10px, 2vw, 18px) 0 0 0;
  color: #fffaf3;
  font-size: clamp(1.1rem, 2.7vw, 2rem);
  line-height: 1.15;
  font-weight: 700;
  animation: fadeInUp 1.2s ease both;
}

.accent {
  color: #ff9f7a;
}

.glow-accent {
  display: inline-block;
  animation: pulseAccent 2.4s ease-in-out infinite;
}

.about-card {
  min-height: clamp(180px, 28vw, 260px);
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  scroll-margin-top: 120px;
}

.about-card p {
  margin: 0;
  color: #fffaf3;
  font-size: clamp(1rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  font-weight: 700;
}

.slider-card {
  position: relative;
  padding: clamp(24px, 4vw, 40px) clamp(40px, 7vw, 85px);
  min-height: clamp(260px, 38vw, 420px);
  scroll-margin-top: 120px;
}

.slider-window {
  width: 100%;
  height: clamp(280px, 56vw, 560px);
  margin-inline: auto;
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.slider-window.is-wide {
  width: 100%;
  max-width: 760px;
  height: clamp(280px, 40vw, 470px);
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
  animation: fadeSlide 0.6s ease;
}

.slide-content {
  width: min(100%, 760px);
  height: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 16px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(8px, 1.4vw, 12px);
  color: #fffaf3;
}

.slide-media {
  width: 100%;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.18);
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-image-top {
  object-position: center top;
}

.slide-fit-square .slide-content {
  max-width: 560px;
}

.slide-fit-landscape .slide-content {
  max-width: 760px;
}

.slide-fit-wide .slide-content {
  max-width: 760px;
}

.slide-fit-wide .slide-image {
  object-fit: contain;
}

.slide-fit-wide .slide-media {
  background-color: rgba(255, 255, 255, 0.08);
}

.slide-caption {
  margin: 0;
  text-align: center;
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  line-height: 1.35;
  font-weight: 700;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ff9f7a;
  font-size: clamp(2rem, 5vw, 4rem);
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
}

.arrow:hover {
  transform: translateY(-50%) scale(1.15);
  color: #ff8358;
}

.left-arrow {
  left: clamp(10px, 2vw, 20px);
}

.right-arrow {
  right: clamp(10px, 2vw, 20px);
}

.dots {
  text-align: center;
  margin-top: clamp(14px, 2vw, 22px);
}

.dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #ffffff;
  opacity: 0.5;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dot:hover {
  transform: scale(1.25);
}

.active-dot {
  opacity: 1;
  transform: scale(1.2);
}

.footer-card {
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
  scroll-margin-top: 120px;
}

.footer-card p {
  margin: 6px 0;
  color: #ffffff;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  line-height: 1.5;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseAccent {
  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 159, 122, 0);
  }
  50% {
    transform: scale(1.06);
    text-shadow: 0 0 12px rgba(255, 159, 122, 0.35);
  }
}

@keyframes floatDecor {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

@media (max-width: 700px) {
  .navbar {
    justify-content: center;
  }

  .nav-logo {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-links a {
    padding: 8px 14px;
  }
}

@media (max-width: 600px) {
  .page {
    width: 100%;
    padding: 14px;
  }

  .nav-card,
  .hero-card,
  .about-card,
  .slider-card,
  .footer-card {
    border-radius: 24px;
  }

  .slider-card {
    padding: 22px 42px;
  }

  .slider-window {
    height: clamp(250px, 78vw, 380px);
  }

  .slider-window.is-wide {
    width: 100%;
    height: clamp(230px, 64vw, 330px);
  }

  .slide-content {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    gap: 8px;
  }

  .slide-caption {
    font-size: 0.92rem;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .decor {
    opacity: 0.38;
  }
}
