@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800;900&display=swap");

:root {
  --bg-color: #7fc7e9;
  --text-color: #234048;
  --heading-color: #0a1f27;
  --nav-bg-scrolled: rgba(255, 255, 255, 0.15);
  --nav-shadow-scrolled: rgba(0, 0, 0, 0.12);
  --indicator-bg: rgba(255, 255, 255, 0.45);
}

body.dark-mode {
  --bg-color: #091c44;
  --text-color: #dfe7e4;
  --heading-color: #ffffff;
  --nav-bg-scrolled: rgba(0, 0, 0, 0.25);
  --indicator-bg: rgba(255, 255, 255, 0.08);
}

body {
  position: relative;
  font-family: "Inter", sans-serif;
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  opacity: 0;
  transition: background-color 0.3s ease, color 0.3s ease,
    opacity 0.3s ease-in-out;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body.loaded {
  opacity: 1;
}

@view-transition {
  navigation: auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background: radial-gradient(
      ellipse at 40% 65%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.75) 20%,
      rgba(255, 255, 255, 0.45) 45%,
      rgba(255, 255, 255, 0.2) 65%,
      rgba(255, 255, 255, 0) 80%
    ),
    radial-gradient(
      ellipse at 40% 65%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(180deg, #d7eafd 0%, #b6d7f4 40%, #89c4f4 100%);

  background-blend-mode: screen, screen, normal;
  filter: blur(15px);
}

body.dark-mode::before {
  content: "";
  position: fixed;
  top: var(--mouse-y);
  left: var(--mouse-x);
  width: 650px;
  height: 650px;
  z-index: -1;
  opacity: 0.55;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(94, 67, 249, 0.22) 0%,
    rgba(255, 255, 255, 0.1) 35%,
    rgba(255, 255, 255, 0) 70%
  );
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.star {
  position: fixed;
  background: white;
  border-radius: 50%;
  z-index: -2;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

body.dark-mode .star {
  animation: twinkle var(--star-duration, 3s) infinite ease-in-out;
  opacity: var(--star-opacity, 0.8);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: var(--star-opacity, 0.8);
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(0.8);
  }
}

.hero {
  text-align: center;
  padding-top: 180px;
  padding-bottom: 180px;
}

.hero h1 {
  font-family: "Poppins", sans-serif;
  color: var(--heading-color);
  font-size: 120px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -5px;
  transition: color 0.4s ease;
}

.hero .subtitle {
  margin-top: 30px;
  font-size: 24px;
  opacity: 0.85;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 140px;
  }

  .hero h1 {
    font-size: 70px;
    letter-spacing: -3px;
  }

  .hero .subtitle {
    font-size: 20px;
    max-width: 90%;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero .subtitle {
    font-size: 18px;
    margin-top: 20px;
  }
}

.preload,
.preload * {
  transition: none !important;
}
