/* Margdarshak AI - Custom Styles, Glassmorphism Aesthetics & Mobile-First Responsive Framework */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .font-display {
  font-family: var(--font-display);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Card Utilities */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.85);
}
.dark .glass-card {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.dark .glass-nav {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Animated Gradient Hero Glow - constrained to 100vw to prevent horizontal scroll */
.hero-glow-bg {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 600px;
  height: 420px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(168, 85, 247, 0.12) 40%, rgba(236, 72, 153, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.dark .hero-glow-bg {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28) 0%, rgba(168, 85, 247, 0.2) 40%, rgba(236, 72, 153, 0) 70%);
}

/* Sound wave animation for AI voice speaking */
@keyframes soundwave {
  0%, 100% { height: 6px; }
  50% { height: 24px; }
}

.wave-bar {
  width: 3px;
  background: #6366f1;
  border-radius: 9999px;
  display: inline-block;
  animation: soundwave 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-bar:nth-child(5) { animation-delay: 0.6s; }

/* Subtle pulse glow for primary CTA buttons */
.glow-button {
  box-shadow: 0 0 25px -5px rgba(99, 102, 241, 0.4);
}
.glow-button:hover {
  box-shadow: 0 0 35px 0px rgba(99, 102, 241, 0.6);
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile Safe Areas and Screen Fitting */
.safe-area-pb {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
  .glass-card {
    border-radius: 1.25rem !important;
    padding: 1.25rem !important;
  }
  
  /* Prevent automatic iOS zooming on form elements */
  input, select, textarea {
    font-size: 16px !important;
  }

  /* Compact button styling on mobile */
  .glow-button {
    width: 100%;
    justify-content: center;
  }
}

/* Active navigation item indicator */
.active-nav-item {
  color: #4f46e5 !important;
}
.dark .active-nav-item {
  color: #818cf8 !important;
}

/* Scholarship pill animations */
.scholarship-pill-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.scholarship-pill-btn:active {
  transform: scale(0.96);
}
