/* ===============================
   1. GLOBAL THEME & RESET
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", system-ui, monospace;
  background: linear-gradient(120deg, #020617, #020617);
  color: #e5e7eb;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

a {
  text-decoration: none;
  transition: color 0.3s ease;
}

/* ===============================
   2. CONTAINER
=============================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===============================
   3. HEADER & NAV
=============================== */
header {
  padding: 60px 0;
  text-align: center;
  background: radial-gradient(circle at top, #0f172a, #020617);
}

header h1 {
  font-size: 3rem;
  color: #38bdf8;
  animation: fadeDown 1s ease;
  line-height: 1.2;
  margin: 0;
}

header p {
  margin-top: 10px;
  color: #94a3b8;
  animation: fadeUp 1.2s ease;
  font-size: 1.1rem;
}

nav {
  background: #020617;
  border-bottom: 1px solid #0f172a;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#nav-toggle {
  display: none;
}

#nav-toggle-label {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
}

#nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#nav-toggle:checked ~ #nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#nav-toggle:checked ~ #nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ #nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px 0;
  list-style: none;
  flex-wrap: wrap;
  transition: all 0.3s ease;
}

#nav-toggle:checked ~ ul {
  display: flex;
}

nav a {
  color: #e5e7eb;
  font-weight: 500;
  position: relative;
  padding: 8px 5px;
  font-size: 1rem;
  display: inline-block;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #38bdf8;
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  width: 0;
  background: #38bdf8;
  border-radius: 2px;
  transition: all 0.35s ease;
}

/* ===============================
   4. HERO SECTION
=============================== */
.hero {
  padding: 80px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  animation: fadeUp 1s ease;
  color: #f1f5f9;
}

.hero p {
  color: #94a3b8;
  margin-bottom: 30px;
  animation: fadeUp 1.3s ease;
  font-size: 1.1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   5. BUTTONS (Global)
=============================== */
.cta-button,
button,
.my-courses-btn {
  display: inline-block;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  text-align: center;
  min-height: 44px;
}

.cta-button:hover,
button:hover,
.my-courses-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

/* ===============================
   6. SECTIONS & CARDS GRID
=============================== */
.features,
.tutorials,
.premium-courses,
.contact {
  padding: 60px 0;
  text-align: center;
}

.features h2,
.tutorials h2,
.premium-courses h2,
.contact h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #020617;
  border: 1px solid #0f172a;
  padding: 30px;
  border-radius: 16px;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card:hover {
  border-color: #38bdf8;
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.2);
}

.card h3 {
  color: #38bdf8;
  margin-bottom: 15px;
  font-size: 1.25rem;
}

.card p {
  color: #cbd5f5;
  font-size: 1rem;
  line-height: 1.7;
}

/* ===============================
   7. TESTIMONIALS
=============================== */
.testimonials {
  background: #0f172a;
  padding: 60px 0;
}

.testimonials h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 40px;
  text-align: center;
}

.testimonials blockquote {
  font-style: italic;
  color: #cbd5f5;
  margin: 20px auto;
  padding: 30px;
  border-left: 4px solid #38bdf8;
  background: #020617;
  border-radius: 12px;
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
  position: relative;
}

.testimonials blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #38bdf8;
  position: absolute;
  top: 10px;
  left: 20px;
  opacity: 0.5;
}

/* ===============================
   8. FOOTER
=============================== */
footer {
  padding: 40px 0;
  text-align: center;
  background: #020617;
  border-top: 1px solid #0f172a;
  color: #94a3b8;
}

footer ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
  flex-wrap: wrap;
  list-style: none;
}

footer a {
  color: #94a3b8;
  font-size: 1rem;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #38bdf8;
}

/* ===============================
   9. ANIMATIONS
=============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ===============================
   10. MOBILE RESPONSIVE
=============================== */
/* Large Tablets (1024px and below) */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }
  header h1 {
    font-size: 2.5rem;
  }
  .hero h2 {
    font-size: 2rem;
  }
  nav ul {
    gap: 20px;
  }
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .card {
    padding: 25px;
  }
}

/* Tablets and Small Laptops (768px and below) */
@media (max-width: 768px) {
  #nav-toggle-label {
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #020617;
    border-top: 1px solid #0f172a;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  }
  #nav-toggle:checked ~ ul {
    display: flex;
  }
  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
  }
  body {
    font-size: 15px;
  }
  header h1 {
    font-size: 2.2rem;
  }
  .hero h2 {
    font-size: 1.8rem;
  }
  .features h2,
  .tutorials h2,
  .premium-courses h2,
  .contact h2,
  .testimonials h2 {
    font-size: 1.8rem;
  }
  .container {
    padding: 0 15px;
  }
  .hero {
    padding: 60px 20px;
  }
  .features,
  .tutorials,
  .premium-courses,
  .contact,
  .testimonials {
    padding: 50px 0;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
  }
  .card {
    padding: 20px;
    border-radius: 12px;
  }
  .testimonials blockquote {
    padding: 25px;
    font-size: 1rem;
    margin: 15px auto;
  }
  footer ul {
    gap: 15px;
  }
}

/* Large Phones (480px and below) */
@media (max-width: 480px) {
  header {
    padding: 40px 0;
  }
  .hero {
    padding: 50px 0;
  }
  .features,
  .tutorials,
  .premium-courses,
  .contact,
  .testimonials {
    padding: 40px 0;
  }
  header h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .features h2,
  .tutorials h2,
  .premium-courses h2,
  .contact h2,
  .testimonials h2 {
    font-size: 1.5rem;
  }
  .cta-button,
  button,
  .my-courses-btn {
    padding: 14px 20px;
    font-size: 0.95rem;
    width: 100%;
    max-width: 300px;
  }
  .card {
    padding: 18px;
  }
  .testimonials blockquote {
    padding: 20px;
    font-size: 0.95rem;
  }
  footer {
    padding: 30px 0;
  }
  footer ul {
    flex-direction: column;
    gap: 10px;
  }
}

.course-locked {
  width: 100%;
  height: 220px;              /* 🔑 same height for all cards */
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;        /* dark fallback */
  display: flex;
  align-items: center;
  justify-content: center;
}


.course-locked img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* 👈 image cut nahi hogi */
  object-position: center;
}

