html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: white;
  overflow-x: hidden;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #1A535C, #294881);
  padding: 15px 30px;
  z-index: 5;
  position: relative;
}

.nav-left {
  font-family: 'Pixelify Sans', cursive;
  font-size: 24px;
  color: white;
}

.nav-right {
  display: flex;
  gap: 25px;
}

.nav-right a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  position: relative;
}

.nav-right a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s;
}

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

.hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 20px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background: radial-gradient(circle at top, #d6e5f5 0%, #ffffff 80%);
}

.spline-container {
  flex: 1 1 400px;
  min-width: 300px;
  max-width: 600px;
  position: relative;
  top: -180px;
  height: 700px;
  overflow: visible;
}

spline-viewer {
  width: 100%;
  height: 100%;
  transform: scale(1.5);
  transform-origin: center;
}

.intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  flex: 1 1 400px;
  min-width: 250px;
  max-width: 600px;
  font-family: 'Pixelify Sans', cursive;
  color: #1A315C;
}

.intro-text h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.intro-text h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
}

.intro-text p {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  margin-top: -2px;
}

.typing-effect {
  border-right: 2px solid #1A315C;
  animation: blink 0.7s step-end infinite;
}

.typing-effect.fade-out {
  transition: opacity 0.7s ease;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.name-text {
  position: relative;
  display: inline-block;
  color: #1A315C;
  overflow: hidden;
  transition: color 0.4s ease;
}

.name-text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: #1A315C;
  z-index: -1;
  transition: width 0.4s ease;
}

.name-text:hover::before {
  width: 100%;
}

.name-text:hover {
  color: white;
}

.description-text {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.description-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background-color: #1A315C;
  transition: width 0.3s ease;
}

.description-text:hover::after {
  width: 100%;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Pixelify Sans', cursive;
  background: linear-gradient(90deg, #1A315C, #246670);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 48px;
  min-width: 48px;
}

.btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.primary-btn {
  padding: 0 25px;
  font-size: 18px;
}

.icon-only img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

#backgroundCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .navbar {
    padding: 20px 10px;
  }

  .nav-left {
    font-size: 15px;
  }

  .nav-right {
    gap: 4px;
  }

  .nav-right a {
    font-size: 8px;
    font-weight: 200;
  }

  .hero-container {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }

  .spline-container {
    width: 200px;
    height: 200px;
    margin: 60px auto 0;
    overflow: visible;
  }

  spline-viewer {
    width: 100%;
    height: 120%;
    transform: scale(1);
    transform-origin: center;
  }

  .intro-text {
    margin-top: -40px;
    margin-bottom: -120px;
  }

  .intro-text h2 {
    font-size: 16px;
    color: #555;
  }

  .intro-text h1 {
    font-size: 24px;
    color: #030632;
  }

  .intro-text p {
    font-size: 13px;
    color: #070224;
    line-height: 1.1;
  }

  .primary-btn {
    font-size: 14px;
    padding: 0 18px;
  }

  .btn {
    height: 42px;
    min-width: 42px;
  }

  .icon-only img {
    width: 18px;
    height: 18px;
  }
}
