/* Reset and Layout Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

/* Main content area (pushes footer down) */
main {
  flex: 1;
}

/* Footer Styles */
footer {
  background: linear-gradient(-45deg, #0077b6, #ff6f91, #ff4b8e, #6a5acd);
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
  border-top: 4px solid #ff6f91;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animated Background */
@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Footer Text Animation */
footer .footer-text {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
  animation: fadeInUp 2s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
  position: relative;
  text-shadow: 0 0 10px rgba(255, 105, 180, 0.8), 0 0 20px rgba(255, 105, 180, 0.6);
}

/* Hover Effects */
footer .footer-text:hover {
  animation: pulse 1s infinite alternate;
  color: #ff6f91;
  text-shadow: 0 0 20px rgba(255, 105, 180, 1), 0 0 30px rgba(255, 105, 180, 0.8);
}

/* Entrance Animation */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shake Animation (replaced by pulse on hover) */
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
  75% { transform: translateX(-10px); }
  100% { transform: translateX(0); }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Shine Effect Overlay */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transform: skewX(-45deg);
  animation: shineEffect 2s infinite;
}

@keyframes shineEffect {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: -100%;
  }
}

/* Footer Shine on Hover */
footer:hover {
  background: linear-gradient(-45deg, #ff4b8e, #6a5acd, #0077b6, #ff6f91);
  animation: gradientBG 5s ease-in-out infinite;
}
/* Custom Scrollbar Styles (Webkit-based browsers) */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5; /* same as body background */
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff6f91, #ff4b8e, #6a5acd);
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(255, 105, 180, 0.4);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4b8e, #6a5acd, #0077b6);
  box-shadow: inset 0 0 8px rgba(255, 105, 180, 0.6);
}

/* Optional: For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #ff6f91 #f5f5f5;
}
