/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* ================= BODY : DARK BLUE TEXTURED BACKGROUND ================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  line-height: 1.6;

  /* Dark blue base + texture */
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.05), transparent 40%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.06), transparent 40%),

    radial-gradient(800px 500px at 15% 10%, rgba(80,140,255,0.18), transparent 60%),
    radial-gradient(900px 600px at 85% 90%, rgba(40,90,200,0.22), transparent 65%),

    linear-gradient(
      180deg,
      #07121f 0%,
      #0b1a2d 50%,
      #07121f 100%
    );

  background-size:
    6px 6px,
    7px 7px,
    8px 8px,
    100% 100%,
    100% 100%,
    100% 100%;

  background-attachment: fixed;
  position: relative;
  overflow-x: hidden;
}

/* ================= GLOBAL GLARE + MOTION (VISIBLE) ================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.08),
      transparent 35%,
      transparent 65%,
      rgba(255,255,255,0.04)
    ),
    radial-gradient(
      1000px 600px at 30% 20%,
      rgba(120,180,255,0.25),
      transparent 60%
    );

  pointer-events: none;
  z-index: 0;
  animation: blueDrift 40s ease-in-out infinite alternate;
}

@keyframes blueDrift {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* ================= LINKS ================= */
a {
  color: inherit;
  text-decoration: none;
}

/* ================= LAYOUT ================= */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ================= HEADER ================= */
.header {
  background: linear-gradient(180deg, #0b1a2d, #07121f);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}


.logo {
  font-weight: bold;
  letter-spacing: 2px;
}
.header {
  height: 72px;               /* lock height */
  display: flex;
  align-items: center;
}

/* ================= NAV ================= */
.nav a {
  margin-left: 18px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  opacity: 0.85;
  transition: all 0.25s ease;
}

.nav a:hover {
  background: rgba(255,183,3,0.25);
  color: #ffcc33;
  opacity: 1;
}

/* ================= SECTIONS (TRANSLUCENT) ================= */
.hero,
.section,
.cta {
  padding: 90px 0;
  background:
    linear-gradient(
      180deg,
      rgba(7,18,31,0.88),
      rgba(7,18,31,0.95)
    );
  backdrop-filter: blur(3px);
  position: relative;
  z-index: 1;
}

/* Dark section */
.dark {
  background:
    linear-gradient(
      180deg,
      rgba(10,25,45,0.9),
      rgba(7,18,31,0.96)
    );
}

/* ================= HERO ================= */
.hero {
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 35px;
  opacity: 0.9;
}
/* ================= YOUTUBE PREVIEW SECTION ================= */
.youtube-section {
  padding: 30px 0 40px;   /* compact section height */
  background:
    linear-gradient(
      180deg,
      rgba(7,18,31,0.88),
      rgba(7,18,31,0.94)
    );
  text-align: center;
}

/* Small contextual label */
.youtube-label {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 14px;
}

/* Compact video container */
.video-wrapper {
  position: relative;
  max-width: 420px;      /* compact desktop size */
  margin: 0 auto;
  padding-top: 24%;     /* short height (badge-like) */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
}

/* Video iframe */
.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .youtube-section {
    padding: 35px 0 45px;
  }

  .video-wrapper {
    max-width: 100%;
    padding-top: 56.25%; /* normal 16:9 on mobile */
  }
}


/* ================= BUTTON ================= */
.btn-primary {
  padding: 14px 34px;
  border: 1px solid #ffffff;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: #ffffff;
  color: #07121f;
  box-shadow:
    0 0 0 1px rgba(255,204,51,0.7),
    0 12px 32px rgba(255,204,51,0.4);
}

/* ================= GRID ================= */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

/* ================= FEATURE CARDS ================= */
.feature-card {
  position: relative;
  padding: 24px 26px;        /* reduced padding (earlier ~38px) */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.3s ease;
  text-align: center;        /* centers heading + text */
}

/* Feature card heading spacing */
.feature-card h3 {
  margin-bottom: 14px;
}


.feature-card.blue {
  background: linear-gradient(
    180deg,
    rgba(60,120,255,0.25),
    rgba(7,18,31,0.95)
  );
}

.feature-card.amber {
  background: linear-gradient(
    180deg,
    rgba(255,183,3,0.25),
    rgba(7,18,31,0.95)
  );
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.7);
  border-color: #ffcc33;
}

.section h2 {
  margin-bottom: 28px;
}

.section .grid-3 {
  margin-top: 20px;
}


/* ================= BADGE ================= */
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 12px;
  background: #ffcc33;
  color: #000;
}
/* CENTER CTA CONTENT */
.cta {
  text-align: center;
}

.cta .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ================= FOOTER ================= */
.footer {
  background: #07121f;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
}

/* ================= ACCESSIBILITY ================= */
@media (prefers-reduced-motion: reduce) {
  body::after {
    animation: none;
  }
}


/* ================= Study Material Page Coming Soon tag ================= */
.coming-soon {
  color: #ffcc33;          /* gold */
  font-weight: 600;
  font-size: 0.9em;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}

/* ================= Active nav highlight – Netlify safe ================= */
.page-home .nav a[href="/"],
.page-home .nav a[href="index.html"],

.page-doubt .nav a[href="doubt-killers.html"],
.page-courses .nav a[href="free-courses.html"],
.page-study .nav a[href="study-material.html"],
.page-tests .nav a[href="test-zone.html"],
.page-contact .nav a[href="contact.html"] {
  background: rgba(255,183,3,0.25);
  color: #ffcc33;
  font-weight: 600;
}
/* ================= HAMBURGER MENU ================= */

.nav-wrapper {
  display: flex;
  align-items: center;
}

/* Hide checkbox */
#menu-toggle {
  display: none;
}

/* Hamburger icon */
.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  transition: 0.3s;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .menu-icon {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 72px; /* header height */
    left: 0;
    width: 100%;
    background: #07121f;
    flex-direction: column;
    align-items: center;
    display: none;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .nav a {
    margin: 10px 0;
    font-size: 14px;
  }

  /* Toggle menu */
  #menu-toggle:checked + .menu-icon + .nav {
    display: flex;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .nav {
    display: flex !important;
  }
}


/* ================= Mobile Hero Spacing Fix ================= */
@media (max-width: 768px) {
  .hero {
    padding: 70px 0;
  }

  .hero h1 {
    line-height: 1.25;
  }
}

.section h2,
.hero h1 {
  letter-spacing: 0.4px;
}


/* =====================================================
   Test Zone PAGE – FINAL BADGE & CARD FIX (LOCKED)
   ===================================================== */

/* Ensure space for badge so it never overlaps text */
.page-tests .feature-card {
  position: relative;
  padding-top: 48px; /* same logic as Free Courses */
}

/* Badge position – identical behavior to Watch Now */
.page-tests .feature-card .badge {
  position: absolute;
  top: 14px;
  right: 16px;
}
.feature-card {
  cursor: pointer;
}


/* IMPORTANT:
   Do NOT add color, font-weight, or size here.
   Badge will inherit exact Watch Now styles globally.
*/

/* =====================================================
   FREE COURSES – CTA ABOVE HEADING (CONSISTENT WITH TEST ZONE)
   ===================================================== */

.page-courses .feature-card {
  position: relative;
  padding-top: 48px; /* space reserved for Watch Now badge */
}

.page-courses .feature-card .badge.watch {
  position: absolute;
  top: 14px;
  right: 16px;
}

/* ================= HERO BACKGROUND SYSTEM (LOCKED) ================= */

.hero {
  position: relative;
  overflow: hidden;
}

/* Any SVG used as hero background */
.hero-physics-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
    z-index: 0;
}

/* Hero text always above animation */
.hero .container {
  position: relative;
  z-index: 1;
}

.logo {
  font-weight: 700;
  letter-spacing: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 204, 51, 0.45); /* muted gold */
  border-radius: 6px;
}

.logo-physics {
  font-weight: 400;
  opacity: 0.85;
}

.logo-mafia {
  font-weight: 800;
  color: #ffcc33;
}


.logo:hover {
  box-shadow: 0 0 18px rgba(255, 204, 51, 0.45);
}
.logo {
  transition: box-shadow 0.25s ease;
}
