/* Advanced Home Page Styles */

/* Gradient Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 50% 100%; }
    75% { background-position: 50% 0%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    50% { text-shadow: 0 0 40px rgba(255, 255, 255, 0.8), 0 0 60px rgba(255, 255, 255, 0.6); }
}

@keyframes morphing {
    0%, 100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
}

/* Hero Section Premium */
.hero-gradient-premium {
    background: linear-gradient(-45deg, #ef4444, #f97316, #ec4899, #d946ef, #06b6d4, #8b5cf6);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    z-index: 1;
}

/* Floating Elements */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float:nth-child(2) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.animate-float:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 7s;
}

/* Text Effects */
.animate-fadeInUp {
    animation: fadeInUp 1s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 1s ease-out forwards;
}

.animate-pulse-glow {
    animation: textGlow 2s ease-in-out infinite;
}

.text-shadow-lg {
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Advanced Button Styles */
.btn-premium {
    position: relative;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.6);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Morphing Shapes */
.morphing-shape {
    animation: morphing 8s ease-in-out infinite;
    background: linear-gradient(45deg, #ef4444, #ec4899, #06b6d4, #d946ef);
    opacity: 0.1;
}

/* Stats Counter Animation */
.counter {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ef4444, #ec4899, #06b6d4, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Feature Cards with Hover Effects */
.feature-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ef4444, #ec4899, #06b6d4, #d946ef);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    color: white;
    box-shadow: 0 30px 80px rgba(239, 68, 68, 0.3);
}

.feature-card:hover .feature-icon {
    color: white;
    transform: scale(1.2) rotate(360deg);
}

.feature-icon {
    transition: all 0.5s ease;
}

/* Course Cards with Advanced Hover */
.course-card-advanced {
    position: relative;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.course-card-advanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(236, 72, 153, 0.9));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.course-card-advanced:hover::before {
    opacity: 1;
}

.course-card-advanced:hover {
    transform: translateY(-20px) rotateX(5deg);
    box-shadow: 0 40px 100px rgba(239, 68, 68, 0.3);
}

.course-card-advanced .card-content {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.course-card-advanced:hover .card-content {
    color: white;
}

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem !important;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .btn-premium {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Loading Animations */
.fade-in-sequence > * {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-sequence > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-sequence > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-sequence > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-sequence > *:nth-child(4) { animation-delay: 0.4s; }
.fade-in-sequence > *:nth-child(5) { animation-delay: 0.5s; }
.fade-in-sequence > *:nth-child(6) { animation-delay: 0.6s; }

/* Testimonial Card Styles */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    transition: opacity 0.4s ease;
    opacity: 0;
    z-index: -1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.testimonial-card:hover::before {
    opacity: 1;
}

/* Advanced Footer Gradient Styles */
footer {
    background: linear-gradient(135deg, 
        #000000 0%, 
        #1f1f1f 20%, 
        #2a2a2a 40%, 
        #3f3f3f 60%, 
        #4a4a4a 80%, 
        #5a5a5a 100%) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(0, 0, 0, 0.3) 0%,
        rgba(30, 30, 30, 0.2) 25%,
        rgba(45, 45, 45, 0.3) 50%,
        rgba(60, 60, 60, 0.2) 75%,
        rgba(75, 75, 75, 0.3) 100%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 0;
}

footer > * {
    position: relative;
    z-index: 10;
}

/* Footer Gradient Animation */
@keyframes footerPulse {
    0%, 100% { 
        opacity: 0.1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.2;
        transform: scale(1.1);
    }
}

footer .animate-pulse {
    animation: footerPulse 6s ease-in-out infinite;
}