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

/* ============================================================
   SECTROX — Mobile-First Responsive Overrides v2
   ============================================================ */

/* ---- Hero Image Overlay ---- */
.hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* ---- Cyber Dashboard Hero Visual ---- */
.hero-cyber-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
  width: 100%;
}

.cyber-card {
  background: rgba(15,15,15,0.95);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 40px rgba(255,26,26,0.08);
  transition: all 0.3s ease;
}

.cyber-card:hover {
  border-color: rgba(255,26,26,0.4);
  box-shadow: 0 0 60px rgba(255,26,26,0.15);
}

/* Terminal Card */
.cyber-terminal-card {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.cyber-terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot-r { background: #ff5f57; }
.t-dot-y { background: #ffbb2c; }
.t-dot-g { background: #28ca41; }
.t-title { font-size: 11px; color: rgba(255,255,255,0.3); margin-left: auto; }

.t-line { display: flex; gap: 8px; font-size: 12px; line-height: 1.8; opacity: 0; }
.t-prompt { color: #ff1a1a; flex-shrink: 0; }
.t-cmd { color: #00ff88; }
.t-out { color: rgba(255,255,255,0.5); padding-left: 12px; }
.t-warn { color: #ffbb2c; padding-left: 12px; }
.t-success { color: #28ca41; padding-left: 12px; }
.t-danger { color: #ff4444; padding-left: 12px; }

/* Stats Row */
.cyber-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cyber-stat {
  background: rgba(15,15,15,0.95);
  border: 1px solid rgba(255,26,26,0.15);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: all 0.3s;
}

.cyber-stat:hover {
  border-color: rgba(255,26,26,0.4);
  transform: translateY(-3px);
}

.cyber-stat-icon { font-size: 20px; margin-bottom: 6px; }
.cyber-stat-val { font-size: 16px; font-weight: 800; color: #fff; line-height: 1; }
.cyber-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

/* Alert banner */
.cyber-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.cyber-alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(0,255,136,0); }
}

/* ---- Course Cards Premium ---- */
.course-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,26,26,0.35);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 24px rgba(255,26,26,0.08);
}

.course-card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.course-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-card:hover .course-card-overlay { opacity: 1; }

.play-circle {
  width: 52px;
  height: 52px;
  background: rgba(255,26,26,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s;
}

.course-card:hover .play-circle { transform: scale(1); }

.course-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

/* ---- Courses Page Filters ---- */
.courses-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.filter-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px;
}

.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-3);
  margin-bottom: 12px;
}

.filter-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--color-text-2);
}

.filter-radio-label:hover {
  background: rgba(255,26,26,0.06);
  color: var(--color-white);
}

.filter-radio-label input[type=radio] {
  accent-color: var(--color-red);
}

.filter-radio-label input[type=radio]:checked + span {
  color: var(--color-red);
  font-weight: 600;
}

/* Mobile filter drawer */
.mobile-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 998;
}

.mobile-filter-overlay.open { display: block; }

.mobile-filter-drawer {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  max-height: 85vh;
  background: var(--color-surface);
  border-radius: 24px 24px 0 0;
  z-index: 999;
  transition: bottom 0.4s cubic-bezier(0.23,1,0.32,1);
  overflow-y: auto;
  padding: 24px;
}

.mobile-filter-drawer.open { bottom: 0; }

.drawer-handle {
  width: 40px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* ---- Section improvements ---- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255,26,26,0.08);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 16px;
}

/* ---- Feature Cards ---- */
.feature-card-v2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
  position: relative;
  overflow: hidden;
}

.feature-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card-v2:hover {
  border-color: rgba(255,26,26,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px rgba(255,26,26,0.08);
}

.feature-card-v2:hover::before { opacity: 1; }

.feature-icon-v2 {
  width: 52px;
  height: 52px;
  background: rgba(255,26,26,0.08);
  border: 1px solid rgba(255,26,26,0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-red);
  margin-bottom: 20px;
  transition: all 0.3s;
}

.feature-card-v2:hover .feature-icon-v2 {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255,26,26,0.3);
}

/* ---- Testimonial upgrade ---- */
.testimonial-card-v2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
}

.testimonial-card-v2:hover {
  border-color: rgba(255,26,26,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
}

.testimonial-quote {
  font-size: 48px;
  line-height: 1;
  color: rgba(255,26,26,0.2);
  font-family: Georgia, serif;
  margin-bottom: 12px;
}

/* ---- Blog card upgrade ---- */
.blog-thumb-cyber {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0d0d0d;
  border-radius: 12px;
  margin-bottom: 16px;
}

.blog-thumb-cyber img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.blog-card:hover .blog-thumb-cyber img { transform: scale(1.05); }

.blog-cyber-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(255,26,26,0.1);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* ---- CTA Section ---- */
.cta-section-v2 {
  background: linear-gradient(135deg, #0f0000 0%, #0a0a0a 50%, #0f0000 100%);
  border-top: 1px solid rgba(255,26,26,0.15);
  border-bottom: 1px solid rgba(255,26,26,0.15);
  position: relative;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,26,26,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,26,26,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,26,26,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-glow-l { top: -200px; left: -100px; }
.cta-glow-r { bottom: -200px; right: -100px; }

/* ---- Page Hero upgrade ---- */
.page-hero-v2 {
  background: linear-gradient(180deg, rgba(20,0,0,0.4) 0%, transparent 100%),
              var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-hero-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,26,26,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,26,26,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ---- Search Bar upgrade ---- */
.courses-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 8px 8px 8px 16px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}

.courses-search-bar:focus-within {
  border-color: rgba(255,26,26,0.4);
  box-shadow: 0 0 0 3px rgba(255,26,26,0.08);
}

.courses-search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-white);
}

.courses-search-bar input::placeholder { color: var(--color-text-3); }

/* ---- Skeleton loading ---- */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-2) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Mobile Filter Toggle Btn ---- */
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-filter-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

/* ---- Active filter chips ---- */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,26,26,0.08);
  border: 1px solid rgba(255,26,26,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-red);
}

.filter-chip-x {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,26,26,0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
}

/* ---- Mobile Responsive ---- */
@media (max-width: 900px) {
  .courses-sidebar { display: none; }
  .courses-sidebar.open { display: block; }
  .mobile-filter-btn { display: flex; }
}

@media (max-width: 768px) {
  .cyber-stats-row { grid-template-columns: repeat(3, 1fr); }
  .hero-cyber-visual { max-width: 100%; }

  .page-hero-v2 { padding: 32px 0 24px; }

  .courses-search-bar { padding: 6px 6px 6px 12px; }

  .cta-glow { display: none; }
}

@media (max-width: 480px) {
  .cyber-stats-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cyber-stat { padding: 12px 8px; }
  .cyber-stat-val { font-size: 14px; }
  .cyber-stat-lbl { font-size: 9px; }
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Partners enhanced ---- */
.partner-item {
  padding: 8px 40px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.partner-item:hover { color: var(--color-red); }

/* ---- Floating action button ---- */
.fab-help {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff1a1a, #bb0000);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(255,26,26,0.4);
  z-index: 990;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  text-decoration: none;
}

.fab-help:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 12px 32px rgba(255,26,26,0.5);
}

/* ---- View toggle buttons ---- */
.view-toggle-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-3);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.view-toggle-btn.active, .view-toggle-btn:hover {
  background: rgba(255,26,26,0.1);
  border-color: rgba(255,26,26,0.3);
  color: var(--color-red);
}

/* ---- List view course card ---- */
.course-card.list-view {
  flex-direction: row;
}

.course-card.list-view .course-card-thumb {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 600px) {
  .course-card.list-view { flex-direction: column; }
  .course-card.list-view .course-card-thumb { width: 100%; aspect-ratio: 16/9; height: auto; }
}

/* ---- Courses grid responsive ---- */
.courses-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) { .courses-grid-v2 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .courses-grid-v2 { grid-template-columns: 1fr; } }

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state-icon {
  font-size: 64px;
  opacity: 0.12;
  margin-bottom: 20px;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-2);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  padding: 0 12px;
  text-decoration: none;
}

.page-btn:hover {
  border-color: var(--color-red);
  color: var(--color-red);
}

.page-btn.active {
  background: var(--color-red);
  border-color: var(--color-red);
  color: #fff;
  font-weight: 700;
}

/* ---- Category cards mobile ---- */
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ============================================================
   ADVANCED MOBILE RESPONSIVENESS & FUTURISTIC ANIMATIONS
   ============================================================ */

/* Desktop layout fallback for mobile-stack if not defined */
@media (min-width: 992px) {
  .mobile-stack {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
  }
}

/* Tablet & Mobile Hero Redesign */
@media (max-width: 991px) {
  .page-hero-v2 {
    min-height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 80px !important;
  }

  .mobile-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 40px;
  }
  
  .hero-content {
    padding-right: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
  }
  
  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.5rem) !important;
    margin-bottom: 16px !important;
  }
  
  .hero-description {
    font-size: clamp(0.95rem, 3vw, 1.1rem) !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }
  
  .hero-cta {
    justify-content: center;
    width: 100%;
  }
  
  .hero-trust {
    margin-top: 32px !important;
    justify-content: center;
    gap: 20px !important;
    width: 100%;
  }

  .hero-visual {
    width: 100%;
    margin-top: 20px;
    perspective: 1000px;
  }
  
  /* Futuristic Hover & Float Animations for Hero Image on Mobile */
  .hero-cyber-visual {
    transform-style: preserve-3d;
  }

  .hero-cyber-visual img {
    transform: rotateX(10deg) rotateY(0deg) scale(1) !important;
    box-shadow: 0 15px 35px rgba(255,26,26,0.4) !important;
    animation: cyber-float 4s ease-in-out infinite alternate !important;
  }
  
  .cyber-card {
    align-self: center !important;
    width: 95% !important;
    margin-top: -30px;
    animation: cyber-glow-pulse 2s infinite alternate !important;
  }
  
  .cyber-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: -5px !important;
  }
  
  .cyber-stat {
    padding: 12px 8px !important;
    animation: cyber-float 3s ease-in-out infinite alternate;
  }
  
  .cyber-stat:nth-child(1) { animation-delay: 0s; }
  .cyber-stat:nth-child(2) { animation-delay: 1s; }
  .cyber-stat:nth-child(3) { animation-delay: 2s; }
}

@keyframes cyber-float {
  0% { transform: translateY(0px) rotateX(8deg); box-shadow: 0 15px 35px rgba(255,26,26,0.3); }
  100% { transform: translateY(-15px) rotateX(2deg); box-shadow: 0 25px 50px rgba(255,26,26,0.7); }
}

@keyframes cyber-glow-pulse {
  0% { box-shadow: 0 0 15px rgba(255,26,26,0.2), inset 0 0 10px rgba(255,26,26,0.1); border-color: rgba(255,26,26,0.3); }
  100% { box-shadow: 0 0 35px rgba(255,26,26,0.7), inset 0 0 25px rgba(255,26,26,0.4); border-color: rgba(255,26,26,0.9); }
}

/* Global Mobile Fixes */
@media (max-width: 768px) {
  /* Fix overlaps and overflow */
  body, html {
    overflow-x: hidden;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .section-center-header {
    text-align: center;
  }
  .section-center-header .section-badge {
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .section-header .header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  /* Stack Grids Properly */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .steps-grid {
    grid-template-columns: 1fr !important;
  }
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Founder Section Fix */
  .founder-info {
    justify-content: center;
  }
  .founder-visual {
    width: 90%;
    margin: 0 auto;
  }
  
  /* CTA Buttons full width on small screens */
  .hero-cta .btn {
    width: 100%;
    margin-bottom: 10px;
  }
  .cta-section-v2 .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* Extreme Small Screens */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem !important;
  }
  .cyber-stats-row {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 5px !important;
  }
  .cyber-stat {
    padding: 8px 4px !important;
  }
  .cyber-stat-val {
    font-size: 13px !important;
  }
  .cyber-stat-lbl {
    font-size: 8px !important;
  }
  .t-line {
    font-size: 10px !important;
  }
}

/* Staggered Mobile Animations for Features */
@media (max-width: 768px) {
  .feature-card-v2 {
    animation: mobile-cyber-slide 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
  }
  @keyframes mobile-cyber-slide {
    0% { transform: translateY(40px) scale(0.95); opacity: 0; box-shadow: 0 0 0 transparent; }
    100% { transform: translateY(0) scale(1); opacity: 1; box-shadow: 0 10px 30px rgba(255,26,26,0.1); }
  }
  .feature-card-v2:nth-child(1) { animation-delay: 0.1s; }
  .feature-card-v2:nth-child(2) { animation-delay: 0.2s; }
  .feature-card-v2:nth-child(3) { animation-delay: 0.3s; }
  .feature-card-v2:nth-child(4) { animation-delay: 0.4s; }
  .feature-card-v2:nth-child(5) { animation-delay: 0.5s; }
  .feature-card-v2:nth-child(6) { animation-delay: 0.6s; }
}

/* ============================================================
   EXTRA BROWSER-TESTED MOBILE RESPONSIVENESS (FRONTEND FIXES)
   ============================================================ */
@media (max-width: 768px) {
  /* Homepage App Style Fixes */
  .h-card {
    flex: 0 0 75vw !important; /* Scale dynamically to viewport width instead of fixed 280px */
    max-width: 280px;
  }
  
  #backToTop {
    bottom: 90px !important; 
    right: 16px !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Courses Page Fixes */
  .sort-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  .sort-bar > div {
    width: 100%;
    justify-content: space-between;
  }
  .view-toggle-btn {
    width: 44px !important;
    height: 44px !important;
  }
  .course-card-body h3 {
    font-size: 15px !important;
    line-height: 1.3 !important;
  }

  /* Auth Pages (Login / Register) Fixes */
  .form-row, .grid-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .auth-card {
    padding: 24px 16px !important;
  }

  /* Fix for 'Forgot Password' wrapping */
  .form-label {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* About Page Fixes */
  .about-hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  .mission-badge {
    padding: 10px 16px !important;
  }
  
  /* General Typography */
  .section-title {
    font-size: 2.2rem !important;
    line-height: 1.1 !important;
  }
}

/* Fix Login Demo buttons spilling */
@media (max-width: 480px) {
  .demo-login-btn, .btn-demo {
    font-size: 11px !important;
    padding: 10px 8px !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.3 !important;
    height: auto !important;
  }
}

/* ============================================================
   GLOBAL TEXT READABILITY & APP HEADER OVERRIDES
   ============================================================ */
body {
    color: var(--color-text-2);
}
h1, h2, h3, h4, h5, h6 {
    color: var(--color-white);
}
.page-body p, .page-body span {
    color: var(--color-text-2);
}

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .navbar .container { 
        padding: 10px 16px !important;
        gap: 12px !important;
    }
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    .app-hero-title {
        font-size: clamp(2.2rem, 10vw, 3rem) !important;
    }
    .app-hero-desc {
        font-size: 1rem !important;
    }
}

/* ============================================================
   PREMIUM MOBILE FOOTER OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px 16px !important;
    }
    .footer-brand-col {
        grid-column: 1 / -1 !important;
        text-align: center;
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-tagline {
        margin: 0 auto 20px !important;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-trust {
        justify-content: center;
    }
    .footer-newsletter-col {
        grid-column: 1 / -1 !important;
        text-align: center;
    }
    .newsletter-input-wrap {
        flex-direction: column !important;
        gap: 12px !important;
    }
    .newsletter-input-wrap button {
        width: 100% !important;
        padding: 14px !important;
    }
    .footer-bottom .container > div {
        flex-direction: column !important;
        text-align: center !important;
        justify-content: center !important;
        gap: 16px !important;
    }
    .footer-bottom .container > div > div {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* ============================================================
   ULTRA-PREMIUM FUTURISTIC FOOTER (100x UPGRADE)
   ============================================================ */
.footer {
    background: #ffffff !important;
    border-top: 1px solid var(--color-border) !important;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
    box-shadow: 0 0 10px rgba(255, 26, 26, 0.4);
}

@keyframes footerGlow {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}

.footer-top {
    padding: 80px 0 40px !important;
}

.footer-heading {
    color: var(--color-text) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px !important;
    position: relative;
    display: inline-block;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 0;
    width: 24px; height: 3px;
    background: #ff1a1a;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,26,26,0.5);
    transition: width 0.3s ease;
}

.footer-links-col:hover .footer-heading::after {
    width: 40px;
}

.footer-links-col a {
    color: var(--color-text-2) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
}

.footer-links-col a:hover {
    color: #ff1a1a !important;
    transform: translateX(8px);
    text-shadow: 0 0 12px rgba(255, 26, 26, 0.4);
}

.social-link {
    background: var(--color-surface-2) !important;
    border: 1px solid var(--color-border) !important;
    color: var(--color-text-2) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.social-link:hover {
    background: linear-gradient(135deg, #ff1a1a, #cc0000) !important;
    border-color: transparent !important;
    color: #fff !important;
    transform: translateY(-6px) scale(1.15) !important;
    box-shadow: 0 12px 24px rgba(255, 26, 26, 0.4) !important;
}

.trust-badge {
    background: rgba(255, 26, 26, 0.05) !important;
    border: 1px solid rgba(255, 26, 26, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

.newsletter-input-wrap .form-control {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: 100px !important;
    padding-left: 20px !important;
    transition: all 0.3s ease !important;
}

.newsletter-input-wrap .form-control:focus {
    border-color: #ff1a1a !important;
    box-shadow: 0 0 20px rgba(255, 26, 26, 0.2) !important;
    background: rgba(255,255,255,0.06) !important;
}

.newsletter-input-wrap button {
    background: linear-gradient(135deg, #ff1a1a, #cc0000) !important;
    box-shadow: 0 4px 15px rgba(255, 26, 26, 0.3) !important;
    border: none !important;
    border-radius: 100px !important;
    text-transform: uppercase;
    font-weight: 800 !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
}

.newsletter-input-wrap button:hover {
    box-shadow: 0 8px 30px rgba(255, 26, 26, 0.6) !important;
    transform: translateY(-2px) !important;
}

.footer-bottom {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .footer-heading { display: block; margin: 0 auto 20px !important; }
    .footer-heading::after { left: 50%; transform: translateX(-50%); }
    .footer-links-col:hover .footer-heading::after { width: 40px; }
    .footer-links-col ul { align-items: center; }
    .footer-links-col a:hover { transform: translateY(-2px) scale(1.05); }
}

/* ============================================================
   GLOBAL FUTURISTIC ANIMATIONS & HOVER EFFECTS
   ============================================================ */

/* Seamless Page Load Fade-in */
.page-body {
    animation: pageFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes pageFadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Global Button Hover Upgrades */
.btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}
.btn:hover::after {
    width: 300px;
    height: 300px;
}
.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255,26,26,0.3) !important;
}

/* Universal Animated Up / Hover class */
.animate-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.animate-hover:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,26,26,0.2) !important;
    border-color: rgba(255,26,26,0.4) !important;
}

/* Pulse animation for key elements (like primary CTA buttons) */
.animate-btn-pulse {
    animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
    0% { box-shadow: 0 0 10px rgba(255,26,26,0.3); }
    100% { box-shadow: 0 0 25px rgba(255,26,26,0.8), 0 0 40px rgba(255,26,26,0.4); }
}

/* Dynamic Image Floating Effect */
img.animate-float {
    animation: image-float 6s ease-in-out infinite alternate;
}
@keyframes image-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* Apply staggered animate-up globally */
.animate-up {
    animation: cyberSlideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
@keyframes cyberSlideUp {
    100% { opacity: 1; transform: translateY(0); }
}

/* Input Fields Glow */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 20px rgba(255,26,26,0.2) !important;
    border-color: #ff1a1a !important;
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
:root {
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-surface-2: #f1f3f5;
    --color-surface-3: #e9ecef;
    --color-border: rgba(0,0,0,0.15);
    --color-text: #1a1a1a;
    --color-text-2: #333333;
    --color-text-3: #666666;
}

body { background-color: var(--color-bg); color: var(--color-text); }
.app-hero { background: #f8f9fa !important; }
.app-hero-title { color: #1a1a1a !important; text-shadow: none !important; }
.app-hero-desc { color: #444 !important; text-shadow: none !important; }
.hero-ambient-glow, .hero-ambient-glow-2 { opacity: 0.3 !important; }
.navbar { background: rgba(255,255,255,0.85) !important; border-bottom: 1px solid rgba(0,0,0,0.1) !important; }
.navbar.scrolled { background: rgba(255,255,255,0.98) !important; box-shadow: 0 4px 24px rgba(0,0,0,0.05) !important; border-bottom: 1px solid rgba(0,0,0,0.1) !important; }
.nav-link, .navbar-brand { color: #1a1a1a !important; }
.nav-link:hover { color: var(--color-red) !important; }
.footer { background: #ffffff !important; border-top: 1px solid rgba(0,0,0,0.1); }
.footer-text, .footer-link { color: #666 !important; }
.footer-title { color: #111 !important; }
.app-course-item, .login-card, .auth-box, .course-info-card { background: #ffffff !important; border-color: rgba(0,0,0,0.1) !important; box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important; }
.app-course-item h3 { color: #111 !important; }
.app-course-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 20px rgba(255,26,26,0.1) !important; }
.theme-icon-light { display: none; }
.btn-ghost { color: #1a1a1a; }
input, textarea { background: #ffffff !important; border-color: rgba(0,0,0,0.2) !important; color: #111 !important; }
.search-input { background: #fff !important; border-color: rgba(0,0,0,0.1) !important; color: #111 !important; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
.mobile-stack {
  display: flex;
  flex-direction: row;
  gap: var(--space-8);
}

@media (max-width: 850px) {
  .mobile-stack {
    flex-direction: column !important;
    gap: var(--space-10) !important;
  }
}

.stagger {
  display: grid;
  gap: var(--space-6);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealFade 0.6s var(--ease-out) forwards;
}

@keyframes revealFade {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ULTRA-PREMIUM HOMEPAGE REDESIGN — SECTROX v3.0
   Pure White + Blood Red + Deep Black Cyber-Luxury
   ============================================================ */

/* --- Homepage Scoped Overrides --- */
html { scroll-behavior: smooth; }
.hp-page {
  --hp-red: #FF0022;
  --hp-red-dark: #E6001A;
  --hp-black: #050505;
  --hp-white: #FFFFFF;
  --hp-silver: #C0C0C0;
  --hp-glow: 0 0 20px rgba(255,0,34,0.3), 0 0 60px rgba(255,0,34,0.1);
  --hp-font-head: 'Orbitron', 'Space Grotesk', sans-serif;
  background: var(--hp-white) !important;
  color: var(--hp-black);
}
.hp-page h1, .hp-page h2, .hp-page h3, .hp-page h4, .hp-page h5, .hp-page h6 {
  color: var(--hp-black);
}

.hp-page .navbar {
  background: rgba(255,255,255,0.65) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}
.hp-page .navbar.scrolled {
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}
.hp-page .navbar-brand,
.hp-page .nav-link { color: var(--hp-black) !important; }
.hp-page .nav-link { position: relative; }
.hp-page .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  width: 0; height: 2px;
  background: var(--hp-red);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.hp-page .nav-link:hover { color: var(--hp-red) !important; background: rgba(255,0,34,0.04); }
.hp-page .nav-link:hover::after { width: 60%; }
.hp-page .nav-link.active { color: var(--hp-red) !important; background: rgba(255,0,34,0.08); }
.hp-page .nav-link.active::after { width: 60%; }
.hp-page .hamburger span { background: var(--hp-black); }

/* --- HERO SECTION --- */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-white);
  overflow: hidden;
  padding: 140px 5% 100px;
}

#matrixCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hp-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(255,0,34,0.06);
  border: 1px solid rgba(255,0,34,0.15);
  border-radius: 100px;
  color: var(--hp-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 32px;
  box-shadow: 0 0 20px rgba(255,0,34,0.08);
  animation: fadeInUp 0.8s ease-out forwards;
}
.hp-hero-badge i { animation: pulse-dot 2s infinite; }

.hp-hero-title {
  font-family: var(--hp-font-head);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--hp-black);
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hp-hero-title .extruded {
  display: inline-block;
  background: linear-gradient(180deg, var(--hp-red) 0%, var(--hp-black) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 8px rgba(255,0,34,0.25));
}

.hp-hero-title .neon-glow {
  display: block;
  font-size: clamp(3.5rem, 7vw, 7rem);
  color: var(--hp-red);
  -webkit-text-fill-color: var(--hp-red);
  text-shadow:
    0 0 10px rgba(255,0,34,0.4),
    0 0 40px rgba(255,0,34,0.2),
    0 0 80px rgba(255,0,34,0.1),
    0 4px 0 rgba(0,0,0,0.1);
  letter-spacing: 6px;
  animation: fadeInUp 0.8s ease-out 0.2s both, neonFlicker 4s infinite alternate;
}

@keyframes neonFlicker {
  0%, 100% { text-shadow: 0 0 10px rgba(255,0,34,0.4), 0 0 40px rgba(255,0,34,0.2), 0 0 80px rgba(255,0,34,0.1), 0 4px 0 rgba(0,0,0,0.1); }
  50% { text-shadow: 0 0 20px rgba(255,0,34,0.6), 0 0 60px rgba(255,0,34,0.3), 0 0 120px rgba(255,0,34,0.15), 0 4px 0 rgba(0,0,0,0.1); }
}

.hp-hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: #555;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 520px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.hp-hero-tagline span { color: var(--hp-red); font-weight: 600; }

.hp-hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hp-btn-primary {
  background: linear-gradient(135deg, #FF0022 0%, #E6001A 100%);
  color: #fff !important;
  padding: 18px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(255,0,34,0.35), 0 0 20px rgba(255,0,34,0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.hp-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: 0.6s;
}
.hp-btn-primary:hover::before { left: 100%; }
.hp-btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255,0,34,0.45), 0 0 40px rgba(255,0,34,0.2);
}

.hp-btn-outline {
  background: transparent;
  color: var(--hp-black) !important;
  padding: 16px 38px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid var(--hp-black);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.hp-btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hp-black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}
.hp-btn-outline:hover::before { transform: scaleX(1); }
.hp-btn-outline:hover { color: #fff !important; border-color: var(--hp-black); transform: translateY(-3px); }

/* --- HERO VISUAL: 3D Shield --- */
.hp-hero-visual {
  position: relative;
  width: 100%;
  height: 520px;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hp-globe {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,0,34,0.08), transparent 60%);
  border: 1px solid rgba(255,0,34,0.1);
  box-shadow: inset 0 0 60px rgba(255,0,34,0.05), 0 0 40px rgba(255,0,34,0.03);
  animation: globeRotate 20s linear infinite;
  pointer-events: none;
}
.hp-globe::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 10deg, rgba(255,0,34,0.04) 10deg 11deg);
  mask: radial-gradient(circle, transparent 55%, black 70%);
  -webkit-mask: radial-gradient(circle, transparent 55%, black 70%);
}
.hp-globe::after {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255,0,34,0.12);
  animation: globeRotate 15s linear infinite reverse;
}

@keyframes globeRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hp-shield-wrap {
  position: relative;
  width: 340px;
  height: 380px;
  transform-style: preserve-3d;
  animation: shieldFloat 6s ease-in-out infinite;
}

@keyframes shieldFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  50% { transform: translateY(-18px) rotateY(8deg) rotateX(3deg); }
}

.hp-shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 40px rgba(255,0,34,0.2)) drop-shadow(0 0 30px rgba(255,0,34,0.15));
}

.hp-energy-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255,0,34,0.3);
  pointer-events: none;
}
.hp-energy-ring:nth-child(2) { width: 280px; height: 280px; animation: ringPulse 3s ease-out infinite; }
.hp-energy-ring:nth-child(3) { width: 360px; height: 360px; animation: ringPulse 3s ease-out 1s infinite; }
.hp-energy-ring:nth-child(4) { width: 440px; height: 440px; animation: ringPulse 3s ease-out 2s infinite; }

@keyframes ringPulse {
  0% { transform: translate(-50%,-50%) scale(0.8); opacity: 0.6; border-color: rgba(255,0,34,0.4); }
  100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; border-color: rgba(255,0,34,0); }
}

.hp-hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,34,0.12) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
  animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.4; transform: translate(-50%,-50%) scale(0.85); }
  100% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}

/* --- TRUSTED BY MARQUEE --- */
.hp-trusted {
  padding: 60px 0;
  background: var(--hp-white);
  border-top: 1px solid rgba(0,0,0,0.04);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}
.hp-trusted-title {
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 36px;
}
.hp-marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.hp-marquee-track {
  display: flex;
  gap: 80px;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  flex-shrink: 0;
  padding: 0 40px;
}
.hp-marquee:hover .hp-marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hp-partner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  color: #bbb;
  white-space: nowrap;
  transition: all 0.3s;
  flex-shrink: 0;
}
.hp-partner i { font-size: 28px; }
.hp-partner:hover { color: var(--hp-red); transform: scale(1.08); }

/* --- SECTION HEADERS --- */
.hp-section-header {
  text-align: center;
  margin-bottom: 70px;
}
.hp-section-header h2 {
  font-family: var(--hp-font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--hp-black);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hp-section-header p {
  font-size: 1.15rem;
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.hp-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,0,34,0.06);
  border: 1px solid rgba(255,0,34,0.15);
  border-radius: 100px;
  color: var(--hp-red);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* --- COURSE UNIVERSE: GLASS CARDS --- */
.hp-courses {
  padding: 120px 5%;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hp-courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}
.hp-glass-card {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-black);
  z-index: 1;
}
.hp-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,0,34,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: -1;
}
.hp-glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,0,34,0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.hp-glass-card:hover {
  transform: translateY(-12px) rotateX(2deg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08), 0 0 40px rgba(255,0,34,0.1);
  border-color: rgba(255,0,34,0.2);
}
.hp-glass-card:hover::before { opacity: 1; }
.hp-glass-card:hover::after { opacity: 1; }

.hp-card-icon {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: var(--hp-red);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,1);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}
.hp-glass-card:hover .hp-card-icon {
  background: linear-gradient(135deg, var(--hp-red) 0%, var(--hp-red-dark) 100%);
  color: #fff;
  transform: scale(1.12) rotateY(15deg) rotateX(-5deg);
  box-shadow: 0 12px 30px rgba(255,0,34,0.3);
}
.hp-glass-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.hp-glass-card p { font-size: 13.5px; color: #777; font-weight: 500; line-height: 1.5; }

/* --- CYBER RANGE TERMINAL --- */
.hp-terminal {
  padding: 120px 5%;
  background: var(--hp-black);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hp-terminal-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hp-terminal-text h2 {
  font-family: var(--hp-font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.15;
  color: #fff;
}
.hp-terminal-text h2 span { color: var(--hp-red); }
.hp-terminal-text p {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hp-terminal-window {
  background: #080808;
  border-radius: 20px;
  border: 1px solid #222;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.9), 0 0 50px rgba(255,0,34,0.08);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s;
}
.hp-terminal-window:hover { transform: rotateY(-3deg) rotateX(2deg); }
.hp-terminal-header {
  background: #111;
  padding: 14px 20px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #222;
  align-items: center;
}
.hp-terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.hp-td-r { background: #ff5f56; }
.hp-td-y { background: #ffbd2e; }
.hp-td-g { background: #27c93f; }
.hp-terminal-title { font-size: 11px; color: #444; margin-left: auto; font-family: var(--font-mono); }
.hp-terminal-body {
  padding: 28px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: #00ff88;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}
.hp-terminal-body .red { color: var(--hp-red); font-weight: bold; }
.hp-terminal-body .white { color: #fff; }
.hp-terminal-body .gray { color: #666; }
.hp-terminal-body .cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: #00ff88;
  animation: blink 1s infinite;
  vertical-align: middle;
}
.hp-terminal-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,0,34,0.03) 2px,
    rgba(255,0,34,0.03) 4px
  );
}

/* --- STATS SECTION --- */
.hp-stats {
  padding: 100px 5%;
  background: linear-gradient(135deg, #FF0022 0%, #E6001A 50%, #cc0015 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hp-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hp-stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hp-stat-item h3 {
  font-family: var(--hp-font-head);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hp-stat-item p {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.85;
}

/* --- TESTIMONIALS --- */
.hp-testimonials {
  padding: 120px 5%;
  background: var(--hp-white);
  position: relative;
}
.hp-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.hp-test-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}
.hp-test-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hp-red), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.hp-test-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08), 0 0 30px rgba(255,0,34,0.06);
  border-color: rgba(255,0,34,0.15);
}
.hp-test-card:hover::before { opacity: 1; }
.hp-test-quote {
  font-size: 52px;
  color: rgba(255,0,34,0.15);
  position: absolute;
  top: 20px; right: 28px;
  font-family: Georgia, serif;
  line-height: 1;
}
.hp-test-text {
  font-size: 15.5px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 28px;
  font-style: italic;
}
.hp-test-user { display: flex; align-items: center; gap: 16px; }
.hp-test-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--hp-red);
  padding: 2px;
  flex-shrink: 0;
}
.hp-test-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hp-test-info h4 { font-size: 15px; font-weight: 800; color: var(--hp-black); margin-bottom: 2px; }
.hp-test-info p { font-size: 13px; color: #888; }

/* --- FINAL CTA --- */
.hp-cta {
  padding: 140px 5%;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 50%, #050505 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hp-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,0,34,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,34,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hp-cta-glow {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,0,34,0.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.hp-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}
.hp-cta-content h2 {
  font-family: var(--hp-font-head);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}
.hp-cta-content p {
  font-size: 1.15rem;
  color: #888;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hp-cta-shield {
  width: 80px; height: 80px;
  margin: 0 auto 32px;
  color: var(--hp-red);
  filter: drop-shadow(0 0 20px rgba(255,0,34,0.4));
  animation: shieldFloat 5s ease-in-out infinite;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .hp-hero-content { grid-template-columns: 1fr; text-align: center; gap: 50px; }
  .hp-hero-tagline { margin: 0 auto 40px; }
  .hp-hero-actions { justify-content: center; }
  .hp-hero-visual { height: 380px; }
  .hp-shield-wrap { width: 260px; height: 290px; }
  .hp-globe { width: 240px; height: 240px; }
  .hp-terminal-grid { grid-template-columns: 1fr; gap: 50px; }
  .hp-terminal-text { text-align: center; }
  .hp-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 600px) {
  .hp-hero { padding: 120px 5% 60px; }
  .hp-hero-actions { flex-direction: column; width: 100%; }
  .hp-btn-primary, .hp-btn-outline { width: 100%; justify-content: center; }
  .hp-courses-grid { grid-template-columns: 1fr; }
  .hp-test-grid { grid-template-columns: 1fr; }
  .hp-stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .hp-marquee-track { gap: 40px; }
}

/* --- SCROLL REVEAL UTILITIES --- */
.hp-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-reveal.visible { opacity: 1; transform: translateY(0); }

.hp-reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-reveal-left.visible { opacity: 1; transform: translateX(0); }

.hp-reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-reveal-right.visible { opacity: 1; transform: translateX(0); }

.hp-stagger > * { opacity: 0; transform: translateY(30px); }
.hp-stagger.visible > *:nth-child(1) { transition: opacity 0.7s 0.05s, transform 0.7s 0.05s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(2) { transition: opacity 0.7s 0.12s, transform 0.7s 0.12s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(3) { transition: opacity 0.7s 0.19s, transform 0.7s 0.19s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(4) { transition: opacity 0.7s 0.26s, transform 0.7s 0.26s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(5) { transition: opacity 0.7s 0.33s, transform 0.7s 0.33s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(6) { transition: opacity 0.7s 0.40s, transform 0.7s 0.40s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(7) { transition: opacity 0.7s 0.47s, transform 0.7s 0.47s; opacity: 1; transform: translateY(0); }
.hp-stagger.visible > *:nth-child(8) { transition: opacity 0.7s 0.54s, transform 0.7s 0.54s; opacity: 1; transform: translateY(0); }

/* Count-up animation state */
.hp-count { display: inline-block; }
.hp-count.done { animation: countPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes countPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

