/* ======================
   Digital Learning Platform CSS
   ====================== */

   :root {
    --bg-dark: #0f172a;
    --bg-light: #f1f5f9;
    --card-dark: rgba(255, 255, 255, 0.1);
    --card-light: rgba(0, 0, 0, 0.05);
    --text-dark: #f8fafc;
    --text-light: #1e293b;
    --accent: #6366f1;
    --glass-border: rgba(255, 255, 255, 0.2);
    --beginner: #10b981;
    --intermediate: #f59e0b;
    --advanced: #ef4444;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-dark);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
  }
  
  body.light-mode {
    background: var(--bg-light);
    color: var(--text-light);
  }
  
  #theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    padding: 10px;
    background: var(--accent);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  
  nav, header {
    text-align: center;
    margin: 20px 0;
  }
  
  nav a {
    color: var(--accent);
    margin: 0 10px;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
  }
  
  nav a:hover {
    text-decoration: underline;
  }
  
  /* Highlighted nav links */
  .highlight {
    background: var(--accent);
    color: white !important;
    padding: 6px 12px;
    border-radius: 6px;
  }
  
  .hero {
    position: relative;
    height: 90vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero-content {
    z-index: 2;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
    margin-bottom: 10px;
    color: white;  /* Ensures it's white in both modes */
    font-weight: bold;  /* Bold for emphasis */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add shadow for contrast */
    border: 2px solid white;  /* Add a white border */
    padding: 10px;
    border-radius: 10px;
  }
  
  body.light-mode .hero-title {
    color: white;  /* Ensures it remains white in light mode */
  }
  
  .hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
  }
  
  .cta-btn {
    margin-top: 20px;
    background: var(--accent);
    color: white;
    padding: 12px 28px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  }
  
  .cta-btn:hover {
    transform: scale(1.05);
  }
  
  .spline-3d {
    width: 100%;
    height: 400px;
    border: none;
    margin-top: 30px;
    z-index: 1;
  }
  
  .floating-shapes {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
  }
  
  .shape {
    position: absolute;
    opacity: 0.15;
    animation: float 6s infinite ease-in-out;
  }
  
  .circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--accent);
    top: 20%; left: 10%;
  }
  
  .square {
    width: 70px; height: 70px;
    background: #f59e0b;
    top: 50%; left: 70%;
  }
  
  .triangle {
    width: 0; height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 80px solid #10b981;
    top: 70%; left: 30%;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
  }
  
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 20px;
  }
  
  .filter-bar input {
    padding: 10px;
    border: none;
    border-radius: 10px;
    width: 250px;
  }
  
  .tag {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
  }
  
  .tag:nth-child(1) { background: #64748b; } /* All */
  .tag:nth-child(2) { background: var(--beginner); }
  .tag:nth-child(3) { background: var(--intermediate); }
  .tag:nth-child(4) { background: var(--advanced); }
  
  .tag:hover {
    opacity: 0.9;
  }
  
  .courses {
    padding: 40px 20px;
  }
  
  .course-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
  }
  
  .course-card {
    background: var(--card-dark);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 15px;
    transition: transform 0.4s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  }
  
  body.light-mode .course-card {
    background: var(--card-light);
  }
  
  .course-card:hover {
    transform: scale(1.03);
  }
  
  .course-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
  }
  
  .course-card h3 {
    margin-bottom: 10px;
  }
  
  footer {
    padding: 40px 20px;
    text-align: center;
    background: var(--bg-dark);
    color: #94a3b8;
  }
  
  body.light-mode footer {
    background: var(--bg-light);
    color: #475569;
  }
  