/* Custom styles for Energy Oasis */

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060d1f;
}
::-webkit-scrollbar-thumb {
  background: #0d9488;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2dd4bf;
}

/* Floating card animations */
@keyframes float1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes float4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.floating-card-1 { animation: float1 4s ease-in-out infinite; }
.floating-card-2 { animation: float2 3.5s ease-in-out infinite; }
.floating-card-3 { animation: float3 4.5s ease-in-out infinite; }
.floating-card-4 { animation: float4 3s ease-in-out infinite; }

/* Service card hover glow */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(45, 212, 191, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.service-card:hover::before {
  opacity: 1;
}
.service-card {
  position: relative;
  overflow: hidden;
}

/* Product card image overlay */
.product-card {
  position: relative;
}

/* Navbar scroll state */
.navbar-scrolled {
  background: rgba(6, 13, 31, 0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .floating-card-1,
  .floating-card-2,
  .floating-card-3,
  .floating-card-4 {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .product-card > div:first-child img {
    transition: none;
  }
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.2s ease-out;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonial card subtle gradient on hover */
.testimonial-card {
  background: linear-gradient(135deg, rgba(15, 32, 53, 0.9) 0%, rgba(10, 22, 40, 0.9) 100%);
}

/* Geometric shape pulse */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.25; }
}
</style>
