/* 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;
}



nav .logo {
    font-weight: 700;
    font-size: 1.5rem;
}

nav .nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

nav .nav-links li a:hover {
    color: #FFD700;
}

nav .menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
}

/* 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;
    margin: 0.5rem;
}

@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);
}

/* 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);
    }
}

/* Student Feedback Section */
#feedback {
    margin-top: 2rem;
}

.feedback-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.feedback-front {
    background: #1e90ff;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feedback-back {
    background: #00BFFF;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.student-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.feedback-front p {
    font-style: italic;
    font-size: 1rem;
    text-align: center;
}

.feedback-back p {
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 1rem;
}

.student-info {
    text-align: center;
    margin-top: auto;
}

.student-name {
    font-weight: 600;
    color: #FFD700;
    display: block;
}

.student-course {
    font-size: 0.8rem;
    font-style: italic;
    color: #fff;
}


    /* Pricing Section Styling */
    #pricing {
      padding: 4rem 2rem;
      background: #f9fbff;
    }

    #pricing .section-title {
      text-align: center;
      font-size: 2rem;
      margin-bottom: 2rem;
      color: #1E90FF;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1.5rem;
      max-width: 1100px;
      margin: 0 auto;
    }

    .pricing-card {
      background: #fff;
      border-radius: 15px;
      padding: 2rem;
      box-shadow: 0 8px 25px rgba(0,0,0,0.1);
      transition: transform 0.3s;
      border: 2px solid transparent;
    }

    .pricing-card:hover {
      transform: translateY(-8px);
      border-color: #1E90FF;
    }

    .pricing-card h3 {
      font-size: 1.2rem;
      margin-bottom: 0.5rem;
      color: #1E90FF;
    }

    .pricing-price {
      font-size: 1.8rem;
      font-weight: 700;
      margin: 0.5rem 0;
      color: #FF8C00;
    }

    .pricing-duration {
      font-size: 0.9rem;
      color: #555;
    }

    .pricing-features {
      margin: 1rem 0;
      padding-left: 0;
      list-style: none;
    }

    .pricing-features li {
      margin: 0.5rem 0;
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.95rem;
      color: #333;
    }

    .pricing-features li i {
      color: #1E90FF;
    }

    .pricing-btn {
      display: block;
      width: 100%;
      padding: 0.7rem 1rem;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 1rem;
      background: #1E90FF;
      color: #fff;
      transition: 0.3s;
    }

    .pricing-btn:hover {
      background: #FFD700;
      color: #1E90FF;
    }

    /* Most Popular Highlight */
    .popular {
      border-color: #FFD700;
      position: relative;
    }

    .popular::before {
      content: "Most Popular";
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: #FFD700;
      color: #1E90FF;
      padding: 0.3rem 0.8rem;
      font-size: 0.8rem;
      font-weight: 700;
      border-radius: 20px;
    }

/* Contact Section */
.contact {
    background: #f9fbff;
    padding: 4rem 2rem;
    margin-top: 6rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    width: 100%;
}

.contact-form button {
    align-self: flex-start;
}

/* Modal */
#enrollModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

#enrollModal.show {
    display: flex;
}

#enrollModal .modal-content {
    width: 80%;
    max-width: 700px;
    border-radius: 10px;
    background: #fff;
    padding: 2rem;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#enrollModal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

#enrollModal .close-enroll {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}

#enrollModal .close-enroll:hover {
    color: #FFD700;
}


.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;
    text-decoration: none;
}
.show-more-btn a.show-more-btn {
  text-decoration: none;
}


.show-more-btn:hover {
    background: #FFD700;
    color: #1E90FF;
    transform: scale(1.05);
}

.fade-up,
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-up.visible,
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Footer */
footer {
    background: #1E90FF;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}