/* ============================================================
   IntelCampus — Site CSS Design System
   Modern EdTech SaaS · v2.0
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  --ic-bg:          #06091a;
  --ic-surface:     #0d1530;
  --ic-surface-2:   #111d3e;
  --ic-border:      rgba(255,255,255,0.07);
  --ic-border-hover:rgba(255,255,255,0.16);

  --ic-blue:        #3b82f6;
  --ic-blue-dark:   #1d4ed8;
  --ic-blue-glow:   rgba(59,130,246,0.25);
  --ic-green:       #10b981;
  --ic-purple:      #8b5cf6;
  --ic-amber:       #f59e0b;

  --ic-text:        #f1f5f9;
  --ic-text-2:      #cbd5e1;
  --ic-muted:       #64748b;

  --ic-radius:      14px;
  --ic-radius-lg:   20px;
  --ic-radius-xl:   28px;

  --ic-shadow:      0 4px 24px rgba(0,0,0,0.4);
  --ic-shadow-lg:   0 16px 48px rgba(0,0,0,0.55);
  --ic-glow:        0 0 40px rgba(59,130,246,0.15);
}

/* ── Base Reset ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ic-bg);
  color: var(--ic-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Utility: Gradient Text ── */
.ic-gradient-text {
  background: linear-gradient(135deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ic-gradient-text-warm {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Page Background (applied to <main>) ── */
.ic-page-bg {
  background: linear-gradient(160deg, #06091a 0%, #0b1535 45%, #050d20 100%);
  min-height: 100vh;
}

/* ── Section Spacing ── */
.ic-section { padding: 96px 0; }
.ic-section-sm { padding: 64px 0; }

/* ── Section Header ── */
.ic-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.25);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.ic-section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--ic-text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.ic-section-sub {
  font-size: 1.05rem;
  color: var(--ic-text-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Cards ── */
.ic-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.ic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ic-shadow-lg), var(--ic-glow);
  border-color: var(--ic-border-hover);
}

/* ── Buttons ── */
.ic-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.ic-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37,99,235,0.35);
}
.ic-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 22px rgba(37,99,235,0.5);
  transform: translateY(-2px);
  color: #fff;
}

.ic-btn-outline {
  background: transparent;
  color: var(--ic-text);
  border: 1.5px solid var(--ic-border-hover);
}
.ic-btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-2px);
}

.ic-btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ic-text);
  border: 1px solid var(--ic-border);
}
.ic-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.ic-btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.ic-btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Feature Icon ── */
.ic-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.ic-icon-blue   { background: rgba(59,130,246,0.12); color: #60a5fa; }
.ic-icon-green  { background: rgba(16,185,129,0.12); color: #34d399; }
.ic-icon-purple { background: rgba(139,92,246,0.12); color: #a78bfa; }
.ic-icon-amber  { background: rgba(245,158,11,0.12); color: #fbbf24; }
.ic-icon-red    { background: rgba(239,68,68,0.12);  color: #f87171; }
.ic-icon-cyan   { background: rgba(6,182,212,0.12);  color: #67e8f9; }

/* ── Divider Glow ── */
.ic-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ic-border-hover), transparent);
  margin: 0;
}

/* ── Badge / Tag ── */
.ic-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ic-badge-blue   { background: rgba(59,130,246,0.15);  color: #93c5fd; }
.ic-badge-green  { background: rgba(16,185,129,0.15);  color: #6ee7b7; }
.ic-badge-purple { background: rgba(139,92,246,0.15);  color: #c4b5fd; }
.ic-badge-amber  { background: rgba(245,158,11,0.15);  color: #fde68a; }

/* ── Navbar ── */
.ic-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6,9,26,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ic-border);
  padding: 0;
  transition: background 0.3s ease;
}
.ic-navbar.scrolled {
  background: rgba(6,9,26,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.ic-nav-link {
  color: var(--ic-text-2) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px !important;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}
.ic-nav-link:hover,
.ic-nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.06);
}

.ic-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ic-nav-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}
.ic-nav-brand-name span { color: #60a5fa; }

/* ── Footer ── */
.ic-footer {
  background: #040812;
  border-top: 1px solid var(--ic-border);
  color: var(--ic-text-2);
}
.ic-footer-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ic-muted);
  margin-bottom: 14px;
}
.ic-footer-link {
  color: var(--ic-text-2);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.ic-footer-link:hover {
  color: #fff;
  padding-left: 4px;
}
.ic-footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ic-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ic-text-2);
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
}
.ic-footer-social:hover {
  background: var(--ic-blue);
  border-color: var(--ic-blue);
  color: #fff;
  transform: translateY(-3px);
}

/* ── Hero ── */
.ic-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
}
.ic-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ic-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--ic-bg));
  pointer-events: none;
}

.ic-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  padding: 6px 16px 6px 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #93c5fd;
  margin-bottom: 28px;
}
.ic-hero-badge-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.ic-hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 24px;
}

.ic-hero-sub {
  font-size: 1.1rem;
  color: var(--ic-text-2);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ── Stats Bar ── */
.ic-stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--ic-border);
}
.ic-stat-item {}
.ic-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.ic-stat-label {
  font-size: 0.82rem;
  color: var(--ic-muted);
  font-weight: 500;
}

/* ── Hero Image Frame ── */
.ic-hero-img-wrap {
  position: relative;
  border-radius: var(--ic-radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px var(--ic-border);
}
.ic-hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(59,130,246,0.08), transparent 50%);
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}

/* ── Feature Cards (home) ── */
.ic-feat-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius);
  padding: 28px 24px;
  transition: all 0.3s ease;
  height: 100%;
}
.ic-feat-card:hover {
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.1);
  transform: translateY(-5px);
}
.ic-feat-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 8px;
}
.ic-feat-card p {
  font-size: 0.88rem;
  color: var(--ic-text-2);
  margin: 0;
  line-height: 1.6;
}

/* ── Accordion (FAQ) ── */
.ic-accordion-item {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.ic-accordion-item .accordion-button {
  background: transparent;
  color: var(--ic-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 20px 24px;
  box-shadow: none !important;
}
.ic-accordion-item .accordion-button:not(.collapsed) {
  background: rgba(59,130,246,0.06);
  color: #93c5fd;
}
.ic-accordion-item .accordion-button::after {
  filter: invert(1) brightness(0.7);
}
.ic-accordion-item .accordion-collapse {
  border-top: 1px solid var(--ic-border);
}
.ic-accordion-item .accordion-body {
  padding: 16px 24px 20px;
  color: var(--ic-text-2);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── CTA Section ── */
.ic-cta-section {
  background: linear-gradient(135deg, #0f2060 0%, #1a3a8f 50%, #0d1f5c 100%);
  border-radius: var(--ic-radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,0.2);
}
.ic-cta-section::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ic-cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.ic-cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

/* ── Pricing Cards ── */
.ic-price-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-lg);
  padding: 36px 30px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ic-price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ic-shadow-lg);
}
.ic-price-card.featured {
  background: linear-gradient(160deg, #0f1f4a, #162860);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.2), var(--ic-shadow-lg);
}
.ic-price-card.featured:hover {
  box-shadow: 0 0 0 1px rgba(59,130,246,0.4), var(--ic-shadow-lg), 0 0 60px rgba(37,99,235,0.2);
}
.ic-price-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ic-text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.ic-price-amount {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.ic-price-desc {
  font-size: 0.85rem;
  color: var(--ic-muted);
  margin-bottom: 28px;
}
.ic-price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  flex: 1;
}
.ic-price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ic-text-2);
  padding: 7px 0;
  border-bottom: 1px solid var(--ic-border);
}
.ic-price-features li:last-child { border-bottom: none; }
.ic-price-features li .check {
  color: var(--ic-green);
  flex-shrink: 0;
  margin-top: 2px;
}
.ic-popular-tag {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── Step Cards (Works) ── */
.ic-step-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}
.ic-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--ic-border-hover);
  box-shadow: var(--ic-shadow-lg);
}
.ic-step-img-wrap {
  background: #0b1225;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ic-border);
}
.ic-step-img-wrap img {
  height: 180px;
  width: 100%;
  object-fit: contain;
}
.ic-step-body { padding: 24px; }
.ic-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.ic-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.ic-step-desc {
  font-size: 0.88rem;
  color: var(--ic-text-2);
  line-height: 1.65;
  margin: 0;
}

/* ── Register Form ── */
.ic-register-wrap {
  background: linear-gradient(160deg, #06091a, #0b1535, #050d20);
  min-height: 100vh;
  padding: 64px 0;
}
.ic-form-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-xl);
  overflow: hidden;
}
.ic-form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--ic-border);
  margin-bottom: 28px;
}
.ic-form-section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.ic-form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.ic-form-section-sub {
  font-size: 0.8rem;
  color: var(--ic-muted);
  margin: 0;
}

/* Bootstrap form overrides */
.ic-form-card .form-label {
  color: var(--ic-text-2);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.ic-form-card .form-control,
.ic-form-card .form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ic-border);
  border-radius: 10px;
  color: var(--ic-text);
  font-size: 0.92rem;
  padding: 10px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ic-form-card .form-control::placeholder { color: var(--ic-muted); }
.ic-form-card .form-control:focus,
.ic-form-card .form-select:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
  color: var(--ic-text);
  outline: none;
}
.ic-form-card .form-control.is-invalid { border-color: #ef4444; }
.ic-form-card .form-select option { background: #0d1530; color: #f1f5f9; }
.ic-form-card .invalid-feedback { font-size: 0.8rem; }
.ic-form-card textarea.form-control { resize: vertical; min-height: 90px; }

/* ── CMS Page ── */
.ic-cms-card {
  background: var(--ic-surface);
  border: 1px solid var(--ic-border);
  border-radius: var(--ic-radius-lg);
  overflow: hidden;
}
.ic-cms-card .card-header {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--ic-border);
  padding: 36px 40px;
  text-align: center;
}
.ic-cms-card .card-body {
  padding: 40px;
  color: var(--ic-text-2);
  line-height: 1.8;
  font-size: 0.95rem;
}
.ic-cms-card .card-body h1,
.ic-cms-card .card-body h2,
.ic-cms-card .card-body h3 {
  color: #fff;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.ic-cms-card .card-body a { color: #60a5fa; }
.ic-cms-card .card-body strong { color: var(--ic-text); }

/* ── Page Loader ── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--ic-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}
.ic-loader-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.ic-loader-logo span { color: #60a5fa; }
.ic-loader-bar-wrap {
  width: 180px;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.ic-loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 100px;
  animation: ic-load 1.2s ease-in-out forwards;
}
@keyframes ic-load {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── Navbar Toggler ── */
.ic-navbar .navbar-toggler {
  border: 1px solid var(--ic-border);
  padding: 6px 10px;
  border-radius: 8px;
}
.ic-navbar .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%28255,255,255,0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.ic-navbar .navbar-collapse {
  padding: 12px 0;
}
@media (max-width: 991px) {
  .ic-navbar .navbar-nav { gap: 4px; margin-bottom: 12px; }
  .ic-navbar .d-flex.gap-2 { flex-wrap: wrap; }
}

/* ── Scroll reveal tweaks ── */
[data-aos] { will-change: transform, opacity; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .ic-section  { padding: 64px 0; }
  .ic-hero     { padding: 72px 0 56px; }
  .ic-cta-section { padding: 48px 24px; }
  .ic-stats-bar { gap: 20px; }
  .ic-price-card { padding: 28px 22px; }
  .ic-form-section-header { padding: 16px 20px; }
  .ic-form-card .card-body,
  .ic-form-card .p-4 { padding: 24px 20px !important; }
}

/* ── Micro interactions ── */
a, button { -webkit-tap-highlight-color: transparent; }

/* ── Ensure Bootstrap text utils work ── */
.text-white-50 { color: rgba(255,255,255,0.5) !important; }
