:root {
  --primary-color: #4087E8;
  --light-blue: #EDF5FF;
  --white: #FFFFFF;
  --navy: #223653;
  --bg-color: #EDF5FF;
  --card-bg: #FFFFFF;
  --text-color: #223653;
  --text-muted: #223653;
  --accent-gradient: linear-gradient(135deg, #4087E8, #223653);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glow with Floating Motion */
body::before {
  content: "";
  position: fixed;
  top: -20vh;
  left: -20vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(64, 135, 232, 0.18) 0%, rgba(237, 245, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: ambientFloat 12s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -20vh;
  right: -20vw;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(34, 54, 83, 0.12) 0%, rgba(237, 245, 255, 0) 70%);
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  animation: ambientFloat 15s ease-in-out infinite alternate-reverse;
}

@keyframes ambientFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4vw, 4vh) scale(1.12);
  }
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(34, 54, 83, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--primary-color);
  padding: 0.9rem 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(34, 54, 83, 0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.06);
}

/* Hamburger Menu Button (Hidden on Desktop) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  box-shadow: none;
  border-radius: 0;
  z-index: 110;
   animation: none;
}

.menu-toggle::after {
  display: none;
}

.menu-toggle:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  flex-wrap: wrap;
}

nav li {
  margin-bottom: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.05em;
}

nav a:hover,
nav a:focus,
nav a.active {
  color: var(--light-blue);
  text-decoration: none;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a.nav-cta {
  background: var(--primary-color);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(64, 135, 232, 0.35);
}

nav a.nav-cta:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

nav a.nav-cta::after {
  display: none;
}

/* Main Content */
main {
  max-width: 1000px;
  margin: 100px auto 80px;
  padding: 0 5%;
}

section {
  scroll-margin-top: 90px;
}

/* Hero Section */
section.hero {
  text-align: center;
  padding: 2rem 0 4rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-img {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: auto;
  margin-bottom: 3rem;
  display: block;
  border-bottom: 4px solid var(--primary-color);
  box-shadow: 0 12px 30px rgba(34, 54, 83, 0.2);
  animation: heroReveal 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

/* Section Titles */
.section-title {
  position: relative;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--navy);
  line-height: 1.4;
  letter-spacing: 0.05em;
  padding-top: 2rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.04em;
}

h2::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 24px;
  background: var(--primary-color);
  border-radius: 3px;
}

/* Cards */
section:not(.hero) {
  position: relative;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 4.5rem 3.5rem 3.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 16px 36px rgba(34, 54, 83, 0.1);
  border: 2px solid var(--navy);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

section:not(.hero):hover {
  box-shadow: 0 22px 45px rgba(34, 54, 83, 0.16);
}

.section-label {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  font-family: 'Anton', sans-serif;
  font-size: 1.4rem;
  font-style: italic;
  padding: 0.45rem 2.5rem 0.45rem 1.5rem;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  font-weight: bold;
  letter-spacing: 0.1em;
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.15s;
}

section.visible .section-label {
  transform: translateX(0);
}

.blue-text {
  color: var(--primary-color);
  display: inline-block;
}

.count-num {
  color: var(--primary-color);
  font-size: 1.3em;
  font-weight: 900;
  margin: 0 0.15rem;
  display: inline-block;
}

/* Animated Underline */
u {
  text-decoration: none;
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 3px;
  padding-bottom: 3px;
  transition: background-size 0.9s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s;
}

section.visible u {
  background-size: 100% 3px;
}

p,
dd,
li {
  color: var(--text-color);
  font-size: 1.08rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

/* Buttons with Shine & Pulse */
button {
  position: relative;
  overflow: hidden;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  padding: 1.15rem 3.8rem;
  font-size: 1.2rem;
  font-weight: 900;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
  margin: 2.5rem auto 0;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 24px rgba(64, 135, 232, 0.35);
  font-family: inherit;
  animation: btnPulse 3s infinite;
}

button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: btnShine 4s infinite;
}

@keyframes btnShine {
  0%, 65% {
    left: -120%;
  }
  100% {
    left: 160%;
  }
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(64, 135, 232, 0.35), 0 0 0 0 rgba(64, 135, 232, 0.4);
  }
  50% {
    box-shadow: 0 8px 24px rgba(64, 135, 232, 0.35), 0 0 0 12px rgba(64, 135, 232, 0);
  }
}

button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 30px rgba(34, 54, 83, 0.4);
  animation: none;
}

.btn-blue {
  background: var(--primary-color);
}

.btn-blue:hover {
  background: var(--navy);
  border-color: var(--navy);
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

a:hover {
  text-decoration: underline;
}

a button {
  margin: 0 auto;
  display: inline-block;
}

#contact {
  text-align: center;
}

#contact h2 {
  justify-content: center;
}

#contact h2::before {
  display: none;
}

/* Lists & Interactive Hover Motion */
ul:not(nav ul) {
  margin-bottom: 1.5rem;
}

ul:not(nav ul) li {
  margin-bottom: 1rem;
  list-style: none;
  position: relative;
  background: var(--light-blue);
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.1rem 1.4rem 1.1rem 2.6rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

ul:not(nav ul) li:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 18px rgba(64, 135, 232, 0.18);
}

ul:not(nav ul) li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1.1rem;
  transform: translateY(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary-color);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

ul:not(nav ul) li:hover::before {
  transform: translateY(-50%) scale(1.4);
  background: var(--navy);
}

ul:not(nav ul) li h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  padding-left: 0;
  color: var(--navy);
}

ul:not(nav ul) li h2::before {
  display: none;
}

ol {
  counter-reset: custom-counter;
}

ol li {
  margin-bottom: 1.5rem;
  list-style: none;
  position: relative;
  background: var(--light-blue);
  border-radius: 10px;
  border: 1px solid rgba(64, 135, 232, 0.25);
  padding: 1.4rem 1.5rem 1.4rem 4.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

ol li:hover {
  transform: translateX(8px) translateY(-2px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 22px rgba(64, 135, 232, 0.18);
}

ol li::before {
  counter-increment: custom-counter;
  content: "0" counter(custom-counter);
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  font-family: 'Anton', sans-serif;
  color: var(--primary-color);
  font-size: 2.3rem;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
}

ol li:hover::before {
  transform: scale(1.12);
  color: var(--navy);
}

ol li h2 {
  padding-left: 0;
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

ol li h2::before {
  display: none;
}

ol li p {
  margin-bottom: 0;
  font-size: 1rem;
}

#results > h2 {
  margin-top: 2.5rem;
}

#results > p {
  background: var(--light-blue);
  padding: 1.4rem 1.6rem;
  border-radius: 10px;
  border-left: 5px solid var(--navy);
  margin-bottom: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#results > p:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34, 54, 83, 0.12);
}

dl dt {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
}

dl dd {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-color);
}

/* Scroll & Staggered Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateX(-24px) translateY(12px);
  transition:
    opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--item-index, 0) * 0.12s);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Responsive (Tablet & Smartphone) */
@media (max-width: 768px) {
  header {
    padding: 0.75rem 0;
  }

  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0 1.2rem;
  }

  .logo img {
    height: 30px;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 12px 24px rgba(34, 54, 83, 0.35);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  nav.open {
    max-height: 460px;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1.25rem;
  }

  nav li {
    border-bottom: 1px solid rgba(237, 245, 255, 0.12);
  }

  nav li:last-child {
    border-bottom: none;
    padding-top: 0.75rem;
    text-align: center;
  }

  nav a {
    display: block;
    padding: 0.8rem 0.25rem;
    font-size: 0.95rem;
  }

  nav a::after {
    display: none;
  }

  nav a.nav-cta {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    text-align: center;
  }

  main {
    margin: 56px auto 50px;
    padding: 0 4%;
  }

  section {
    scroll-margin-top: 72px;
  }

  section.hero {
    padding: 0 0 2.5rem;
  }

  .hero-img {
    margin-bottom: 1.8rem;
  }

  section:not(.hero) {
    padding: 3.4rem 1.25rem 2rem;
    margin-bottom: 2.2rem;
    border-radius: 10px;
  }

  .section-label {
    font-size: 1.1rem;
    padding: 0.35rem 1.8rem 0.35rem 1rem;
  }

  .section-title {
    font-size: 1.55rem;
    padding-top: 0.5rem;
    margin-bottom: 1.8rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  p,
  dd,
  li {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  ul:not(nav ul) li {
    padding: 0.95rem 1rem 0.95rem 2.1rem;
    margin-bottom: 0.8rem;
  }

  ul:not(nav ul) li::before {
    left: 0.85rem;
    width: 8px;
    height: 8px;
  }

  ul:not(nav ul) li h2 {
    font-size: 1.1rem;
    line-height: 1.5;
  }

  ol li {
    padding: 1.1rem 1rem 1.1rem 3.5rem;
    margin-bottom: 1rem;
  }

  ol li::before {
    top: 1rem;
    left: 0.85rem;
    font-size: 1.8rem;
  }

  ol li h2 {
    font-size: 1.15rem;
  }

  ol li p {
    font-size: 0.92rem;
  }

  #results > p {
    padding: 1.1rem 1.15rem;
  }

  button,
  a button {
    width: 100%;
    max-width: 320px;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }
}
