/* =============================================
   Enhanced Design Elements
   Advanced Visual Improvements
   ============================================= */

/* Smooth Scroll Reveal Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced Card Hover Effects */
.feature-card,
.book-card,
.plan-card,
.video-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover,
.book-card:hover,
.plan-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

.video-card:hover {
    transform: translateY(-12px) scale(1.03);
}

/* Glowing Border Effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #3B82F6, #F59E0B, #3B82F6);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Enhanced Buttons */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Parallax Background Effect */
.section {
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: parallaxMove 60s linear infinite;
    pointer-events: none;
}

@keyframes parallaxMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Animation for Icons */
.feature-icon,
.info-icon {
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Text Gradient Effect */
.section-title h2 {
    background: linear-gradient(135deg, #1F2937 0%, #3B82F6 50%, #F59E0B 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Stats Section */
.stats-section {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #F59E0B 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.15);
}

.stat-number {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
}

/* Smooth Section Transitions */
.section:nth-child(even) {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
}

/* Enhanced Video Cards */
.video-play-btn {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-card:hover .video-play-btn {
    transform: translate(-50%, -50%) scale(1.3) rotate(360deg);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* Enhanced Contact Form */
.contact-form {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    border: 1px solid var(--border-color);
}

.form-control {
    transition: all 0.3s ease;
}

.form-control:hover {
    border-color: #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Loading Animation for Videos */
.video-thumbnail img {
    transition: all 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    filter: brightness(1.1) contrast(1.05);
}

/* Enhanced Footer */
.footer-social a {
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gold);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.footer-social a:hover::before {
    width: 100%;
    height: 100%;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #3B82F6, #F59E0B);
    z-index: 9999;
    transition: width 0.2s ease;
}

/* Enhanced Accessibility Widget */
.accessibility-toggle {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* Enhanced Breadcrumb */
.breadcrumb a {
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.breadcrumb a:hover::after {
    width: 100%;
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Improved Mobile Experience */
@media (max-width: 768px) {
    .feature-card:hover {
        transform: translateY(-10px) scale(1);
    }
    
    .video-card:hover .video-play-btn {
        transform: translate(-50%, -50%) scale(1.2) rotate(360deg);
    }
}

/* Smooth Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: pageLoad 0.6s ease-out;
}

