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

:root {
  --purple:       #7A28CB;
  --purple-dark:  #1a002b;
  --purple-deep:  #2d0050;
  --purple-mid:   #9933FF;
  --purple-light: #f0e8ff;
  --purple-pale:  #F9F6FF;
  --white:        #ffffff;
  --text:         #1a1a2e;
  --text-muted:   #6b7280;
  --border:       #e5e0f0;
  --grad:         linear-gradient(135deg, #7A28CB 0%, #9933FF 100%);
  --grad-dark:    linear-gradient(135deg, #1a002b 0%, #2d0050 100%);
  --shadow-sm:    0 2px 8px rgba(122,40,203,0.08);
  --shadow-md:    0 8px 30px rgba(122,40,203,0.14);
  --shadow-lg:    0 20px 60px rgba(122,40,203,0.18);
  --radius:       14px;
  --radius-lg:    20px;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--purple-pale); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }

/* ── TYPOGRAPHY ── */
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 10px; }
.section-sub { color: var(--text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.navbar-brand img { height: 32px; width: auto; }
.navbar-brand .brand-text { font-weight: 800; font-size: 20px; color: var(--purple-dark); letter-spacing: -0.02em; }
.nav-link { color: var(--text-muted) !important; font-weight: 500; font-size: 14px; padding: 8px 14px !important; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--purple) !important; background: var(--purple-light); }
.navbar-toggler { border: 1.5px solid var(--border); }

/* ── BUTTONS ── */
.btn-purple {
  background: var(--grad); color: white; border: none;
  border-radius: 10px; padding: 11px 26px;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(122,40,203,0.3);
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(122,40,203,0.4); color: white; }
.btn-purple:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline-purple {
  background: transparent; color: var(--purple);
  border: 2px solid var(--purple); border-radius: 10px;
  padding: 9px 24px; font-weight: 600; font-size: 14px;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.25s;
}
.btn-outline-purple:hover { background: var(--purple); color: white; }

.btn-white {
  background: white; color: var(--purple);
  border: none; border-radius: 10px;
  padding: 11px 26px; font-weight: 700; font-size: 14px;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--purple); }

.btn-outline-white {
  background: transparent; color: white;
  border: 2px solid rgba(255,255,255,0.7); border-radius: 10px;
  padding: 9px 24px; font-weight: 600; font-size: 14px;
  font-family: 'Poppins', sans-serif; cursor: pointer; transition: all 0.25s;
}
.btn-outline-white:hover { background: white; color: var(--purple); border-color: white; }

/* Legacy alias */
.btn-primary-gradient { @extend .btn-purple; }

/* ── HERO ── */
.hero-section {
  background: var(--grad-dark);
  padding: 100px 0 90px;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(153,51,255,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(122,40,203,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white; border-radius: 30px;
  padding: 7px 18px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; margin-bottom: 24px;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--grad-dark);
  padding: 70px 0 60px;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(153,51,255,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.page-header h1 { color: white; }
.page-header p { color: rgba(255,255,255,0.7); }
.page-header .badge { background: rgba(255,255,255,0.15) !important; color: white; border: 1px solid rgba(255,255,255,0.2); }

/* ── CARDS ── */
.card-base {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  overflow: hidden;
}
.card-base:hover {
  border-color: rgba(122,40,203,0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

/* Service Cards */
.service-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px 24px;
  text-align: center; transition: all 0.3s;
  height: 100%;
}
.service-card:hover { border-color: rgba(122,40,203,0.3); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.service-icon {
  width: 68px; height: 68px; border-radius: 18px;
  background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(122,40,203,0.3);
}

/* Course Cards */
.course-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden; transition: all 0.3s; height: 100%;
}
.course-card:hover { border-color: rgba(122,40,203,0.3); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.course-card-img {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.course-card-img i { font-size: 3rem; color: white; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }

/* Feature / Info Cards */
.feature-card, .info-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 32px 24px;
  text-align: center; transition: all 0.3s; height: 100%;
}
.feature-card:hover, .info-card:hover { border-color: rgba(122,40,203,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.icon-circle {
  width: 68px; height: 68px; border-radius: 18px;
  background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
  box-shadow: 0 8px 20px rgba(122,40,203,0.3);
}

/* IT Service Cards */
.it-service-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  transition: all 0.3s; height: 100%; position: relative;
}
.it-service-card:hover { border-color: rgba(122,40,203,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.it-service-card .service-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--grad); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.it-service-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--purple-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--purple); margin-bottom: 16px;
}
.tag {
  display: inline-block;
  background: var(--purple-light); color: var(--purple);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin: 2px;
}

/* Testimonial Cards */
.testimonial-card {
  background: white; border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 28px;
  transition: all 0.3s; height: 100%;
}
.testimonial-card:hover { border-color: rgba(122,40,203,0.3); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.stars { color: #f59e0b; font-size: 13px; }

/* ── STATS ── */
.stats-section { background: var(--grad-dark); padding: 64px 0; }
.stat-item h2 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: white; line-height: 1; margin-bottom: 6px; }
.stat-item p { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }

/* ── SEARCH ── */
.search-wrap {
  display: flex; align-items: center; gap: 10px;
  background: white; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 4px 16px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(122,40,203,0.08); }
.search-wrap input { border: none; outline: none; font-family: 'Poppins', sans-serif; font-size: 14px; padding: 10px 0; flex: 1; background: transparent; }
.search-wrap i { color: var(--text-muted); }

/* Filter Buttons */
.filter-btn {
  border: 1.5px solid var(--border); background: white;
  color: var(--text-muted); border-radius: 10px;
  padding: 7px 18px; font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.filter-btn.active { background: var(--grad); color: white; border-color: transparent; box-shadow: 0 4px 12px rgba(122,40,203,0.25); }

/* ── FORMS ── */
.form-field {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  background: white; color: var(--text);
}
.form-field:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(122,40,203,0.08); }
.form-field::placeholder { color: #b0aab8; }
select.form-field { cursor: pointer; }
textarea.form-field { resize: vertical; min-height: 90px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; display: block; }
.required { color: #e11d48; }

/* ── APPLICATION MODAL ── */
.app-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,0,43,0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.app-modal-overlay.active { opacity: 1; pointer-events: all; }
.app-modal {
  background: white; border-radius: var(--radius-lg);
  width: min(580px, calc(100vw - 24px));
  max-height: 90vh; overflow-y: auto;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform 0.3s;
}
.app-modal-overlay.active .app-modal { transform: translateY(0); }
.modal-header-bar { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple-light); border: none;
  color: var(--purple); cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.2s;
}
.modal-close:hover { background: var(--purple); color: white; }
.modal-title { font-size: 20px; font-weight: 800; color: var(--text); }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.modal-success { text-align: center; padding: 20px 0; display: none; }
.modal-success .success-icon { font-size: 60px; margin-bottom: 16px; }

/* ── VERIFY ── */
.verify-hero { background: var(--grad-dark); padding: 70px 0 100px; position: relative; overflow: hidden; }
.verify-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 90% 30%, rgba(153,51,255,0.3) 0%, transparent 60%); pointer-events: none; }
.verify-card {
  max-width: 560px; margin: -60px auto 0;
  background: white; border-radius: var(--radius-lg);
  padding: 40px; box-shadow: 0 20px 60px rgba(122,40,203,0.15);
  border: 1px solid var(--border); position: relative; z-index: 2;
}
.result-card { border-radius: var(--radius); padding: 28px; margin-top: 24px; }
.result-card.success { background: linear-gradient(135deg, #f0fff8, #f0e8ff); border: 2px solid #22c55e; }
.result-card.error { background: #fff5f5; border: 2px solid #ef4444; }
.result-icon { font-size: 52px; margin-bottom: 12px; }
.detail-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 6px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--text-muted); font-size: 13px; }
.detail-value { font-size: 13px; color: var(--text); text-align: right; font-weight: 500; }
.verify-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--grad); color: white; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; margin: 10px auto; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; font-family: 'Poppins', sans-serif; }
.share-btn.linkedin { background: #0077b5; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.copy { background: #6b7280; color: white; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── CERTIFICATE FRAME ── */
.certificate-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: white; padding: 14px; transition: all 0.3s; }
.certificate-frame:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.certificate-img { width: 100%; height: auto; border-radius: 8px; display: block; }

/* ── CTA SECTION ── */
.cta-section { background: var(--grad-dark); padding: 80px 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(122,40,203,0.3) 0%, transparent 60%); pointer-events: none; }

/* ── FOOTER ── */
.footer-section { background: var(--grad-dark); }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; line-height: 2; display: block; transition: all 0.2s; }
.footer-link:hover { color: white; padding-left: 4px; }
.footer-bottom { background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-weight: 800; font-size: 22px; color: white; letter-spacing: -0.02em; }

/* ── ADMIN ── */
.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--grad-dark); }
.admin-login-card { background: white; border-radius: var(--radius-lg); padding: 48px 40px; width: 420px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.admin-sidebar {
  width: 240px; background: var(--grad-dark);
  min-height: 100vh; position: fixed; top: 0; left: 0; z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar .nav-link { color: rgba(255,255,255,0.65); padding: 11px 18px !important; border-radius: 10px; margin: 1px 8px; font-size: 13.5px; display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.admin-sidebar .nav-link:hover { background: rgba(255,255,255,0.08); color: white !important; }
.admin-sidebar .nav-link.active { background: rgba(255,255,255,0.12); color: white !important; }
.admin-sidebar .brand { padding: 22px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.admin-main { margin-left: 240px; padding: 30px 32px; min-height: 100vh; background: var(--purple-pale); }
.admin-card { background: white; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 20px; border: 1px solid var(--border); }
.admin-stat { background: white; border-radius: var(--radius); padding: 22px; border: 1px solid var(--border); border-top: 3px solid var(--purple); }
.input-admin { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 14px; outline: none; transition: border-color 0.2s; color: var(--text); }
.input-admin:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(122,40,203,0.08); }
.form-label-admin { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; text-transform: uppercase; letter-spacing: 0.05em; }
.table-admin { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-admin th { background: var(--purple-pale); color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.table-admin td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.table-admin tr:last-child td { border-bottom: none; }
.table-admin tr:hover td { background: var(--purple-pale); }
.badge-open { background: #fef3c7; color: #92400e; border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600; }
.badge-progress { background: var(--purple-light); color: var(--purple); border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600; }
.badge-done { background: #d1fae5; color: #065f46; border-radius: 20px; padding: 3px 12px; font-size: 11px; font-weight: 600; }

/* ── TOAST ── */
.toast-msg { position: fixed; bottom: 24px; right: 24px; background: var(--purple-dark); color: white; padding: 14px 22px; border-radius: 12px; font-size: 14px; z-index: 99999; opacity: 0; transition: opacity 0.3s; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast-msg.show { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
.page-enter { animation: fadeInUp 0.5s ease; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-section { padding: 70px 0 60px; }
  .page-header { padding: 50px 0 40px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; padding: 16px; }
  .verify-card { margin: -30px 16px 0; padding: 24px; }
  .app-modal { padding: 24px; }
  .admin-login-card { width: calc(100vw - 32px); padding: 32px 24px; }
}
