/* ==== Global Styles ==== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to bottom right, #e0f2fe, #ffffff);
  color: #1f2937;
}

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

h1, h2, h3, h4 {
  font-weight: 700;
}

button {
  cursor: pointer;
}

/* ==== Navbar ==== */
/* ==== Navbar ==== */
header {
  background-color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: relative;
  z-index: 5;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 80px;
  height: auto;
  border-radius: 8px;
  display: block;
  z-index: 10;
  position: relative;
}

header h1 {
  font-size: 1.5rem;
  color: #2563eb;
  margin: 0;
  padding: 0;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-weight: 500;
  color: #2563eb;
}

nav a:hover {
  text-decoration: underline;
  color: #1e40af;
}

/* ==== Hero Section ==== */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  background: #eff6ff;
}

.hero h2 {
  font-size: 3rem;
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #475569;
  font-size: 1.125rem;
}
/* ==== About Section ==== */
.about {
  background-color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2.5rem;
  color: #1d4ed8;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1.125rem;
  color: #475569;
  line-height: 1.8;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-secondary {
  border: 2px solid #2563eb;
  color: #2563eb;
  background-color: transparent;
}

.btn-secondary:hover {
  background-color: #dbeafe;
}

/* ==== Features Section ==== */
.features {
  padding: 4rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features h3 {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  color: #1e3a8a;
}

.feature-cards {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .feature-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: #2563eb;
}

.feature-card p {
  color: #64748b;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.feature-card a {
  font-weight: 600;
  color: #2563eb;
  font-size: 0.9rem;
}

.feature-card a:hover {
  text-decoration: underline;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  padding: 1.5rem;
  background-color: #f9fafb;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 3rem;
}
/* ==== Skills Section ==== */
.skills {
  padding: 4rem 2rem;
  background: #f8fafc;
  text-align: center;
}

.skills h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #1d4ed8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card img {
  width: 60px;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.1rem;
  color: #2563eb;
  margin: 0;
}
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 1rem;
  z-index: 2;
}

.skill-card.locked-skill {
  position: relative;
  cursor: not-allowed;
  filter: grayscale(0.6);
  pointer-events: auto;
}
/* ------------------------------
   🌐 RESPONSIVE DESIGN SETTINGS
--------------------------------*/

/* Default styles (for laptops & desktops) already go above */

/* 🔹 Tablets (width below 1024px) */
@media (max-width: 1024px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 90%;
    margin: 0 auto;
  }

  .navbar, .header {
    flex-direction: column;
    align-items: center;
  }

  .hero img {
    width: 80%;
  }
}

/* 🔹 Large phones & small tablets (below 768px) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .section {
    padding: 30px 15px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .sidebar {
    display: none; /* hide sidebar for smaller screens */
  }
}

/* 🔹 Small phones (below 480px) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
    line-height: 1.4;
  }

  header h1, .title {
    font-size: 20px;
    text-align: center;
  }

  .container {
    padding: 10px;
  }

  .card {
    width: 100%;
    margin-bottom: 15px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }

  .hero img {
    width: 100%;
  }
}
/* 🌐 SKILLEXA RESPONSIVE DESIGN — MOBILE FRIENDLY LIKE MMD */
@media (max-width: 768px) {

  /* NAVBAR */
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 220px;
    padding: 1rem;
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  /* HERO / HEADER SECTIONS */
  .hero,
  .header-section,
  .top-section {
    text-align: center;
    flex-direction: column;
    padding: 2rem 1rem;
  }

  .hero h1,
  .hero h2,
  .header-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero p,
  .header-description {
    font-size: 0.9rem;
  }

  /* DASHBOARD CARDS */
  .skills-container,
  .cards,
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .skill-card,
  .feature-card,
  .course-card {
    width: 100%;
  }

  /* AI TUTOR & JUDGE PAGE */
  .tutor-container,
  .judge-container {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .tutor-avatar,
  .judge-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 1rem;
  }

  .tutor-content,
  .judge-content {
    width: 100%;
  }

  /* CHATBOT PAGE */
  .chatbox {
    width: 100%;
    height: 70vh;
    padding: 1rem;
  }

  .chat-input-area {
    flex-direction: column;
    gap: 0.7rem;
  }

  /* CERTIFICATE PAGE */
  .certificate-container {
    width: 100%;
    padding: 1rem;
  }

  .certificate-box {
    width: 100%;
    padding: 1rem;
  }

}
