:root {
    --primary-blue: #3695ff;
    --secondary-yellow: #ffe600;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --super-dark: #0f172a;
    --super-white: #ffffff;
    --hero-gradient: linear-gradient(
        135deg,
        #3695ff 0%,
        #8b5cf6 50%,
        #ec4899 100%
    );
    --glass-bg: rgba(255, 255, 255, 0.7);
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--super-dark);
}

.hero-section {
    background: var(--hero-gradient);
    padding: 120px 0 160px;
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: white;
}

.hero-section .display-3 {
    color: white !important;
}

.hero-section .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.navbar {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.course-img,
.blog-img {
    height: 250px;
    object-fit: cover;
    width: 100%;
    border-bottom: 5px solid rgba(0, 0, 0, 0.05);
}

/* Category Variations */
.cat-coding {
    background: #eef2ff;
    color: #6366f1;
}
.cat-art {
    background: #fff7ed;
    color: #f97316;
}
.cat-science {
    background: #f0fdf4;
    color: #22c55e;
}
.cat-leadership {
    background: #fff1f2;
    color: #f43f5e;
}
.cat-music {
    background: #fdf4ff;
    color: #d946ef;
}
.cat-math {
    background: #fffbeb;
    color: #f59e0b;
}

.section-padding {
    padding: 120px 0;
}

.bg-light-blue {
    background-color: #e0f2fe;
}
.bg-light-yellow {
    background-color: #fef9c3;
}
.bg-light-mint {
    background-color: #dcfce7;
}
.bg-light-pink {
    background-color: #fee2e2;
}

/* Curved Dividers */
.curve-top {
    border-radius: 100px 100px 0 0;
    margin-top: -80px;
    position: relative;
    z-index: 2;
}

/* Refined title */
.section-title {
    font-weight: 800;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 6px;
    background: var(--secondary-yellow);
    margin: 20px auto 0;
    border-radius: 10px;
}

.nav-link {
    font-weight: 700;
    color: var(--super-dark) !important;
    margin: 0 15px;
    font-size: 1.05rem;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.btn-signup {
    background: var(--primary-blue);
    color: white;
    border-radius: 100px;
    padding: 12px 30px;
    font-weight: 800;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-signup:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.05);
}

.category-card {
    min-width: 200px;
    text-align: center;
    padding: 40px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 4px solid rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
}

.category-card:nth-child(even) {
    animation-duration: 8s;
    animation-delay: 1s;
}

.category-card:hover {
    transform: translateY(-15px) rotate(3deg);
    border-color: var(--primary-blue);
    box-shadow: 0 25px 50px rgba(54, 149, 255, 0.2);
}

.category-icon {
    width: 85px;
    height: 85px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

.course-card {
    border: none;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    background: white;
}

.course-card:hover {
    transform: scale(1.03) translateY(-10px);
}

.course-badge {
    background: var(--secondary-yellow);
    color: var(--super-dark);
    font-weight: 800;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(255, 230, 0, 0.3);
}

.blog-card {
    border: none;
    border-radius: 35px;
    overflow: hidden;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

footer {
    background: var(--super-dark);
    color: white;
    padding: 100px 0 40px;
}

.footer-links h5 {
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--secondary-yellow);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero-section h1,
.hero-section p,
.hero-section .gap-3 {
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-img {
    animation: float 5s ease-in-out infinite;
}

/* Decorative Elements */
.hero-section::after {
    content: "★";
    position: absolute;
    top: 10%;
    left: 5%;
    font-size: 2rem;
    color: var(--secondary-yellow);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.decoration-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.1;
    bottom: 10%;
    left: 10%;
}

.decoration-dots {
    position: absolute;
    top: 20%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-image: radial-gradient(
        var(--success-green) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
    opacity: 0.2;
}

/* Juice and Micro-interactions */
.btn-signup {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-signup:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(54, 149, 255, 0.3);
}

.course-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.category-card:active {
    transform: scale(0.95);
}

/* Superhero Navbar Layout */
.navbar-brand-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@media (max-width: 991px) {
    .navbar-brand-center {
        display: none !important;
    }
}

/* Category Slider Arrow Styles */
.category-slider-wrapper {
    position: relative;
    padding: 0 50px;
    margin: 40px 0;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
    left: 0;
}
.next-arrow {
    right: 0;
}

/* Pulse Animation for Buttons */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(54, 149, 255, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(54, 149, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(54, 149, 255, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Category Slider Enhancements */
.category-slider {
    display: flex;
    overflow-x: auto;
    padding: 40px 15px;
    gap: 30px;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

@media (min-width: 1200px) {
    .category-slider {
        justify-content: center;
        overflow-x: visible;
    }
}

.category-slider::-webkit-scrollbar {
    display: none;
}

/* Section Backgrounds */
.bg-light {
    background-color: #f8faff !important;
}

/* Course Card Details */
.course-card .p-4 {
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px);
}

.course-card h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.course-card p {
    flex-grow: 1;
}

/* Slow Wave Animation */
.wave-container svg path {
    animation: waveMove 10s linear infinite alternate;
}

@keyframes waveMove {
    from {
        d: path(
            "M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,122.7C960,117,1056,171,1152,192C1248,213,1344,203,1392,197.3L1440,192L1440,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"
        );
    }
    to {
        d: path(
            "M0,160L48,144C96,128,192,96,288,106.7C384,117,480,171,576,186.7C672,203,768,181,864,160C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,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"
        );
    }
}
