/* =====================================================
   GLOBAL STYLING
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    linear-gradient(
      to bottom,
      #020617,
      #0f172a,
      #111827
    );

  color: white;

  font-family: "Inter", sans-serif;

  overflow-x: hidden;
}

/* =====================================================
   CUSTOM SCROLLBAR
===================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 20px;
}

/* =====================================================
   NAVBAR
===================================================== */

header {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  z-index: 9999;

  background:
    rgba(2, 6, 23, 0.85);

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid rgba(255,255,255,0.06);

  transition: 0.35s ease;

  padding: 18px 40px;
}

/* SCROLL EFFECT */

header.scrolled {

  background:
    rgba(2, 6, 23, 0.96);

  box-shadow:
    0 12px 40px rgba(0,0,0,0.45);
}

.navbar {

  max-width: 1300px;

  margin: auto;

  display: flex;

  justify-content: space-between;

  align-items: center;
}

/* LOGO */

.logo {

  font-size: 1.9rem;

  font-weight: 700;

  font-family: "Poppins", sans-serif;

  color: #38bdf8;

  letter-spacing: 1px;
}

/* NAV LINKS */

.nav-links {

  display: flex;

  gap: 16px;

  list-style: none;
}

.nav-links a {

  text-decoration: none;

  color: #e2e8f0;

  font-size: 0.95rem;

  font-weight: 500;

  padding: 10px 18px;

  border-radius: 14px;

  transition: 0.35s ease;

  position: relative;
}

.nav-links a:hover {

  color: #38bdf8;

  background:
    rgba(56,189,248,0.12);
}

/* =====================================================
   HERO SECTION
===================================================== */

.video-hero {

  min-height: 75vh;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  padding: 160px 20px 100px;

  position: relative;

  overflow: hidden;
}

/* GLOW EFFECT */

.video-hero::before {

  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  background:
    rgba(56,189,248,0.16);

  border-radius: 50%;

  filter: blur(120px);

  top: -120px;
  right: -120px;
}

.video-hero::after {

  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  background:
    rgba(14,165,233,0.12);

  border-radius: 50%;

  filter: blur(120px);

  bottom: -120px;
  left: -120px;
}

.hero-content {

  max-width: 850px;

  position: relative;

  z-index: 2;

  animation:
    heroFade 1s ease;
}

.hero-subtitle {

  color: #38bdf8;

  letter-spacing: 3px;

  margin-bottom: 18px;

  font-size: 0.85rem;
}

.hero-content h1 {

  font-size: 4.5rem;

  line-height: 1.05;

  margin-bottom: 24px;

  font-family: "Poppins", sans-serif;
}

.hero-content p {

  color: #cbd5e1;

  line-height: 1.9;

  font-size: 1rem;
}

/* =====================================================
   VIDEO SECTION
===================================================== */

#videos_section {

  padding: 100px 20px;
}

/* SECTION TITLE */

.section-heading {

  text-align: center;

  margin-bottom: 70px;
}

.section-heading p {

  color: #38bdf8;

  letter-spacing: 3px;

  margin-bottom: 12px;

  font-size: 0.85rem;
}

.section-heading h2 {

  font-size: 3rem;

  font-family: "Poppins", sans-serif;
}

/* =====================================================
   VIDEO GRID
===================================================== */

.video-grid {

  max-width: 1400px;

  margin: auto;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 28px;

  align-items: start;
}

/* =====================================================
   VIDEO CARD
===================================================== */

.video-card {

  position: relative;

  background:
    rgba(255,255,255,0.04);

  border:
    1px solid rgba(255,255,255,0.06);

  border-radius: 30px;

  overflow: hidden;

  padding: 16px;

  transition: 0.45s ease;

  backdrop-filter: blur(10px);

  opacity: 0;

  transform:
    translateY(60px);
}

/* HOVER */

.video-card:hover {

  transform:
    translateY(-10px);

  box-shadow:
    0 30px 60px rgba(0,0,0,0.45);
}

/* VIDEO */

.video-card video {

  width: 100%;

  height: 620px;

  border-radius: 22px;

  object-fit: contain;

  display: block;

  background: black;
}

/* =====================================================
   OPTIONAL TITLE
===================================================== */

.video-info {

  padding-top: 18px;

  text-align: left;
}

.video-info h3 {

  font-size: 1.1rem;

  margin-bottom: 8px;

  font-family: "Poppins", sans-serif;
}

.video-info p {

  color: #94a3b8;

  line-height: 1.7;

  font-size: 0.92rem;
}

/* =====================================================
   FADE OVERLAY
===================================================== */

.video-card::before {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(56,189,248,0.08),
      transparent
    );

  opacity: 0;

  transition: 0.4s;

  pointer-events: none;
}

.video-card:hover::before {

  opacity: 1;
}

/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes heroFade {

  from {

    opacity: 0;

    transform:
      translateY(40px);
  }

  to {

    opacity: 1;

    transform:
      translateY(0);
  }
}

.video-card.show {

  animation:
    revealCard 0.8s forwards;
}

@keyframes revealCard {

  to {

    opacity: 1;

    transform:
      translateY(0);
  }
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 992px) {

  .hero-content h1 {

    font-size: 3.4rem;
  }

  .section-heading h2 {

    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {

  header {

    padding: 14px 16px;
  }

  .navbar {

    justify-content: center;
  }

  /* HIDE LOGO */

  .logo {

    display: none;
  }

  .nav-links {

    width: 100%;

    justify-content: center;

    gap: 8px;
  }

  .nav-links a {

    font-size: 0.78rem;

    padding: 8px 12px;

    white-space: nowrap;
  }

  .video-hero {

    padding-top: 130px;
  }

  .hero-content h1 {

    font-size: 2.6rem;
  }

  .hero-content p {

    font-size: 0.92rem;
  }

  .section-heading h2 {

    font-size: 2rem;
  }

  .video-grid {

    grid-template-columns: 1fr;

    gap: 28px;
  }

  .video-card {

    padding: 12px;
  }

  .video-card video {

    max-height: 650px;
  }
}

@media (max-width: 480px) {

  .hero-content h1 {

    font-size: 2.2rem;
  }

  .video-card video {

    max-height: 580px;
  }
}

@media (max-width: 992px) {

  .video-grid {

    grid-template-columns:
      repeat(2, 1fr);
  }

}

@media (max-width: 768px) {

  .video-grid {

    grid-template-columns: 1fr;
  }

  .video-card video {

    height: 550px;
  }

}

/* =====================================================
   MORE VIDEOS BUTTON
===================================================== */

.more-videos {

  text-align: center;

  margin-top: 70px;
}

/* BUTTON */

.more-videos button {

  border: none;

  outline: none;

  background:
    linear-gradient(
      135deg,
      #38bdf8,
      #0ea5e9
    );

  padding: 16px 34px;

  border-radius: 60px;

  cursor: pointer;

  position: relative;

  overflow: hidden;

  transition: 0.4s ease;

  box-shadow:
    0 15px 35px rgba(56,189,248,0.28);
}

/* LINK */

.more-videos button a {

  text-decoration: none;

  color: white;

  font-size: 1rem;

  font-weight: 600;

  font-family: "Inter", sans-serif;

  letter-spacing: 0.5px;

  position: relative;

  z-index: 2;
}

/* SHINE EFFECT */

.more-videos button::before {

  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      120deg,
      transparent,
      rgba(255,255,255,0.35),
      transparent
    );

  transition: 0.7s;
}

/* HOVER */

.more-videos button:hover {

  transform:
    translateY(-5px)
    scale(1.03);

  box-shadow:
    0 22px 45px rgba(56,189,248,0.42);
}

.more-videos button:hover::before {

  left: 120%;
}

/* CLICK EFFECT */

.more-videos button:active {

  transform:
    scale(0.96);
}

/* =====================================================
   MOBILE RESPONSIVE
===================================================== */

@media (max-width: 768px) {

  .more-videos {

    margin-top: 50px;
  }

  .more-videos button {

    width: 100%;

    max-width: 280px;

    padding: 14px 20px;
  }

  .more-videos button a {

    font-size: 0.9rem;
  }

}