/* ============ 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: #07070a;
  --bg-secondary: #0c0c12;
  --color-primary: #a11d22;
  --color-primary-hover: #c8282e;
  --color-primary-glow: rgba(161, 29, 34, 0.4);
  --color-accent: #e74c4c;
  --color-accent-light: #f87171;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dimmed: rgba(255, 255, 255, 0.35);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-hover-bg: rgba(161, 29, 34, 0.06);
  --glass-hover-border: rgba(161, 29, 34, 0.4);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
}

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

body.locked {
  overflow: hidden;
}

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

/* ============ CINEMATIC INTRO ============ */
#intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #020204;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1), transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

#intro.hide {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-logo {
  width: 120px;
  height: 120px;
  opacity: 0;
  transform: scale(0.3) rotate(-15deg);
  transition: opacity 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 20px rgba(161, 29, 34, 0.6));
}

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

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

.intro-brand {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--text-main);
  margin-top: 32px;
  overflow: hidden;
  height: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-brand span {
  display: inline-block;
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-brand span.red {
  color: var(--color-primary);
  text-shadow: 0 0 15px rgba(161, 29, 34, 0.4);
}

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

.intro-tagline {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

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

.intro-bar {
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 40px;
  border-radius: 3px;
  transition: width 2.0s cubic-bezier(0.65, 0, 0.35, 1);
  max-width: 240px;
  box-shadow: 0 0 10px rgba(161, 29, 34, 0.5);
}

.intro-bar.fill {
  width: 240px;
}

.intro-skip {
  position: absolute;
  bottom: 40px;
  font-size: 12px;
  color: var(--text-dimmed);
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-fast);
}

.intro-skip:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

/* ============ NAVIGATION BAR ============ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 76px;
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(161, 29, 34, 0.15);
  opacity: 0;
  transition: opacity 0.8s ease 0.2s;
}

nav.show {
  opacity: 1;
}

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

.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 {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.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 {
  color: var(--text-main);
}

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

.nav-cta {
  background: var(--color-primary);
  color: var(--text-main);
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(161, 29, 34, 0.2);
}

.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(161, 29, 34, 0.35);
}

/* Nav Menu Hamburger (Responsive) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-fast);
  transform-origin: left;
}

/* ============ HERO SECTION ============ */
.hero-wrapper {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, rgba(161, 29, 34, 0.15) 0%, transparent 60%);
}

.hero {
  position: relative;
  z-index: 5;
  min-height: calc(90vh - 76px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s, transform 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(161, 29, 34, 0.12);
  border: 1px solid rgba(161, 29, 34, 0.3);
  color: var(--color-accent-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  box-shadow: 0 4px 20px rgba(161, 29, 34, 0.05);
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(231, 76, 76, 0.7);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(231, 76, 76, 0);
  }
}

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

.hero-headline .static {
  display: block;
  background: linear-gradient(160deg, #ffffff 40%, rgba(255, 255, 255, 0.45));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.type-line {
  display: block;
  min-height: 1.25em;
}

.type-text {
  font-style: normal;
  background: linear-gradient(135deg, var(--color-primary), #ff5d63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  background: var(--color-accent);
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 2px;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
  margin-top: 16px;
}

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

.btn-r {
  background: var(--color-primary);
  color: var(--text-main);
  border: none;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(161, 29, 34, 0.3);
}

.btn-r:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(161, 29, 34, 0.45);
}

.btn-b {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-main);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-block;
}

.btn-b:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ============ STATS ============ */
.stats {
  display: flex;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

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

.stat-n {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent-light);
  letter-spacing: -1px;
}

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

/* ============ TECH MARQUEE BAR ============ */
.tech-bar {
  background: rgba(161, 29, 34, 0.05);
  border-top: 1px solid rgba(161, 29, 34, 0.15);
  border-bottom: 1px solid rgba(161, 29, 34, 0.15);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.marquee {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: mar 26s 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: 600;
  letter-spacing: 0.05em;
}

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

/* ============ COURSES SECTION ============ */
.sec {
  padding: 100px 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-accent-light);
  margin-bottom: 12px;
}

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

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

/* Responsive Grid Design */
.cgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Glassmorphic Cards */
.ccard {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 28px;
  transition: var(--transition-smooth);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.ccard::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  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);
  background: var(--glass-hover-bg);
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(161, 29, 34, 0.12);
}

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

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

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

.cicon svg {
  width: 26px;
  height: 26px;
  stroke: #94a3b8;
  stroke-width: 1.5px;
  transition: var(--transition-smooth);
}

.ccard:hover .cicon svg {
  stroke: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  transform: scale(1.05);
}

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

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

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

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

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

.ctag {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  background: rgba(161, 29, 34, 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(161, 29, 34, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

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

.cta-title em {
  color: var(--color-accent);
  font-style: normal;
  text-shadow: 0 0 15px rgba(231, 76, 76, 0.3);
}

.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;
}

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

/* ============ MASCOT IF WRAPPER ============ */
#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: rgba(23, 23, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(161, 29, 34, 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-accent-light);
  stroke-width: 2px;
  transition: transform 0.3s ease;
}

#ifWrap:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 35px rgba(161, 29, 34, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

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

@keyframes ifFloat {

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

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

#ifSpeech {
  position: absolute;
  bottom: 110%;
  right: 10px;
  background: var(--color-primary);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 10px rgba(161, 29, 34, 0.2);
  white-space: normal;
  width: 200px;
  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.4;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

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

  .sec {
    padding: 80px 40px;
  }
}

@media (max-width: 768px) {

  /* Nav Mobile Layout */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 10, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 40px;
    gap: 24px;
    align-items: center;
    border-bottom: 1px solid rgba(161, 29, 34, 0.2);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.4s ease;
    z-index: 90;
    pointer-events: none;
  }

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

  .nav-links a {
    font-size: 18px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .nav-cta {
    display: none;
    /* Hide top CTA or put it in links drawer */
  }

  /* Hamburger Animating to 'X' */
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
  }

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

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

  /* Hero adjustments */
  .hero {
    min-height: calc(85vh - 76px);
    padding: 60px 20px 40px;
  }

  .stats {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
  }

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

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

  .sec {
    padding: 60px 24px;
  }

  /* Mascot adjustment for smaller screens */
  #ifWrap {
    bottom: 20px;
    right: 20px;
  }

  #ifSpeech {
    width: 180px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 0 20px;
    height: 64px;
  }

  .nav-links {
    top: 64px;
  }

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

  .hero-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn-r,
  .btn-b {
    width: 100%;
    text-align: center;
  }

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


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

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

::-webkit-scrollbar-thumb {
  background: rgba(161, 29, 34, 0.4);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

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

/* ============ HOW IT WORKS TIMELINE ============ */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: translateX(-50%);
  opacity: 0.3;
}

.timeline-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  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: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 2.5px 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 0 16px rgba(161, 29, 34, 0.4);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-node {
  background: var(--color-primary);
  border-color: var(--color-accent-light);
  box-shadow: 0 0 24px rgba(161, 29, 34, 0.8);
  transform: translateX(-50%) scale(1.15);
}

.timeline-content {
  width: 45%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.timeline-step:hover .timeline-content {
  border-color: rgba(161, 29, 34, 0.4);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

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

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

@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }

  .timeline-step {
    flex-direction: row !important;
    margin-bottom: 40px;
  }

  .timeline-node {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-step:hover .timeline-node {
    transform: translateX(-50%) scale(1.1);
  }

  .timeline-content {
    width: calc(100% - 50px);
    margin-left: 50px;
  }
}

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

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

.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(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 32px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

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

.tcard-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-accent-light);
  background: rgba(161, 29, 34, 0.12);
  border: 1px solid rgba(161, 29, 34, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.tcard-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
  margin-bottom: 24px;
}

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

.tcard-avatar {
  width: 44px;
  height: 44px;
  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: #fff;
  font-size: 16px;
}

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

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

.carousel-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
  z-index: 10;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-accent-light);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .carousel-container {
    gap: 10px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .tcard {
    padding: 20px;
  }
}

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

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

.accordion-item:hover {
  border-color: rgba(161, 29, 34, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

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

.accordion-icon {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-accent-light);
  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 24px;
}

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

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

/* ============ MODAL OVERLAYS & CARDS ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 3, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-card {
  background: rgba(12, 12, 18, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  width: 100%;
  max-width: 540px;
  padding: 36px;
  position: relative;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(161, 29, 34, 0.15);
  overflow: hidden;
}

.modal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--color-accent-light), transparent, var(--color-primary));
  -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: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--color-primary);
  color: var(--text-main);
  border-color: var(--color-accent-light);
}

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

.modal-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(161, 29, 34, 0.15);
  color: var(--color-accent-light);
  border: 1px solid rgba(161, 29, 34, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
}


.course-syllabus h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

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

/* Scrollbar dark timeline */
.modal-timeline::-webkit-scrollbar {
  width: 4px;
}

.modal-timeline::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.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-accent-light);
  text-align: right;
  opacity: 0.85;
}

/* Glowing Neon Nodes */
.modal-timeline-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #0c0c12;
  /* Matches dark modal body background */
  border: 2.5px solid var(--color-accent-light);
  box-shadow: 0 0 12px rgba(161, 29, 34, 0.6);
  z-index: 2;
  position: relative;
  justify-self: center;
  animation: pulse-glow-dark 2s infinite ease-in-out;
}

@keyframes pulse-glow-dark {
  0% {
    box-shadow: 0 0 6px rgba(161, 29, 34, 0.4);
  }

  50% {
    box-shadow: 0 0 16px rgba(161, 29, 34, 0.9);
  }

  100% {
    box-shadow: 0 0 6px rgba(161, 29, 34, 0.4);
  }
}

/* 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(161, 29, 34, 0.2);
  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: 28px;
  display: flex;
  justify-content: flex-end;
}

.modal-footer .btn-r {
  width: 100%;
  text-align: center;
}

/* ============ FLOATING LABEL FORM FIELDS ============ */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

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

.input-wrapper input {
  width: 100%;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  transition: var(--transition-fast);
}

.input-wrapper input:focus,
.input-wrapper input:not(:placeholder-shown) {
  border-color: rgba(161, 29, 34, 0.5);
  background: rgba(161, 29, 34, 0.02);
}

.input-wrapper label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dimmed);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), font-size 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.input-wrapper input:focus~label,
.input-wrapper input:not(:placeholder-shown)~label {
  transform: translateY(-33px) scale(0.85);
  font-size: 12px;
  color: var(--color-accent-light);
  background: #0c0c12;
  /* Match modal card background */
  padding: 0 6px;
  left: 10px;
}

.select-wrapper select {
  width: 100%;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.select-wrapper {
  position: relative;
}

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

.select-wrapper select:focus {
  border-color: rgba(161, 29, 34, 0.5);
  background: rgba(161, 29, 34, 0.02);
}

.form-error {
  font-size: 11px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
  padding-left: 6px;
  font-weight: 600;
  text-align: left;
}

.form-group.error input,
.form-group.error select {
  border-color: rgba(239, 68, 68, 0.5) !important;
  background: rgba(239, 68, 68, 0.02) !important;
}

.form-group.error .form-error {
  display: block;
}

/* ============ SUBMIT BUTTON LOADING STATE ============ */
.submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 52px;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.submit-btn.loading .btn-text {
  display: none;
}

.submit-btn.loading .btn-spinner {
  display: block;
}

.submit-btn.success {
  background: #10b981 !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3) !important;
  border-color: #10b981 !important;
}

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

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

/* ============ 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: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.accreditation-logo-wrapper.logo-box {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.accreditation-card:hover .accreditation-logo-wrapper.logo-box {
  transform: scale(1.1) rotate(2deg);
}

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

.accreditation-img.msme-img {
  object-fit: cover;
  border-radius: 8px;
}

.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: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  padding: 6px 14px;
  border-radius: 30px;
}

.accreditation-tag.gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}

.accreditation-tag.orange {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.25);
}

.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;
  }
}

/* ============ 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.4), 0 0 2px rgba(255, 0, 127, 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.2);
}

.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(255, 0, 127, 0.15);
  color: var(--color-primary);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid rgba(255, 0, 127, 0.3);
  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 rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  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;
}