@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Fira+Code:wght@500;700&display=swap');

/* =========================================
   1. CORE SETTINGS & TYPOGRAPHY
========================================= */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #FAFAFA;
    color: #0F172A;
    overflow-x: hidden; /* Prevents horizontal scroll from floating animations */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Selection Color (Orange Brand) */
::selection {
    background: #F97316;
    color: white;
}

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

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   2. GLASSMORPHISM HEADER
========================================= */
.pro-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
}

/* Mobile Menu Glass Effect */
#mobileMenu {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

/* =========================================
   3. ANIMATIONS & TRANSITIONS
========================================= */

/* Reveal Up (Scroll Animation) */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Animation (Hero Badges) */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.animate-float-delay {
    animation: float 4.5s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Icon Float (Slightly faster) */
.icon-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Animation (Background Blobs) */
@keyframes pulse-blob {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

/* Fade Overlay */
@keyframes fadeOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Spin (Loading) */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* =========================================
   4. CARD STYLES
========================================= */

/* Base Super Card (Learning Paths) */
.super-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #F1F5F9;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

/* Hover Lift Effect */
.super-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    border-color: #E2E8F0;
    z-index: 10;
}

/* Specific Course Gradients */
.bg-gradient-scratch {
    background: linear-gradient(145deg, #ffffff 0%, #FFFBEB 100%);
    border-color: #FEF3C7;
}

.bg-gradient-web {
    background: linear-gradient(145deg, #ffffff 0%, #EFF6FF 100%);
    border-color: #DBEAFE;
}

.bg-gradient-python {
    background: linear-gradient(145deg, #ffffff 0%, #F0FDF4 100%);
    border-color: #DCFCE7;
}

/* =========================================
   5. BACKGROUNDS & PATTERNS
========================================= */

/* Grid Pattern for Hero Background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Blob Styles */
.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 0;
    animation: pulse-blob 10s infinite alternate;
    pointer-events: none;
}

/* =========================================
   6. UI COMPONENTS
========================================= */

/* FAQ Accordion Fix */
details > summary {
    list-style: none;
    cursor: pointer;
}
details > summary::-webkit-details-marker {
    display: none;
}

/* Search Modal Animation */
#searchModal:not(.hidden) {
    animation: fadeOverlay 0.2s forwards;
}

/* Button Hover Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-shine:hover::after {
    left: 150%;
    transition: 0.7s;
}