/* ===== ROOT VARIABLES ===== */
:root {
  --bg: #070708;
  --bg2: #0d0d10;
  --gold: #c9a84c;
  --gold2: #f0d080;
  --gold-glow: rgba(201,168,76,0.35);
  --red: #8b1a1a;
  --red2: #c0392b;
  --white: #f5f0e8;
  --white2: #b8b0a0;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(201,168,76,0.15);
  --font-title: 'Cinzel', serif;
  --font-body: 'Raleway', sans-serif;
  --font-fancy: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.loader-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #1a0a00 0%, #0a0005 40%, #000000 100%);
}

.loader-particles {
  position: absolute; inset: 0; pointer-events: none;
}

.loader-content {
  position: relative; z-index: 2;
  text-align: center;
  animation: loaderFadeIn 0.8s ease forwards;
}

@keyframes loaderFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.loader-logo {
  font-family: var(--font-title);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.loader-s {
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold), 0 0 60px var(--gold-glow);
  animation: pulse 2s ease-in-out infinite;
  letter-spacing: 0;
}

.loader-rest {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}

@keyframes pulse {
  0%,100% { text-shadow: 0 0 30px var(--gold), 0 0 60px var(--gold-glow); }
  50% { text-shadow: 0 0 50px var(--gold), 0 0 100px var(--gold-glow), 0 0 150px rgba(201,168,76,0.2); }
}

.loader-demo-text {
  font-family: var(--font-title);
  font-size: clamp(0.8rem, 3vw, 1.4rem);
  letter-spacing: 0.8em;
  color: var(--gold);
  margin-top: 0.3rem;
  opacity: 0.8;
}

.loader-line {
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.loader-bar-wrap {
  width: 280px; height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red2), var(--gold), var(--gold2));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.loader-bar-glow {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  border-radius: 2px;
  transition: width 0.1s linear;
  filter: blur(2px);
}

.loader-percent {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 0.8rem;
}

.loader-quote {
  font-family: var(--font-fancy);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--white2);
  margin-top: 2rem;
  opacity: 0.6;
  max-width: 320px;
}

/* ===== PARTICLE DOT ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ===== HIDDEN CLASS ===== */
.hidden { display: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(7,7,8,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 0.8rem 5%;
  background: rgba(7,7,8,0.95);
  border-bottom-color: rgba(201,168,76,0.25);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}

.nav-s { color: var(--gold); }
.nav-demo { color: var(--gold); font-size: 0.75em; }

.nav-links {
  display: flex; gap: 2rem; list-style: none;
}

.nav-links a {
  color: var(--white2); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s ease;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; border: none; cursor: pointer;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 30px rgba(201,168,76,0.5);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); transition: all 0.3s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: rgba(7,7,8,0.98);
    flex-direction: column; gap: 0;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-120%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { padding: 0.8rem 5%; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .nav-cta { display: none; }
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 8rem 5% 4rem;
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.15;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--gold), transparent);
  top: -200px; right: -100px;
  animation-duration: 10s;
}
.orb2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--red), transparent);
  bottom: -100px; left: -100px;
  animation-duration: 12s; animation-delay: 2s;
}
.orb3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #4a0080, transparent);
  top: 30%; left: 40%;
  animation-duration: 15s; animation-delay: 4s;
}

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}

.hero-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 800px;
  animation: heroFadeUp 1s ease forwards;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--gold); border: 1px solid var(--gold-glow);
  padding: 0.4rem 1.5rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  background: rgba(201,168,76,0.05);
}

.hero-title {
  display: flex; flex-direction: column;
  gap: 0.2rem; margin-bottom: 1.5rem;
}

.title-line1 {
  font-family: var(--font-fancy);
  font-style: italic; font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--white2);
}

.title-line2 {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 900; letter-spacing: 0.05em;
  color: var(--white);
  text-shadow: 0 0 40px rgba(255,255,255,0.1);
  line-height: 1;
}

.title-accent { color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }

.title-line3 {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white2);
}

.hero-desc {
  font-size: 1rem; color: var(--white2);
  line-height: 1.8; max-width: 550px;
  margin: 0 auto 2rem;
}

.hero-btns {
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; text-decoration: none;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: 0.9rem; letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(201,168,76,0.3);
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(201,168,76,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--gold); text-decoration: none;
  padding: 0.9rem 2.2rem;
  border: 1px solid var(--gold);
  font-family: var(--font-body); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.08em;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.2);
}

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 2rem; flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: var(--gold); font-weight: 700;
}
.stat-plus { color: var(--gold); font-size: 1.2rem; }
.stat-label {
  display: block; font-size: 0.75rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--white2);
}

.stat-divider {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--gold-glow), transparent);
}

.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; opacity: 0.5;
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white2);
}

.scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== SECTION COMMONS ===== */
.section-header {
  text-align: center; margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-title);
  font-size: 0.7rem; letter-spacing: 0.5em;
  color: var(--gold); opacity: 0.8;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700; color: var(--white);
  margin: 0.5rem 0;
}

.accent { color: var(--gold); }

.section-sub {
  color: var(--white2); font-size: 0.95rem;
  font-family: var(--font-fancy); font-style: italic;
}

/* ===== COURSES SECTION ===== */
.courses-section {
  padding: 6rem 5%;
  background: var(--bg);
  position: relative;
}

.courses-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
}

.course-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}

.course-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-5px); }
.course-card:hover .card-glow { opacity: 1; }

.card-icon {
  font-size: 2.5rem; margin-bottom: 1rem;
  display: block;
}

.card-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(201,168,76,0.15);
  color: var(--gold); border: 1px solid rgba(201,168,76,0.3);
  font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
.card-badge.new { background: rgba(0,150,100,0.15); color: #00c87f; border-color: rgba(0,200,127,0.3); }
.card-badge.hot { background: rgba(200,50,50,0.15); color: #ff6b6b; border-color: rgba(255,107,107,0.3); }
.card-badge.trending { background: rgba(100,50,200,0.15); color: #a87eff; border-color: rgba(168,126,255,0.3); }

.course-card h3 {
  font-family: var(--font-title); font-size: 1.2rem;
  color: var(--white); margin-bottom: 0.7rem;
}

.course-card p {
  color: var(--white2); font-size: 0.88rem;
  line-height: 1.7; margin-bottom: 1.2rem;
}

.card-meta {
  display: flex; gap: 1rem;
  font-size: 0.8rem; color: var(--white2);
  margin-bottom: 1.5rem;
}

.card-btn {
  display: inline-block; color: var(--gold);
  text-decoration: none; font-size: 0.85rem;
  font-weight: 600; letter-spacing: 0.05em;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
}

.card-btn:hover { border-bottom-color: var(--gold); letter-spacing: 0.1em; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
  padding: 6rem 5%;
  background: linear-gradient(180deg, var(--bg) 0%, #0d0a14 100%);
  position: relative;
}

.filter-tabs {
  display: flex; gap: 0.8rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 3rem;
}

.tab {
  background: transparent;
  color: var(--white2);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.5rem 1.4rem;
  font-family: var(--font-body); font-size: 0.8rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: 50px;
  transition: all 0.3s ease;
}

.tab:hover { border-color: var(--gold); color: var(--gold); }

.tab.active {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000; border-color: transparent;
  font-weight: 700;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px; overflow: hidden;
  transition: all 0.4s ease;
}

.video-card:hover {
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(201,168,76,0.1);
}

.video-thumb {
  position: relative; padding-bottom: 56.25%;
  overflow: hidden; background: #000;
}

.video-thumb iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%; border: none;
}

.video-info { padding: 1.2rem 1.4rem 1.4rem; }

.video-tag {
  display: inline-block;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.2rem 0.7rem; border-radius: 50px;
  margin-bottom: 0.7rem; font-weight: 600;
  background: rgba(201,168,76,0.1); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
}

.video-tag.science { background: rgba(0,150,255,0.1); color: #4db8ff; border-color: rgba(77,184,255,0.2); }
.video-tag.cs { background: rgba(150,50,255,0.1); color: #b87fff; border-color: rgba(184,127,255,0.2); }
.video-tag.english { background: rgba(0,200,100,0.1); color: #00c87f; border-color: rgba(0,200,127,0.2); }

.video-info h4 {
  font-family: var(--font-title);
  font-size: 1rem; color: var(--white);
  margin-bottom: 0.5rem; line-height: 1.4;
}

.video-info p {
  font-size: 0.85rem; color: var(--white2);
  line-height: 1.6; margin-bottom: 0.8rem;
}

.video-meta {
  display: flex; gap: 1rem;
  font-size: 0.78rem; color: var(--white2);
}

.video-card.hidden-filter { display: none; }

/* ===== ABOUT SECTION ===== */
.about-section {
  padding: 6rem 5%;
  position: relative; overflow: hidden;
}

.about-bg {
  position: absolute; inset: 0; z-index: 0;
}

.about-orb {
  position: absolute;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,26,0.15), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  filter: blur(60px);
  animation: orbFloat 12s ease-in-out infinite;
}

.about-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
  max-width: 1100px; margin: 0 auto;
}

@media (max-width: 768px) {
  .about-content { grid-template-columns: 1fr; gap: 3rem; }
}

.about-text .section-title { text-align: left; }
.about-text .section-tag { text-align: left; display: block; margin-bottom: 0.5rem; }

.about-text p {
  color: var(--white2); line-height: 1.8;
  margin: 1.2rem 0;
}

.about-list {
  list-style: none; margin: 1.5rem 0 2rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}

.about-list li {
  display: flex; align-items: center; gap: 0.8rem;
  color: var(--white2); font-size: 0.95rem;
}

.list-icon { color: var(--gold); font-size: 0.7rem; }

.about-visual {
  position: relative;
  display: flex; flex-direction: column;
  gap: 1.2rem; align-items: flex-end;
}

.about-glow-circle {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; border: 1px solid rgba(201,168,76,0.1);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: rotateSlow 20s linear infinite;
}

.about-glow-circle::before {
  content: '';
  position: absolute; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  top: -3px; left: 50%;
  box-shadow: 0 0 10px var(--gold);
}

@keyframes rotateSlow { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px; padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  backdrop-filter: blur(10px);
  min-width: 200px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.ac-icon { font-size: 1.8rem; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.ac-info { display: flex; flex-direction: column; }
.ac-info strong { color: var(--white); font-size: 0.95rem; }
.ac-info span { color: var(--gold); font-size: 0.8rem; }

.floating { animation: floatCard 4s ease-in-out infinite; }
.delay1 { animation-delay: 1.3s; }
.delay2 { animation-delay: 2.6s; }

@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== FOOTER ===== */
.footer {
  background: #040404;
  border-top: 1px solid rgba(201,168,76,0.1);
  padding: 4rem 5% 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 0.8rem;
}

.footer-brand p {
  color: var(--white2); font-size: 0.88rem; line-height: 1.7;
}

.footer-links h4, .footer-contact h4 {
  font-family: var(--font-title);
  font-size: 0.85rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  color: var(--white2); text-decoration: none;
  font-size: 0.88rem; transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold); }

.footer-contact p {
  color: var(--white2); font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex; gap: 0.8rem; margin-top: 1rem;
}

.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  text-decoration: none; font-size: 1rem;
  transition: all 0.3s;
}

.social-links a:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem; text-align: center;
  color: var(--white2); font-size: 0.8rem;
}

/* ===== CONTENT CARDS (replaces video thumbs) ===== */
.content-card-thumb {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.content-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
}

.math-thumb {
  background: linear-gradient(135deg, #1a1200, #2a1e00);
  color: var(--gold);
}
.math-thumb::before { background: radial-gradient(circle at 30% 30%, var(--gold), transparent); }

.science-thumb {
  background: linear-gradient(135deg, #00101a, #001a2a);
  color: #4db8ff;
}
.science-thumb::before { background: radial-gradient(circle at 30% 30%, #4db8ff, transparent); }

.cs-thumb {
  background: linear-gradient(135deg, #0d0020, #1a0035);
  color: #b87fff;
}
.cs-thumb::before { background: radial-gradient(circle at 30% 30%, #b87fff, transparent); }

.english-thumb {
  background: linear-gradient(135deg, #001a0d, #002a14);
  color: #00c87f;
}
.english-thumb::before { background: radial-gradient(circle at 30% 30%, #00c87f, transparent); }

.content-card-thumb i {
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 20px currentColor);
}

.content-card-btn {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.content-card-btn:hover {
  border-bottom-color: var(--gold);
  letter-spacing: 0.1em;
}


@keyframes filterFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 60px; height: 1px; }
  .courses-grid { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .about-visual { align-items: center; }
  .about-card { min-width: unset; width: 100%; }
}

/* ===== SELECTION ===== */
::selection { background: var(--gold-glow); color: var(--white); }

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  cursor: pointer;
  text-align: center;
}

.category-card:hover {
  border-color: rgba(201,168,76,0.6) !important;
  box-shadow: 0 0 40px rgba(201,168,76,0.15);
}

.category-card .card-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #000 !important;
  padding: 0.6rem 1.6rem;
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-bottom: none !important;
  transition: all 0.3s;
  margin-top: 0.5rem;
}

.category-card:hover .card-btn {
  box-shadow: 0 5px 25px rgba(201,168,76,0.4);
  transform: translateY(-2px);
}

/* ===== CATEGORY OVERLAY PAGE ===== */
.cat-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: var(--bg);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

.cat-overlay.open {
  transform: translateX(0);
}

/* Modal must be above cat-overlay */
.media-modal-overlay {
  z-index: 10000 !important;
}

.cat-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 5% 5rem;
  min-height: 100vh;
}

.cat-back {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.4rem;
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  margin-top: 1rem;
}

.cat-back:hover {
  background: rgba(201,168,76,0.08);
  border-color: var(--gold);
}

.cat-content { display: none; }
.cat-content.active { display: block; }

/* Fix: ensure media cards stay flex inside cat-content */
.cat-content .cat-video-wrap {
  display: flex !important;
  flex-direction: column !important;
}

.cat-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

.cat-hero .section-title {
  margin: 0.5rem 0;
}

/* ===== TELEGRAM BANNER ===== */
.cat-tg-banner {
  background: linear-gradient(135deg, rgba(0,136,204,0.12), rgba(0,100,200,0.06));
  border: 1px solid rgba(0,136,204,0.3);
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 3rem;
}

.tg-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.tg-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.tg-text {
  flex: 1;
  min-width: 200px;
}

.tg-text h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.tg-text p {
  color: var(--white2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.tg-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0088cc, #0099ee);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,136,204,0.3);
  flex-shrink: 0;
}

.tg-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(0,136,204,0.5);
}

/* ===== PROOF IMAGES GRID ===== */
.cat-images-section {
  margin-bottom: 3rem;
}

.cat-images-header {
  margin-bottom: 1.5rem;
}

.cat-images-header h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.cat-images-header p {
  color: var(--white2);
  font-size: 0.85rem;
}

.cat-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.proof-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.proof-card:hover {
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px rgba(201,168,76,0.1);
}

.proof-img-wrap {
  width: 100%;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: #0d0d10;
  position: relative;
}

.proof-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.proof-card:hover .proof-img-wrap img {
  transform: scale(1.05);
}

.proof-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  color: var(--white2);
  background: rgba(201,168,76,0.03);
}

.proof-placeholder span {
  font-size: 0.75rem;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
}

.proof-label {
  padding: 0.6rem 0.8rem;
  font-size: 0.78rem;
  color: var(--white2);
  letter-spacing: 0.05em;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

/* ===== CATEGORY CTA BOTTOM ===== */
.cat-cta-bottom {
  text-align: center;
  padding: 3rem 2rem;
  background: rgba(201,168,76,0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.cat-cta-bottom p {
  color: var(--white2);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-fancy);
  font-style: italic;
}

/* ===== IMAGE LIGHTBOX ===== */
.img-lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.img-lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-size: 1.2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex; align-items: center; justify-content: center;
}

.lightbox-close:hover {
  background: rgba(201,168,76,0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}

.lightbox-placeholder {
  font-size: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--white2);
}

.lightbox-placeholder p {
  font-size: 1rem;
  font-family: var(--font-body);
}

/* ===== RESPONSIVE for category page ===== */
@media (max-width: 600px) {
  .tg-banner-content {
    flex-direction: column;
    text-align: center;
  }
  .cat-images-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   🔥 NEXT LEVEL UPGRADES - ADVANCED ANIMATIONS
   ============================================ */

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 10px var(--gold), 0 0 20px rgba(201,168,76,0.5);
}

.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1.5px solid rgba(201,168,76,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s, transform 0.08s linear;
}

.cursor-dot.hovering { width: 12px; height: 12px; background: var(--gold2); }
.cursor-ring.hovering { width: 56px; height: 56px; border-color: var(--gold); }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== FLOATING HEARTS BACKGROUND ===== */
.floating-hearts-container {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}

.fheart {
  position: absolute;
  bottom: -60px;
  font-size: 1rem;
  opacity: 0;
  animation: heartRise linear infinite;
  color: var(--gold);
  filter: blur(0.5px);
}

@keyframes heartRise {
  0%   { transform: translateY(0) rotate(0deg) scale(0.5); opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(-110vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ===== ADVANCED NAVBAR ===== */
.navbar {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navbar::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1s ease;
}

.navbar.scrolled::after { width: 100%; }

.nav-logo {
  position: relative;
  animation: navLogoPulse 4s ease-in-out infinite;
}

@keyframes navLogoPulse {
  0%,100% { filter: drop-shadow(0 0 6px rgba(201,168,76,0)); }
  50%      { filter: drop-shadow(0 0 12px rgba(201,168,76,0.4)); }
}

/* ===== HERO UPGRADES ===== */
.hero-badge {
  animation: badgePop 0.8s cubic-bezier(0.34,1.56,0.64,1) forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}

.title-line1 { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 0.5s; }
.title-line2 { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 0.7s; }
.title-line3 { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 0.9s; }
.hero-desc   { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 1.0s; }
.hero-btns   { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 1.1s; }
.hero-stats  { animation: slideInUp 0.8s ease forwards; opacity: 0; animation-delay: 1.2s; }

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Title line 2 shimmer */
.title-line2 {
  background: linear-gradient(120deg, var(--white) 0%, var(--gold2) 40%, var(--white) 60%, var(--gold) 100%);
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInUp 0.8s ease forwards, shimmerText 4s linear 1.5s infinite !important;
  opacity: 0;
  animation-delay: 0.7s;
}

@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 250% center; }
}

/* Buttons pulse ring */
.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover::after { transform: translateX(100%); }

.btn-secondary {
  position: relative; overflow: hidden;
}
.btn-secondary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(201,168,76,0.05);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.btn-secondary:hover::before { transform: scaleX(1); }

/* ===== SECTION HEADER REVEAL ===== */
.section-header {
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  margin: 0.7rem auto 0;
  border-radius: 2px;
  animation: lineGrow 0.6s ease forwards;
}

@keyframes lineGrow {
  from { width: 0; } to { width: 60px; }
}

/* ===== CARD MEGA UPGRADES ===== */
.course-card {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.4s ease, border-color 0.4s ease !important;
  transform-style: preserve-3d;
  will-change: transform;
}

.course-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 4px;
}

.course-card:hover::before { opacity: 1; }

.course-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 40px rgba(201,168,76,0.15),
    inset 0 1px 0 rgba(201,168,76,0.2) !important;
  border-color: rgba(201,168,76,0.5) !important;
}

/* Card icon glow on hover */
.card-icon {
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), color 0.3s, filter 0.3s;
  display: inline-block;
  color: var(--gold);
}

.course-card:hover .card-icon {
  transform: scale(1.3) rotate(-8deg);
  filter: drop-shadow(0 0 15px var(--gold)) drop-shadow(0 0 30px rgba(201,168,76,0.4));
}

/* Card badge pulse */
.card-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,100% { box-shadow: none; }
  50%      { box-shadow: 0 0 10px currentColor; }
}

/* Explore Now button shine */
.card-btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.6rem 1.6rem;
  background: linear-gradient(135deg, var(--gold), var(--gold2)) !important;
  color: #000 !important;
  border-radius: 2px;
  font-weight: 700 !important;
  border-bottom: none !important;
  transition: all 0.3s ease !important;
}

.card-btn::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.course-card:hover .card-btn::after { left: 140%; }
.course-card:hover .card-btn {
  box-shadow: 0 5px 25px rgba(201,168,76,0.5);
  transform: translateY(-2px);
}

/* ===== REVEAL UPGRADE ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.34,1.56,0.64,1) !important;
  transition-delay: var(--delay, 0ms) !important;
}

.reveal.visible {
  opacity: 1; transform: translateY(0) scale(1);
}

/* ===== SECTION DIVIDERS ===== */
.courses-section, .videos-section, .about-section {
  position: relative;
}

.courses-section::after, .videos-section::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.2), transparent);
}

/* ===== FILTER TABS UPGRADE ===== */
.tab {
  position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.tab::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(201,168,76,0.05);
  border-radius: 50px;
  transform: scale(0); transition: transform 0.3s ease;
}

.tab:hover::before { transform: scale(1); }
.tab:hover { transform: translateY(-2px); }

.tab.active {
  box-shadow: 0 5px 20px rgba(201,168,76,0.3);
  transform: translateY(-2px);
}

/* ===== VIDEO CARD UPGRADES ===== */
.video-card {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
  position: relative;
}

.video-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}

.video-card:hover::after { opacity: 1; }

.video-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 25px 70px rgba(0,0,0,0.6), 0 0 40px rgba(201,168,76,0.12) !important;
}

/* ===== ABOUT CARDS UPGRADE ===== */
.about-card {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}

.about-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(201,168,76,0.3);
  opacity: 0; transition: opacity 0.3s;
}

.about-card:hover::before { opacity: 1; }
.about-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4), 0 0 25px rgba(201,168,76,0.1) !important;
}

/* ===== FOOTER UPGRADES ===== */
.footer {
  position: relative; overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), var(--gold), transparent);
  animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.social-links a {
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.social-links a:hover {
  transform: translateY(-5px) scale(1.15) !important;
  box-shadow: 0 8px 25px rgba(201,168,76,0.3) !important;
  color: var(--gold) !important;
}

/* ===== CATEGORY OVERLAY UPGRADE ===== */
.cat-overlay {
  background: linear-gradient(135deg, #070708 0%, #0d0a14 100%) !important;
}

.cat-back {
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.cat-back:hover {
  transform: translateX(-5px) !important;
  box-shadow: 0 5px 20px rgba(201,168,76,0.2) !important;
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--red2), var(--gold), var(--gold2));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--gold-glow);
}

/* ===== SECTION ENTRANCE ANIMATIONS ===== */
@keyframes sectionSlideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.section-tag  { animation: none; }
.section-title { animation: none; }

.section-header.animated .section-tag {
  animation: sectionSlideIn 0.6s ease forwards;
}
.section-header.animated .section-title {
  animation: sectionSlideIn 0.7s ease 0.1s forwards; opacity: 0;
}
.section-header.animated .section-sub {
  animation: sectionSlideIn 0.7s ease 0.2s forwards; opacity: 0;
}

/* ===== GLOWING ORBS UPGRADE ===== */
.hero-orb {
  animation: orbFloat 8s ease-in-out infinite !important;
}

.orb1 { opacity: 0.2 !important; }
.orb2 { opacity: 0.18 !important; }
.orb3 { opacity: 0.12 !important; }

/* ===== STAR PARTICLES CANVAS ===== */
#starCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ===== TYPEWRITER CURSOR BLINK ===== */
.typewriter-cursor {
  display: inline-block;
  width: 3px; height: 1em;
  background: var(--gold);
  margin-left: 2px;
  animation: cursorBlink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursorBlink {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}

/* ===== MAGNETIC BUTTON EFFECT ===== */
.btn-primary, .btn-secondary, .nav-cta {
  will-change: transform;
}

/* ===== NEON GLOW PULSE ON STATS ===== */
.stat-num {
  animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
  0%,100% { text-shadow: 0 0 10px rgba(201,168,76,0.3); }
  50%      { text-shadow: 0 0 25px rgba(201,168,76,0.7), 0 0 50px rgba(201,168,76,0.3); }
}

/* ===== CARD COUNT BADGE ===== */
.card-count {
  position: absolute; bottom: 1rem; right: 1rem;
  font-size: 0.65rem; color: rgba(255,255,255,0.2);
  font-family: var(--font-title);
  letter-spacing: 0.1em;
}

/* ===== PAGE TRANSITION OVERLAY ===== */
#page-transition {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99997;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ===== MOBILE TOUCH RIPPLE ===== */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(201,168,76,0.3);
  transform: scale(0);
  animation: rippleOut 0.6s linear;
  pointer-events: none;
}

@keyframes rippleOut {
  to { transform: scale(4); opacity: 0; }
}

/* ===== SECTION BG GRADIENTS ===== */
.courses-section {
  background: linear-gradient(180deg, var(--bg) 0%, #0a0810 50%, var(--bg) 100%) !important;
}

/* ===== LOADER UPGRADE ===== */
.loader-quote {
  animation: quoteSlide 0.8s ease 0.5s forwards;
  opacity: 0;
}

@keyframes quoteSlide {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 0.6; transform: translateY(0); }
}

/* ===== CARD GRID STAGGER ===== */
.courses-grid .course-card:nth-child(3n+1) { --delay: 0ms; }
.courses-grid .course-card:nth-child(3n+2) { --delay: 80ms; }
.courses-grid .course-card:nth-child(3n+3) { --delay: 160ms; }

/* ===== HEART ICON COLOR ===== */
.card-icon i.fa-heart,
.card-icon i.fa-heart-pulse,
.card-icon i.fa-heart-circle-plus,
.card-icon i.fa-heart-circle-bolt,
.card-icon i.fa-heart-crack,
.card-icon i.fa-heart-circle-check,
.card-icon i.fa-heart-circle-exclamation,
.card-icon i.fa-heart-circle-minus,
.card-icon i.fa-heart-circle-xmark,
.card-icon i.fa-hearts,
.card-icon i.fa-hands-holding-heart,
.card-icon i.fa-hand-holding-heart {
  color: #ff4d6d;
}

.course-card:hover .card-icon i.fa-heart,
.course-card:hover .card-icon i.fa-heart-pulse,
.course-card:hover .card-icon i.fa-hearts {
  filter: drop-shadow(0 0 15px #ff4d6d) drop-shadow(0 0 30px rgba(255,77,109,0.4)) !important;
}

.card-icon i.fa-fire,
.card-icon i.fa-fire-flame-curved {
  color: #ff6b35;
}

.card-icon i.fa-bed { color: #9b59b6; }
.card-icon i.fa-ring { color: var(--gold2); }
.card-icon i.fa-champagne-glasses { color: #ffd700; }
.card-icon i.fa-wand-sparkles { color: #a87eff; }
.card-icon i.fa-moon { color: #74b9ff; }

/* ===== SMOOTH SCROLL INDICATOR ===== */
.hero-scroll { animation: scrollFade 3s ease-in-out 2s infinite; }

@keyframes scrollFade {
  0%,100% { opacity: 0.5; } 50% { opacity: 0.9; }
}

/* ===== CATEGORY MEDIA SECTION ===== */
.cat-videos-section {
  padding: 1.5rem 1rem 1rem;
  border-top: 1px solid var(--card-border);
}

.cat-videos-section .cat-images-header {
  margin-bottom: 1rem;
}

.cat-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Each card */
.cat-video-wrap {
  background: #111114;
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer !important;
  pointer-events: auto !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
}

.cat-video-wrap:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 28px rgba(201,168,76,0.25);
  border-color: rgba(201,168,76,0.5);
}

/* Thumbnail — fixed square-ish box */
.cat-video-wrap .media-thumb {
  position: relative !important;
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 130% !important; /* portrait ratio */
  overflow: hidden !important;
  background: #000 !important;
  flex-shrink: 0;
  pointer-events: none;
}

.cat-video-wrap .media-thumb img,
.cat-video-wrap .media-thumb video {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease;
  pointer-events: none !important;
  user-select: none;
}

.cat-video-wrap:hover .media-thumb img {
  transform: scale(1.06);
}

/* Play icon on video cards */
.cat-video-wrap.is-video .media-thumb::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.38);
  transition: background 0.2s;
  pointer-events: none;
  z-index: 2;
}

.cat-video-wrap.is-video:hover .media-thumb::after {
  background: rgba(0,0,0,0.15);
}

/* Label strip at bottom */
.cat-video-wrap .video-label {
  padding: 6px 8px;
  font-size: 0.7rem;
  color: var(--gold);
  font-family: var(--font-body);
  text-align: center;
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.5);
  border-top: 1px solid rgba(201,168,76,0.1);
  flex-shrink: 0;
  line-height: 1.3;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 600px) {
  .cat-videos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .cat-video-wrap .video-label {
    font-size: 0.62rem;
    padding: 5px 4px;
  }
}

@media (max-width: 360px) {
  .cat-videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* legacy */
.cat-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* ===== MEDIA MODAL (floating lightbox) ===== */
.media-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.media-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.media-modal-box {
  position: relative;
  background: #0d0d10;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(201,168,76,0.2), 0 20px 60px rgba(0,0,0,0.8);
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.88) translateY(30px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-modal-overlay.open .media-modal-box {
  transform: scale(1) translateY(0);
}

.media-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.media-modal-close:hover {
  background: rgba(201,168,76,0.35);
  transform: rotate(90deg);
}

.media-modal-content img {
  display: block;
  max-width: 88vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.media-modal-content video {
  display: block;
  max-width: 88vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #000;
}

@media (max-width: 600px) {
  .media-modal-content img,
  .media-modal-content video {
    max-width: 96vw;
    max-height: 80vh;
  }
}
