/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a2e;
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.logo-icon {
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  color: #fff; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 700;
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text { font-size: 18px; color: #1a1a2e; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-size: 15px; font-weight: 500; color: #555;
  transition: color 0.2s;
}
.nav-link:hover { color: #6c5ce7; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 20px; position: relative; flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: #1a1a2e; border-radius: 2px; transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: #fff; padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(108,92,231,0.3) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(168,85,247,0.2) 0%, transparent 50%),
              radial-gradient(circle at 50% 80%, rgba(99,102,241,0.15) 0%, transparent 40%);
}
.hero-content { position: relative; max-width: 700px; }
.hero-tagline {
  font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 12px; font-weight: 500;
}
.hero-title {
  font-size: clamp(48px, 8vw, 80px); font-weight: 900;
  line-height: 1.05; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #c4b5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(20px, 3vw, 28px); font-weight: 600;
  color: rgba(255,255,255,0.85); margin-bottom: 20px;
}
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.6);
  max-width: 520px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; font-size: 15px;
  font-weight: 600; transition: all 0.25s; cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
  color: #fff; box-shadow: 0 4px 20px rgba(108,92,231,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108,92,231,0.45);
}
.btn-outline {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* ===== Hero Stats ===== */
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 32px; font-weight: 800;
  font-family: 'JetBrains Mono', monospace; color: #c4b5fd;
}
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Section Headers ===== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.section-desc { font-size: 17px; color: #666; max-width: 560px; margin: 0 auto; }

/* ===== Filter Bar ===== */
.filter-bar {
  display: flex; gap: 8px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 24px; border-radius: 100px; border: 1.5px solid #e0e0e0;
  background: #fff; color: #555; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: #6c5ce7; color: #6c5ce7; }
.filter-btn.active {
  background: #6c5ce7; color: #fff; border-color: #6c5ce7;
}

/* ===== Course Grid ===== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.course-card {
  background: #fff; border-radius: 16px;
  overflow: hidden; transition: all 0.3s;
  border: 1px solid #eee;
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: #d0d0d0;
}
.course-card.hidden { display: none; }
.course-img { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.course-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s;
}
.course-card:hover .course-img img { transform: scale(1.05); }
.course-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 12px; font-weight: 600;
}
.badge-hot { background: #ff6b6b; color: #fff; }
.badge-new { background: #10b981; color: #fff; }
.badge-top { background: #f59e0b; color: #fff; }
.course-info { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.course-cat {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: #6c5ce7; margin-bottom: 8px;
}
.course-title {
  font-size: 16px; font-weight: 700; line-height: 1.4;
  margin-bottom: 12px; flex: 1;
}
.course-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: #888;
}
.course-rating { color: #f59e0b; font-weight: 600; }
.stars { font-size: 12px; }

/* ===== Labs Section ===== */
.labs-section { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); color: #fff; }
.labs-section .section-title { color: #fff; }
.labs-section .section-desc { color: rgba(255,255,255,0.6); }
.labs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.lab-card {
  padding: 40px 32px; border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s; cursor: pointer;
}
.lab-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.lab-icon { margin-bottom: 24px; color: #a855f7; }
.lab-security .lab-icon { color: #10b981; }
.lab-ux .lab-icon { color: #3b82f6; }
.lab-coming .lab-icon { color: #555; }
.lab-coming { cursor: default; opacity: 0.5; }
.lab-coming:hover { transform: none; background: rgba(255,255,255,0.05); }
.lab-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.lab-desc { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 20px; }
.lab-link { font-size: 14px; font-weight: 600; color: #a855f7; }
.lab-security .lab-link { color: #10b981; }
.lab-ux .lab-link { color: #3b82f6; }
.lab-link-muted { color: #555 !important; }

/* ===== About Section ===== */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.about-content p { font-size: 16px; color: #444; margin-bottom: 16px; line-height: 1.8; }
.about-services h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.services-list li {
  padding: 12px 0; border-bottom: 1px solid #eee;
  font-size: 15px; color: #555;
  padding-left: 20px; position: relative;
}
.services-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a855f7);
}

/* ===== Footer ===== */
.footer { background: #111; color: #aaa; padding: 80px 0 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer .nav-logo { margin-bottom: 12px; }
.footer .logo-text { color: #fff; }
.footer-tagline { color: #666; font-size: 14px; }
.footer-links h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links a {
  display: block; font-size: 14px; color: #888;
  padding: 6px 0; transition: color 0.2s;
}
.footer-links a:hover { color: #c4b5fd; }
.footer-bottom {
  border-top: 1px solid #222; padding-top: 24px;
  text-align: center; font-size: 13px; color: #555;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px;
    gap: 16px; border-bottom: 1px solid #eee;
    transform: translateY(-120%); transition: transform 0.3s;
    z-index: 999;
  }
  .nav-links.open { transform: translateY(0); }
  .hero { min-height: auto; padding: 140px 24px 80px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .course-grid { grid-template-columns: 1fr; }
  .labs-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 60px 0; }
}

/* ===== Scroll Animation ===== */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; }
}
