:root {
  --neon-orange: #FF7A1F;
  --neon-blue: #00D1FF;
  --bg-black: #020205;
  --surface-dark: #0A0A12;
  --text-main: #E0E0E6;
  --text-dim: #888899;
  --accent-glow: 0 0 20px rgba(0, 209, 255, 0.4);
  --border-cyber: 1px solid rgba(0, 209, 255, 0.15);
  --font-cyber: 'Montserrat', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
}

* {
  box-sizing: border-box;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  background: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-cyber);
  overflow-x: hidden;
  line-height: 1.6;
  width: 100%;
}

html {
  overflow-x: hidden;
  width: 100%;
}

/* Background Matrix/Grid Effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(0, 209, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 209, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(2, 2, 5, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-cyber);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-tech);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo span {
  background: linear-gradient(135deg, var(--neon-orange), var(--neon-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  transition: 0.3s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--neon-blue);
  text-shadow: var(--accent-glow);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.mobile-menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--neon-blue);
  transition: 0.3s;
  box-shadow: 0 0 5px var(--neon-blue);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-tech);
  font-size: clamp(50px, 8vw, 100px);
  line-height: 0.9;
  margin: 0;
  font-weight: 900;
}

.hero-text h1 .highlight {
  color: var(--neon-blue);
  text-shadow: 0 0 30px rgba(0, 209, 255, 0.5);
}

.hero-text p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-dim);
  margin: 30px 0 50px;
  max-width: 500px;
}

.btn-cyber {
  display: inline-block;
  padding: 18px 40px;
  background: rgba(0, 209, 255, 0.1);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-tech);
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.btn-cyber:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 50px var(--neon-blue);
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 0 50px rgba(0, 209, 255, 0.3));
  border: var(--border-cyber);
}

/* Common Section Header */
.section {
  padding: 80px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 500px;
}

.section-header {
  margin-bottom: 60px;
  border-left: 4px solid var(--neon-blue);
  padding-left: 25px;
}

.section-header h2 {
  font-family: var(--font-tech);
  font-size: 32px;
  margin: 0;
  text-transform: uppercase;
}

.section-header p {
  color: var(--text-dim);
  margin: 10px 0 0;
}

/* YouTube Section - The Hub */
.main-video-node {
  background: var(--surface-dark);
  border: var(--border-cyber);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  overflow: hidden;
  margin-bottom: 50px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.video-core {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-core iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  top: 0;
  left: 0;
}

.video-data {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cyber-badge {
  font-size: 10px;
  color: var(--neon-orange);
  border: 1px solid var(--neon-orange);
  width: max-content;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-data h2 {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  margin: 0;
  color: #fff;
  line-height: 1.3;
}

.video-data p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 20px 0 30px;
}

.video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.video-footer span {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-glow {
  padding: 12px 24px;
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  font-family: var(--font-tech);
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
  background: transparent;
}

.btn-glow:hover {
  background: var(--neon-blue);
  color: #000;
  box-shadow: 0 0 30px var(--neon-blue);
}

.video-grid-cyber {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.video-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 15px;
  transition: 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.video-node:hover {
  border-color: var(--neon-blue);
  background: rgba(0, 209, 255, 0.08);
  transform: translateY(-5px);
}

.node-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: 0.5s;
}

.video-node:hover .node-thumb img {
  transform: scale(1.1);
}

.node-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 209, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: 0.3s;
}

.video-node:hover .node-overlay {
  opacity: 1;
}

.play-icon {
  width: 40px;
  height: 40px;
  background: var(--neon-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--neon-blue);
}

.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #000;
  margin-left: 3px;
}

.node-info h3 {
  font-size: 14px;
  margin: 15px 0 8px;
  font-weight: 600;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.node-info span {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

/* Custom Loading */
.loading-state {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface-dark);
  border-radius: 24px;
  border: var(--border-cyber);
}

.scanner {
  width: 200px;
  height: 2px;
  background: var(--neon-blue);
  box-shadow: 0 0 20px var(--neon-blue);
  animation: scan 2s infinite ease-in-out;
}

@keyframes scan {
  0% {
    opacity: 0.2;
    transform: scaleX(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }

  100% {
    opacity: 0.2;
    transform: scaleX(0.5);
  }
}

/* Footer */
footer {
  padding: 100px 0 50px;
  border-top: var(--border-cyber);
  text-align: center;
  background: rgba(0, 0, 0, 0.3);
}

.socials-tech {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.socials-tech a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.3s;
}

.socials-tech a:hover {
  color: var(--neon-blue);
  text-shadow: var(--accent-glow);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@media (max-width: 968px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: rgba(2, 2, 5, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px !important;
    transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1000;
    border-left: var(--border-cyber);
    transform: translateX(101%);
    /* 101% to be extra safe */
    visibility: hidden;
    pointer-events: none;
    /* Disable interaction when closed */
  }

  .nav-links.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    /* Enable interaction when open */
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.8);
  }

  .nav-links a {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .no-scroll {
    overflow: hidden;
  }

  .hero-content,
  .main-video-node,
  .responsive-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .video-data {
    padding: 30px;
    border-left: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .video-core {
    padding-bottom: 56.25%;
  }

  .site-header {
    height: 80px;
    padding: 0;
  }

  .header-inner {
    flex-direction: row;
    height: 80px;
    gap: 0;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .section {
    padding: 50px 0;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero-text h1 {
    font-size: 40px;
  }

  .btn-cyber {
    width: 100%;
    padding: 15px 20px;
  }

  .section-header {
    text-align: center;
    border-left: 0;
    padding-left: 0;
    border-top: 3px solid var(--neon-blue);
    padding-top: 15px;
  }
}

/* --- PRODUCT PAGE STYLES --- */
.product-hero {
  padding: 100px 0 60px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(0, 209, 255, 0.1) 0%, transparent 70%);
}

.product-grid-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.product-card-large {
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(0, 209, 255, 0.2);
  border-radius: 30px;
  padding: 30px;
  transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  backdrop-filter: blur(10px);
}

.product-card-large:hover {
  border-color: var(--neon-blue);
  box-shadow: 0 0 40px rgba(0, 209, 255, 0.15);
  transform: translateY(-10px);
}

.product-img-v2 {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.product-card-large:hover .product-img-v2 img {
  transform: scale(1.05);
}

.price-tag {
  font-family: var(--font-tech);
  color: var(--neon-orange);
  font-size: 24px;
  font-weight: 800;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-list li::before {
  content: '>';
  color: var(--neon-blue);
  font-weight: 800;
}

/* --- ACADEMY / COURSES STYLES --- */
.course-header {
  padding: 80px 0 40px;
  text-align: center;
  border-bottom: var(--border-cyber);
}

.course-player-container {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 20px;
  margin-top: 40px;
  background: var(--surface-dark);
  border: var(--border-cyber);
  border-radius: 20px;
  overflow: hidden;
  height: 600px;
}

.main-player {
  background: #000;
  position: relative;
}

.main-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.course-playlist {
  background: rgba(5, 5, 10, 0.8);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: var(--border-cyber);
}

.playlist-header {
  padding: 20px;
  background: rgba(0, 209, 255, 0.05);
  border-bottom: var(--border-cyber);
}

.playlist-header h3 {
  font-family: var(--font-tech);
  font-size: 14px;
  margin: 0;
  color: var(--neon-blue);
}

.playlist-item {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.playlist-item:hover {
  background: rgba(0, 209, 255, 0.05);
}

.playlist-item.active {
  background: rgba(0, 209, 255, 0.1);
  border-left: 3px solid var(--neon-blue);
}

.item-index {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--text-dim);
  min-width: 20px;
}

.item-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;
}

.course-selection {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.course-card {
  background: var(--surface-dark);
  border: var(--border-cyber);
  border-radius: 16px;
  padding: 20px;
  cursor: pointer;
  transition: 0.4s;
}

.course-card:hover {
  border-color: var(--neon-blue);
  transform: translateY(-5px);
}

.course-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

.course-card h4 {
  font-family: var(--font-tech);
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

@media (max-width: 968px) {
  .course-player-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .main-player {
    padding-bottom: 56.25%;
    height: 0;
  }

  .course-playlist {
    height: 400px;
    border-left: 0;
    border-top: var(--border-cyber);
  }
}

/* UTILITY & HELPER CLASSES */
.center-badge {
  margin: 0 auto 20px;
}

.page-title {
  font-family: var(--font-tech);
  font-size: 50px;
  margin: 0;
}

.hero-subtitle {
  color: var(--text-dim);
  padding-top: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.category-tag {
  color: var(--neon-blue);
  font-family: var(--font-tech);
  font-size: 12px;
  letter-spacing: 2px;
}

.product-title {
  font-family: var(--font-tech);
  font-size: 28px;
  color: #fff;
  margin: 0;
}

.product-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin: 20px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.system-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 30px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.align-center {
  padding: 15px 0;
}

.btn-buy {
  background: var(--neon-blue);
  color: #000;
  padding: 15px 0 !important;
}

.btn-sub {
  background: #ff0000 !important;
  border-color: #ff0000 !important;
  color: #fff !important;
  padding: 10px 20px !important;
  font-size: 10px !important;
}

.next-project-card {
  border-style: dashed !important;
  border-color: rgba(0, 209, 255, 0.1) !important;
  background: transparent !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
}

.next-project-content {
  color: rgba(0, 209, 255, 0.2);
}

.plus-icon {
  font-size: 50px;
  display: block;
  margin-bottom: 20px;
}

.footer-copy {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 5px;
}

.page-title-v2 {
  font-family: var(--font-tech);
  font-size: 40px;
}

.active-course-section {
  display: none;
}

.video-count-badge {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 5px;
}

.footer-academy {
  text-align: center;
  padding: 50px 0;
}

/* Responsive Grid Base */
.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .system-gallery {
    grid-template-columns: 1fr;
  }

  .features-grid,
  .action-buttons {
    grid-template-columns: 1fr;
  }
}

/* Visit Counter Styling */
.visit-counter {
  margin: 20px auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(0, 209, 255, 0.03);
  padding: 15px 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 209, 255, 0.1);
  width: max-content;
}

.counter-label {
  font-family: var(--font-tech);
  font-size: 10px;
  color: var(--neon-blue);
  letter-spacing: 4px;
  opacity: 0.7;
}

#visit-counter-value {
  font-family: var(--font-tech);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 15px var(--neon-blue);
  letter-spacing: 2px;
}