* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    overflow-x: hidden;
}

/* Navbar Styles */
.btm {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btm-primary {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btm-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.btm-secondary {
    background: #fff;
    color: #7c3aed;
    border: 2px solid #7c3aed;
}

.btm-secondary:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Hero Section */
.courses-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 1.5rem 4rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a3a 50%, #2d1b69 100%);
    overflow: hidden;
}

.courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23a855f7" fill-opacity="0.1" d="M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,122.7C672,107,768,117,864,138.7C960,160,1056,192,1152,197.3C1248,203,1344,181,1392,170.7L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E') no-repeat bottom center/cover,
        radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.courses-hero-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.courses-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.courses-hero .gradient-text {
    background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.courses-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards 0.7s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 1.5rem;
    background: #fff;
    text-align: center;
}

.benefits-section h2 {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 2rem;
    position: relative;
}

.benefits-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 2px;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 1s ease forwards;
}

.benefit-card:nth-child(1) {
    --delay: 1;
}

.benefit-card:nth-child(2) {
    --delay: 2;
}

.benefit-card:nth-child(3) {
    --delay: 3;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.benefit-icon {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Courses Section */
.courses-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
}

.courses-section h2 {
    font-size: 2rem;
    color: #7c3aed;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.courses-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 2px;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.course-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 1s ease forwards;
    animation-delay: calc(var(--delay) * 0.2s);
}

.course-card:nth-child(1) {
    --delay: 1;
}

.course-card:nth-child(2) {
    --delay: 2;
}

.course-card:nth-child(3) {
    --delay: 3;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #7c3aed, #a855f7) border-box;
}

.course-icon {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.course-card:hover .course-icon {
    transform: scale(1.2) rotate(5deg);
}

.course-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.course-card .course-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.course-card p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.course-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.course-btn:hover::after {
    left: 100%;
}

.course-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
}

/* Why Us Section */
.why-us-section {
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    text-align: center;
}

.why-us-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.why-us-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #fff;
    border-radius: 2px;
}

.why-us-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: cardFadeIn 1s ease forwards;
}

.why-us-card:nth-child(1) {
    --delay: 1;
}

.why-us-card:nth-child(2) {
    --delay: 2;
}

.why-us-card:nth-child(3) {
    --delay: 3;
}

.why-us-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.why-us-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.why-us-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.why-us-card p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #0a0a1a 0%, #14142b 50%, #1f1247 100%);
    padding: 4rem 1.5rem 2rem;
    position: relative;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.8);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    padding: 1rem;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #9333ea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover i {
    transform: rotate(360deg);
}

.footer-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #9333ea;
    transform: translateY(-3px) scale(1.2);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #9333ea;
    margin-bottom: 1rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #581c87, #9333ea);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-section:hover .footer-title::after {
    width: 60px;
}

.footer-menu {
    list-style: none;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: #9333ea;
    transform: translateX(5px);
}

.footer-contact p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
}

.newsletter-input {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.85rem;
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.newsletter-input:invalid:not(:placeholder-shown) {
    border: 2px solid #ef4444;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #581c87, #9333ea);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.newsletter-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.newsletter-btn:hover::after {
    left: 100%;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 28, 135, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(88, 28, 135, 0.3);
    position: relative;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {

    .courses-hero {
        padding: 4rem 1rem 3rem;
    }

    .courses-hero h1 {
        font-size: 2rem;
    }

    .courses-hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .benefits-section,
    .courses-section,
    .why-us-section {
        padding: 3rem 1rem;
    }

    .benefits-container,
    .courses-container,
    .why-us-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links,
    .footer-logo {
        justify-content: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

    .newsletter-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .courses-hero h1 {
        font-size: 1.8rem;
    }

    .courses-hero p {
        font-size: 0.9rem;
    }

    .benefits-section h2,
    .courses-section h2,
    .why-us-section h2 {
        font-size: 1.5rem;
    }

    .benefit-card h3,
    .course-card h3,
    .why-us-card h3 {
        font-size: 1.1rem;
    }

    .benefit-card p,
    .course-card p,
    .why-us-card p {
        font-size: 0.8rem;
    }

    .course-btn {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-title {
        font-size: 1rem;
    }

    .footer-link,
    .footer-contact p,
    .footer-description {
        font-size: 0.8rem;
    }
}

/* Ripple Animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}