@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  background: #0d121d;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  position: relative;
}

nav {
  width: 100%;
  padding: 2rem 5rem;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  animation: slideDown 0.8s ease-out;
  background-color: rgba(13, 18, 29, 0.85);
  backdrop-filter: blur(10px);
  
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(192, 50, 250, 0.5));
  animation: pulse 3s ease-in-out infinite;
}

.logo-container:hover {
  transform: translateY(-2px);
}

nav div div a {
  font-family: "Montserrat", sans-serif;
  color: transparent;
  background: linear-gradient(135deg, #c032fa 0%, #7b3ff2 50%, #2e00f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 800;
  font-size: 2rem;
}

nav div img {
  width: 3.5rem;
}

ul {
  background: rgba(192, 50, 250, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(192, 50, 250, 0.3);
  border-radius: 50px;
  display: flex;
  list-style: none;
  gap: 0.3rem;
  box-shadow: 0 10px 40px rgba(160, 12, 223, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

ul li {
  position: relative;
  z-index: 1;
}

ul li a {
  font-size: 1rem;
  color: #f1f1f1;
  text-decoration: none;
  font-weight: 500;
  padding: 1.2rem 2.2rem;
  display: block;
  letter-spacing: 0.5px;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

ul li a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(192, 50, 250, 0.4), transparent 70%);
  opacity: 0;
}

ul li a:hover {
  color: #ffffff;
  transform: scale(1.08);
}

ul li a:hover::before {
  width: 110%;
  height: 110%;
  opacity: 1;
}

.hero {
  display: flex;
  min-height: 100vh;
  padding-top: 8rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  gap: 2rem;
  background: linear-gradient(90deg, rgb(13, 18, 28) 40%, rgba(13, 18, 28, 0.7)),
              url("./image/end.png") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
}

.hero > * {
  margin: 0 5rem;
}

.first-half {
  color: #f1f1f1;
  flex: 1;
  max-width: 800px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.first-half h1 {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #f1ceff 0%, #c032fa 50%, #2e00f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: textShine 3s ease-in-out infinite;
  background-size: 200% 200%;
}

@keyframes textShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.first-half h1:first-child {
  animation-delay: 0.5s;
}

.first-half h1:last-child {
  animation-delay: 0.7s;
}

.subtitle {
  font-size: 1.3rem;
  color: #b0b0b0;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 1.1s both;
}

.cta-button {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cta-primary {
  background: linear-gradient(135deg, #c032fa, #2e00f0);
  color: white;
  box-shadow: 0 10px 40px rgba(192, 50, 250, 0.4);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(192, 50, 250, 0.6);
}

.cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.cta-primary:hover::before {
  left: 100%;
}

.cta-secondary {
  background: rgba(192, 50, 250, 0.1);
  color: #c032fa;
  border: 2px solid rgba(192, 50, 250, 0.5);
  backdrop-filter: blur(10px);
}

.cta-secondary:hover {
  background: rgba(192, 50, 250, 0.2);
  border-color: #c032fa;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(192, 50, 250, 0.3);
}

.visual-element {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dragon-container {
  position: relative;
  width: 600px;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dragon-container img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;

  animation: floatImage 6s ease-in-out infinite,
             glowPulse 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes glowPulse {
  0%,
  100% {
   filter: drop-shadow(0 0 20px rgba(193, 50, 250, 0.306))
    drop-shadow(0 0 50px rgba(193, 50, 250, 0.267));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(193, 50, 250, 0.757))
    drop-shadow(0 0 80px rgba(192, 50, 250, 0.4));
  }
}

/* @media (max-width: 1024px) {
  nav {
    padding: 1.5rem 2rem;
  }

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .first-half h1 {
    font-size: 3.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .visual-element {
    margin-top: 3rem;
  }

  .dragon-container {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  nav {
    margin: 1rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
  }

  ul {
    width: 100%;
    justify-content: center;
  }

  .first-half h1 {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .dragon-container {
    width: 300px;
    height: 300px;
  }
} */
