/*****
*	./assets/css/main.css
*/
:root {
	--python-yellow: #FFD43B;
	--python-blue: #3776AB;
	--primary-gradient: linear-gradient(135deg, var(--python-blue) 0%, #306998 50%, var(--python-yellow) 100%);
	--dark: #1a1a2e;
	--dark-light: #16213e;
}
* { font-family: 'Poppins', sans-serif; }
/*!
 * Python4Fun - Main Stylesheet
 * Multi-page Learning Platform Template
 * Author: Satya Prakash Nigam
 * Version: 1.0.0
 * Last Updated: April 08, 2026
 * 
 * Structure:
 * 1. CSS Custom Properties (Variables)
 * 2. Base/Reset
 * 3. Utility Bar & Header
 * 4. Hero Section & Carousel
 * 5. Content Sections (Features, Stats, etc.)
 * 6. Cards & Components
 * 7. Back to Top
 * 8. Responsive Design
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Theme Variables)
   ========================================================================== */
:root {
    /* Python Brand Colors */
    --python-yellow: #FFD43B;
    --python-blue: #3776AB;
    --python-dark: #1a1a2e;
    --python-dark-light: #16213e;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--python-blue) 0%, #306998 50%, var(--python-yellow) 100%);
    
    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    
    /* Shadows */
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-md: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-lg: 0 30px 80px rgba(0,0,0,0.2);
    
    /* Borders */
    --border-light: 1px solid rgba(55, 118, 171, 0.1);
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
}

/* ==========================================================================
   3. UTILITY BAR & HEADER
   ========================================================================== */
#header {
    background: rgba(255,255,255,0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.logo a { 
    font-weight: 800;
    font-size: clamp(1.5rem, 4vw, 2rem);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* ==========================================================================
   4. HERO SECTION & CAROUSEL
   ========================================================================== */
.hero-section { 
    background: var(--primary-gradient);
    color: white;
    padding: clamp(var(--section-padding-mobile), 10vw, var(--section-padding)) 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://picsum.photos/1920/1080?random=hero') center/cover;
    opacity: 0.08;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

#heroCarousel {
    border-radius: 25px !important;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
    max-height: clamp(350px, 50vw, 450px);
}

#heroCarousel .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#heroCarousel .carousel-item.active img {
    transform: scale(1.05);
}

.carousel-caption {
    backdrop-filter: blur(15px);
    border-radius: 20px;
    background: rgba(0,0,0,0.7) !important;
    max-width: 280px;
    bottom: 20%;
    left: 10%;
    right: auto;
}

.carousel-indicators [data-bs-target] {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    margin: 0 4px;
}

.carousel-indicators .active {
    background: var(--python-yellow);
    transform: scale(1.3);
    border-color: rgba(255,255,255,0.8);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.95);
    background-size: 20px;
}

/* ==========================================================================
   5. CONTENT SECTIONS
   ========================================================================== */
.hero-section,
.features-grid,
.stats-section,
.cta-section {
    padding: clamp(var(--section-padding-mobile), 8vw, var(--section-padding)) 0;
}

.features-grid { 
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
}

.stats-section { 
    background: var(--python-dark); 
    color: white; 
}

.cta-section { 
    background: var(--primary-gradient); 
    color: white; 
}

/* ==========================================================================
   6. CARDS & COMPONENTS
   ========================================================================== */
.feature-card,
.course-card,
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: var(--border-light);
}

.feature-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--python-blue);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 15px 30px rgba(55, 118, 171, 0.4);
}

.course-card {
    border-radius: 20px;
    overflow: hidden;
}

.course-card img {
    transition: transform 0.4s ease;
}

.course-card:hover img {
    transform: scale(1.08);
}

.course-card.hover-lift:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg) !important;
}

.testimonial-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
}

.testimonial-card.hover-scale:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--python-yellow);
    margin-bottom: 0.5rem;
}

.stars {
    color: var(--python-yellow);
    font-size: 1.1rem;
}

/* ==========================================================================
   7. BACK TO TOP BUTTON
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--python-yellow);
    color: var(--python-dark) !important;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   8. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-section {
        padding: clamp(80px, 12vw, 120px) 0 clamp(40px, 8vw, 80px);
        text-align: center !important;
    }
    
    .hero-img {
        order: -1 !important;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    #heroCarousel {
        border-radius: 20px !important;
        max-height: 280px;
    }
    
    #heroCarousel .carousel-item img {
        height: 280px;
    }
    
    .carousel-caption {
        display: none !important;
    }
    
    .features-grid,
    .stats-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 75px !important;
    }
    
    #header.fixed-top {
        top: 22px !important;
    }
}

/* ==========================================================================
   9. UTILITY CLASSES
   ========================================================================== */
.hover-scale { transition: all 0.3s ease; }
.hover-scale:hover { transform: scale(1.02); }
.hover-lift:hover { transform: translateY(-10px); }

.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0fe 100%);
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}
.shadow-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}

/* Smooth scrolling for anchor links */
html {
    scroll-padding-top: 85px; /* Account for fixed header + utility bar */
}