/* Custom styles for Solar Solutions website */

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

/* Dark mode transitions and animations */
* {
  transition-property: background-color, border-color, color;
  transition-duration: 300ms;
  transition-timing-function: ease-in-out;
}

/* Custom animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

.animate-fade-in-delay {
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.animate-fade-in-delay-3 {
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out 0.4s both;
}

/* Gallery hover effects */
.gallery-item {
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

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

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

.dark::-webkit-scrollbar-track {
  background: #1f2937;
}

::-webkit-scrollbar-thumb {
  background: #2563eb;
  border-radius: 5px;
}

.dark::-webkit-scrollbar-thumb {
  background: #3b82f6;
}

::-webkit-scrollbar-thumb:hover {
  background: #1d4ed8;
}

.dark::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  max-height: 500px;
}

/* Button hover effects */
button,
a.button {
  transition: all 0.3s ease;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.dark .card-hover:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.testimonial-card:hover {
  transform: scale(1.02);
}

/* Modal styles */
#gallery-modal {
  backdrop-filter: blur(5px);
}

/* Loading animation for form submission */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading {
  animation: spin 1s linear infinite;
}

/* Success/Error message styles */
.success-message {
  background-color: #10b981;
  color: white;
}

.error-message {
  background-color: #ef4444;
  color: white;
}

/* Responsive typography */
@media (max-width: 640px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  nav,
  footer,
  .no-print {
    display: none;
  }
}

/* Image hover effects */
img {
  transition: transform 0.3s ease-in-out;
}

/* Button ripple effect */
button,
a {
  position: relative;
  overflow: hidden;
}
