:root {
    --primary-color: #667eea;
    --primary-dark: #5568d3;
    --secondary-color: #764ba2;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1e293b;
    --light-bg: #f8fafc;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ============================================
   HERO SECTION - Ultra Modern
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 90vh;
    position: relative;
    padding: 100px 0 150px;
}

.min-vh-75 {
    min-height: 75vh;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero-bg-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: rgba(118, 75, 162, 0.3);
    bottom: -150px;
    left: -100px;
    animation-delay: 2s;
}

.hero-bg-shapes .shape-3 {
    width: 300px;
    height: 300px;
    background: rgba(102, 126, 234, 0.2);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-badge {
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

.btn {
    font-weight: 600;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-light:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.counter {
    font-size: 2.5rem;
}

/* Hero Image with Floating Cards */
.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.main-hero-image {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.floating-card {
    position: absolute;
    z-index: 2;
    animation: floatCard 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating-card .card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wave at Bottom */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 120px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 80px 0;
}

.bg-primary-soft {
    background-color: rgba(102, 126, 234, 0.1);
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    margin-bottom: 20px;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    transition: var(--transition);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

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

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.feature-link:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
    display: inline-block;
}

/* ============================================
   WHY SECTION
   ============================================ */
.why-section {
    padding: 80px 0;
}

.why-item {
    transition: var(--transition);
    padding: 15px;
    border-radius: 12px;
}

.why-item:hover {
    background: white;
    box-shadow: var(--shadow);
    transform: translateX(10px);
}

/* ============================================
   COURSE CARDS - Premium Design
   ============================================ */
.courses-section {
    padding: 80px 0;
}

.course-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.course-card:hover::before {
    transform: scaleX(1);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
}

.course-card-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-badge .badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.course-popular {
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.course-card-body {
    padding: 0 20px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

.course-description {
    font-size: 0.95rem;
    flex-grow: 1;
}

.instructor-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-info-soft {
    background-color: rgba(59, 130, 246, 0.1);
}

.bg-success-soft {
    background-color: rgba(16, 185, 129, 0.1);
}

.course-footer {
    margin-top: auto;
}

.price-value {
    font-size: 1.5rem;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
    padding: 80px 0;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-text {
    font-style: italic;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.8;
}

.stars i {
    font-size: 1.1rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0;
    color: white;
}

.cta-bg-shapes .cta-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.cta-shape-1 {
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    top: -200px;
    left: -100px;
}

.cta-shape-2 {
    width: 500px;
    height: 500px;
    background: rgba(118, 75, 162, 0.2);
    bottom: -200px;
    right: -100px;
}

.cta-icon .icon-wrapper {
    display: inline-block;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================
   NAVBAR ENHANCEMENT - UPDATED
   ============================================ */
.navbar {
    background: white !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand .gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled {
    padding: 8px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    font-weight: 600;
    color: var(--dark-color) !important;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 70%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.05);
}

.nav-link i {
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: translateY(-2px);
}

/* Dropdown Menu */
.dropdown-menu {
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc3545 !important;
}

/* User Avatar in Navbar */
.user-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button in Navbar */
.navbar .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.navbar .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Mobile Navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 12px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-item {
        margin: 5px 0;
    }
    
    .navbar .btn-primary {
        width: 100%;
        margin-top: 10px;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: rgba(102, 126, 234, 0.05);
    }
}

/* Active Link */
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active::after {
    width: 70%;
}

/* ============================================
   FOOTER ENHANCEMENT
   ============================================ */
footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 60px 0 20px;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

footer a {
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* ============================================
   AOS ANIMATION SUPPORT
   ============================================ */
[data-aos] {
    pointer-events: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .hero-section {
        padding: 60px 0 100px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0 80px;
    }
    
    .display-4, .display-5 {
        font-size: 2rem;
    }
    
    .feature-card,
    .course-card,
    .testimonial-card {
        margin-bottom: 20px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.rounded-pill {
    border-radius: 50px !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}