:root {
  --brand-900: #0f1f38;
  --brand-700: #145877;
  --accent-600: #0e7490;
  --surface-0: #f4f7fb;
  --surface-1: #ffffff;
  --text-900: #0f172a;
  --text-700: #334155;
  --ring: rgba(14, 116, 144, 0.25);
}

html {
  scroll-behavior: smooth;
}

body.site-body {
  background:
    radial-gradient(72rem 38rem at 8% -10%, rgba(20, 88, 119, 0.14), transparent 60%),
    radial-gradient(64rem 34rem at 100% 0%, rgba(14, 116, 144, 0.1), transparent 60%),
    linear-gradient(180deg, #f4f7fb 0%, #f7fafd 100%);
  color: var(--text-900);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

p,
li,
input,
textarea,
button,
a {
  letter-spacing: 0.01em;
}

main > section {
  position: relative;
}

#siteHeader.is-scrolled {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-bottom-color: rgba(148, 163, 184, 0.5);
  background: rgba(255, 255, 255, 0.93);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.55rem;
  width: 100%;
  height: 2px;
  border-radius: 9999px;
  background: var(--accent-600);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.hero-slide {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.85s ease, transform 6.5s ease;
  will-change: opacity, transform;
}

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

.hero-overlay {
  background: transparent;
}

.hero-copy {
  background: linear-gradient(140deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(6px);
}

.hero-copy h1,
.hero-copy p {
  text-shadow: 0 5px 18px rgba(2, 6, 23, 0.86);
}

.hero-copy .hero-title {
  color: #ffffff;
  text-shadow: 0 5px 18px rgba(2, 6, 23, 0.86);
}

.hero-copy p {
  color: #e2e8f0;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.hero-nav-btn:hover {
  background: rgba(8, 145, 178, 0.5);
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-prev {
  left: 1.25rem;
}

.hero-nav-next {
  right: 1.25rem;
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.22s ease, background-color 0.22s ease;
}

.hero-dot.is-active {
  width: 1.6rem;
  background: rgba(34, 211, 238, 0.95);
  border-color: rgba(34, 211, 238, 1);
}

.card-hover {
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  border-color: rgba(14, 116, 144, 0.35);
}

.glass {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

input,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent-600) !important;
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

footer {
  background:
    radial-gradient(38rem 20rem at 0% 0%, rgba(14, 116, 144, 0.2), transparent 62%),
    linear-gradient(145deg, #0b1322, #101a2e 55%, #0d172a);
}

#lightboxImage {
  animation: fadeInScale 0.24s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide,
  .card-hover,
  .reveal {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .hero-nav-btn {
    display: none;
  }
}
