/* ═══════════════════════════════════════════
   Aadhyayan - Global Styles
   ═══════════════════════════════════════════ */

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(123, 30, 43, 0.3); }
  50% { box-shadow: 0 0 40px rgba(123, 30, 43, 0.5); }
}

.animate-fadeInUp { animation: fadeInUp 0.7s ease-out forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-slideInLeft { animation: slideInLeft 0.7s ease-out forwards; }
.animate-slideInRight { animation: slideInRight 0.7s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.5s ease-out forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ── Navbar ── */
.navbar-scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #7B1E2B, #D4A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cards ── */
.feature-card {
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(123, 30, 43, 0.1);
}

.program-card {
  transition: all 0.3s ease;
}
.program-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 30, 43, 0.12);
  border-color: #7B1E2B;
}

.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* ── FAQ Accordion ── */
.faq-item {
  transition: all 0.3s ease;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}
.faq-chevron {
  transition: transform 0.3s ease;
}

/* ── Hero Pattern ── */
.hero-pattern {
  background-image: radial-gradient(circle at 20% 50%, rgba(123, 30, 43, 0.05) 0%, transparent 50%),
                     radial-gradient(circle at 80% 20%, rgba(212, 168, 83, 0.05) 0%, transparent 50%),
                     radial-gradient(circle at 40% 80%, rgba(123, 30, 43, 0.03) 0%, transparent 50%);
}

/* ── Mobile Menu ── */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.active,
.mobile-menu.open {
  transform: translateX(0);
}

/* ── Stats Counter ── */
.stat-item {
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: #e5e7eb;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── App Section Gradient ── */
.app-gradient {
  background: linear-gradient(135deg, #7B1E2B 0%, #5A1520 50%, #3a0a14 100%);
}

/* ── Buttons ── */
.btn-primary {
  background: #7B1E2B;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: #5A1520;
  box-shadow: 0 8px 24px rgba(123, 30, 43, 0.3);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid #7B1E2B;
  color: #7B1E2B;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #7B1E2B;
  color: white;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #7B1E2B; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5A1520; }

/* ── Step Wizard (Partner Page) ── */
.step-dot {
  transition: all 0.4s ease;
}
.step-dot.active {
  background: #7B1E2B;
  color: white;
  box-shadow: 0 0 0 4px rgba(123,30,43,0.15);
}
.step-dot.completed {
  background: #7B1E2B;
  color: white;
}
.step-line {
  transition: background 0.4s ease;
}
.step-line.active {
  background: #7B1E2B;
}

/* ── Form Inputs ── */
.form-input {
  transition: all 0.2s ease;
}
.form-input:focus {
  border-color: #7B1E2B;
  box-shadow: 0 0 0 3px rgba(123,30,43,0.1);
}

/* ── Plan Card Selection ── */
.plan-card {
  transition: all 0.3s ease;
  cursor: pointer;
}
.plan-card:hover {
  transform: translateY(-2px);
}
.plan-card.selected {
  border-color: #7B1E2B;
  box-shadow: 0 8px 30px rgba(123,30,43,0.15);
  transform: scale(1.02);
}
.plan-card.selected-smip {
  border-color: #D4A853;
  box-shadow: 0 8px 30px rgba(212,168,83,0.15);
  transform: scale(1.02);
}

/* ── Institution Filter Buttons ── */
.inst-filter-btn.active {
  background: #7B1E2B;
  color: white;
  border-color: #7B1E2B;
}

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

/* ── Step Content Animation ── */
.step-content {
  animation: fadeInUp 0.4s ease-out;
}
