body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #ffffff;
  color: #222;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
}

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceIn {
  0%   { transform: scale(0.9); opacity: 0; }
  50%  { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); }
}

.animate-slide-up {
  animation: slideUp 1.2s ease-in-out both;
}
.animate-fade {
  animation: fadeIn 2s ease-out both;
}
.animate-bounce {
  animation: bounceIn 1.3s ease-out both;
}

@keyframes dropdownItemFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotateOnce {
  0% { transform: rotateX(0deg); }
  100% { transform: rotateX(360deg); }
}

.blended-header {
  background: linear-gradient(to bottom, #7b0303 0%, #7b0303 30%, #ffffff 100%);
  color: white;
  text-align: center;
  padding: 20px 20px 200px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.overlay {
  position: relative;
  z-index: 2;
}

nav {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 20px;
  align-items: center;
}

nav a {
  color: white;
  margin: 0 16px;
  text-decoration: none;
  font-size: 18px;
  transition: opacity 0.3s;
}
nav a:hover {
  opacity: 0.8;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  color: white;
  text-decoration: none;
  font-size: 18px;
  cursor: pointer;
  transition: opacity 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping */
}

.dropdown-toggle:hover {
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  /* Nudge slightly to the left for better centering */
  transform: translateX(calc(-50% + 4px)) rotateX(-90deg) scale(0.95);
  background: white;
  border-radius: 10px;
  overflow: hidden;
  min-width: 180px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform-origin: top center;
  transition: transform 0.5s ease, opacity 0.4s ease;
  z-index: 999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(-50% + 4px)) rotateX(0deg) scale(1);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #7b0303;
  text-decoration: none;
  font-weight: 700;
  background: white;
  transition: background 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(-10px);
  animation: dropdownItemFade 0.4s ease forwards;
  white-space: nowrap; /* Prevent line breaks */
}

.dropdown-menu a:nth-child(1) {
  animation-delay: 0.15s;
}
.dropdown-menu a:nth-child(2) {
  animation-delay: 0.3s;
}

/* Remove background color on hover */
.dropdown-menu a:hover {
  background: transparent;
  /* rotation animation handled by JS */
}

.brand {
  font-size: 58px;
  margin: 3.5em auto 0;
  padding: 50px 100px;
  width: fit-content;
  display: inline-block;
  color: #7b0303;
  background: white;
  border-radius: 30px;
  position: relative;
  z-index: 10;
}

.home-main {
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 36px;
  color: #7b0303;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.intro-card, .info-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 35px;
  border-radius: 25px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.info-card:hover, .intro-card:hover {
  transform: scale(1.03);
  filter: blur(0);
}

.capacity-grid,
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 750px;
  margin: 0 auto;
}

.full-width-center {
  grid-column: 1 / -1;
  justify-self: center;
  width: 80%;
}

.capacity-grid .info-card,
.offers-grid .info-card {
  filter: blur(3px);
  transition: filter 0.6s ease, transform 0.3s ease;
}
.capacity-grid .info-card:hover,
.offers-grid .info-card:hover {
  filter: blur(0);
  transform: scale(1.03);
}

.btn-explore {
  margin-top: 22px;
  padding: 14px 28px;
  background: #cc0000;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.3s, transform 0.3s;
}
.btn-explore:hover {
  background: #b30000;
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 18px;
  background: #cc0000;
  color: white;
  margin-top: 60px;
  background: linear-gradient(to top, #7b0303 0%, #7b0303 30%, #ffffff 100%);
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 600;
  color: #7b0303;
}

.vanta-section {
  margin-top: 3em;
  width: 100%;
  height: 300px;
  position: relative;
}

#dots-canvas {
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
}

.site-footer {
  background-color: #7b0303;
  color: white;
  padding: 50px 20px;
  font-size: 18px;
  font-weight: 600;
  margin-top: 80px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.footer-info, .footer-social {
  flex: 1 1 320px;
  min-width: 280px;
}

.footer-info h2,
.footer-social h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #ffc7c7;
  font-weight: 700;
  text-align: center;
}

.footer-info p {
  text-align: center;
  margin: 6px 0;
  font-size: 18px;
  line-height: 1.4;
}

.map-frame {
  margin-top: 20px;
  border-radius: 15px;
  overflow: hidden;
  max-width: 100%;
  height: 240px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.footer-social {
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: white;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  margin-bottom: 4em;
}

.social-link:hover {
  background-color: #4B4D99;
  transform: scale(1.1);
  box-shadow: 0 5px 12px white;
}

.social-link:nth-child(2):hover {
  background-color: #385997;
  transform: scale(1.1);
  box-shadow: 0 5px 12px #385997;
}

.social-link:nth-child(3):hover {
  background-color: #C53C59;
  transform: scale(1.1);
  box-shadow: 0 5px 12px #DC8F3F;
}

.social-link:nth-child(4):hover {
  background-color: #08FFF9;
  transform: scale(1.1);
  box-shadow: 0 5px 12px #F00044;
}

.social-link img {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  nav a { margin: 6px 8px; display: inline-block; }
  .intro-card, .info-card { padding: 25px; max-width: 100%; }
  .capacity-grid, .offers-grid { grid-template-columns: 1fr; }
  .full-width-center { width: 100%; }
  .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .footer-info, .footer-social {
    max-width: 320px;
  }
}