body { background-color: #F5F1E8; color: #1B2231; overflow-x: hidden; }

.text-gradient {
  background-image: linear-gradient(90deg, #2563EB, #1D4ED8, #60A5FA, #2563EB);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 6s ease infinite;
}
@keyframes gradientMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(.9); }
.reveal.show { opacity: 1; transform: none; }

/* Floating */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float { animation: float 5s ease-in-out infinite; }
.float-delay { animation: float 6s ease-in-out 1.5s infinite; }

/* Blobs */
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.1); } 66% { transform: translate(-20px,20px) scale(.95); } }
.blob { animation: blob 12s ease-in-out infinite; }

/* Typing cursor */
.cursor { display: inline-block; width: 3px; background: #2563EB; margin-left: 4px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Marquee */
.marquee { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Course card image zoom + shine */
.course-card .img-wrap img { transition: transform .7s ease; }
.course-card:hover .img-wrap img { transform: scale(1.1); }
.course-card { transition: opacity .8s ease, transform .4s ease, box-shadow .4s ease; }
.course-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -15px rgba(37,99,235,.35); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(15,23,42,.55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal .modal-box { transform: translateY(30px) scale(.95); transition: transform .35s cubic-bezier(.2,.9,.3,1.3); max-height: 90vh; overflow-y: auto; }
.modal.open .modal-box { transform: none; }

/* Toast */
#toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); z-index: 200; transition: transform .4s ease; }
#toast.show { transform: translate(-50%, 0); }

/* Scroll progress */
#progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg,#2563EB,#1D4ED8); z-index: 60; width: 0; }

/* Page loader */
#loader { position: fixed; inset: 0; background: #F5F1E8; z-index: 300; display: flex; align-items: center; justify-content: center; transition: opacity .5s ease, visibility .5s; }
#loader.hide { opacity: 0; visibility: hidden; }
#loader i { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Accordion */
.acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.acc.open .acc-body { max-height: 400px; }
.acc.open .acc-icon { transform: rotate(180deg); }
.acc-icon { transition: transform .3s ease; }

/* Filter buttons */
.filter-btn.active { background: #2563EB; color: #fff; border-color: #2563EB; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* "Famous For" banner */
.famous-bg {
  background-color: #0B0B0F;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px;
}
.famous-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.25rem; padding: 1rem 0; }
.famous-name { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; color: #60A5FA; letter-spacing: -.02em; line-height: 1; }
.famous-for { font-size: clamp(1.1rem, 2.6vw, 1.6rem); font-weight: 700; color: #fff; }
.famous-tag {
  background: #2563EB; color: #fff; font-weight: 800; letter-spacing: .04em;
  font-size: clamp(1rem, 2.6vw, 1.6rem); padding: .35rem 1.1rem;
  box-shadow: 6px 6px 0 rgba(96,150,248,.3);
}
.famous-glow { background: linear-gradient(90deg, #2563EB, #60A5FA); animation: glow 2s ease-in-out infinite; }
@keyframes glow {
  0%,100% { box-shadow: 6px 6px 0 rgba(37,99,235,.3), 0 0 0 rgba(37,99,235,0); }
  50% { box-shadow: 6px 6px 0 rgba(37,99,235,.3), 0 0 30px rgba(37,99,235,.7); }
}

/* "Experience Rudra.ai" steps: connecting line draws across on scroll */
.reveal.line-grow { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform 1.8s ease .2s; }
.reveal.line-grow.show { transform: scaleX(1); }
.step-circle { transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease; }
.step:hover .step-circle { background: #2563EB; color: #fff; transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(37,99,235,.5); }

/* 3D-style icon tile on course cards */
.course-3d {
  box-shadow: inset 0 -8px 16px rgba(0,0,0,.18), inset 0 8px 16px rgba(255,255,255,.35), 0 18px 30px -12px rgba(15,23,42,.35);
  transform: rotate(-8deg);
  transition: transform .5s ease;
}
.course-3d i { filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }
.course-card:hover .course-3d { transform: rotate(0deg) scale(1.1); }

/* ===== Student journey + flagship program (dark premium section) ===== */
.journey-grid {
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.text-rainbow {
  background: linear-gradient(90deg, #38BDF8, #A855F7, #F43F5E, #F59E0B, #38BDF8);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: gradientMove 5s linear infinite;
}

/* Walking student */
.j-bob { animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-6px) rotate(4deg); } }
.j-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #fff; }
.j-bubble.pop { animation: pop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
.j-bubble[data-align="start"] { left: -8px; transform: none; }
.j-bubble[data-align="start"]::after { left: 36px; }
.j-bubble[data-align="end"] { left: auto; right: -8px; transform: none; }
.j-bubble[data-align="end"]::after { left: auto; right: 30px; transform: none; }
.j-station.done { background: #0EA5E9; border-color: #0EA5E9; color: #fff; }
.j-station.active { background: linear-gradient(135deg, #A855F7, #EC4899); border-color: #fff; color: #fff; transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 6px rgba(168,85,247,.25), 0 0 30px rgba(236,72,153,.6); }
.j-card-in { animation: cardIn .6s ease; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Confetti on "hired" */
.confetti { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: confettiFall 2.2s ease-in forwards; }
@keyframes confettiFall { to { transform: translate(var(--x), 520px) rotate(720deg); opacity: 0; } }

/* Premium card: spinning colourful border */
.premium-wrap { position: relative; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(168,85,247,.45); }
.premium-spin { position: absolute; inset: -60%; background: conic-gradient(from 0deg, #38BDF8, #A855F7, #F43F5E, #F59E0B, #10B981, #38BDF8); animation: spin 5s linear infinite; }
.p-icon { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.seat-fill { width: 0; transition: width 1.6s ease .6s; }
.reveal.show .seat-fill { width: 77%; }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ===== Rudra AI Assistant ===== */
.ai-fab { background: linear-gradient(135deg, #0EA5E9, #2563EB 50%, #C026D3); box-shadow: 0 12px 30px -8px rgba(168,85,247,.7); transition: transform .3s ease; }
.ai-fab:hover { transform: scale(1.08) rotate(-6deg); }
.ai-fab::before { content: ""; position: absolute; inset: -5px; border-radius: 9999px; border: 2px solid rgba(168,85,247,.5); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.ai-panel { opacity: 0; transform: translateY(20px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.3,1.2); }
.ai-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.ai-msg { animation: cardIn .35s ease; }
.ai-dot { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #94A3B8; animation: dot 1s infinite ease-in-out; }
.ai-dot:nth-child(2) { animation-delay: .15s; } .ai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
#ai-chips::-webkit-scrollbar { height: 0; }
#ai-teaser { animation: cardIn .5s ease; }
