@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap");

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

body {
  font-family: "Rajdhani", sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  cursor: none;
}

/* Custom Cursor */
.cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #00ffff, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}

/* Loading Screen */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #000, #1a0033, #000);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#lottie-loader {
  width: 200px;
  height: 200px;
}

.loader-text {
  margin-top: 20px;
  font-size: 18px;
  color: #00ffff;
  animation: pulse 2s infinite;
  font-family: "Orbitron", monospace;
}

.loader-progress {
  width: 300px;
  height: 4px;
  background: rgba(0, 255, 255, 0.2);
  margin-top: 20px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  width: 0%;
  animation: loadProgress 3s ease-out forwards;
}

/* Background Canvases */
#particleCanvas,
#threejs-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  position: relative;
  padding: 10px 0;
  transition: all 0.3s ease;
  font-weight: 600;
}

.nav-links a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #00ffff;
  overflow: hidden;
  width: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover::before {
  width: 100%;
}

/* Hero Section */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 50px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  width: 100%;
  align-items: center;
}

.hero-text h1 {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

.word {
  display: inline-block;
  margin-right: 20px;
  background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
}

#hero-subtitle {
  font-size: 2rem;
  color: #ff00ff;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
  font-family: "Orbitron", monospace;
}

#hero-description {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.futuristic-btn {
  position: relative;
  padding: 15px 30px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: "Orbitron", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.futuristic-btn.primary {
  border: 2px solid #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.futuristic-btn.secondary {
  border: 2px solid #ff00ff;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.futuristic-btn::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 ease;
}

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

.hero-visual {
  position: relative;
  height: 500px;
}

#lottie-hero {
  width: 100%;
  height: 100%;
}

#dnaCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

/* Stats Section */
#stats {
  padding: 100px 50px;
  background: rgba(0, 0, 0, 0.8);
  position: relative;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 30px;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.stat-canvas {
  margin-bottom: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #00ffff;
  margin-bottom: 10px;
  font-family: "Orbitron", monospace;
}

.stat-label {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

/* 3D Model Section */
#model-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
}

#medical-model {
  width: 80%;
  height: 80%;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(0, 255, 255, 0.05);
}

.model-controls {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.model-btn {
  padding: 10px 20px;
  border: 1px solid #00ffff;
  background: transparent;
  color: #00ffff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Orbitron", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.model-btn:hover,
.model-btn.active {
  background: #00ffff;
  color: #000;
  box-shadow: 0 0 20px #00ffff;
}

/* Holographic Display Section */
#hologram-section {
  padding: 100px 50px;
  background: rgba(0, 0, 0, 0.95);
  position: relative;
}

.hologram-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hologram-display {
  position: relative;
  padding: 50px;
  border: 2px solid #00ffff;
  border-radius: 20px;
  background: rgba(0, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  animation: hologramGlow 3s ease-in-out infinite;
}

.hologram-content h3 {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  color: #00ffff;
  margin-bottom: 20px;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.hologram-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Animations */
@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes loadProgress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@keyframes hologramGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }

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

  #navbar {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 15px;
  }

  .model-controls {
    flex-direction: column;
    align-items: center;
  }
}
