body {
  font-family: 'Inter', sans-serif;
  background-color: #0a192f;
  color: #e0e7ff;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%; /* prevent font scaling on iOS */
}

/* Hero canvas */
.hero-canvas,
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;   /* ✅ full screen height on real devices */
  z-index: 0;
}

/* Cards */
.card {
  backdrop-filter: blur(10px);
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(71, 85, 105, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Gradient text */
.text-gradient {
  background-image: linear-gradient(to right, #6b21a8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #6b21a8;
  color: white;
  padding: 0.6rem;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: opacity 0.3s ease;
  font-size: 1rem;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Side nav */
#side-nav {
  position: fixed;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}
.nav-dot {
  width: 10px;
  height: 10px;
  background-color: #4b5563;
  border-radius: 50%;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.nav-dot.active {
  background-color: #c084fc;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 10px #c084fc;
}
.nav-dot span {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  color: #e0e7ff;
  font-size: 0.875rem;
}
.nav-dot.active span, .nav-dot:hover span {
  opacity: 1;
}

/* Team images */
.team-image {
  transition: transform 0.3s ease;
}
.team-image:hover {
  transform: scale(1.05);
}

/* Swiper */
.swiper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: auto;
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
}
.swiper-slide img {
  width: 100%;
  height: auto;
  max-height: 70dvh;   /* ✅ dynamic viewport height */
  object-fit: contain;
  border-radius: 12px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  #side-nav {
    display: none;       /* ✅ hide side nav on tablets/mobiles */
  }
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  #mobile-menu {
    margin-top: 1rem;
  }
  .swiper-button-prev, .swiper-button-next, .swiper-pagination {
    display: none;
  }
    
  /* --- KEY CHANGES FOR MOBILE SWIPER --- */
  .swiper {
    width: 100% !important;
    max-width: none !important;
  }

  .swiper-wrapper {
    display: block !important;
    width: 100% !important;
    transform: none !important;
    height: auto !important;
  }
  
  .swiper-slide {
    width: 100% !important;
    height: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
  }
  
  .swiper-slide img {
    max-height: 350px;
    width: auto;
    object-fit: contain;
  }
  .swiper-slide:not(:first-child) {
        display: none !important;
    }

    /* Hide the swiper navigation and pagination dots */
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-pagination {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Adjustments for a larger feel on mobile */
    #hero {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
    #hero h1 {
        font-size: 2.5rem;
    }
    #hero p {
        font-size: 1.125rem;
    }
    #hero a {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    .swiper-slide img {
        /* Even larger max-height for very small screens */
        max-height: 300px;
    }
}
