/* ============ DESIGN SYSTEM & VARIABLES ============ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --color-primary: #b91c1c;
  --color-primary-hover: #991b1b;
  --color-primary-glow: rgba(185, 28, 28, 0.08);
  --color-accent: #ea580c;
  --color-accent-light: #f97316;
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dimmed: #64748b;
  --glass-bg: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-hover-bg: #ffffff;
  --glass-hover-border: rgba(185, 28, 28, 0.15);

  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 10px 15px -3px rgba(0, 0, 0, 0.02), 0 0 1px 0 rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 20px 25px -5px rgba(185, 28, 28, 0.04), 0 10px 10px -5px rgba(0, 0, 0, 0.02), 0 0 1px 1px rgba(185, 28, 28, 0.08);

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

/* ============ GENERAL RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-muted);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Lock scrolling state */
body.locked {
  overflow: hidden;
}

/* ============ DYNAMIC ACCENT GRADIENT TYPOGRAPHY ============ */
.accent-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ CUSTOM SLEEK SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(185, 28, 28, 0.15);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ============ CINEMATIC INTRO LOADING SCREEN ============ */
#intro {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

#intro.hide {
  transform: translateY(-100%);
}

.intro-logo {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-logo.show {
  opacity: 1;
  transform: scale(1);
}

.intro-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.intro-brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
}

.intro-brand span {
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

.intro-brand span.show {
  opacity: 1;
  transform: translateY(0);
}

.intro-brand span.red {
  color: var(--color-primary);
}

.intro-tagline {
  font-size: 13px;
  color: var(--text-dimmed);
  letter-spacing: 1px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.5s ease;
}

.intro-tagline.show {
  opacity: 1;
  transform: translateY(0);
}

.intro-progress {
  width: 160px;
  height: 3px;
  background-color: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
}

.intro-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transition: width 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.intro-bar.fill {
  width: 100%;
}

.intro-skip {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-dimmed);
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-fast);
}

.intro-skip:hover {
  background: var(--bg-secondary);
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text-main);
  transform: translateY(-1px);
}

/* ============ GLASSMORPHIC HEADER / NAVIGATION ============ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  z-index: 100;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.show {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 6px 0;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--color-primary);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.2);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

/* ============ HERO WRAPPER WITH BACKGROUND CANVAS ============ */
.hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 50% -20%, rgba(185, 28, 28, 0.05) 0%, #ffffff 70%);
}

#bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 64px 80px;
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero.show {
  opacity: 1;
  transform: translateY(0);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(185, 28, 28, 0.05);
  border: 1px solid rgba(185, 28, 28, 0.15);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

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

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

.hero-headline {
  font-size: clamp(38px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 900px;
}

.hero-headline span.static {
  display: block;
}

.hero-headline .type-line {
  display: inline-flex;
  align-items: center;
  min-height: 1.2em;
}

.hero-headline .type-text {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline .cursor {
  width: 4px;
  height: clamp(32px, 5vw, 56px);
  background-color: var(--color-accent);
  margin-left: 6px;
  animation: blink 0.8s infinite;
  display: inline-block;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 650px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

.btn-r {
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 30px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.btn-r:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 10px 20px rgba(185, 28, 28, 0.15);
  transform: translateY(-1.5px);
}

.btn-b {
  background-color: #ffffff;
  color: var(--text-main);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 30px;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.btn-b:hover {
  background-color: var(--bg-secondary);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-1.5px);
}

/* ============ KEY STATISTICS DASHBOARD ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  max-width: 1000px;
  box-shadow: var(--card-shadow);
}

.stat {
  padding: 12px 24px;
  text-align: center;
  border-right: 1px solid var(--glass-border);
}

.stat:last-child {
  border-right: none;
}

.stat-n {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -1px;
}

.stat-l {
  font-size: 11px;
  color: var(--text-dimmed);
  margin-top: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============ TECH MARQUEE BAR ============ */
.tech-bar {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
}

.marquee {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  width: max-content;
  animation: mar 30s linear infinite;
}

@keyframes mar {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.titem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ============ GENERAL SECTIONS STYLING ============ */
.sec {
  padding: 160px 64px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.sec-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.1;
}

.sec-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--text-dimmed);
  margin-bottom: 64px;
  max-width: 600px;
}

/* ============ RESPONSIVE COURSE CARDS GRID ============ */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.ccard {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.ccard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ccard:hover {
  border-color: var(--glass-hover-border);
  transform: translateY(-6px);
  box-shadow: var(--card-hover-shadow);
}

.ccard:hover::before {
  transform: scaleX(1);
}

.card-top {
  margin-bottom: 20px;
}

.cicon {
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.cicon svg {
  width: 26px;
  height: 26px;
  stroke: var(--text-muted);
  stroke-width: 1.5px;
  transition: var(--transition-smooth);
}

.ccard:hover .cicon svg {
  stroke: var(--color-primary);
  transform: scale(1.05);
}

.cwk svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dimmed);
  stroke-width: 2px;
}

.cname {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.cdesc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 18px;
  margin-top: 18px;
}

.cwk {
  font-size: 12px;
  color: var(--text-dimmed);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ctag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(185, 28, 28, 0.06);
  color: var(--color-primary);
  border: 1px solid rgba(185, 28, 28, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cview {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

.ccard:hover .cview {
  opacity: 1;
  transform: translateX(4px);
}

/* ============ STUDENT JOURNEY TIMELINE ============ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.06);
  transform: translateX(-50%);
}

.timeline-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 76px;
  position: relative;
  width: 100%;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-node {
  position: absolute;
  left: 50%;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--text-main);
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-node {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateX(-50%) scale(1.12);
  box-shadow: 0 0 16px rgba(185, 28, 28, 0.3);
}

.timeline-content {
  width: 44%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-content {
  border-color: var(--glass-hover-border);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.timeline-content h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============ SUCCESS STORIES CAROUSEL ============ */
.carousel-container {
  position: relative;
  max-width: 800px;
  margin: 54px auto 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 24px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.tcard {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

.tcard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tcard-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
}

.tcard-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(185, 28, 28, 0.05);
  border: 1px solid rgba(185, 28, 28, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tcard-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 28px;
}

.tcard-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tcard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 16px;
}

.tcard-info h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tcard-info span {
  font-size: 13px;
  color: var(--text-dimmed);
}

.carousel-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: var(--transition-fast);
  z-index: 10;
  box-shadow: var(--card-shadow);
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: scale(1.06);
}

/* ============ FAQ ACCORDIONS ============ */
.accordion-container {
  max-width: 800px;
  margin: 54px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.accordion-item:hover {
  border-color: rgba(185, 28, 28, 0.15);
  box-shadow: var(--card-hover-shadow);
}

.accordion-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 28px;
  text-align: left;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-family);
}

.accordion-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), padding 0.35s ease;
  padding: 0 28px;
}

.accordion-item.active .accordion-content {
  padding-bottom: 22px;
}

.accordion-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============ CALL TO ACTION SECTION ============ */
.cta-sec {
  text-align: center;
  padding: 160px 48px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.1;
}

.cta-title em {
  color: var(--color-primary);
  font-style: normal;
}

.cta-sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 40px 64px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dimmed);
  position: relative;
  z-index: 10;
}

/* ============ INTERACTIVE MASCOT BOT IF ============ */
#ifWrap {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  cursor: pointer;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(185, 28, 28, 0.2);
  align-items: center;
  justify-content: center;
  animation: ifFloat 3.6s ease-in-out infinite;
}

#ifWrap.show {
  opacity: 1;
  display: flex;
}

.mascot-icon {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

#ifWrap:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(185, 28, 28, 0.15);
}

#ifWrap:hover .mascot-icon {
  transform: rotate(5deg);
}

@keyframes ifFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

#ifSpeech {
  position: absolute;
  bottom: 110%;
  right: 10px;
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 20px 20px 4px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 1px 1px rgba(185, 28, 28, 0.1);
  white-space: normal;
  width: 210px;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  line-height: 1.45;
  border: 1.5px solid rgba(185, 28, 28, 0.15);
}

#ifSpeech.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============ FLOATING GLASS OVERLAY MODALS ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: #ffffff;
  border-radius: 28px;
  width: 100%;
  max-width: 580px;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 32px rgba(185, 28, 28, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-primary), transparent, var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

.modal-overlay.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dimmed);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background-color: rgba(185, 28, 28, 0.05);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.modal-subtitle {
  font-size: 14px;
  color: var(--text-dimmed);
  margin-top: 4px;
}

/* Syllabus specific layout details */


.course-syllabus h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.modal-timeline {
  position: relative;
  margin: 20px 0 0 0;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 12px;
}

/* Custom scroll track styling for modal timeline */
.modal-timeline::-webkit-scrollbar {
  width: 5px;
}

.modal-timeline::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 3px;
}

.modal-timeline-item {
  position: relative;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 28px 16px 1fr;
  gap: 12px;
  align-items: center;
}

.modal-timeline-item:last-child {
  margin-bottom: 4px;
}

/* Monospace index numbers */
.modal-timeline-number {
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  opacity: 0.85;
}

/* Glowing Neon Nodes */
.modal-timeline-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2.5px solid var(--color-primary);
  box-shadow: 0 0 10px rgba(185, 28, 28, 0.4);
  z-index: 2;
  position: relative;
  justify-self: center;
  animation: pulse-glow-light 2s infinite ease-in-out;
}

@keyframes pulse-glow-light {
  0% {
    box-shadow: 0 0 4px rgba(185, 28, 28, 0.3);
  }

  50% {
    box-shadow: 0 0 12px rgba(185, 28, 28, 0.7);
  }

  100% {
    box-shadow: 0 0 4px rgba(185, 28, 28, 0.3);
  }
}

/* Vertical Track Line */
.modal-timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  bottom: -60%;
  left: 48px;
  /* Column 1 (28px) + Gap (12px) + Half of Column 2 (8px) = 48px */
  width: 2px;
  background: rgba(185, 28, 28, 0.12);
  z-index: 1;
}

.modal-timeline-item:last-child::before {
  display: none;
}

.modal-timeline-content {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  text-align: left;
}

.modal-footer {
  margin-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 24px;
}

/* ============ DYNAMIC REGISTRATION FORM LAYOUT ============ */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  height: 52px;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0 16px;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--text-main);
  font-weight: 500;
  outline: none;
  transition: var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
}

/* Floating label mechanics */
.input-wrapper label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dimmed);
  transition: all 0.2s ease;
  pointer-events: none;
  font-weight: 500;
}

.input-wrapper input:focus~label,
.input-wrapper input:not(:placeholder-shown)~label {
  top: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: #ffffff;
  padding: 0 6px;
  transform: translateY(-50%);
  left: 12px;
}

/* Select element adjustment */
.select-wrapper::after {
  content: '▼';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--text-dimmed);
  pointer-events: none;
}

.input-wrapper select {
  appearance: none;
  cursor: pointer;
}

/* Form validation error displays */
.form-error {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 6px;
  padding-left: 4px;
  opacity: 0;
  transform: translateY(-4px);
  height: 0;
  overflow: hidden;
  transition: all 0.2s ease;
}

.form-group.error .form-error {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-bottom: 2px;
}

.form-group.error input,
.form-group.error select {
  border-color: #dc2626;
  background-color: rgba(220, 38, 38, 0.02);
}

.form-group.error input:focus,
.form-group.error select:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

/* Morphing Submit Button Styles */
.submit-btn {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
  color: #ffffff;
  transition: var(--transition-smooth);
}

.submit-btn:hover {
  background-color: var(--color-primary-hover);
}

.submit-btn.loading {
  background-color: var(--color-primary-hover);
  color: transparent;
}

.btn-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-spinner {
  opacity: 1;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.submit-btn.success {
  background-color: #16a34a;
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
}

/* ============ MEDIA QUERIES (RESPONSIVENESS) ============ */
@media (max-width: 1024px) {
  nav {
    padding: 0 40px;
  }

  .sec {
    padding: 120px 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    align-items: center;
    overflow: hidden;
    transition: height 0.35s cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-links.active {
    height: 280px;
    padding: 24px 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-links.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.active li:nth-child(1) {
    transition-delay: 0.05s;
  }

  .nav-links.active li:nth-child(2) {
    transition-delay: 0.1s;
  }

  .nav-links.active li:nth-child(3) {
    transition-delay: 0.15s;
  }

  .nav-links.active li:nth-child(4) {
    transition-delay: 0.2s;
  }

  .nav-links.active li:nth-child(5) {
    transition-delay: 0.25s;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 100px 24px 60px;
    text-align: center;
  }

  .hero-headline {
    letter-spacing: -1.5px;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .sec {
    padding: 100px 24px;
  }

  #ifWrap {
    transform: scale(0.85);
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .hero-btns {
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-r,
  .btn-b {
    width: 100%;
    justify-content: center;
  }

  .modal-card {
    padding: 28px 20px;
  }

  .course-meta-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ============ ACCREDITATIONS SECTION STYLES ============ */
.accreditations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1160px;
  margin: 48px auto 0;
}

.accreditation-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 36px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.accreditation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.accreditation-card:hover {
  transform: translateY(-8px);
  border-color: var(--glass-hover-border);
  box-shadow: var(--card-hover-shadow);
}

.accreditation-card:hover::before {
  opacity: 1;
}

.accreditation-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid rgba(185, 28, 28, 0.15);
}

.accreditation-logo-wrapper.logo-box {
  width: 90px;
  height: 90px;
  max-width: 90px;
  max-height: 90px;
  margin-top: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #ffffff;
  padding: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  flex-shrink: 0;
}

.accreditation-card:hover .accreditation-logo-wrapper.logo-box {
  transform: scale(1.08);
}

.accreditation-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.accreditation-img.msme-img {
  object-fit: contain;
  border-radius: 0;
}

.accreditation-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.accreditation-desc {
  font-size: 13.5px;
  color: var(--text-dimmed);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.accreditation-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
  border: 1px solid rgba(22, 163, 74, 0.2);
  padding: 6px 14px;
  border-radius: 30px;
}

.accreditation-tag.gold {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.2);
}

.accreditation-tag.orange {
  color: #ea580c;
  background: rgba(234, 88, 12, 0.08);
  border-color: rgba(234, 88, 12, 0.2);
}

.accreditation-tag i,
.accreditation-tag svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 992px) {
  .accreditations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .accreditations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============ PERFORMANCE HARDWARE ACCELERATION ============ */
#bg,
#threeCanvas {
  will-change: transform, opacity;
}

#ifWrap {
  will-change: transform, opacity;
}

/* ============ INTERACTIVE AI CHATBOT WIDGET ============ */
.ai-chat-window {
  position: fixed !important;
  bottom: 96px !important;
  right: 28px !important;
  width: 380px !important;
  max-width: calc(100vw - 32px) !important;
  height: 520px !important;
  max-height: calc(100vh - 120px) !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), 0 0 2px rgba(185, 28, 28, 0.2) !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transform: translateY(20px) scale(0.95) !important;
  pointer-events: none !important;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ai-chat-window.open {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

.ai-chat-header {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
}

.ai-chat-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.ai-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-secondary);
}

.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.ai-msg.bot {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-msg.user {
  background: var(--color-primary);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-chips {
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
}

.ai-chip {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(185, 28, 28, 0.08);
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(185, 28, 28, 0.15);
  transition: all 0.2s ease;
}

.ai-chip:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.ai-chat-input-area {
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 8px;
}

.ai-chat-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 13.5px;
  outline: none;
}

.ai-chat-send {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}