:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  }

  body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
  }

  /* Image Placeholders */
  .img-placeholder {
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    border-radius: 0.5rem;
  }

  .subject-icon-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
  }

  .biology-icon { background: var(--gradient-success); }
  .chemistry-icon { background: var(--gradient-warning); }
  .physics-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
  .english-icon { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
  .logical-icon { background: linear-gradient(135deg, #00b8d9 0%, #0088cc 100%); }

  .faculty-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto;
  }

  .college-logo-placeholder {
    height: 80px;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
  }

  .college-logo-placeholder:hover {
    background: #e2e8f0;
    border-color: var(--primary-color);
    color: var(--primary-color);
  }

  /* Hero Section Enhancements */
  .hero {
    min-height: 80vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="400" cy="100" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="600" cy="300" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="800" cy="150" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="300" cy="400" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="700" cy="500" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
  }

  .hero-illustration-placeholder {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
  }

  /* Card Enhancements */
  .feature-card, .success-card, .subject-card, .faculty-card, .plan-card, .news-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
  }

  .feature-card:hover, .success-card:hover, .subject-card:hover, .faculty-card:hover, .plan-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  /* Stats Section */
  .stat-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
  }

  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

  .stat-number {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Mobile App Section */
  .mobile-app-placeholder {
    width: 300px;
    height: 500px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 2rem;
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  }

  .mobile-app-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #374151;
    border-radius: 3px;
  }

  /* Analytics Dashboard */
  .analytics-placeholder {
    width: 100%;
    height: 400px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .chart-placeholder {
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
  }

  /* Button Enhancements */
  .btn {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
  }

  .btn-primary {
    background: var(--gradient-primary);
    border: none;
  }

  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  /* Navigation Enhancements */
  .navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: none;
    padding: 1rem 0;
  }

  .header.scrolled {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
  }

  .header.scrolled .navbar-brand {
    font-size: 1.3rem;
  }

  /* Ensure content doesn't get hidden under navbar when it becomes fixed */
  body.index-page {
    padding-top: 0;
  }

  /* Main content spacing adjustments */
  .main {
    margin-top: 80px; /* Space for the header */
  }

  /* Hero sections specific spacing */
  .hero.section {
    padding-top: 6rem;
  }

  /* Other page sections spacing */
  .quiz-setup-section,
  .dashboard-section,
  .auth-section,
  .content-section,
  .quiz-history-section {
    padding-top: 6rem;
  }

  /* Adjust hero background to start from top */
  .hero-bg {
    /* top: -80px; */
    height: calc(100% + 80px);
  }

  /* Other hero sections on different pages */
  .practice-hero,
  .study-hero,
  .contact-hero,
  .about-hero {
    margin-top: 80px;
    padding-top: 4rem;
  }

  /* When header becomes fixed, adjust main content */
  .header.scrolled ~ .main {
    margin-top: 0;
  }

  @media (max-width: 768px) {
    .main {
      margin-top: 70px;
    }
    
    .hero.section {
      padding-top: 4rem;
    }
    
    .quiz-setup-section,
    .dashboard-section,
    .auth-section,
    .content-section,
    .quiz-history-section {
      padding-top: 4rem;
    }
    
    .practice-hero,
    .study-hero,
    .contact-hero,
    .about-hero {
      margin-top: 70px;
      padding-top: 3rem;
    }
  }

  /* Responsive Enhancements */
  @media (max-width: 768px) {
    .hero-illustration-placeholder {
      height: 250px;
      font-size: 2rem;
    }
    
    .mobile-app-placeholder {
      width: 250px;
      height: 400px;
    }
    
    .stat-number {
      font-size: 2rem;
    }
  }

  /* Animation Classes */
  .animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
  }

  .animate-bounce {
    animation: bounce 1s infinite;
  }

  @keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
    50% { transform: none; animation-timing-function: cubic-bezier(0,0,0.2,1); }
  }

/* from index.php */

    /* Enhanced CSS for Professional Placeholders */
    .img-placeholder {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 3rem;
        border-radius: 1rem;
        transition: all 0.3s ease;
      }
    
      .subject-icon-placeholder {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        transition: transform 0.3s ease;
      }
    
      .subject-icon-placeholder:hover {
        transform: scale(1.1);
      }
    
      .biology-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
      .chemistry-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
      .physics-icon { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
      .english-icon { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
      .logical-icon { background: linear-gradient(135deg, #00b8d9 0%, #0088cc 100%); }
      
      .faculty-img-placeholder {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 2rem;
        margin: 0 auto;
        transition: all 0.3s ease;
      }
    
      .faculty-img-placeholder:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
      }
    
      .college-logo-placeholder {
        height: 80px;
        background: #f8fafc;
        border: 2px dashed #cbd5e1;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-weight: 700;
        text-align: center;
        padding: 1rem;
        transition: all 0.3s ease;
        font-size: 0.9rem;
      }
    
      .college-logo-placeholder:hover {
        background: #e2e8f0;
        border-color: #2563eb;
        color: #2563eb;
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      }
    
      .hero-illustration-placeholder {
        width: 100%;
        height: 400px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 4rem;
        transition: all 0.3s ease;
      }
    
      .hero-illustration-placeholder:hover {
        transform: scale(1.02);
        background: rgba(255, 255, 255, 0.15);
      }
    
      .mobile-app-placeholder {
        width: 300px;
        height: 500px;
        background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
        border-radius: 2rem;
        position: relative;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.1rem;
        text-align: center;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        transition: all 0.3s ease;
      }
    
      .mobile-app-placeholder:hover {
        transform: translateY(-10px);
        box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.6);
      }
    
      .mobile-app-placeholder::before {
        content: '';
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 6px;
        background: #374151;
        border-radius: 3px;
      }
    
      .analytics-placeholder {
        width: 100%;
        height: 400px;
        background: white;
        border-radius: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        transition: all 0.3s ease;
      }
    
      .analytics-placeholder:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
      }
    
      .chart-placeholder {
        height: 60px;
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        border-radius: 0.5rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
        transition: all 0.3s ease;
      }
    
      .chart-placeholder:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
      }
    
      .chart-placeholder:last-child {
        margin-bottom: 0;
      }
    
      /* Enhanced card animations */
      .feature-card, .success-card, .subject-card, .faculty-card, .plan-card, .news-card {
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
      }
    
      .feature-card:hover, .success-card:hover, .subject-card:hover, .faculty-card:hover, .plan-card:hover, .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-color: #2563eb;
      }
    
      /* Stats enhancement */
      .stat-card {
        background: white;
        border-radius: 1rem;
        padding: 2rem;
        text-align: center;
        transition: all 0.3s ease;
        border: 1px solid #e2e8f0;
      }
    
      .stat-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        border-color: #2563eb;
      }
    
      .stat-number {
        font-size: 2.5rem;
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        font-weight: 800;
      }
    
      /* Responsive adjustments */
      @media (max-width: 768px) {
        .hero-illustration-placeholder {
          height: 250px;
          font-size: 2.5rem;
        }
        
        .mobile-app-placeholder {
          width: 250px;
          height: 400px;
        }
        
        .stat-number {
          font-size: 2rem;
        }
    
        .analytics-placeholder {
          height: 300px;
          padding: 1rem;
        }
    
        .chart-placeholder {
          height: 45px;
          font-size: 0.8rem;
        }
      }
    
      /* Additional animations */
      @keyframes pulse-glow {
        0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
        70% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
        100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
      }
    
      .plan-card.popular {
        animation: pulse-glow 2s infinite;
      }
    

/* Mobile Header Fixes */
@media (max-width: 1199px) {
  .header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem !important;
    flex-shrink: 0;
  }
  
  .header-buttons .btn {
    font-size: 12px;
    padding: 4px 8px;
    white-space: nowrap;
  }
  
  .header .container-fluid {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .navbar-brand {
    flex-shrink: 1;
    min-width: 0;
  }
  
  .navbar-brand span {
    font-size: 18px !important;
  }
  
  .navbar-brand img {
    height: 40px !important;
  }

}

@media (max-width: 768px) {
  .header-buttons {
    gap: 0.25rem !important;
  }
  
  .header-buttons .btn {
    font-size: 11px;
    padding: 3px 6px;
  }
  
  .navbar-brand span {
    font-size: 16px !important;
  }
  
  .navbar-brand img {
    height: 35px !important;
  }
  
  .mobile-nav-toggle {
    margin-right: 5px !important;
    font-size: 24px !important;
  }
}

@media (max-width: 480px) {
  .header-buttons .btn-sm {
    font-size: 10px;
    padding: 2px 4px;
  }
  
  .navbar-brand span {
    font-size: 14px !important;
  }
  
  .header-buttons {
    gap: 0.125rem !important;
  }
}

/* Ensure hero section stays below mobile menu */
.hero {
  position: relative;
  z-index: 1;
}

/* ULTRA-HIGH Z-INDEX MOBILE NAV FIX */
@media (max-width: 1199px) {
  .mobile-nav-active .navmenu {
    position: fixed !important;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 2147483646 !important;
    background: rgba(33, 37, 41, 0.95) !important;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .mobile-nav-active .navmenu > ul {
    position: relative !important;
    width: 90vw;
    max-width: 400px;
    margin: 70px auto 0 auto;
    background: #fff !important;
    border-radius: 8px;
    z-index: 2147483647 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    height: auto !important;
    max-height: calc(100vh - 100px) !important;
    overflow-y: auto !important;
    padding-bottom: 20px;
    display: block !important;
  }
  .mobile-nav-active .mobile-nav-toggle {
    z-index: 2147483648 !important;
    position: fixed !important;
    top: 15px; right: 15px;
  }
}


