/* SOLARCO - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* Navbar scroll effect */
.navbar-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar-scrolled .navbar-logo {
  color: white;
}

.navbar-scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

/* Language toggle */
.lang-toggle {
  backdrop-filter: blur(4px);
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Custom animations */
@keyframes bounce-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-bounce-slow {
  animation: bounce-slow 3s ease-in-out infinite;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fade-in 0.4s ease-out forwards;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Button hover effects */
button, a {
  cursor: pointer;
}

/* Form focus styles */
input:focus, textarea:focus, select:focus {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

/* Product card image hover */
.group:hover .aspect-square > div:first-child {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-out;
}

/* Cart toast animation */
#cart-toast.show {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Add-to-cart button pulse effect */
.add-to-cart:active {
  transform: scale(0.95);
}

.add-to-cart {
  transition: all 0.2s ease;
}

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

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Selection color */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #0f172a;
}

/* Hero gradient text shimmer */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Service card icon transition */
.group .w-14 {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.group:hover .w-14 {
  transform: scale(1.05);
}

/* Testimonial card hover */
.grid > .bg-gray-50.rounded-2xl {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid > .bg-gray-50.rounded-2xl:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Footer social icons */
footer a[aria-label] {
  transition: all 0.3s ease;
}

footer a[aria-label]:hover {
  transform: translateY(-2px);
}

/* Form submit button loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .font-display.text-5xl {
    font-size: 2.5rem;
  }

  .font-display.text-7xl {
    font-size: 3rem;
  }

  .grid.grid-cols-3 .font-display.text-3xl {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  nav, footer, #cart-toast, .animate-bounce, .animate-bounce-slow {
    display: none !important;
  }

  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* Ticker villes */
.ticker-track { display: flex; align-items: center; white-space: nowrap; animation: ticker-scroll 90s linear infinite; width: max-content; }
.ticker-item { color: #f0a500; font-weight: 600; font-size: 0.8rem; padding: 0 0.5rem; }
.ticker-dot { color: #f0a500; opacity: 0.3; font-size: 0.7rem; padding: 0 0.2rem; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-track:hover { animation-play-state: paused; }
