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

/* Root variables */
:root {
  --lime: #9ACD32;
  --electric: #00BFFF;
  --hotpink: #FF1493;
  --deeppurple: #4B0082;
  --silver: #C0C0C0;
}

/* Body and general styles */
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(-45deg, var(--lime), var(--electric), var(--deeppurple), var(--hotpink));
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  font-family: 'Exo 2', sans-serif;
  color: white;
  overflow-x: hidden;
}

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

/* App container */
.app-container {
  position: relative;
  min-height: 100vh;
  z-index: 1;
}

/* Glass morphism header */
.header-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo styling */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.metallic-text {
  background: linear-gradient(45deg, var(--silver), white, var(--silver));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

/* Navigation links */
.nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background: rgba(154, 205, 50, 0.2);
  box-shadow: 0 0 20px var(--lime);
}

.nav-link::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;
}

.nav-link:hover::before {
  left: 100%;
}

/* CTA Button */
.cta-button {
  background: linear-gradient(45deg, var(--lime), var(--electric));
  color: black;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(154, 205, 50, 0.4);
}

/* Hero section */
.hero-section {
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  animation: heroFadeIn 2s ease-out;
}

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

.hero-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* Hero title */
.hero-title {
  background: linear-gradient(45deg, var(--lime), var(--electric), var(--hotpink));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(154, 205, 50, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 20px var(--lime), 0 0 30px var(--lime), 0 0 40px var(--lime); }
  to { text-shadow: 0 0 30px var(--electric), 0 0 40px var(--electric), 0 0 50px var(--electric); }
}

/* Hero subtitle */
.hero-subtitle {
  text-shadow: 0 0 20px var(--electric);
}

/* Hero badges */
.badge {
  background: rgba(0, 191, 255, 0.2);
  border: 1px solid var(--electric);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Section containers */
.section-container {
  position: relative;
  backdrop-filter: blur(5px);
}

.section-title {
  font-family: 'Orbitron', monospace;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--lime), var(--electric));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(154, 205, 50, 0.3);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature cards */
.feature-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(154, 205, 50, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--lime), var(--electric), var(--hotpink), var(--deeppurple));
  border-radius: 15px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(154, 205, 50, 0.2);
}

.neon-text {
  text-shadow: 0 0 10px var(--electric), 0 0 20px var(--electric), 0 0 30px var(--electric);
}

/* Terminal container */
.terminal-container {
  max-width: 800px;
  margin: 0 auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.terminal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(154, 205, 50, 0.1) 2px,
    rgba(154, 205, 50, 0.1) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.terminal-header {
  background: #333;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #555;
}

.terminal-title {
  color: var(--lime);
  font-family: 'Orbitron', monospace;
  font-size: 14px;
}

.terminal-controls {
  display: flex;
  align-items: center;
}

.terminal-body {
  padding: 20px;
  font-family: 'Courier New', monospace;
  color: var(--lime);
  background: #000;
  min-height: 300px;
  position: relative;
  z-index: 2;
}

.typing-line {
  margin-bottom: 8px;
  animation: typeIn 0.5s ease-out;
}

@keyframes typeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Gallery styles */
.gallery-container {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.gallery-frame {
  background: linear-gradient(45deg, var(--silver), white, var(--silver));
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.gallery-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--electric);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
  background: var(--electric);
  box-shadow: 0 0 20px var(--electric);
}

/* Testimonials grid */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 191, 255, 0.3);
  border-radius: 15px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--electric);
  box-shadow: 0 15px 30px rgba(0, 191, 255, 0.2);
}

.testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.testimonial-avatar {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(154, 205, 50, 0.2);
  border-radius: 50%;
  border: 2px solid var(--lime);
}

.testimonial-username {
  font-weight: bold;
  color: var(--electric);
}

.testimonial-rating {
  color: var(--lime);
  font-size: 1.2rem;
}

.testimonial-comment {
  line-height: 1.6;
  color: #e0e0e0;
}

/* Footer styles */
.footer-retro {
  background: 
    radial-gradient(circle at 25% 25%, rgba(154, 205, 50, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(0, 191, 255, 0.2) 0%, transparent 50%),
    linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(75, 0, 130, 0.8));
  position: relative;
  overflow: hidden;
}

.footer-retro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(154, 205, 50, 0.1) 1px,
      transparent 2px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(0, 191, 255, 0.1) 1px,
      transparent 2px
    );
  background-size: 20px 20px;
  pointer-events: none;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-button {
  background: linear-gradient(45deg, #333, #555);
  border: 1px solid var(--lime);
  color: var(--lime);
  padding: 8px 16px;
  border-radius: 5px;
  font-family: 'Orbitron', monospace;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 12px;
}

.footer-button:hover {
  background: linear-gradient(45deg, var(--lime), var(--electric));
  color: black;
  box-shadow: 0 5px 15px rgba(154, 205, 50, 0.4);
  transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding-top: 2rem;
  }
  
  .nav-link {
    display: none;
  }
  
  .cta-button {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .terminal-body {
    padding: 15px;
    font-size: 14px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image {
    animation: none;
  }
  
  body {
    background: var(--deeppurple);
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .feature-card,
  .testimonial-card {
    border-color: white;
    background: rgba(0, 0, 0, 0.9);
  }
  
  .nav-link {
    border: 1px solid white;
  }
}

/* Print styles */
@media print {
  .header-glass,
  .footer-retro {
    position: static;
    background: white;
    color: black;
  }
  
  .hero-section,
  .section-container {
    background: white;
    color: black;
  }
  
  .matrix-rain,
  .floating-particles {
    display: none;
  }
}