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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0f0f1f 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Glass Morphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Optimized Glow Effects */
.glow-effect {
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
  animation: glow 3s ease-in-out infinite alternate;
  will-change: box-shadow;
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
  }
  to {
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.4);
  }
}

/* Navigation */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #06b6d4);
  transition: width 0.3s ease;
}

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

/* Hero Section */
#hero-content {
  animation: fadeInUp 1s ease-out;
}

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

/* Buttons */
.cta-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-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;
  z-index: -1;
}

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

.cta-button-secondary {
  position: relative;
  overflow: hidden;
}

.cta-button-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #8b5cf6);
  transition: width 0.3s ease;
  z-index: -1;
}

.cta-button-secondary:hover::before {
  width: 100%;
}

/* Service Cards */
.service-card {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

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

.service-card > * {
  position: relative;
  z-index: 1;
}

/* Form Styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

.form-checkbox {
  accent-color: #06b6d4;
}

/* Timeline */
.timeline-item {
  opacity: 0;
  animation: slideInLeft 0.6s ease-out forwards;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.6s;
}

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

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(-50%, 0, 0);
  }
  40%, 43% {
    transform: translate3d(-50%, -30px, 0);
  }
  70% {
    transform: translate3d(-50%, -15px, 0);
  }
  90% {
    transform: translate3d(-50%, -4px, 0);
  }
}

/* Mobile Menu */
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

/* Social Links */
.social-link {
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Inventory Table */
.inventory-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  justify-content: between;
  align-items: center;
  transition: all 0.3s ease;
}

.inventory-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.status-available {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-busy {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-maintenance {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .glass {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  #hero-content h2 {
    font-size: 2.5rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #06b6d4;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.message {
  padding: 1rem;
  border-radius: 10px;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
}

.message.success {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #10b981;
}

.message.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #ef4444;
}

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

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b5cf6, #06b6d4);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #7c3aed, #0891b2);
}
