:root {
  --bg: #070b14;
  --bg-elevated: #0d1424;
  --bg-card: rgba(17, 26, 46, 0.72);
  --bg-card-solid: #111a2e;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e8eefc;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #22d3ee;
  --primary-soft: rgba(99, 102, 241, 0.15);
  --accent: #a78bfa;
  --success: #34d399;
  --warning: #fbbf24;
  --danger: #f87171;
  --radius: 1.25rem;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --nav-h: 76px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-muted-soft {
  color: var(--text-muted) !important;
}

/* Buttons */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: #4f46e5;
  --bs-btn-hover-border-color: #4f46e5;
  --bs-btn-active-bg: #4338ca;
  --bs-btn-active-border-color: #4338ca;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(99, 102, 241, 0.45);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-primary {
  --bs-btn-color: #c7d2fe;
  --bs-btn-border-color: rgba(99, 102, 241, 0.45);
  --bs-btn-hover-bg: var(--primary-soft);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
}

.btn-light {
  color: #1e1b4b;
  font-weight: 700;
}

.btn-nav {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  padding: 0.45rem 1.15rem;
  font-size: 0.92rem;
}

.btn-nav-label {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.btn-nav-number {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.95;
}

/* Navbar */
.navbar {
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  padding: 0.65rem 0;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text) !important;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.navbar-nav .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  padding: 0.5rem 0.9rem !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.55rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28232, 238, 252, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(13, 20, 36, 0.96);
    border: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 80%, rgba(167, 139, 250, 0.12), transparent 50%),
    var(--bg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: float 10s ease-in-out infinite;
}

.hero-orb-1 {
  width: 320px;
  height: 320px;
  background: #6366f1;
  top: 10%;
  left: -5%;
}

.hero-orb-2 {
  width: 280px;
  height: 280px;
  background: #22d3ee;
  bottom: 5%;
  right: -4%;
  animation-delay: -4s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.stat-item {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  min-width: 120px;
}

.stat-item strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.stat-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  position: relative;
  margin-left: auto;
  max-width: 380px;
}

.hero-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.7), rgba(34, 211, 238, 0.4), rgba(167, 139, 250, 0.5));
  filter: blur(1px);
  opacity: 0.8;
}

.hero-card-inner {
  position: relative;
  background: rgba(13, 20, 36, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  font-size: 1.25rem;
  color: #fff;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
  color: #cbd5e1;
}

.hero-checklist i {
  color: var(--success);
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background:
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(34, 211, 238, 0.06), transparent 50%),
    var(--bg-elevated);
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-header {
  margin-bottom: 1rem;
}

/* Course cards */
.course-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.course-card.featured-course {
  background:
    linear-gradient(180deg, rgba(99, 102, 241, 0.16), rgba(17, 26, 46, 0.9));
  border-color: rgba(99, 102, 241, 0.35);
}

.course-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.course-icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: #fff;
}

.course-icon.java { background: linear-gradient(135deg, #f97316, #ef4444); }
.course-icon.dotnet { background: linear-gradient(135deg, #6366f1, #3b82f6); }
.course-icon.data { background: linear-gradient(135deg, #10b981, #14b8a6); }
.course-icon.powerbi { background: linear-gradient(135deg, #f59e0b, #f97316); }
.course-icon.ai { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.mode-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mode-badge.offline {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.mode-badge.online {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.mode-badge.hybrid {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.course-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.course-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.course-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.course-tags li {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: #a5b4fc;
  transition: gap 0.2s ease, color 0.2s ease;
}

.course-link:hover {
  color: #fff;
  gap: 0.65rem;
}

.cta-card {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.25), rgba(34, 211, 238, 0.12));
  border-color: rgba(99, 102, 241, 0.35);
  justify-content: center;
}

.cta-card-inner {
  text-align: center;
  padding: 0.5rem;
}

.cta-card-inner > i {
  font-size: 2rem;
  color: var(--primary-2);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.cta-card-inner h3 {
  font-size: 1.2rem;
}

/* Curriculum */
.curriculum-grid {
  display: grid;
  gap: 0.9rem;
}

.curriculum-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.curriculum-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateX(4px);
}

.step-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-2);
  min-width: 2rem;
  line-height: 1.4;
}

.curriculum-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.curriculum-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.additional-panel {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1.75rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(99, 102, 241, 0.2), rgba(13, 20, 36, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: var(--shadow);
}

.additional-panel-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.additional-panel-header i {
  color: var(--warning);
  font-size: 1.3rem;
}

.additional-panel-header h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
}

.additional-panel > p {
  color: var(--text-muted);
}

.additional-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.additional-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  font-weight: 500;
}

.additional-list li:last-child {
  border-bottom: none;
}

.additional-list i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  font-size: 0.9rem;
}

/* Features */
.feature-card {
  height: 100%;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.35);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: #a5b4fc;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* CTA Banner */
.cta-banner {
  padding: 0 0 6rem;
}

.cta-banner-inner {
  padding: 2.5rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: linear-gradient(120deg, #4f46e5, #6366f1 40%, #0891b2);
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-banner-inner::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: -60px;
  right: -40px;
}

.cta-banner-inner h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  margin-bottom: 0.4rem;
}

.cta-banner-inner p {
  color: rgba(255, 255, 255, 0.88);
}

/* Contact */
.contact-info-card,
.enquiry-card,
.map-card {
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.contact-info-card {
  padding: 1.75rem;
  height: 100%;
}

.contact-block {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.contact-block:first-child {
  padding-top: 0;
}

.contact-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-icon {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: #a5b4fc;
}

.contact-block h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-block a {
  color: #fff;
  font-weight: 600;
}

.contact-block a:hover {
  color: var(--primary-2);
}

.contact-block p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.map-card {
  overflow: hidden;
  height: 100%;
  min-height: 360px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(0.15) contrast(1.05);
}

.enquiry-card {
  padding: 2rem;
}

.form-label {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control,
.form-select {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(7, 11, 20, 0.85);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
  color: var(--text);
}

.form-control::placeholder {
  color: #64748b;
}

.form-select option {
  background: #111a2e;
  color: var(--text);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--danger);
}

.alert-success {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}

.alert-danger {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 1.5rem;
  background: #050810;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-size: 1.2rem;
}

.footer-tagline,
.footer-address,
.copyright {
  color: var(--text-muted);
}

.footer-link {
  color: #fff;
  font-weight: 600;
}

.footer-link:hover {
  color: var(--primary-2);
}

.footer-divider {
  border-color: rgba(148, 163, 184, 0.12);
  margin: 1.5rem 0 1rem;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1030;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: #fff;
  transform: translateY(-3px);
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 767.98px) {
  .section {
    padding: 4.5rem 0;
  }

  .cta-banner {
    padding-bottom: 4.5rem;
  }

  .cta-banner-inner {
    padding: 1.75rem;
    text-align: center;
  }

  .cta-banner-inner .text-lg-end {
    text-align: center !important;
  }

  .enquiry-card {
    padding: 1.35rem;
  }

  .stat-item {
    min-width: 0;
    padding: 0.6rem 0.5rem;
  }

  .stat-item strong {
    font-size: 1.05rem;
  }
}
