@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #243e81, #456b9a);
  background-attachment: fixed;
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px; 
  background: rgba(24, 41, 87, 0.3);
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); 
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 150px;
  height: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 80px;
  background: rgba(24, 41, 87, 0.3);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

nav a {
  margin-left: 40px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

nav a.active {
  color: white;
}

nav a.active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -6px;
  left: 0;
  background: white;
  box-shadow: 0 0 10px white;
}

main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 180px 100px; 
  margin-top: -0; 
}

.welcome h1 {
  font-size: 160px;
  font-weight: 800;
  margin: 0;
  margin-bottom: 0;
  text-shadow: 7px 7px rgba(0, 0, 0, 0.2);
}

.welcome p {
  font-size: 28px;
  font-weight: 600;
  margin-top: 1px;
  margin-left: 10px;
  line-height: 1.3;
}

.gacha-btn {
  margin-top: 1px;
  margin-left: 5px;
  padding: 14px 40px;
  font-size: 22px;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  background: white;
  color: #2a4d83;
  box-shadow: 4px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none; 
  display: inline-block;
}

.gacha-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.user-dropdown {
  display: inline-block;
  position: relative;
  margin-left: 40px; 
}

.user-name {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 18px;
  cursor: pointer;
  padding-bottom: 10px; 
  transition: color 0.3s ease;
}

.user-name:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.dropdown-content {
  display: none; 
  position: absolute;
  right: 0;
  top: 100%; 
  background-color: white;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
  z-index: 2000;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #243e81; 
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 16px;
  margin-left: 0; 
  text-align: center;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #d9534f; 
}

main.home-page {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 100px 80px; 
  overflow: hidden; 
  min-height: 80vh;
}

.hero-text {
  max-width: 600px;
  z-index: 2; 
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: #ffd700; 
  margin-bottom: 20px;
  backdrop-filter: blur(5px);
}

.hero-text h1 {
  font-size: 100px; 
  font-weight: 900;
  line-height: 1;
  margin: 0 0 20px 0;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
  display: block; 
}

.hero-desc {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 90%;
}

.cta-group {
  display: flex;
  gap: 20px;
}

.btn-primary {
  background: white;
  color: #243e81;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.hero-visual {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glowing-orb {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(45deg, #00f2fe, #4facfe, #00c6fb, #005bea);
  background-size: 400% 400%; 
  box-shadow: 
    0 0 60px rgba(0, 242, 254, 0.6), 
    inset 0 0 60px rgba(79, 172, 254, 0.8); 
  animation: spinOrb 10s linear infinite, gradientMove 5s ease infinite;
  z-index: 2;
  position: relative;
}

.orb-backdrop {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  z-index: 1;
  animation: pulseBackdrop 4s infinite alternate;
}

@keyframes spinOrb {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulseBackdrop {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 0.9; transform: scale(1.1); }
}

.orb-backdrop {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  filter: blur(40px);
  z-index: 1;
  animation: pulseBackdrop 4s infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes pulseBackdrop {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 0.8; transform: scale(1.1); }
}

@media (max-width: 1024px) {
  main.home-page {
    flex-direction: column-reverse;
    justify-content: center;
    text-align: center;
    padding-top: 50px;
  }
  
  .hero-text {
    margin-top: -50px; 
  }

  .cta-group {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    height: 300px; 
    transform: scale(0.7);
    margin-bottom: 20px;
  }
}