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

:root {
  --bg-dark: #f8fafc; /* Clean background */
  --bg-card: #ffffff; /* White cards */
  --bg-card-hover: #f1f5f9; /* Subtle slate hover */
  --border-glass: rgba(11, 37, 69, 0.08);
  --border-glow: rgba(0, 136, 232, 0.2);
  --text-main: #0b2545; /* Deep Navy primary text */
  --text-muted: #64748b; /* Slate muted */
  --primary: #0088e8; /* Vibrant Avgova Blue */
  --primary-glow: rgba(0, 136, 232, 0.25);
  --secondary: #0b2545; /* Avgova Midnight Navy */
  --secondary-glow: rgba(11, 37, 69, 0.15);
  --accent: #38b6ff; /* Electric Cyan accent */
  --accent-glow: rgba(56, 182, 255, 0.25);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 3D background canvas */
#canvas3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: rgba(15, 23, 42, 0.15);
}

.glass-card-glow-blue:hover {
  box-shadow: 0 10px 30px rgba(10, 27, 51, 0.1);
  border-color: var(--primary);
}

.glass-card-glow-purple:hover {
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.1);
  border-color: var(--secondary);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #0a1b33 0%, #1e293b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(10, 27, 51, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 27, 51, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  padding: 12px 0;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary); /* Use deep brand color */
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 0;
  border: none;
  box-shadow: none;
  transition: var(--transition-smooth);
}

.logo:hover img {
  transform: scale(1.03);
}

.logo-icon {
  color: var(--primary);
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

/* Desktop Dropdown menu */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1000;
  padding: 10px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.nav-dropdown-menu li {
  list-style: none;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  text-align: left;
}

.nav-dropdown-menu a:hover {
  color: #ffffff;
  background: var(--primary);
}

/* Mobile Toggle Hamburger button */
.nav-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
  transition: var(--transition-smooth);
}

.nav-toggle-btn:hover {
  color: var(--primary);
}

/* Mobile Drawer Overlay styles */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 25px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0;
}

.mobile-nav-links a {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--primary);
}

@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .nav-toggle-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow-card {
  width: 100%;
  max-width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.hero-visual-mesh {
  font-size: 8rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px var(--secondary-glow));
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Why Choose Us */
.section {
  padding: 90px 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  padding: 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.feature-icon {
  font-size: 2.2rem;
  margin-bottom: 20px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Popular Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.course-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.course-card:hover .course-img-wrapper img {
  transform: scale(1.08);
}

.course-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(9, 13, 22, 0.75);
  border: 1px solid var(--border-glass);
}

.course-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.course-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.course-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

/* Testimonials Carousel */
.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  padding: 30px;
  position: relative;
}

.review-text {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 25px;
  position: relative;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.author-info h4 {
  font-size: 1rem;
}

.author-info p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  border-radius: 12px;
}

.faq-header {
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-icon {
  transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 25px;
}

.faq-item.active .faq-content {
  max-height: 1000px;
  padding-bottom: 20px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

.faq-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact and Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info-item {
  display: flex;
  gap: 20px;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
}

.contact-info-body h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-info-body p, .contact-info-body a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
  background: rgba(255, 255, 255, 0.08);
}

/* AI Floating Chatbot Widget */
.ai-chat-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.ai-chat-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.4);
  transition: var(--transition-smooth);
  border: none;
}

.ai-chat-button:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.ai-chat-container {
  position: absolute;
  bottom: 75px;
  right: 0;
  width: 360px;
  height: 480px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.ai-chat-container.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.ai-chat-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-chat-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981; /* green */
  box-shadow: 0 0 8px #10b981;
}

.ai-chat-messages {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.chat-bubble-ai {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.chat-bubble-user {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  align-self: flex-end;
  color: white;
  border-bottom-right-radius: 2px;
}

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

.ai-chat-input {
  flex-grow: 1;
  padding: 8px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  outline: none;
  font-size: 0.88rem;
}

.ai-chat-input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.ai-chat-send {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.ai-chat-send:hover {
  background: var(--secondary);
}

/* WhatsApp Overlay Redirect */
.whatsapp-chat-redirect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-top: 10px;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.whatsapp-chat-redirect:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

/* Footer styling */
footer {
  background: #06090f;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 15px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.footer-links h4, .footer-contact h4 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Timeline Components */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--border-glass);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  position: absolute;
  right: -8px;
  top: 25px;
  z-index: 10;
  box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-date {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

/* Course Search Catalog page filters panel */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.filter-sidebar {
  padding: 30px;
  height: fit-content;
}

.filter-group {
  margin-bottom: 25px;
}

.filter-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 10px;
}

.checkbox-label input {
  accent-color: var(--primary);
}

/* Multi-step Student Registration Widget */
.multi-step-form {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-glass);
  z-index: 1;
  transform: translateY(-50%);
}

.step-indicator-node {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #1e293b;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  z-index: 2;
  transition: var(--transition-smooth);
}

.step-indicator-node.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-indicator-node.completed {
  background: var(--secondary);
  border-color: var(--secondary);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.otp-toast {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 15px 25px;
  background: rgba(245, 158, 11, 0.95); /* Amber background for visual alert */
  color: #000000;
  font-weight: bold;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  display: none;
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* QR Code camera scanning view area */
#qr-reader-container {
  max-width: 480px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

#qr-reader {
  width: 100% !important;
  background: #000;
  border: none !important;
}

/* Modal details styling */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-content {
  width: 90%;
  max-width: 750px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.modal-close:hover {
  color: var(--text-main);
}

/* Responsive Grid Tweaks */
@media(max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 40px;
  }
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 70px;
  }
  .timeline-dot {
    left: 32px !important;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .step-indicator {
    gap: 5px;
  }
  .step-indicator-node {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* Animated Logos Slider */
.logos-section {
  padding: 40px 0;
  background: rgba(15, 23, 42, 0.3);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}
.slider-title {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  font-weight: 600;
}
.logos-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.logos-slider::before,
.logos-slider::after {
  content: "";
  height: 100%;
  width: 150px;
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.logos-slider::before {
  left: 0;
  top: 0;
  background: linear-gradient(to right, var(--bg-dark) 0%, transparent 100%);
}
.logos-slider::after {
  right: 0;
  top: 0;
  background: linear-gradient(to left, var(--bg-dark) 0%, transparent 100%);
}
.logos-slider-track {
  display: flex;
  gap: 50px;
  width: calc(240px * 30); /* 15 logos * 2 sets */
  animation: logo-scroll 40s linear infinite;
}
.logo-item {
  flex-shrink: 0;
  width: 180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  gap: 10px;
  transition: var(--transition-smooth);
}
.logo-item i {
  font-size: 1.3rem;
  color: var(--primary);
  transition: var(--transition-smooth);
}
.logo-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}
.logo-item:hover i {
  color: var(--secondary);
  transform: scale(1.1);
}
@keyframes logo-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-180px * 15 - 50px * 15)); /* shift by full set of logos + gaps */
  }
}
@media (max-width: 768px) {
  .logos-slider::before,
  .logos-slider::after {
    width: 60px;
  }
  .logo-item {
    width: 150px;
    height: 50px;
    font-size: 0.95rem;
  }
  @keyframes logo-scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-150px * 15 - 50px * 15));
    }
  }
}

/* Leadership Cards styling */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.leader-card {
  text-align: center;
  padding: 40px 25px;
  position: relative;
  overflow: hidden;
}
.leader-img-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(168,85,247,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.leader-img-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.leader-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.leader-real-img[src=""], 
.leader-real-img:not([src]) {
  display: none !important;
}
.leader-card:hover .leader-img-wrapper {
  transform: scale(1.05);
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
}
.leader-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  font-family: var(--font-display);
}
.leader-info .designation {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.leader-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Status/Text Helper Classes to avoid inline CSS with EJS tags */
.text-success-status {
  color: #10b981 !important;
}

.text-danger-status {
  color: #ef4444 !important;
}

.text-muted-status {
  color: var(--text-muted) !important;
}

/* Rotating Background Logo */
.rotating-bg-logo {
  position: fixed;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: url('/logo.jpg') no-repeat center center;
  background-size: contain;
  opacity: 0.025; /* extremely low opacity */
  z-index: -10;
  pointer-events: none;
  animation: rotate-slow 180s linear infinite;
  mix-blend-mode: screen; /* hides dark background of JPG */
}

@keyframes rotate-slow {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Technology Icons/Particles */
.floating-elements-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -5;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  opacity: 0.08;
  color: var(--primary);
  font-size: 2.2rem;
  animation: float-drift 20s ease-in-out infinite;
}

@keyframes float-drift {
  0% { transform: translateY(0px) translateX(0px) rotate(0deg); }
  50% { transform: translateY(-40px) translateX(30px) rotate(180deg); }
  100% { transform: translateY(0px) translateX(0px) rotate(360deg); }
}

/* Companies Partner Logo marquee custom overrides */
.logos-section {
  padding: 40px 0;
  background: rgba(5, 8, 17, 0.4);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
}

.slider-title {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
}

.logos-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.logos-slider-track {
  display: inline-flex;
  gap: 50px;
  width: max-content;
  animation: logo-scroll 45s linear infinite;
}

.logos-slider:hover .logos-slider-track {
  animation-play-state: paused;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 60px;
  gap: 10px;
  transition: var(--transition-smooth);
  padding: 0 15px;
}

.logo-item svg, .logo-item img {
  height: 30px;
  width: auto;
  max-width: 130px;
  filter: grayscale(100%) brightness(150%);
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.logo-item:hover {
  transform: translateY(-2px);
}

.logo-item:hover svg, .logo-item:hover img {
  filter: none; /* restores original logo colors! */
  opacity: 1;
}

/* Grid for 17 Course Cards */
.courses-grid-17 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.course-card-custom {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  background: rgba(13, 20, 38, 0.6);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.course-card-custom:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.course-header-custom {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.course-header-custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.course-card-custom:hover .course-header-custom img {
  transform: scale(1.06);
}

.course-badge-custom {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(5, 8, 17, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.course-icon-floating {
  position: absolute;
  bottom: -20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(5, 8, 17, 0.9);
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  z-index: 2;
}

.course-body-custom {
  padding: 35px 25px 25px 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.course-meta-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 12px;
  font-weight: 500;
}

.course-body-custom h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
  font-family: var(--font-display);
}

.course-body-custom p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer-custom {
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price-custom {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
}

/* Animations variables overlay */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

/* Layout Fixes */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
}

/* Stats Banner */
.stats-banner {
  background: rgba(5, 8, 17, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 0 20px rgba(168, 85, 247, 0.05);
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 5px;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Journey Timeline */
.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 40px 0;
}
.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--accent));
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-content {
  width: 45%;
  background: rgba(16, 24, 40, 0.7);
  border: 1px solid var(--border-glass);
  padding: 25px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}
.timeline-item:nth-child(odd) .timeline-content {
  margin-left: auto;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--bg-dark);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 15px var(--primary-glow);
}
.timeline-item:nth-child(2) .timeline-dot {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}
.timeline-item:nth-child(3) .timeline-dot {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .journey-timeline::before {
    left: 20px;
  }
  .timeline-content {
    width: calc(100% - 50px);
    margin-left: auto !important;
  }
  .timeline-dot {
    left: 20px;
  }
}

/* Form inputs and select elements override for clean light design */
.form-control, 
input[type="text"], 
input[type="email"], 
input[type="password"], 
input[type="date"], 
select, 
textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.form-control:focus, 
input[type="text"]:focus, 
input[type="email"]:focus, 
input[type="password"]:focus, 
select:focus, 
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(10, 27, 51, 0.1) !important;
}
