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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: #111827;
  color: white;
  overflow-x: hidden;
}

.font-orbitron {
  font-family: 'Orbitron', monospace;
}

/* Scanlines effect */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    transparent 50%,
    rgba(0, 150, 255, 0.03) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 1;
}

/* Glow effects */
.glow-blue {
  box-shadow: 0 0 10px #3B82F6, 0 0 20px #3B82F6, 0 0 30px #3B82F6;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.glow-border {
  box-shadow: 0 0 20px #3B82F6, inset 0 0 20px rgba(59, 130, 246, 0.1);
  border-color: #3B82F6 !important;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 5px #3B82F6, 0 0 10px #3B82F6, 0 0 15px #3B82F6;
  }
  to {
    box-shadow: 0 0 10px #3B82F6, 0 0 20px #3B82F6, 0 0 30px #3B82F6;
  }
}

/* Hero title animation */
.hero-title {
  animation: title-glow 3s ease-in-out infinite alternate;
}

@keyframes title-glow {
  from {
    text-shadow: 0 0 10px #3B82F6, 0 0 20px #3B82F6, 0 0 30px #3B82F6;
  }
  to {
    text-shadow: 0 0 20px #3B82F6, 0 0 30px #3B82F6, 0 0 40px #3B82F6;
  }
}

/* Power button styling */
.power-button {
  position: relative;
  overflow: hidden;
}

.power-button::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;
}

.power-button:hover::before {
  left: 100%;
}

/* Power button for components */
.power-btn {
  position: relative;
  transition: all 0.3s ease;
}

.power-btn.power-on {
  border-color: #3B82F6;
  background: radial-gradient(circle, #1E40AF, #111827);
}

.power-btn:hover {
  transform: scale(1.1);
}

/* Digital display styling */
.digital-display {
  background: linear-gradient(45deg, #000, #1a1a1a);
  border: 1px solid #3B82F6;
  font-family: 'Orbitron', monospace;
  letter-spacing: 2px;
  box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Slider styling */
.slider {
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, #374151, #4B5563);
  outline: none;
}

.slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(59, 130, 246, 1);
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  transition: all 0.3s ease;
}

/* Component card styling */
.component-card {
  position: relative;
  background: linear-gradient(135deg, #D1D5DB, #E5E7EB, #F3F4F6);
  transition: all 0.3s ease;
}

.component-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

/* Cassette button styling */
.cassette-btn {
  position: relative;
  overflow: hidden;
}

.cassette-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  transition: left 0.3s ease;
}

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

/* Navigation styling */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #3B82F6;
  transition: width 0.3s ease;
}

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

/* Gallery item hover effects */
.gallery-item {
  overflow: hidden;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Testimonial card styling */
.testimonial-card {
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

/* Timeline styling */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  height: 100%;
  width: 2px;
  background: linear-gradient(to bottom, #3B82F6, #1E40AF);
}

.timeline-item {
  position: relative;
  z-index: 1;
}

.timeline-dot {
  position: relative;
  z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .component-card {
    margin-bottom: 1rem;
  }
  
  .timeline::before {
    left: 6px;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  transition: opacity 0.3s ease;
}

img:not([src]) {
  opacity: 0;
}

/* Chrome/metallic gradient backgrounds */
.chrome-gradient {
  background: linear-gradient(135deg, #BDC3C7, #ECF0F1, #95A5A6, #BDC3C7);
}

/* Retro button styling */
.retro-btn {
  background: linear-gradient(135deg, #4A5568, #2D3748);
  border: 2px solid #4A5568;
  position: relative;
  overflow: hidden;
}

.retro-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  transition: opacity 0.3s ease;
}

.retro-btn:hover::after {
  opacity: 0;
}