
/* ========================================
   CORE RESET & BASE STYLES
======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    overflow-x: hidden;
}

/* ========================================
   ANIMATIONS & TRANSITIONS
======================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.8); }
}

@keyframes shine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.float {
    animation: float 3s ease-in-out infinite;
}

.shine-bg {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shine 2s infinite;
}

/* ========================================
   NAVIGATION
======================================= */
nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* ========================================
   HERO SECTION ENHANCEMENTS
======================================= */
.hero-bg {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 50%, rgba(59, 130, 246, 0.9) 100%),
                radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    animation: heroFloat 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.1) rotate(120deg); }
    66% { transform: scale(0.95) rotate(240deg); }
}

/* ========================================
   BUTTON ANIMATIONS
======================================= */
.buy-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.buy-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.buy-btn:hover::before {
    left: 100%;
}

.buy-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25) !important;
}

#heroBuyBtn, #megaBuyBtn {
    background: linear-gradient(45deg, #10b981, #059669, #047857);
    position: relative;
    overflow: hidden;
}

#heroBuyBtn::after, #megaBuyBtn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255,255,255,0.3), transparent);
    animation: spin 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

#heroBuyBtn:hover::after, #megaBuyBtn:hover::after {
    opacity: 1;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ========================================
   COURSE PRICING CARD
======================================= */
.pricing-card {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.pricing-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-20px) scale(1.02);
    box-shadow: 0 50px 100px rgba(99, 102, 241, 0.4);
}

/* ========================================
   PROGRESSIVE DISCLOSURE
======================================= */
.story-step {
    opacity: 0.7;
    transform: translateX(30px);
    transition: all 0.8s ease;
}

.story-step.active {
    opacity: 1;
    transform: translateX(0);
}

.testimonial-card {
    transition: all 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #a855f7 !important;
}

/* ========================================
   FLOATING BUY BUTTON
======================================= */
.floating-buy-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: floatingPulse 2s infinite;
}

.floating-buy-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.6);
}

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

/* ========================================
   COUNTER ANIMATIONS
======================================= */
.counter {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.count-animated {
    overflow: hidden;
}

.count-animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, white, transparent);
    animation: countShine 2s ease-out;
}

@keyframes countShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   MODAL ANIMATIONS
======================================= */
#buyModal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#buyModal.show {
    opacity: 1;
    visibility: visible;
}

#buyModal > div {
    transform: scale(0.7) rotateX(-20deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#buyModal.show > div {
    transform: scale(1) rotateX(0deg);
}

/* ========================================
   SCROLL-TRIGGERED REVEALS
======================================= */
.section-reveal {
    opacity: 0;
    transform: translateY(100px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PARALLAX EFFECTS
======================================= */
.parallax-bg {
    transition: transform 0.6s ease-out;
}

/* ========================================
   LOADING ANIMATIONS
======================================= */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ========================================
   RESPONSIVE ENHANCEMENTS
======================================= */
@media (max-width: 768px) {
    .hero-text {
        font-size: 3.5rem !important;
    }
    
    .pricing-card:hover {
        transform: none;
    }
    
    .floating-buy-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================= */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-glow:hover {
    box-shadow: 0 35px 70px -12px rgba(0, 0, 0, 0.35);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #5a67d8, #6b46c1);
}



/* ========================================
   RESPONSIVE SUPERCHARGED CSS
   Mobile-First + Breakpoint Perfection
======================================= */

/* BASE MOBILE STYLES (0-640px) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Mobile nav height */
    font-size: 16px; /* Base for rem units */
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* MOBILE NAV (0-768px) */
@media (max-width: 768px) {
    nav {
        padding: 1rem;
        backdrop-filter: blur(20px);
    }
    
    nav .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-logo {
        order: 2;
    }
    
    .nav-menu {
        order: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    #buyNowBtn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* HERO MOBILE OPTIMIZATION */
@media (max-width: 640px) {
    .hero-bg {
        min-height: 100vh;
        padding-top: 120px;
        text-align: center;
    }
    
    .hero-text {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.2;
        margin-bottom: 2rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons button {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
}

/* ========================================
   RESPONSIVE TYPOGRAPHY SYSTEM
======================================= */
.text-hero {
    font-size: clamp(2.8rem, 7vw, 5rem);
    line-height: 1.1;
}

.text-section {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.text-xl {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

/* ========================================
   GRID & FLEX RESPONSIVE
======================================= */
.responsive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 640px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.responsive-flex {
    flex-direction: column;
}

@media (min-width: 768px) {
    .responsive-flex {
        flex-direction: row;
    }
}

/* ========================================
   CARD RESPONSIVE STACKING
======================================= */
.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.course-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .course-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ========================================
   BUTTON RESPONSIVE SIZING
======================================= */
.btn-primary {
    padding: clamp(1rem, 4vw, 1.5rem) clamp(2rem, 6vw, 3rem);
    font-size: clamp(1rem, 3vw, 1.25rem);
    border-radius: 2rem;
    font-weight: 700;
    width: 100%;
}

@media (min-width: 640px) {
    .btn-primary {
        width: auto;
    }
}

/* ========================================
   PRICING CARD MOBILE
======================================= */
.pricing-mobile {
    margin: 2rem 0;
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .pricing-mobile {
        margin: 0;
        padding: 4rem;
    }
}

.pricing-mobile .text-7xl {
    font-size: clamp(4rem, 15vw, 7rem) !important;
}

/* ========================================
   MODAL MOBILE FULLSCREEN
======================================= */
@media (max-width: 640px) {
    #buyModal > div {
        margin: 1rem;
        margin-top: 4rem;
        border-radius: 2rem;
        max-height: 90vh;
    }
    
    .floating-buy-btn {
        bottom: 1rem;
        right: 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ========================================
   TESTIMONIALS MOBILE
======================================= */
.testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   FAQ ACCORDION MOBILE
======================================= */
.faq-item {
    cursor: pointer;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem 0;
}

/* ========================================
   URGENCY ELEMENTS MOBILE
======================================= */
.urgency-timer {
    top: 100px !important;
    right: 1rem !important;
    left: 1rem !important;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 1.5rem;
}

@media (min-width: 768px) {
    .urgency-timer {
        top: 120px !important;
        right: 2rem !important;
        left: auto !important;
        font-size: 1.1rem;
    }
}

/* ========================================
   TOUCH OPTIMIZATIONS
======================================= */
@media (hover: none) and (pointer: coarse) {
    .buy-btn:active {
        transform: scale(0.95) !important;
    }
    
    .card-hover {
        transform: none !important;
    }
}

/* ========================================
   LANDSCAPE MOBILE FIXES
======================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-bg {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    .hero-text {
        font-size: 2.5rem !important;
    }
}

/* ========================================
   PERFECT BREAKPOINTS
======================================= */
/* Mobile Portrait */
@media (max-width: 480px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Mobile Landscape + Small Tablet */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 1024px) {
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-text {
        font-size: 4.5rem !important;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .container {
        max-width: 1400px;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
}

/* ========================================
   RESPONSIVE SPACING SYSTEM
======================================= */
.section-padding {
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: clamp(4rem, 10vw, 8rem);
}

.container {
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

/* ========================================
   RESPONSIVE ANIMATIONS (Reduced on Mobile)
======================================= */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 640px) {
    .complex-hover {
        transition: none;
    }
    
    .complex-hover:hover {
        transform: none;
    }
}

/* ========================================
   SAFARI iOS FIXES
======================================= */
@supports (-webkit-touch-callout: none) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    html {
        scroll-padding-top: 90px;
    }
}

/* ========================================
   DARK MODE SUPPORT (Optional)
======================================= */
@media (prefers-color-scheme: dark) {
    body {
        --bg-primary: #0f172a;
        --text-primary: #f8fafc;
    }
}


