/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

::selection {
  background: rgba(0, 240, 255, 0.3);
  color: #fff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #1a1a2e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00f0ff33;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0a0a0f;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

/* ===== Grid Overlay ===== */
.grid-overlay {
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* ===== Navigation ===== */
#navbar {
  background: rgba(10, 10, 15, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 15, 0.9);
  border-bottom-color: #1a1a2e;
}

/* ===== Hero Glow ===== */
.hero-glow {
  text-shadow: 0 0 80px rgba(0, 240, 255, 0.15), 0 0 120px rgba(168, 85, 247, 0.1);
}

/* ===== Animations ===== */
@keyframes pulse-slow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-pulse-slow {
  animation: pulse-slow 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.6s ease-out forwards;
}

/* ===== Video Card Styles ===== */
.video-card {
  background: #0f0f1a;
  border: 1px solid #1a1a2e;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.5s ease-out forwards;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.1),
    0 20px 40px rgba(0, 0, 0, 0.4);
}

.video-card .thumbnail-wrapper {
  position: relative;
  overflow: hidden;
}

.video-card .thumbnail-wrapper img {
  transition: transform 0.5s ease, filter 0.5s ease;
}

.video-card:hover .thumbnail-wrapper img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.video-card .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
  opacity: 1;
}

.video-card .duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ===== Featured Video Card ===== */
.featured-card {
  background: #0f0f1a;
  border: 1px solid #1a1a2e;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUp 0.6s ease-out forwards;
}

.featured-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.featured-card .thumbnail-wrapper {
  position: relative;
  overflow: hidden;
}

.featured-card .thumbnail-wrapper img {
  transition: transform 0.6s ease, filter 0.6s ease;
}

.featured-card:hover .thumbnail-wrapper img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ===== Section Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .video-card .play-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
  }
}

/* ===== Skeleton Loading ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  background: linear-gradient(90deg, #0f0f1a 25%, #1a1a2e 50%, #0f0f1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

/* ===== Glow Button ===== */
.glow-btn {
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 240, 255, 0.1), transparent, rgba(168, 85, 247, 0.1), transparent);
  animation: rotate 4s linear infinite;
}

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