/* Variables CSS */
:root {
  --font-figtree: 'Figtree', sans-serif;
  --base-white: #FFFFFF;
  --base-gray: #F3F4F6;
  --base-text: #11182C;
  --base-text-secondary: #4B5563;
  --brand-purple: #9333ea;
  --brand-pink: #ec4899;
  --brand-blue: #3b82f6;
  --brand-gradient: linear-gradient(to right, #3b82f6, #9333ea, #ec4899);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-figtree);
  color: var(--base-text);
  background: var(--base-white);
  overflow-x: hidden;
}

/* Navbar */
.sticky-navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8) !important;
  animation: fadeInDown 0.5s ease-out 0.2s both;
}

.navbar-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-brand img[style*="display: none"] + .logo-text {
  display: block !important;
}

.nav-link {
  color: var(--base-text) !important;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--brand-purple) !important;
  transform: scale(1.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-purple);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.dropdown-menu {
  border: 1px solid var(--base-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.3s ease-out;
}

.dropdown-item {
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(147, 51, 234, 0.1);
  color: var(--brand-purple);
  transform: translateX(4px);
}

/* Buttons */
.btn-primary-gradient {
  background: var(--brand-gradient);
  color: white;
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(147, 51, 234, 0.4);
  filter: brightness(1.1);
}

.btn-secondary-gradient {
  border: 2px solid var(--brand-purple);
  color: var(--brand-purple);
  background: var(--base-white);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary-gradient:hover {
  background: rgba(147, 51, 234, 0.1);
  transform: scale(1.05);
  color: var(--brand-purple);
}

.btn-ghost {
  color: var(--brand-purple);
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-ghost:hover {
  background: rgba(147, 51, 234, 0.1);
  transform: scale(1.05);
  color: var(--brand-purple);
}

.btn-light {
  background: var(--base-white);
  color: var(--base-text);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background: #f3f4f6;
  transform: scale(1.05);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.aurora-background {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 90vw);
  height: min(800px, 90vw);
  opacity: 0.3;
  filter: blur(100px);
  background: radial-gradient(circle, rgba(147, 51, 234, 0.6), rgba(59, 130, 246, 0.6));
  animation: pulse 4s ease-in-out infinite;
}

.floating-particles {
  position: absolute;
  inset: 0;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  animation: float 8s ease-in-out infinite;
}

.particle-1 {
  width: 100px;
  height: 100px;
  left: 20%;
  top: 30%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.3), transparent);
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle-2 {
  width: 150px;
  height: 150px;
  left: 35%;
  top: 40%;
  background: radial-gradient(circle, rgba(157, 56, 224, 0.3), transparent);
  animation-delay: 0.5s;
  animation-duration: 10s;
}

.particle-3 {
  width: 200px;
  height: 200px;
  left: 50%;
  top: 50%;
  background: radial-gradient(circle, rgba(167, 61, 214, 0.3), transparent);
  animation-delay: 1s;
  animation-duration: 12s;
}

.particle-4 {
  width: 250px;
  height: 250px;
  left: 65%;
  top: 60%;
  background: radial-gradient(circle, rgba(177, 66, 204, 0.3), transparent);
  animation-delay: 1.5s;
  animation-duration: 14s;
}

.particle-5 {
  width: 300px;
  height: 300px;
  left: 80%;
  top: 70%;
  background: radial-gradient(circle, rgba(187, 71, 194, 0.3), transparent);
  animation-delay: 2s;
  animation-duration: 16s;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--base-text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* Packs Section */
.packs-section {
  background: var(--base-gray);
  padding: 80px 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--base-text);
}

.pack-card {
  background: var(--base-white);
  border-radius: 16px;
  padding: 32px;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent, transparent);
  transition: all 0.3s ease;
  z-index: 0;
}

.pack-card:hover::before {
  background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.05), rgba(147, 51, 234, 0.1));
}

.pack-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.pack-card-purple:hover {
  box-shadow: 0 20px 40px rgba(147, 51, 234, 0.2);
}

.pack-card-pink:hover {
  box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.pack-card-blue:hover {
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.pack-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.pack-card:hover .pack-icon {
  transform: scale(1.1) rotate(3deg);
}

.bg-purple {
  background: rgba(147, 51, 234, 0.1);
  color: var(--brand-purple);
}

.pack-card:hover .bg-purple {
  background: rgba(147, 51, 234, 0.2);
}

.bg-pink {
  background: rgba(236, 72, 153, 0.1);
  color: var(--brand-pink);
}

.pack-card:hover .bg-pink {
  background: rgba(236, 72, 153, 0.2);
}

.bg-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-blue);
}

.pack-card:hover .bg-blue {
  background: rgba(59, 130, 246, 0.2);
}

.pack-icon i {
  font-size: 2rem;
}

.pack-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--base-text);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  position: relative;
  z-index: 1;
}

.pack-card-purple:hover .pack-title {
  color: var(--brand-purple);
}

.pack-card-pink:hover .pack-title {
  color: var(--brand-pink);
}

.pack-card-blue:hover .pack-title {
  color: var(--brand-blue);
}

.pack-description {
  color: var(--base-text-secondary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.pack-link {
  color: var(--brand-purple);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.pack-link:hover {
  text-decoration: underline;
}

.pack-link .arrow {
  margin-left: 4px;
  transition: transform 0.3s ease;
}

.pack-link:hover .arrow {
  transform: translateX(4px);
}

/* Levels Section */
.levels-section {
  padding: 80px 0;
  background: var(--base-white);
}

.level-card {
  padding: 2rem;
}

.level-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.level-card:hover .level-icon {
  transform: scale(1.1);
  animation: pulseGlow 2s ease-in-out infinite;
}

.bg-blue-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-blue);
}

.bg-purple-icon {
  background: rgba(147, 51, 234, 0.1);
  color: var(--brand-purple);
}

.bg-pink-icon {
  background: rgba(236, 72, 153, 0.1);
  color: var(--brand-pink);
}

.level-icon i {
  font-size: 2.5rem;
}

.level-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--base-text);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.level-card:hover .level-title {
  color: var(--brand-purple);
}

.level-description {
  color: var(--base-text-secondary);
}

/* KeSoftware Section */
.kesoftware-section {
  background: var(--base-text);
  color: white;
  padding: 80px 0;
}

.kesoftware-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.kesoftware-image img {
  transition: transform 0.5s ease;
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.kesoftware-image:hover img {
  transform: scale(1.1);
}

.kesoftware-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.kesoftware-text {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.kesoftware-text strong {
  color: white;
}

/* Footer */
.footer {
  background: var(--base-text);
  color: white;
  padding: 60px 0 30px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.footer-logo-link:hover .footer-logo {
  transform: scale(1.05);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo[style*="display: none"] + .footer-logo-text {
  display: block !important;
}

.footer-description {
  color: var(--base-text-secondary);
  font-size: 0.875rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--base-text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-copyright {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--base-text-secondary);
  font-size: 0.875rem;
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  animation: fadeOut 0.8s ease-in-out 2s forwards;
}

.splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.splash-particles::before,
.splash-particles::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}

.splash-particles::before {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.splash-particles::after {
  top: 60%;
  right: 20%;
  animation-delay: 1s;
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.splash-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  animation: scaleIn 0.8s ease-out;
}

.splash-line {
  width: 0;
  height: 4px;
  background: white;
  margin: 0 auto 1.5rem;
  border-radius: 2px;
  animation: expandWidth 0.6s ease-out 0.8s forwards;
}

.splash-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.25rem);
  animation: slideUp 0.6s ease-out 0.9s both;
}

.splash-circle {
  position: absolute;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: expandCircle 3s ease-in-out infinite;
}

.circle-1 {
  width: 384px;
  height: 384px;
  animation-delay: 0s;
}

.circle-2 {
  width: 288px;
  height: 288px;
  animation-delay: 0.5s;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-gradient);
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, transform 0.1s ease;
  box-shadow: 0 0 10px rgba(147, 51, 234, 0.5), 0 0 20px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: none;
}

.custom-cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: white;
}

.custom-cursor.hovering {
  width: 48px;
  height: 48px;
}

.custom-cursor.hovering::after {
  width: 8px;
  height: 8px;
}

@media (min-width: 769px) {
  .custom-cursor {
    display: block;
  }
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 128px;
  }
}

@keyframes expandCircle {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translateY(-30px) translateX(20px) scale(1.1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-60px) translateX(-10px) scale(0.9);
    opacity: 0.25;
  }
  75% {
    transform: translateY(-30px) translateX(-20px) scale(1.05);
    opacity: 0.3;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.4);
  }
  50% {
    box-shadow: 0 0 20px 5px rgba(147, 51, 234, 0.6);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    padding: 100px 0 40px;
  }

  .packs-section,
  .levels-section,
  .kesoftware-section {
    padding: 60px 0;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .custom-cursor {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }
}
