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

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

:root {
  --primary-color: #00ffff;
  --secondary-color: #ff0080;
  --accent-color: #ffff00;
  --bg-color: #000011;
  --text-color: #ffffff;
  --glow-color: #00ffff;
}

body {
  font-family: "Rajdhani", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Particle System Background */
#particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(ellipse at center, #001122 0%, #000011 100%);
}

.neural-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 25% 25%, rgba(255, 0, 128, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 0, 0.2) 0%, transparent 50%);
  background-size: 50px 50px, 50px 50px, 200px 200px, 200px 200px;
  animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* AI Logo */
.ai-logo {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-logo.small {
  width: 40px;
  height: 40px;
}

.logo-core {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
  animation: logoRotate 3s linear infinite;
}

.neural-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.brain-waves {
  position: absolute;
  width: 100%;
  height: 100%;
}

.brain-waves span {
  position: absolute;
  width: 2px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 1px;
  animation: brainWave 1.5s ease-in-out infinite;
}

.brain-waves span:nth-child(1) {
  top: 20%;
  left: 30%;
  animation-delay: 0s;
}

.brain-waves span:nth-child(2) {
  top: 40%;
  right: 25%;
  animation-delay: 0.3s;
}

.brain-waves span:nth-child(3) {
  bottom: 30%;
  left: 40%;
  animation-delay: 0.6s;
}

.ai-text {
  font-family: "Orbitron", monospace;
  font-weight: 900;
  font-size: 16px;
  color: var(--text-color);
  text-shadow: 0 0 10px var(--primary-color);
  z-index: 2;
}

@keyframes logoRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

@keyframes brainWave {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(2);
    opacity: 1;
  }
}

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

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-text {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}

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

.auth-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.neural-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

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

.neural-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.4);
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: var(--text-color);
  font-size: inherit;
  font-weight: inherit;
  animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--primary-color);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--secondary-color);
  z-index: -2;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

@keyframes glitch-1 {
  0%,
  100% {
    transform: translate(0);
  }
  10% {
    transform: translate(-2px, -2px);
  }
  20% {
    transform: translate(2px, 2px);
  }
}

@keyframes glitch-2 {
  0%,
  100% {
    transform: translate(0);
  }
  30% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-2px, 2px);
  }
}

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

.matrix-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
}

.brand-name {
  font-family: "Orbitron", monospace;
  color: var(--secondary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 0 30px var(--secondary-color);
}

.hero-title {
  font-family: "Orbitron", monospace;
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.word {
  display: inline-block;
  animation: wordGlow 3s ease-in-out infinite;
}

.word:nth-child(2) {
  animation-delay: 0.5s;
}

.word:nth-child(3) {
  animation-delay: 1s;
}

@keyframes wordGlow {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.5);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.typing-text {
  border-right: 2px solid var(--primary-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--primary-color);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

.hero-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary,
.btn-secondary {
  padding: 1.2rem 2.5rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover .btn-glow,
.btn-secondary:hover .btn-glow {
  left: 100%;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 255, 255, 0.4);
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-element {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
  opacity: 0.7;
}

.float-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 1s;
}

.float-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

.float-element:nth-child(4) {
  top: 40%;
  right: 30%;
  animation-delay: 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* Sections */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 4rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.about-card {
  background: rgba(0, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(0, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.about-card:hover::before {
  transform: translateX(100%);
}

.about-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--primary-color);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.card-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--primary-color));
}

.about-card h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-card p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--primary-color), transparent);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover .card-glow {
  opacity: 0.1;
}

/* NeuroForge Section */
.neuroforge-section {
  background: rgba(255, 0, 128, 0.02);
  border-top: 1px solid rgba(255, 0, 128, 0.2);
  border-bottom: 1px solid rgba(255, 0, 128, 0.2);
}

.neuroforge-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.neural-network-3d {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 400px;
  perspective: 1000px;
}

.network-layer {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
}

.neuron-3d {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(0, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  transform-style: preserve-3d;
}

.neuron-3d::before {
  content: attr(data-value);
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--primary-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neuron-3d:hover::before {
  opacity: 1;
}

.neuron-3d.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 0 30px var(--primary-color);
  animation: neuronPulse 2s infinite;
  transform: rotateY(360deg);
}

@keyframes neuronPulse {
  0%,
  100% {
    transform: scale(1) rotateY(0deg);
  }
  50% {
    transform: scale(1.3) rotateY(180deg);
  }
}

#connections-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.neuroforge-info h3 {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.neuroforge-info p {
  color: #ccc;
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.feature-list {
  margin-bottom: 3rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  padding: 10px;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateX(10px);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.feature-item span {
  color: #ccc;
  font-size: 1.1rem;
}

/* Steps Section */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.step {
  text-align: center;
  position: relative;
  padding: 2rem;
  background: rgba(255, 255, 0, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 0, 0.2);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(255, 255, 0, 0.2);
}

.step-number {
  font-family: "Orbitron", monospace;
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent-color);
  margin-bottom: 1rem;
  text-shadow: 0 0 20px var(--accent-color);
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px var(--accent-color));
}

.step h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.step p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Cases Section */
.cases-section {
  background: rgba(0, 255, 255, 0.02);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.case-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.case-card:hover::after {
  opacity: 0.1;
}

.case-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  border-color: var(--primary-color);
  box-shadow: 0 25px 50px rgba(0, 255, 255, 0.3);
}

.case-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 20px var(--primary-color));
}

.case-card h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.case-card p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.news-card {
  background: rgba(255, 0, 128, 0.05);
  padding: 3rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 0, 128, 0.2);
  position: relative;
}

.news-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3);
}

.news-date {
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.news-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px var(--secondary-color));
}

.news-card h3 {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

.news-card p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 4rem 0 2rem;
  border-top: 2px solid rgba(0, 255, 255, 0.3);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 128, 0.05));
  z-index: -1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-family: "Orbitron", monospace;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-section p {
  color: #ccc;
  line-height: 1.8;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.8rem;
}

.footer-section a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.footer-section a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
  font-size: 1.1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 3px 0;
  transition: 0.3s;
  box-shadow: 0 0 10px var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background: rgba(0, 0, 17, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .neuroforge-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .neural-network-3d {
    justify-content: center;
    gap: 2rem;
    height: 300px;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
  }

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

  .btn-primary,
  .btn-secondary {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-grid,
  .cases-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .ai-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    font-size: 1.2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}
