/* Optimising Technologies - Custom CSS */

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

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  background-color: #111315;
  color: #F7F9FC;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
}

/* Custom component classes */
.btn-primary {
  @apply bg-signal-cyan text-deep-navy px-8 py-4 rounded-lg font-semibold hover:bg-cyan-400 transition-all duration-300 transform hover:scale-105 shadow-lg;
}

.btn-secondary {
  @apply bg-transparent border-2 border-signal-cyan text-signal-cyan px-8 py-4 rounded-lg font-semibold hover:bg-signal-cyan hover:text-deep-navy transition-all duration-300;
}

.card {
  @apply bg-deep-navy rounded-xl p-8 shadow-xl border border-gray-800 hover:border-signal-cyan/30 transition-all duration-300;
}

.section-padding {
  @apply py-20 px-6;
}

.container-max {
  @apply max-w-7xl mx-auto;
}

.gradient-text {
  @apply bg-gradient-to-r from-signal-cyan to-safety-amber bg-clip-text text-transparent;
}

.animated-bg {
  background: linear-gradient(-45deg, #0B1B2B, #111315, #0B1B2B, #1a1a1a);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Utility classes */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.glow {
  box-shadow: 0 0 20px rgba(11, 211, 211, 0.3);
}

.glow-amber {
  box-shadow: 0 0 20px rgba(255, 178, 0, 0.3);
}

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

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

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

::-webkit-scrollbar-track {
  background: #111315;
}

::-webkit-scrollbar-thumb {
  background: #0BD3D3;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFB200;
}

/* Form styling */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #0BD3D3;
}

/* FAQ styling */
.faq-item .faq-question:hover {
  color: #0BD3D3;
}

.faq-item .faq-answer {
  transition: all 0.3s ease;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  .text-5xl {
    font-size: 2.5rem;
  }
  
  .lg\:text-7xl {
    font-size: 3rem;
  }
  
  .section-padding {
    padding: 60px 20px;
  }
}

/* Loading state for buttons */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading:hover {
  transform: none;
}

/* Notification styles */
.notification-enter {
  transform: translateX(100%);
}

.notification-enter-active {
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

.notification-exit {
  transform: translateX(0);
}

.notification-exit-active {
  transform: translateX(100%);
  transition: transform 0.3s ease-in;
}

/* Hero background effects */
.hero-bg-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.hero-bg-element:nth-child(1) {
  animation-delay: 0s;
}

.hero-bg-element:nth-child(2) {
  animation-delay: 2s;
}

.hero-bg-element:nth-child(3) {
  animation-delay: 4s;
}

/* Technology flow responsive */
@media (max-width: 640px) {
  .technology-flow {
    flex-direction: column;
    gap: 1rem;
  }
  
  .technology-flow .text-2xl {
    transform: rotate(90deg);
    font-size: 1.5rem;
  }
}

/* Card hover effects */
.card:hover {
  transform: translateY(-5px);
}

/* Statistics counter */
.stats-counter {
  font-variant-numeric: tabular-nums;
}

/* Performance optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .animate-fade-in-up,
  .animate-pulse-slow,
  .animate-float,
  .animated-bg {
    animation: none;
  }
  
  .transition-all {
    transition: none;
  }
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus {
  outline: 2px solid #0BD3D3;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .animated-bg {
    background: #111315 !important;
  }
  
  .glow,
  .glow-amber {
    box-shadow: none !important;
  }
}
