/* Base */

body, html {
  margin: 0; padding: 0; height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9fafb;
  scroll-behavior: smooth;
}

/* HEADER */

header {
  background: #3730A3;
  color: white;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #A5B4FC;
  user-select:none;
}
nav.desktop-menu {
  display: flex;
  gap: 1.5rem;
  font-weight: 600;
  align-items: center;
}
nav.desktop-menu a {
  color: #E0E7FF;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}
nav.desktop-menu a:hover {
  color: white;
}
nav.desktop-menu li {
  position: relative;
  list-style-type: none;
}
nav.desktop-menu li > a[aria-haspopup="true"]::after {
  content: '';
  border: solid white;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  margin-left: 4px;
  vertical-align: middle;
  transform: rotate(45deg);
}
nav.desktop-menu li:hover > ul.submenu {
  display: block;
}
ul.submenu {
  display: none;
  position: absolute;
  background: #4F46E5;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  border-radius: 0.375rem;
  min-width: 160px;
  z-index: 100;
  user-select:none;
}
ul.submenu li {
  list-style-type: none;
}
ul.submenu li a {
  color: white;
  padding: 0.5rem 1.2rem;
  display: block;
  transition: background-color 0.3s ease;
}
ul.submenu li a:hover {
  background-color: #4338ca;
}
.mobile-menu-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #A5B4FC;
  display: none;
  cursor: pointer;
}
nav.mobile-menu {
  position: fixed;
  top: 0; bottom: 0; right: -260px;
  width: 260px;
  background: #3730A3;
  padding: 1.5rem;
  box-shadow: -1px 0 8px rgba(0,0,0,0.25);
  transition: right 0.3s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-weight: 600;
}
nav.mobile-menu.open {
  right: 0;
}
nav.mobile-menu a {
  color: #C7D2FE;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  user-select: none;
}
nav.mobile-menu a:hover {
  color: white;
}
nav.mobile-menu .submenu-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  background: none;
  border: none;
  padding: 0;
  color: #C7D2FE;
  font-size: 1.1rem;
  user-select:none;
}
nav.mobile-menu ul.submenu {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
nav.mobile-menu ul.submenu.open {
  display: flex;
}
nav.mobile-menu ul.submenu a {
  font-weight: normal;
  font-size: 1rem;
}
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 55;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
#menuOverlay.show {
  opacity: 1;
  visibility: visible;
}
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  nav.desktop-menu {
    display: none;
  }
}

/* SLIDER */

#slider {
  position: relative;
  height: 600px;
  overflow: hidden;
  user-select: none;
}
#slider img, #slider video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}
#slider img.active, #slider video.active {
  opacity: 1;
  z-index: 10;
}
#slider video {
  background: black;
}
#sliderCaption {
  position: absolute;
  bottom: 80px;
  left: 60px;
  max-width: 500px;
  background: rgba(49, 46, 129, 0.75);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(49, 46, 129, 0.9);
  color: white;
  font-weight: 600;
  font-size: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideIn 1s forwards;
  animation-delay: 0.5s;
  user-select: none;
  line-height: 1.3;
}
@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Dots */
#dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}
#dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#dots button.active, #dots button:hover {
  background-color: white;
}

/* Shortcut Cards */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}
.shortcut-card:hover {
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-6px);
  transition: all 0.3s ease;
}

/* Footer */
footer {
  background: #3730A3;
  color: #C7D2FE;
  padding: 2.5rem 1rem;
  text-align: center;
  font-weight: 600;
  user-select: none;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
footer .footer-links a {
  color: #A5B4FC;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
footer .footer-links a:hover {
  color: white;
}
footer .donate-btn {
  background-color: #4F46E5;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.6);
  transition: background-color 0.3s ease;
  text-decoration: none;
  user-select:none;
}
footer .donate-btn:hover {
  background-color: #4338ca;
}
