/**
 * CSS files with the .module.css suffix will be treated as CSS modules
 * and scoped locally.
 */

.heroBanner {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--ifm-color-primary);
  color: white;
}

.logoContainer {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.logo {
  border-radius: 20%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.heroBanner h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.heroBanner p {
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  max-width: 600px;
}

@media screen and (max-width: 996px) {
  .heroBanner {
    padding: 2rem;
  }

  .heroBanner h1 {
    font-size: 2.5rem;
  }

  .heroBanner p {
    font-size: 1.25rem;
  }
}

.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.features {
  padding: 4rem 0;
  width: 100%;
}

.centeredRow {
  justify-content: center;
}

/* Modern Card styles */
.features :global(.card) {
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--ifm-color-emphasis-200);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  background: var(
    --ifm-card-background-color,
    var(--ifm-background-surface-color)
  );
  position: relative;
  padding: 0;
}

.features :global(.card:hover) {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 178, 202, 0.2);
  border-color: var(--ifm-color-emphasis-300);
}

.features :global(.card:before) {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--ifm-color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.features :global(.card:hover:before) {
  transform: scaleX(1);
}

.features :global(.card__header) {
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  background: transparent;
  border-bottom: 1px solid var(--ifm-color-emphasis-100);
}

.cardIcon {
  display: inline-flex;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 178, 202, 0.1);
  color: var(--ifm-color-primary);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 178, 202, 0.2);
}

.features :global(.card__header h3) {
  margin: 0;
  color: var(--ifm-color-emphasis-900);
  font-weight: 700;
  font-size: 1.5rem;
}

.features :global(.card__body) {
  padding: 1rem 1.5rem 1.5rem;
  flex-grow: 1;
  text-align: center;
}

.features :global(.card__body p) {
  margin-bottom: 0;
  color: var(--ifm-color-emphasis-700);
  line-height: 1.6;
}

.features :global(.card__footer) {
  text-align: center;
  padding: 1.5rem;
  border: none;
  background: transparent;
}

.features :global(.card__footer .button) {
  border-radius: 30px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 178, 202, 0.15);
  transition: all 0.3s ease;
}

.features :global(.card__footer .button:hover) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 178, 202, 0.25);
}

/* Light mode specific styles */
html[data-theme="light"] .features :global(.card) {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--ifm-color-emphasis-200);
}

html[data-theme="light"] .features :global(.card:hover) {
  box-shadow: 0 12px 30px rgba(0, 178, 202, 0.2);
}

html[data-theme="light"] .cardIcon {
  background: rgba(0, 178, 202, 0.15);
  box-shadow: 0 4px 8px rgba(0, 178, 202, 0.1);
}

.support {
  padding: 4rem 0;
  background-color: var(--ifm-color-emphasis-100);
}

.featureTitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ============================================
   Available Now Section - Student Web Portal
   Modern glassmorphism design with animations
   ============================================ */

.availableNowSection {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #1e6cb3 0%,
    #1565a8 25%,
    #0d5a9e 50%,
    #0a4f8a 75%,
    #083d6b 100%
  );
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central glow effect */
.availableNowSection::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 180, 240, 0.35) 0%,
    rgba(50, 140, 200, 0.2) 30%,
    transparent 70%
  );
  pointer-events: none;
}

/* Secondary ambient glow */
.availableNowSection::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(100, 180, 255, 0.15) 0%,
    transparent 60%
  );
  pointer-events: none;
  animation: ambientPulse 4s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Particle container */
.particlesContainer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(150, 200, 255, 0.6);
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 7s;
}

.particle:nth-child(2) {
  top: 25%;
  left: 85%;
  animation-delay: -1s;
  animation-duration: 9s;
}

.particle:nth-child(3) {
  top: 60%;
  left: 5%;
  animation-delay: -2s;
  animation-duration: 6s;
}

.particle:nth-child(4) {
  top: 70%;
  left: 90%;
  animation-delay: -3s;
  animation-duration: 8s;
}

.particle:nth-child(5) {
  top: 40%;
  left: 15%;
  animation-delay: -4s;
  animation-duration: 10s;
}

.particle:nth-child(6) {
  top: 80%;
  left: 75%;
  animation-delay: -1.5s;
  animation-duration: 7s;
}

.particle:nth-child(7) {
  top: 20%;
  left: 70%;
  animation-delay: -2.5s;
  animation-duration: 9s;
}

.particle:nth-child(8) {
  top: 50%;
  left: 92%;
  animation-delay: -0.5s;
  animation-duration: 6s;
}

.particle:nth-child(9) {
  top: 35%;
  left: 3%;
  animation-delay: -3.5s;
  animation-duration: 8s;
}

.particle:nth-child(10) {
  top: 85%;
  left: 40%;
  animation-delay: -4.5s;
  animation-duration: 7s;
}

.particle:nth-child(11) {
  top: 10%;
  left: 50%;
  animation-delay: -5s;
  animation-duration: 9s;
}

.particle:nth-child(12) {
  top: 45%;
  left: 80%;
  animation-delay: -2s;
  animation-duration: 6s;
}

/* Larger glowing particles */
.particleLarge {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 10px 3px rgba(100, 180, 255, 0.7);
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }

  25% {
    transform: translateY(-15px) translateX(5px);
    opacity: 1;
  }

  50% {
    transform: translateY(-5px) translateX(-5px);
    opacity: 0.8;
  }

  75% {
    transform: translateY(-20px) translateX(3px);
    opacity: 1;
  }
}

/* Main content container */
.availableNowContainer {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* Header row with badge and icon */
.availableNowHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Available Now Badge - Green gradient */
.availableNowBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  box-shadow:
    0 4px 20px rgba(34, 197, 94, 0.5),
    0 8px 40px rgba(21, 128, 61, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.25);
}

.badgeDot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

/* Icon box - Blue rounded square with glassmorphism (matching reference image) */
.availableNowIconWrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(
    180deg,
    rgba(100, 160, 220, 0.45) 0%,
    rgba(80, 140, 200, 0.35) 50%,
    rgba(60, 120, 180, 0.4) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(140, 190, 255, 0.4);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: visible;
}

/* Cyan glow effect at the bottom - matching reference image */
.availableNowIconWrapper::before {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 30px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 230, 255, 0.9) 0%,
    rgba(0, 210, 250, 0.6) 30%,
    rgba(0, 190, 240, 0.3) 50%,
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
}

/* Subtle highlight on top edge */
.availableNowIconWrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  border-radius: 50%;
}

.availableNowIcon {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  position: relative;
  z-index: 1;
}

/* Typography */
.availableNowTitle {
  color: white;
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.availableNowSubtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1.75rem 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.availableNowDescription {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

/* Video Demo Section */
.videoDemoWrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.videoDemoLabel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(74, 222, 128, 0.9) 0%,
    rgba(34, 197, 94, 0.9) 100%
  );
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow:
    0 4px 15px rgba(34, 197, 94, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.1);
  animation: labelGlow 2s ease-in-out infinite;
}

@keyframes labelGlow {
  0%,
  100% {
    box-shadow:
      0 4px 15px rgba(34, 197, 94, 0.4),
      0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 4px 25px rgba(34, 197, 94, 0.6),
      0 2px 12px rgba(0, 0, 0, 0.15);
  }
}

.videoContainer {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: linear-gradient(
    135deg,
    rgba(120, 180, 230, 0.25) 0%,
    rgba(100, 160, 220, 0.15) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.videoContainer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  border-radius: 50%;
}

.videoContainer::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 40px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 200, 255, 0.3) 0%,
    transparent 70%
  );
  filter: blur(10px);
  pointer-events: none;
}

.videoFrame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 12px;
  display: block;
  background: rgba(0, 0, 0, 0.3);
}

/* Feature chips container */
.comingSoonFeatures {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.featureRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Feature chip - Frosted glass pill */
.featureChip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(
    135deg,
    rgba(120, 180, 230, 0.35) 0%,
    rgba(100, 160, 220, 0.25) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.85rem 1.5rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featureChip:hover {
  background: linear-gradient(
    135deg,
    rgba(140, 200, 250, 0.45) 0%,
    rgba(120, 180, 240, 0.35) 100%
  );
  transform: translateY(-3px);
  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Feature chip icons */
.chipIconLeft {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.chipIconRight {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: 0.3rem;
}

.checkIcon {
  color: #4ade80;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.busIcon {
  color: #4ade80;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.chartIcon {
  color: #4ade80;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.bookIcon {
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .availableNowSection {
    padding: 3rem 0;
    min-height: 500px;
  }

  .availableNowHeader {
    flex-direction: column;
    gap: 1rem;
  }

  .availableNowBadge {
    padding: 0.6rem 1.25rem;
    font-size: 0.7rem;
  }

  .availableNowIconWrapper {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }

  .availableNowTitle {
    font-size: 2rem;
  }

  .availableNowSubtitle {
    font-size: 1.1rem;
  }

  .availableNowDescription {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .videoDemoWrapper {
    margin-top: 1.5rem;
    padding: 0 1rem;
  }

  .videoContainer {
    padding: 8px;
    border-radius: 16px;
  }

  .videoFrame {
    border-radius: 10px;
  }

  .featureRow {
    gap: 0.75rem;
  }

  .featureChip {
    padding: 0.7rem 1.1rem;
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 480px) {
  .featureRow {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }

  .featureChip {
    width: 100%;
    justify-content: center;
  }

  .videoDemoLabel {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .videoContainer {
    padding: 6px;
    border-radius: 12px;
  }

  .videoFrame {
    border-radius: 8px;
  }
}
