* {
  --primary-color: #ffae67;
  --primary-color-rgb: 0, 50, 70;
  --bg-dark-1: #003348;
  --bg-dark-2: #333;
  --bg-dark-3: #1e1e1e;
  --bg-dark-1-rgb: 0, 50, 70;
}

/* Modern Footer Styles */
.footer-modern {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.footer-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 174, 103, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 174, 103, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 174, 103, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.footer-brand {
  position: relative;
  z-index: 2;
}

.footer-brand .logo-footer {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.footer-brand .logo-footer:hover {
  filter: drop-shadow(0 6px 12px rgba(255, 174, 103, 0.4));
  transform: translateY(-2px);
}

.footer-stats {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widget h5 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

.footer-widget h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #ffae67, #e67e22);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.footer-links a:hover {
  padding-left: 8px;
  color: #ffae67 !important;
}

.contact-item {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 15px;
  border-left: 3px solid #ffae67;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(5px);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffae67, #e67e22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.social-icon:hover::before {
  left: 100%;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 174, 103, 0.4);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 174, 103, 0.5), transparent);
  border: none;
  margin: 40px 0;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
}

.footer-bottom-links li {
  position: relative;
}

.footer-bottom-links li:not(:last-child)::after {
  content: '•';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links a {
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-bottom-links a:hover {
  color: #ffae67 !important;
}

/* Background Elements */
.footer-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer-sun-icon {
  position: absolute;
  top: 10%;
  right: 10%;
  font-size: 80px;
  color: rgba(255, 174, 103, 0.1);
  animation: float 6s ease-in-out infinite;
}

.footer-solar-panels {
  position: absolute;
  bottom: 10%;
  left: 5%;
  font-size: 60px;
  color: rgba(255, 174, 103, 0.08);
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .footer-stats > div {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }
  
  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-bottom-links li:not(:last-child)::after {
    display: none;
  }
  
  .social-icons {
    justify-content: center;
  }
  
  .footer-widget h5::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a {
    justify-content: center;
  }
}

/* Hover Effects */
.hover-text-warning:hover {
  color: #ffae67 !important;
}

/* Custom Scrollbar for Footer */
.footer-modern ::-webkit-scrollbar {
  width: 6px;
}

.footer-modern ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.footer-modern ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffae67, #e67e22);
  border-radius: 3px;
}

/* Animation for footer elements */
.footer-widget {
  animation: fadeInUp 0.6s ease-out;
}

.footer-widget:nth-child(2) {
  animation-delay: 0.1s;
}

.footer-widget:nth-child(3) {
  animation-delay: 0.2s;
}

.footer-widget:nth-child(4) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive Fixes for Solar Energy Flow Numbers */
@media (max-width: 768px) {
  /* Make the numbered circles larger on mobile */
  .bg-dark.text-white.rounded-circle.position-absolute {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
    font-weight: bold !important;
  }
  
  /* Ensure the step numbers are properly positioned */
  .position-absolute.top-0.start-0 {
    top: -5px !important;
    left: -5px !important;
  }
  
  /* Make the main step circles larger on mobile */
  .w-100px.h-100px {
    width: 90px !important;
    height: 90px !important;
  }
  
  .w-80px.h-80px {
    width: 70px !important;
    height: 70px !important;
  }
  
  /* Increase font size for better readability */
  .w-100px.h-100px .fa-2x {
    font-size: 2rem !important;
  }
  
  .w-80px.h-80px .fa-xl {
    font-size: 1.8rem !important;
  }
  
  /* Ensure text is readable */
  .text-center h5 {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  .text-center p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }
  
  /* Improve arrow visibility */
  .text-success.fs-40,
  .text-primary.fs-40,
  .text-warning.fs-40,
  .text-secondary.fs-40 {
    font-size: 24px !important;
  }
  
  /* Better spacing for mobile */
  .row.align-items-start.mb-5 {
    margin-bottom: 2rem !important;
  }
  
  .mb-5 {
    margin-bottom: 2rem !important;
  }
  
  /* Ensure the legend box is readable */
  .bg-light.rounded-1.p-4 h5 {
    font-size: 1.1rem !important;
  }
  
  .bg-light.rounded-1.p-4 .small {
    font-size: 0.85rem !important;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .bg-dark.text-white.rounded-circle.position-absolute {
    width: 30px !important;
    height: 30px !important;
    font-size: 14px !important;
  }
  
  .w-100px.h-100px {
    width: 75px !important;
    height: 75px !important;
  }
  
  .w-80px.h-80px {
    width: 60px !important;
    height: 60px !important;
  }
  
  .w-100px.h-100px .fa-2x {
    font-size: 1.6rem !important;
  }
  
  .w-80px.h-80px .fa-xl {
    font-size: 1.4rem !important;
  }
  
  /* Reduce padding in mobile flow */
  .d-lg-none .col-12.text-center.mb-4 {
    margin-bottom: 1.5rem !important;
  }
  
  .d-lg-none .text-success.fs-30,
  .d-lg-none .text-warning.fs-30,
  .d-lg-none .text-secondary.fs-30,
  .d-lg-none .text-dark.fs-30 {
    font-size: 20px !important;
    margin: 0.5rem 0 !important;
  }
}

/* Ensure proper contrast for the numbers */
.bg-dark.text-white.rounded-circle {
  background-color: #212529 !important;
  color: #ffffff !important;
  border: 2px solid #ffae67 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

/* Improve the main step circles */
.bg-warning.text-white.rounded-circle,
.bg-primary.text-white.rounded-circle,
.bg-info.text-white.rounded-circle,
.bg-success.text-white.rounded-circle,
.bg-secondary.text-white.rounded-circle {
  border: 3px solid #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Better text contrast */
.text-white {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}
