/* ============================================================
   CIGOIN ENTERPRISE — Main Stylesheet
   Modern Futuristic Dark Theme | Gold Accents
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --gold:        #FFD600;
  --gold-light:  #FFE55C;
  --gold-dark:   #CC9E00;
  --cyan:        #00D4FF;
  --dark-bg:     #050509;
  --dark-card:   #0b0b14;
  --dark-border: #1a1a2e;
  --dark-hover:  #111122;
  --white:       #FFFFFF;
  --text-primary:#F0F0FF;
  --text-muted:  rgba(240,240,255,0.55);
  --text-faint:  rgba(240,240,255,0.3);
  --glow-gold:   0 0 20px rgba(255,214,0,0.35);
  --glow-cyan:   0 0 20px rgba(0,212,255,0.3);
  --gradient-gold: linear-gradient(135deg, #FFD600 0%, #FF9800 100%);
  --gradient-hero: linear-gradient(135deg, #050509 0%, #0e0e1f 50%, #050509 100%);
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main:   'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display:'Space Grotesk', 'Inter', sans-serif;
  --topbar-h:    0px;
  --header-gap:  18px;
  --header-clear:26px;
  --nav-h:       76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--dark-bg);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.text-gold  { color: var(--gold); }
.text-cyan  { color: var(--cyan); }
.text-muted { color: var(--text-muted); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4  { gap: 1rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid   { display: grid; }
.text-center { text-align: center; }

/* ── Section Headers ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,214,0,0.08);
  border: 1px solid rgba(255,214,0,0.25);
  color: var(--gold);
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
.section-title { color: var(--white); margin-bottom: 16px; }
.section-title span { color: var(--gold); }
.section-sub { color: var(--text-muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 24px rgba(255,214,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,214,0,0.45);
}
.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(255,214,0,0.45);
  color: var(--gold);
}
.btn-secondary:hover {
  background: rgba(255,214,0,0.08);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-sm { padding: 9px 22px; font-size: 0.85rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }
.btn-icon { padding: 12px; border-radius: var(--radius-md); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,214,0,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(255,214,0,0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), var(--glow-gold);
}
.card:hover::before { opacity: 1; }

/* ── Navigation: Floating Liquid Glass Header ──────────────── */
.navbar {
  position: fixed;
  top: var(--header-gap);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1280px;
  z-index: 1000;
  height: var(--nav-h);
  border-radius: 22px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow:
    0 0 0 1px rgba(255,214,0,0.04) inset,
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 12px 40px rgba(0,0,0,0.35);
  transition: var(--transition);
  overflow: hidden;
}
.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.navbar.scrolled {
  background: rgba(8,8,16,0.55);
  border-color: rgba(255,214,0,0.16);
  box-shadow:
    0 0 0 1px rgba(255,214,0,0.06) inset,
    0 1px 0 rgba(255,255,255,0.06) inset,
    0 16px 48px rgba(0,0,0,0.5);
}
.nav-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 12px 0 26px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  justify-self: start;
}
.nav-logo img,
.nav-logo-img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255,214,0,0.3));
  transition: var(--transition);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
}
.nav-link {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.nav-link.active {
  color: var(--gold);
  background: rgba(255,214,0,0.1);
  box-shadow: 0 0 0 1px rgba(255,214,0,0.18) inset;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  flex-shrink: 0;
}
.nav-action-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1.05rem;
  position: relative;
}
.nav-action-btn:hover {
  background: rgba(255,214,0,0.12);
  border-color: rgba(255,214,0,0.3);
  color: var(--gold);
  transform: translateY(-1px);
}
.nav-action-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 1100px) {
  .nav-action-contact { display: none; }
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }

/* Lang switcher */
.lang-switcher {
  display: flex;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active,
.lang-btn:hover {
  background: rgba(255,214,0,0.15);
  color: var(--gold);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: calc(var(--header-gap) + var(--nav-h) + 8px);
  left: 0; right: 0;
  background: rgba(5,5,9,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 24px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  transform: translateY(-10px);
  opacity: 0;
  transition: var(--transition);
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile .nav-link {
  padding: 14px 16px;
  font-size: 1rem;
  border: 1px solid transparent;
}
.nav-mobile .nav-link:hover {
  border-color: rgba(255,214,0,0.15);
  background: rgba(255,214,0,0.05);
}

/* Search overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.search-overlay.open { opacity: 1; pointer-events: all; }
.search-box {
  width: 100%;
  max-width: 640px;
  background: var(--dark-card);
  border: 1px solid rgba(255,214,0,0.3);
  border-radius: var(--radius-lg);
  padding: 6px 6px 6px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 60px rgba(255,214,0,0.15);
}
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 1.1rem;
  padding: 10px 0;
}
.search-box input::placeholder { color: var(--text-faint); }
.search-close {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.3rem;
  transition: var(--transition);
}
.search-close:hover { color: var(--white); }

/* Cart sidebar */
.cart-sidebar {
  position: fixed;
  top: 0; right: -440px;
  width: 420px;
  height: 100vh;
  background: var(--dark-card);
  border-left: 1px solid var(--dark-border);
  z-index: 2000;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--dark-border);
}
.cart-header h3 { font-size: 1.1rem; }
.cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 200px;
  color: var(--text-muted);
}
.cart-empty .icon { font-size: 3rem; opacity: 0.3; }
.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cart-item-img {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--dark-border);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.qty-btn:hover { background: rgba(255,214,0,0.15); color: var(--gold); }
.qty-num { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
  align-self: flex-start;
  margin-top: 4px;
}
.cart-item-remove:hover { color: #FF5252; }

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--dark-border);
}
.cart-totals { margin-bottom: 20px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.cart-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  border-top: 1px solid var(--dark-border);
  padding-top: 16px;
  margin-top: 8px;
}
.cart-row.total .price { color: var(--gold); }

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,214,0,0.06) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 60%, rgba(0,212,255,0.05) 0%, transparent 60%),
              radial-gradient(ellipse 60% 80% at 20% 80%, rgba(255,152,0,0.04) 0%, transparent 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,214,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,214,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,214,0,0.08);
  border: 1px solid rgba(255,214,0,0.2);
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  color: var(--white);
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFD600 0%, #FF9800 60%, #FFD600 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  font-style: italic;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 44px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator .scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

/* ── Services Grid ──────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
}
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: rgba(255,214,0,0.1);
  border: 1px solid rgba(255,214,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(255,214,0,0.2);
  box-shadow: var(--glow-gold);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
}
.service-link .arrow { transition: transform 0.2s; }
.service-link:hover .arrow { transform: translateX(4px); }
.service-glow {
  position: absolute;
  bottom: -40px; right: -40px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,214,0,0.08), transparent 70%);
  pointer-events: none;
  transition: var(--transition);
}
.service-card:hover .service-glow {
  transform: scale(1.5);
  opacity: 1.5;
}

/* ── About Section ──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  position: relative;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: 32px; left: -24px;
  background: var(--dark-card);
  border: 1px solid rgba(255,214,0,0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), var(--glow-gold);
}
.about-badge-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-display);
}
.about-badge-text { font-size: 0.8rem; color: var(--text-muted); }

.about-content { }
.about-mv { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.mv-item {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255,214,0,0.04);
  border-left: 3px solid var(--gold);
}
.mv-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.mv-item p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.75; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, rgba(255,214,0,0.05) 0%, rgba(0,212,255,0.03) 100%);
  border-top: 1px solid rgba(255,214,0,0.1);
  border-bottom: 1px solid rgba(255,214,0,0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--text-muted); font-size: 0.88rem; }

/* ── Campus Section ─────────────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: var(--transition);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,214,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-gold);
}
.course-img {
  height: 180px;
  background: linear-gradient(135deg, var(--dark-border) 0%, rgba(255,214,0,0.1) 100%);
  position: relative;
  overflow: hidden;
}
.course-img img { width: 100%; height: 100%; object-fit: cover; }
.course-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.course-body { padding: 24px; }
.course-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.course-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; }
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.course-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); }
.course-price.free { color: #4CAF50; }

/* ── Projects ───────────────────────────────────────────────── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.project-card:nth-child(1) { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:nth-child(3) { grid-column: span 4; }
.project-card:nth-child(4) { grid-column: span 4; }
.project-card:nth-child(5) { grid-column: span 4; }
.project-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e0e1f, #1a1a30);
}
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.project-card:hover .project-overlay {
  opacity: 1;
  transform: translateY(0);
}
.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.project-name { font-size: 1.1rem; font-weight: 700; }

/* ── Store ──────────────────────────────────────────────────── */
.store-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--dark-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.filter-btn.active,
.filter-btn:hover {
  border-color: rgba(255,214,0,0.4);
  color: var(--gold);
  background: rgba(255,214,0,0.06);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,214,0,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), var(--glow-gold);
}
.product-img-wrap {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-border), rgba(255,214,0,0.08));
  overflow: hidden;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-type {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,214,0,0.3);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.product-actions-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}
.product-card:hover .product-actions-overlay { opacity: 1; }
.product-body { padding: 20px; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.stars { color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; }
.rating-count { font-size: 0.75rem; color: var(--text-muted); }
.product-name { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.product-desc { color: var(--text-muted); font-size: 0.83rem; line-height: 1.5; margin-bottom: 16px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.product-price { font-size: 1.3rem; font-weight: 800; color: var(--gold); }
.product-price-old {
  font-size: 0.85rem;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-left: 8px;
}

/* ── News ───────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.news-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,214,0,0.2);
}
.news-img { height: 200px; background: var(--dark-border); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.news-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.news-excerpt { color: var(--text-muted); font-size: 0.85rem; line-height: 1.65; margin-bottom: 20px; }
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.news-read-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}
.news-read-link:hover { gap: 9px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,214,0,0.06) 0%, rgba(0,0,0,0) 60%),
              radial-gradient(ellipse at 80% 50%, rgba(0,212,255,0.05), transparent 60%);
  border-top: 1px solid rgba(255,214,0,0.1);
  border-bottom: 1px solid rgba(255,214,0,0.1);
}
.cta-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 20px;
}
.cta-sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 44px; line-height: 1.7; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--dark-card);
  border-top: 1px solid var(--dark-border);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo-text { font-size: 1.6rem; margin-bottom: 16px; display: block; }
.footer-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.75; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(255,214,0,0.1);
  border-color: rgba(255,214,0,0.3);
  color: var(--gold);
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.footer-links-list { display: flex; flex-direction: column; gap: 12px; }
.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links-list a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}
.footer-contact-item .icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── Auth Modal ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--dark-card);
  border: 1px solid rgba(255,214,0,0.2);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: var(--transition);
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), var(--glow-gold);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.modal-logo { text-align: center; margin-bottom: 32px; }
.modal h2 { text-align: center; margin-bottom: 8px; font-size: 1.5rem; }
.modal-sub { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: rgba(255,214,0,0.4);
  background: rgba(255,214,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,214,0,0.08);
}
.form-input::placeholder { color: var(--text-faint); }
.form-btn { width: 100%; margin-top: 8px; justify-content: center; }
.form-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.form-switch a { color: var(--gold); font-weight: 600; }

/* ── Notifications ──────────────────────────────────────────── */
.notification {
  position: fixed;
  top: 90px; right: 24px;
  background: var(--dark-card);
  border: 1px solid rgba(255,214,0,0.3);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5000;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  max-width: 320px;
}
.notification.show { transform: translateX(0); }
.notification.success { border-color: rgba(76,175,80,0.4); }
.notification.error   { border-color: rgba(255,82,82,0.4); }
.notification-icon { font-size: 1.2rem; }
.notification-msg { font-size: 0.88rem; color: var(--text-primary); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes particle-drift {
  0%   { transform: translate(0,0) scale(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1); opacity: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes count-up {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal base */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-gap) + var(--nav-h) + var(--header-clear) + 80px) 0 80px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(255,214,0,0.07), transparent);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,214,0,0.3), transparent);
}

/* ── Tienda / Store Page ─────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.shop-sidebar {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-gap) + var(--nav-h) + var(--header-clear));
}
.sidebar-section { margin-bottom: 32px; }
.sidebar-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.sidebar-options { display: flex; flex-direction: column; gap: 10px; }
.sidebar-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-option:hover { color: var(--gold); }
.sidebar-option input[type="checkbox"],
.sidebar-option input[type="radio"] { accent-color: var(--gold); }

.price-range { display: flex; flex-direction: column; gap: 10px; }
.price-inputs { display: flex; gap: 10px; }
.price-inputs input {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--white);
  font-size: 0.85rem;
  width: 0;
  outline: none;
}
.price-inputs input:focus { border-color: rgba(255,214,0,0.4); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 60px;
}
.page-btn {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--dark-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: var(--transition);
}
.page-btn:hover,
.page-btn.active {
  border-color: rgba(255,214,0,0.4);
  color: var(--gold);
  background: rgba(255,214,0,0.06);
}

/* ── Checkout ───────────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.checkout-section {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.checkout-section h3 { margin-bottom: 24px; font-size: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-summary {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: calc(var(--header-gap) + var(--nav-h) + var(--header-clear));
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: rgba(255,214,0,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,214,0,0.4); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: rgba(255,214,0,0.25); color: var(--white); }

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible { outline: 2px solid rgba(255,214,0,0.5); outline-offset: 3px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 500px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .project-card { grid-column: span 1 !important; aspect-ratio: 4/3; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; --header-gap: 10px; --header-clear: 18px; }
  .navbar { width: calc(100% - 24px); border-radius: 18px; }
  .nav-inner { padding: 0 8px 0 18px; }
  .nav-logo-img { height: 40px; }
  .section { padding: 70px 0; }
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .about-badge { left: 12px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .checkout-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; right: -100%; }
  .modal { padding: 36px 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 2.2rem; }
  .courses-grid, .products-grid, .news-grid { grid-template-columns: 1fr; }
}
