/* Global Styles */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

/* Navbar */
.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar-brand img {
  transition: transform 0.3s ease;
}
.navbar-brand img:hover {
  transform: rotate(-5deg) scale(1.05);
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin-right: 15px;
  transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
  color: #ffc107;
}
.navbar-nav .nav-link.active {
  color: #ffc107;
  font-weight: 600;
}

body.dark-mode .navbar {
  background-color: #222 !important;
  box-shadow: 0 3px 5px rgba(255, 255, 255, 0.05);
}
body.dark-mode .navbar-nav .nav-link {
  color: #e0e0e0;
}
body.dark-mode .navbar-nav .nav-link:hover {
  color: #0dcaf0;
}
body.dark-mode .navbar-brand span {
  color: #f8f9fa;
}

/* Hero Section with Slideshow */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Slideshow background overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.55);
  z-index: 1;
}

/* Slideshow images */
.hero-slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: slideshow 15s infinite ease-in-out;
}

/* Slideshow keyframes */
@keyframes slideshow {
  0%, 33% {
    background-image: url('../img/hero.png');
  }
  34%, 66% {
    background-image: url('../img/team.jpg');
  }
  67%, 100% {
    background-image: url('../img/team1.jpg');
  }
}

/* Hero content styles */
.hero-content {
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.hero h1 {
  animation: fadeInDown 1.5s ease;
}

.hero p {
  animation: fadeInUp 2s ease;
}

/* Animations */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Hero button */
.hero .btn-primary {
  transition: 0.3s;
}

.hero .btn-primary:hover {
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Typed.js cursor color */
.typed-cursor {
  font-size: 1.2rem;
  color: #fff;
}


/* Page Loader */
#loader-wrapper {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
#loader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Back to Top Button */
#btn-back-to-top {
  position: fixed;
  bottom: 40px; right: 40px;
  display: none;
  z-index: 99;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Timeline Section */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline li {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-left: 3px solid #0d6efd;
  background: #f8f9fa;
  color: #212529;
  border-radius: 5px;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -10px; top: 20px;
  width: 14px; height: 14px;
  background: #0d6efd;
  border-radius: 50%;
  border: 3px solid #fff;
}
body.dark-mode .timeline li {
  background: #2c2c2c;
  color: #f8f9fa;
}
body.dark-mode .timeline li::before {
  background: #0dcaf0;
}

/* Stats Section */
#stats h1 {
  font-size: 3rem;
  font-weight: bold;
}

/* Cards */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  background: #ffffff;
  color: #212529;
  border-radius: 15px;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  animation: bounce 0.4s;
}
@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
body.dark-mode .card {
  background: #2c2c2c;
  color: #f8f9fa;
}
body.dark-mode .card:hover {
  box-shadow: 0 12px 24px rgba(0, 255, 170, 0.25);
}
.team-img {
  height: 300px;
  object-fit: cover;
  border-radius: 0;
}

/* Sponsorship Section */
.sponsor-logo {
  max-height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.sponsor-logo:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
#sponsorship .btn {
  min-width: 180px;
  margin: 0.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
#sponsorship .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#sponsorship .fa-envelope, #sponsorship .fa-phone {
  font-size: 1.2rem;
}

/* Downloads Section */
#downloads .btn {
  border-radius: 30px;
  font-weight: 500;
}
body.dark-mode #downloads .btn {
  color: #f8f9fa;
}

/* Footer */
footer a:hover {
  color: #0dcaf0 !important;
  text-decoration: none;
}
footer i {
  transition: transform 0.3s;
}
footer i:hover {
  transform: scale(1.2);
}
footer .col-md-3 img {
  filter: brightness(1) contrast(1);
  transition: transform 0.3s;
}
footer .col-md-3 img:hover {
  transform: scale(1.05);
}
body.dark-mode footer .col-md-3 img {
  filter: brightness(0.9) contrast(1.2);
}
footer img:hover {
  transform: scale(1.08);
}
.logo-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.logo-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
footer .col-md-3 {
  padding: 0 1rem;
}

/* Improve text-muted in dark mode */
body.dark-mode .text-muted {
  color: #b0b0b0 !important;
}
