/* === Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f1f5f9;
    transition: background-color 0.3s, color 0.3s;
}

/* === Navbar === */
.navbar-brand {
    font-size: 1.6rem;
    letter-spacing: 1px;
}

/* === Hero Section === */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    height: 100vh;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background-color: rgba(0,0,0,0.6);
}
.hero-content h1, .hero-content p {
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    color: #fff;
}
.hero-btn {
    margin-top: 10px;
    padding: 12px 25px;
    font-weight: 500;
    border-radius: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Mobile fix for hero video */
@media (max-width: 576px) {
    .hero-section {
        height: 70vh;
    }
    .hero-video {
        object-fit: cover;
        height: 100%;
    }
    .hero-btn {
        display: block;
        width: 80%;
        margin: 10px auto;
        font-size: 0.9rem;
        padding: 8px 18px;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}

/* === Courses Cards === */
#coursesContainer .card {
    transition: transform 0.3s, box-shadow 0.3s;
}
#coursesContainer .card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* === Counters & Progress Bars === */
.counter {
    font-size: 2.8rem;
    font-weight: 700;
    color: #22c55e;
}
.counter-label {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 5px;
}
.progress {
    height: 6px;
    border-radius: 3px;
}

/* === Scroll Animations === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === News Carousel === */
.news-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}
.news-carousel::-webkit-scrollbar { display: none; }
.news-card {
    min-width: 250px;
    flex: 0 0 auto;
    margin-right: 1rem;
    transition: transform 0.3s;
    text-align: center;
}
.news-card:hover {
    transform: translateY(-5px);
}

/* === Sidebar & Dashboard === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    overflow-y: auto;
}
.sidebar h2 {
    margin-top: 0;
}
.sidebar a {
    display: block;
    color: #cbd5f5;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 6px;
}
.sidebar a:hover {
    background: #1e293b;
    color: #fff;
}
.main, .main-content {
    margin-left: 240px;
    padding: 20px;
}

/* === Footer === */
.developer-footer{
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 40px 20px;
  text-align: center;
}
.footer-title{
  color: #ffffff;
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.footer-text{
  color: #cbd5e1;
  font-size: 16px;
}
.dev-link{
  color: #22c55e;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}
.dev-link:hover{
  color: #4ade80;
  text-decoration: underline;
}

/* === Responsive === */
@media(max-width:800px) {
    .sidebar {
        position: relative;
        width: 100%;
        display: flex;
        gap: 10px;
        overflow: auto;
    }
    .main, .main-content { margin-left: 0; }
}
@media (max-width: 992px) {
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section p { font-size: 1.1rem; }
    .news-carousel { overflow-x: scroll; }
}
