/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f4f8;
    color: #333;
    scroll-behavior: smooth;
}

section {
    padding: 4rem 2rem;
}

h2.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1E90FF;
}

/* Course Carousel */
.course-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    perspective: 1200px;
    padding-bottom: 2rem;
}

.carousel-card {
    flex: 0 0 300px;
    perspective: 1200px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 420px;
    transform-style: preserve-3d;
    border-radius: 15px;
    transition: transform 0.8s cubic-bezier(.03, .98, .52, .99);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #1E90FF;
}

.carousel-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 1rem;
    transition: transform 0.6s, background 0.5s;
}

.card-front {
    background: #1E90FF;
}

.card-back {
    background: #00BFFF;
    transform: rotateY(180deg);
}

.card-front video {
    width: 100%;
    height: 180px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.card-front:hover video {
    transform: scale(1.07);
}

.card-front h3 {
    margin-bottom: 0.5rem;
    color: #FFD700;
}

.card-back p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-back button.enroll-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 5px;
    background: #FFD700;
    color: #1E90FF;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    
}
.card-back a.enroll-btn {
  text-decoration: none;
}

.card-back button.enroll-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #FFD700;
}

.play-icon {
    font-size: 2rem;
    margin-top: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}
/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #1E90FF, #00BFFF, #FFD700, #FF8C00);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    min-height: 70vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.btn-glow {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    color: #1E90FF;
    background: linear-gradient(45deg, #FFD700, #FF8C00, #FF4500, #FFD700);
    background-size: 400% 400%;
    animation: btnGradient 5s ease infinite;
    transition: 0.3s;
}

@keyframes btnGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.btn-glow:hover {
    box-shadow: 0 0 20px #FFD700;
    transform: scale(1.1);
}


.show-more-btn {
    display: block;
    margin: 2rem auto;
    padding: 0.7rem 1.5rem;
    background: #1E90FF;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.show-more-btn:hover {
    background: #FFD700;
    color: #1E90FF;
    transform: scale(1.05);
}

.carousel-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}

.carousel-card.visible {
    opacity: 1;
    transform: translateY(0);
}
