:root {
    /* Light Theme Colors */
    --primary: #4f874a;
    --primary-light: #3b82f6;
    --primary-lighter:#86efac;
    --secondary: #10b981;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    
    --white: #ffffff;
    --light: #f8fafc;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    /* Backgrounds */
    --bg-light: #f9fafb;       /* Main background */
    --bg-lighter: #ECFFEA;     /* Slightly darker for sections */
    --bg-card: #ffffff;       /* Card/containers */
    --bg-card-light: #CDFFC9; /* Lighter panels */

    --dark: #0d0221;
    --darker: #ECFFEA;
    /* Category Colors */
    --html-color: #e34f26;
    --css-color: #1572b6;
    --js-color: #f7df1e;
    --php-color: #777bb4;
    --sql-color: #4479a1;
    --python-color: #3776ab;
    --c-color: #00599c;
    --cpp-color: #00599c;
    --java-color: #007396;
    --node-color: #339933;
    --react-color: #61dafb;
    --r-color: #276dc3;
    --kotlin-color: #7f52ff;
    --rust-color: #000000;
    --swift-color: #fa7343;
    --go-color: #00add8;
    --dsa-color: #6c757d;
    --cloud-color: #ff9900;
    --ai-color: #4d4dff;
            
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #9efc95 0%,#4f874a 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-hero: linear-gradient(135deg, #ECFFEA 0%, #f9fafb 80%, #f9fafb 100%);
            
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 30px rgba(37, 99, 235, 0.2);
            
    /* Borders */
    --radius-null: 0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
            
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
            
    /* Typography */
    --font-xs: 0.875rem;
    --font-sm: 1rem;
    --font-md: 1.125rem;
    --font-lg: 1.5rem;
    --font-xl: 2rem;
    --font-2xl: 2.5rem;
    --font-3xl: 3rem;
}

    * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: var(--text);
            background-color: var(--white);
            line-height: 1.6;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--space-lg);
        }
@media (max-width: 768px) {
 .container {
            width: 100%; 
            margin: 0 auto;
            padding:var(--space-sm);
        }
}
        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.97);
            backdrop-filter: blur(10px);
            z-index: 1000;
            box-shadow: var(--shadow-sm);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .header-scrolled {
            padding: 0.5rem 0;
            box-shadow: var(--shadow-lg);
        }

        .header-container {
            display: flex;
            justify-content: space-between; 
            padding: 1.25rem 0;
            transition: padding 0.3s ease;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: var(--gradient-primary);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.25rem;
            animation: logoPulse 2s infinite ease-in-out;
        }

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

        .logo-text {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
        }

        .logo-text span {
            color: var(--text);
        }

        /* Navigation */
        .nav-menu {
            display: flex;
            list-style: none;
            gap: 2.5rem;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text);
            font-weight: 500;
            font-size: var(--font-sm);
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-link::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }

        .nav-link:hover::before {
            width: 100%;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        /* Buttons */
        .btn {
            padding: 0.875rem 1.75rem;
            border-radius: var(--radius-full);
            font-weight: 600;
            font-size: var(--font-sm);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        .btn-primary {
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow-primary);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(37, 99, 235, 0.25);
        }

        .btn-secondary {
            background-color: var(--white);
            color: var(--primary);
            border: 2px solid var(--border);
        }

        .btn-secondary:hover {
            background-color: var(--primary-lighter);
            border-color: var(--primary);
            transform: translateY(-3px);
        }

        .btn-accent {
            background: var(--gradient-accent);
            color: white;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.2);
        }

        .btn-accent:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25);
        }

        /* Combined Hero & Coverflow Section */
        .hero-coverflow-section {
            padding: 2rem 0 4rem;
            background: var(--gradient-hero);
            position: relative;
            overflow: hidden;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }

        .hero-coverflow-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            animation: slideUp 1s cubic-bezier(0.4, 0, 0.2, 1);
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .hero-content h1 {
            font-size: var(--font-3xl);
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            color: var(--text);
        }

        .hero-content h1 span {
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }

        .hero-content p {
            font-size: var(--font-lg);
            color: var(--text-light);
            margin-bottom: 2.5rem;
            max-width: 600px;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .hero-stats {
            display: flex;
            gap: 3rem;
            margin-top: 3rem;
            flex-wrap: wrap;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            line-height: 1;
        }

        .stat-number span {
            display: inline-block;
        }

        .stat-label {
            color: var(--text-light);
            font-size: var(--font-sm);
            margin-top: 0.5rem;
        }

        /* Coverflow Gallery */
        .coverflow-gallery {
            position: relative;
            width: 100%;
            height: 600px;
            display: flex;
            align-items: center;
            justify-content: center; 
        }

        .gallery-container { 
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1500px;
        }

        .cards-wrapper {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex; 
            justify-content: center;
            transform-style: preserve-3d;
        }

        /* Coverflow Cards */
        .coverflow-card {
            position: absolute;
            width: 320px;
            height: 450px;
            border-radius: var(--radius-sm);
            background: var(--white);
            box-shadow: var(--shadow-xl);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
            will-change: transform, filter, opacity;
            cursor: pointer;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden;
        }

        .coverflow-card:hover {
            transform: scale(1.05) !important;
            z-index: 100 !important;
        }

        .coverflow-card-image {
            height: 180px;
            position: relative;
            overflow: hidden;
        }

        .coverflow-card-category {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--primary);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-full);
            font-size: 0.875rem;
            font-weight: 600;
            z-index: 2;
        }

        .coverflow-card-content {
            padding: 1.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .coverflow-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: var(--text);
        }

        .coverflow-card p {
            color: var(--text-light);
            margin-bottom: 1.5rem;
            flex-grow: 1;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .coverflow-card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }

        .coverflow-card-meta {
            display: flex;
            gap: 1rem;
            color: var(--text-lighter);
            font-size: 0.875rem;
        }

        /* Coverflow Controls */
        .coverflow-controls {
            position: absolute;
            bottom: 1rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 1.5rem;
            z-index: 100;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-full);
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border);
            align-items: center;
        }

        .coverflow-control-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--white);
            border: 2px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: var(--primary);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .coverflow-control-btn:hover {
            background: var(--primary);
            color: white;
            transform: scale(1.1);
            border-color: var(--primary);
        }

        .auto-slide-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: var(--radius-full);
            background: var(--primary);
            color: white;
            transition: all 0.3s ease;
            min-width: 120px;
            justify-content: center;
            font-size: 0.875rem;
        }

        .auto-slide-toggle:hover {
            background: #1d4ed8;
        }

        /* Dots indicator */
        .dots-indicator {
            display: flex;
            gap: 0.5rem;
        }

        .dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--border);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }

        /* Background elements */
        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
        }

        .floating-code {
            position: absolute;
            font-family: 'Courier New', monospace;
            font-weight: 600;
            color: rgba(37, 99, 235, 0.1);
            pointer-events: none;
            user-select: none;
            animation: floatCode 20s linear infinite;
        }

        @keyframes floatCode {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 0.1;
            }
            90% {
                opacity: 0.1;
            }
            100% {
                transform: translateY(-100px) rotate(5deg);
                opacity: 0;
            }
        }

        /* Free Tutorials Section */
        .tutorials-section {
            padding: var(--space-xl) 0;
            background: var(--white);
        }

        .section-title {
            text-align: center;
            margin-bottom: var(--space-lg);
        }

        .section-title h2 {
            font-size: var(--font-2xl);
            font-weight: 800;
            margin-bottom: var(--space-sm);
            color: var(--text);
            position: relative;
            display: inline-block;
        }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-primary);
            border-radius: 2px;
        }

        .section-title p {
            color: var(--text-light);
            font-size: var(--font-md);
            max-width: 700px;
            margin: 0 auto;
        }

        /* Tutorials Carousel */
        .tutorials-carousel {
            margin-top: 3rem;
            position: relative;
        }

        .swiper {
            width: 100%;
            padding: 2rem 0 4rem !important;
        }

        .tutorial-card {
            background: var(--white);
            border-radius: var(--radius-null);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border);
            height: 100%;
            transform: scale(0.95);
            opacity: 0.7;
        }

        .swiper-slide-active .tutorial-card {
            transform: scale(1);
            opacity: 1;
            box-shadow: var(--shadow-xl);
        }

        .tutorial-card:hover {
            transform: translateY(-15px) !important;
            box-shadow: var(--shadow-xl);
        }

        .tutorial-image {
            height: 200px;
            background: var(--gradient-primary);
            position: relative;
            overflow: hidden;
        }

        .tutorial-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: translateX(-100%);
        }

        .tutorial-card:hover .tutorial-image::before {
            animation: shimmer 1.5s infinite;
        }

        @keyframes shimmer {
            100% {
                transform: translateX(100%);
            }
        }

        .tutorial-category {
            position: absolute;
            top: 1rem;
            left: 1rem;
            background: var(--primary);
            color: white;
            padding: 0.375rem 1rem;
            border-radius: var(--radius-full);
            font-size: var(--font-xs);
            font-weight: 600;
        }

        .tutorial-body {
            padding: 1.5rem;
        }

        .tutorial-body h3 {
            font-size: var(--font-lg);
            margin-bottom: 0.75rem;
            color: var(--text);
        }

        .tutorial-body p {
            color: var(--text-light);
            font-size: var(--font-sm);
            margin-bottom: 1.5rem;
        }

        .tutorial-footer {
            padding: 1rem 1.5rem 1.5rem;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .tutorial-meta {
            display: flex;
            gap: 1rem;
            color: var(--text-lighter);
            font-size: var(--font-xs);
        }

        /* Discussion Section */
        .discussion-section {
            background: var(--light);
            padding: var(--space-xl) 0;
        }

        .discussion-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-top: 3rem;
        }

        .discussion-content h3 {
            font-size: var(--font-xl);
            margin-bottom: 1.5rem;
            color: var(--text);
        }

        .discussion-content p {
            color: var(--text-light);
            margin-bottom: 2rem;
        }

        .rewards-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .reward-card {
            background: var(--white);
            border-radius: var(--radius-md);
            padding: 1.5rem;
            text-align: center;
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }

        .reward-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: var(--shadow-md);
        }

        .reward-icon {
            width: 60px;
            height: 60px;
            background: var(--accent-light);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
            color: var(--accent);
        }

        .discussion-animation {
            position: relative;
            height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .discussion-orb {
            width: 200px;
            height: 200px;
            background: var(--gradient-accent);
            border-radius: 50%;
            position: relative;
            animation: orbRotate 20s infinite linear;
            box-shadow: 
                inset 0 0 30px rgba(255, 255, 255, 0.3),
                0 0 60px rgba(245, 158, 11, 0.3);
        }

        @keyframes orbRotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .orb-item {
            position: absolute;
            width: 60px;
            height: 60px;
            background: var(--white);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: var(--accent);
            box-shadow: var(--shadow-lg);
            animation: orbFloat 3s infinite ease-in-out;
        }

        .orb-item:nth-child(1) { top: -30px; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
        .orb-item:nth-child(2) { top: 50%; right: -30px; transform: translateY(-50%); animation-delay: -1s; }
        .orb-item:nth-child(3) { bottom: -30px; left: 50%; transform: translateX(-50%); animation-delay: -2s; }
        .orb-item:nth-child(4) { top: 50%; left: -30px; transform: translateY(-50%); animation-delay: -3s; }

        @keyframes orbFloat {
            0%, 100% { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1); }
            50% { transform: translate(var(--tx, 0), calc(var(--ty, 0) - 15px)) scale(1.1); }
        }
/* Mobile-specific card sizing */
@media (max-width: 768px) {
    .orb-item {
          display:none;
        }
}
 
        /* Premium Features Section */
        .premium-features-section {
            padding: var(--space-xl) 0;
            background: var(--white);
            position: relative;
        }

        .premium-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .premium-feature {
            background: var(--white);
            border-radius: var(--radius-null);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            border: 1px solid var(--border);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .premium-feature:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
            border-color: var(--primary);
        }

        .premium-feature::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.03), transparent);
            transform: translateX(-100%);
        }

        .premium-feature:hover::before {
            animation: shimmer 1.5s;
        }

        .feature-icon {
            width: 70px;
            height: 70px;
            background: var(--primary-lighter);
            border-radius: var(--radius-null);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 1.75rem;
            color: var(--primary);
            transition: all 0.3s ease;
        }

        .premium-feature:hover .feature-icon {
            transform: scale(1.1);
            background: var(--gradient-primary);
            color: white;
        }

        /* Tutorial Categories */
        .categories-section {
            padding: var(--space-xl) 0;
            background: var(--light);
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .category-card {
            background: var(--white);
            border-radius: var(--radius-null);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-xl);
        }

        .category-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--category-color, var(--primary));
            transition: height 0.3s ease;
        }

        .category-card:hover::before {
            height: 100%;
            opacity: 0.05;
        }

        .category-icon {
            width: 60px;
            height: 60px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1.5rem;
            font-size: 1.75rem;
            color: white;
            background: var(--category-color, var(--primary));
            transition: all 0.3s ease;
        }

        .category-card:hover .category-icon {
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .category-card h3 {
            font-size: var(--font-lg);
            margin-bottom: 0.75rem;
            color: var(--text);
            position: relative;
            z-index: 1;
        }

        .category-card p {
            color: var(--text-light);
            font-size: var(--font-sm);
            margin-bottom: 1.5rem;
            position: relative;
            z-index: 1;
        }

        .category-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .lesson-count {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-lighter);
            font-size: var(--font-xs);
        }

        .category-link {
            color: var(--category-color, var(--primary));
            text-decoration: none;
            font-weight: 600;
            font-size: var(--font-sm);
            transition: all 0.3s ease;
        }

        .category-link:hover {
            text-decoration: underline;
        }

        /* Pricing Section */
        .pricing-section {
            padding: var(--space-xl) 0;
            background: var(--light);
        }

        .pricing-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .pricing-card {
            background: var(--white);
            border-radius: var(--radius-sm);
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            border: 2px solid var(--border);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .pricing-card.featured {
            border-color: var(--primary);
            box-shadow: var(--shadow-primary);
            transform: translateY(-10px);
        }

        .pricing-card.featured::before {
            content: 'Most Popular';
            position: absolute;
            top: 20px;
            right: -35px;
            background: var(--gradient-primary);
            color: white;
            padding: 8px 40px;
            transform: rotate(45deg);
            font-weight: 700;
            font-size: 0.8rem;
        }

        .price {
            font-size: 3.5rem;
            font-weight: 800;
            color: var(--primary);
            margin: 1.5rem 0;
            position: relative;
        }

        .price span {
            font-size: var(--font-lg);
            color: var(--text-light);
        }

        .feature-list {
            list-style: none;
            margin: 2rem 0;
        }

        .feature-list li {
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .feature-list i {
            color: var(--success);
        }

        /* Swiper Navigation */
        .swiper-button-next,
        .swiper-button-prev {
            background: var(--white);
            width: 50px !important;
            height: 50px !important;
            border-radius: 50%;
            box-shadow: var(--shadow-lg);
            color: var(--primary) !important;
            transition: all 0.3s ease;
        }

        .swiper-button-next:hover,
        .swiper-button-prev:hover {
            background: var(--primary);
            color: white !important;
            transform: scale(1.1);
        }

        .swiper-button-next:after,
        .swiper-button-prev:after {
            font-size: 1.25rem !important;
            font-weight: 800;
        }

        .swiper-pagination-bullet {
            background: var(--text-lighter) !important;
            opacity: 0.5 !important;
            width: 10px !important;
            height: 10px !important;
        }

        .swiper-pagination-bullet-active {
            background: var(--primary) !important;
            opacity: 1 !important;
            transform: scale(1.2);
        }

        /* Footer */
        footer {
            background: var(--light);
            padding: 5rem 0 2rem;
            border-top: 1px solid var(--border);
        }

        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 3rem;
        }
 .index-footer-logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: white;
            font-family: 'Montserrat', sans-serif;
            margin-bottom: 1.5rem;
            display: inline-block;
        }

        .index-footer-logo span {
            color: var(--primary);
        }
        .social-links {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .social-icon {
            width: 45px;
            height: 45px;
            background: var(--white);
            border-radius: var(--radius-full);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-light);
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid var(--border);
        }

        .social-icon:hover {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            transform: translateY(-5px);
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(40px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                       transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .animate-on-scroll.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Responsive */
        @media (max-width: 1200px) {
            .hero-coverflow-container {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            
            .coverflow-gallery {
                height: 500px;
            }
        }

        @media (max-width: 1024px) {
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .discussion-container {
                grid-template-columns: 1fr;
            }
            
            .pricing-cards {
                grid-template-columns: 1fr;
            }
            
            .pricing-card.featured {
                transform: none;
            }
        }

        @media (max-width: 768px) {
            :root {
                --font-3xl: 2.5rem;
                --font-2xl: 2rem;
                --font-xl: 1.5rem;
            }
            
            .nav-menu {
                display: none;
            }
            
            .mobile-menu-btn {
                display: block;
                background: none;
                border: none;
                color: var(--text);
                font-size: 1.5rem;
                cursor: pointer;
            }
            
            .hero-actions {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
                justify-content: center;
            }
            
            .categories-grid {
                grid-template-columns: 1fr;
            }
            
            .rewards-grid {
                grid-template-columns: 1fr;
            }
            
             .coverflow-gallery {
                height: 300px;
            }
            
            .coverflow-card {
                width: auto;
                height: auto;
            }
            
            .coverflow-controls {
                display:none;
                flex-wrap: wrap;
                gap: 1rem;
                width: 90%;
                padding: 0.5rem 1rem;
            }
            
            .auto-slide-toggle {
                order: -1;
                width: 100%;
                min-width: auto;
            }
        }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98);
            z-index: 2000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .mobile-menu.active {
            opacity: 1;
            visibility: visible;
        }

        .close-menu {
            position: absolute;
            top: 2rem;
            right: 2rem;
            background: none;
            border: none;
            color: var(--text);
            font-size: 2rem;
            cursor: pointer;
        }

        .mobile-nav {
            list-style: none;
            text-align: center;
        }

        .mobile-nav li {
            margin: 1.5rem 0;
            animation: fadeInUp 0.5s ease-out both;
        }

        .mobile-nav li:nth-child(1) { animation-delay: 0.1s; }
        .mobile-nav li:nth-child(2) { animation-delay: 0.2s; }
        .mobile-nav li:nth-child(3) { animation-delay: 0.3s; }
        .mobile-nav li:nth-child(4) { animation-delay: 0.4s; }
        .mobile-nav li:nth-child(5) { animation-delay: 0.5s; }

        .mobile-nav a {
            color: var(--text);
            text-decoration: none;
            font-size: 1.8rem;
            font-weight: 700;
            transition: color 0.3s ease;
            position: relative;
        }

        .mobile-nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 3px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }

        .mobile-nav a:hover::after {
            width: 100%;
        }

        .mobile-nav a:hover {
            color: var(--primary);
        }
.cyber-header-v2 { 
   position: sticky;
   display: flex;
    flex-direction: column;   /* stack items vertically */
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--darker);
    border-bottom: 1px solid var(--border);
    z-index:9999;
    padding: 0;
}
   .header-container { 
            margin: 0;
            padding:0 5px 0 5px;
            display: flex;
            flex-direction: column;  
            border-bottom: 1px solid var(--border);
        }
.ptutorialslogo{
display: flex;flex-direction: row; align-items: center; justify-content:center;
}
  /* Buttons */
        .btn-v2 {
            padding: 3px 6px;
            border-radius: 0;
            font-weight: bold;
            cursor: pointer;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-v2-primary {
            background: var(--primary);
            color: white; border: 2px solid var(--primary);
        }
     .btn-v2-primary:hover {
            background: transparent;
            border:2px solid var(--primary);
            color: var(--secondary);
        
        }
        .btn-v2-outline{
            background: transparent;
            color: var(--secondary);
            border: 2px solid var(--secondary);
        }

        .btn-v2-outline:hover {
            background: var(--secondary);
            color: var(--bg-light);
        }
   
.plicon {
    display: inline-block;
    background-image: url('https://www.ptutorials.com/images/programminglang.webp');
    vertical-align: middle; background-repeat: no-repeat;
}
  
.cyber-header-v2 #startpage-btn .plicon { background-position: 0 0; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}       /* Tutorials */
.cyber-header-v2 #html-btn .plicon {  background-position:  1px -5px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}        /* HTML */
.cyber-header-v2 #css-btn .plicon { background-position: -43px -5px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}         /* CSS */
.cyber-header-v2 #js-btn .plicon { background-position: -21px -5px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}          /* JavaScript */
.cyber-header-v2 #php-btn .plicon { background-position: -67px -5px; width: 30px;height: 18px;background-size: 180px auto;margin-right: 8px;}         /* PHP */
.cyber-header-v2 #mysql-btn .plicon { background-position: -100px -25px; width: 30px;height: 30px;background-size: 180px auto;margin-right: 8px;}      /* MySQL */
.cyber-header-v2 #python-btn .plicon { background-position: -98px 0px; width: 25px;height: 25px;background-size: 180px auto;margin-right: 8px; }     /* Python */
.cyber-header-v2 #c-btn .plicon {background-position: -120px -2px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}          /* C */
.cyber-header-v2 #cpp-btn .plicon { background-position: 5px -30px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}        /* C++ */
.cyber-header-v2 #r-btn .plicon { background-position: -48px -28px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}          /* R */
.cyber-header-v2 #kotlin-btn .plicon { background-position: -65px -26px; width: 25px;height: 20px;background-size: 160px auto;margin-right: 8px;}     /* Kotlin */
.cyber-header-v2 #rust-btn .plicon { background-position: -20px -30px;filter: invert(100%) brightness(2);width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}       /* Rust */
.cyber-header-v2 #swift-btn .plicon { background-position: -130px -28px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}      /* Swift */
.cyber-header-v2 #go-btn .plicon { background-position: -10px -55px; width: 25px;height: 20px;background-size: 180px auto;margin-right: 8px;}      /* Goang */
.cyber-header-v2 #java-btn  .plicon{ background-position: -35px -55px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;} 
.cyber-header-v2 #nodejs-btn  .plicon{ background-position: 0px -80px; width: 40px;height: 24px;background-size: 180px auto;margin-right: 8px;} 
.cyber-header-v2 #react-btn  .plicon{ background-position: -63px -54px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;} 
.cyber-header-v2 #asp-btn  .plicon{ background-position: -99px -52px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;} 
.cyber-header-v2 #dsa-btn  .plicon{ background-position: -38px -80px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;}
.cyber-header-v2 #cloud-btn  .plicon{ background-position: -129px -54px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;} 
.cyber-header-v2 #ruby-btn  .plicon{ background-position: -74px -80px; width: 30px;height: 20px;background-size: 180px auto;margin-right: 8px;}
 
        /* Top Bar (Mobile) */
        .mobile-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 5px 0; 
        }

        .logo-v2 {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text);
            text-decoration: none;  display: flex; 
            align-items: center;
        }

        .logo-v2 img { 
            height: 40px;
        }

        .mobile-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        /* Hamburger Menu */
        .menu-toggle {
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 2px;
            background-color: var(--secondary);
            transition: all 0.3s ease;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        /* Search */
        .search-container-v2 {
            position: relative;
        }

        .search-trigger {
            background: none;
            border: none;
            color: var(--secondary);
            font-size: 1.2rem;
            cursor: pointer;
            padding: 5px;
        }

        .search-box {
            position: absolute;
            top: 0;
            right: 0;
            background: var(--secondary);
            padding: 0;
            display: none;
            z-index: 1001;
            width: 300px;
            height:35px;
        }

        .search-box.active {
            display: flex;
            gap: 0;
        }
.close-search-btn {
  background: none;
  border: none;
  color: red;
  font-size: 34px;
  cursor: pointer;
  padding: 0 8px;
  transition: color 0.3s ease;
}

.close-search-btn:hover {
  color: #ff4d4d; /* lighter red on hover */
}

        .search-input {
            flex: 1;
            padding: 6px;
            background: var(--darker);
            color: var(--secondary);
            outline: none;
            height:auto;
        }

        .search-input:focus {
            border-color: var(--secondary);
            box-shadow: 0 0 5px var(--secondary);
        }

        .search-btn-v2 {
            padding: 4px 8px;
            background: var(--primary);
            color: white;
            border: none;
            cursor: pointer;
        }

    
/* Suggestions Container Styles */
.search-index {
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    background-color: var(--bg-light); /* White background */
    word-break: break-all; /* Word break for long words */
    position: absolute;
    display:none;
    top:45px;
    right:0;
    width: 400px; /* Adjust width as necessary */
    max-width: auto; /* Adjust max width as necessary */
    z-index: 90;
    max-height: 400px; /* Adjust the max height as needed */
    overflow-y: auto; /* Enable vertical scrolling */
    scrollbar-width: thin; /* Set scrollbar width */
    scrollbar-color: #3498db #f1f1f1; /* Scrollbar colors */
    padding: 10px;
    transition: background-color 0.3s ease; /* Transition for background color */
}

.search-index::-webkit-scrollbar {
    width: 10px; /* Scrollbar width */
}

.search-index::-webkit-scrollbar-thumb {
    background-color: #3498db; /* Scrollbar thumb color */
    border-radius: 6px; /* Thumb border radius */
}

.search-index::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Scrollbar track color */
}

.search-index::-webkit-scrollbar-thumb:hover {
    background-color: #2980b9; /* Thumb color on hover */
}

.search-index:hover {
    scrollbar-color: #2980b9 #f1f1f1; /* Scrollbar color on hover */
}
    .account-icon .dropbtn {   display: flex; 
  width: auto;
  height: auto;     background-color: #4A4A4A;
  border-radius:50%; 
  cursor: pointer;
  z-index: 3;  
  margin:0 10px 0 10px;
  pointer-events: all; 
  transition: background-color 0.3s ease, border-color 0.3s ease; }
 .account-icon .dropbtn:hover { transform: scale(1.1); box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); }
 
  .searchicon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; object-fit: cover; }        /* Navigation */
   .suggestion {margin-bottom: 20px;padding: 10px;border: 1px solid #ccc;background-color: #f9f9f9;}
.suggestion a {color: #000;text-decoration: none;font-weight: bold; }
.suggestion a:hover {color: blue;text-decoration: none;font-weight: bold; }
.suggestion p {margin-top: 5px;color: #555;font-size: 14px; }
.suggestion span{color:tomato;   display: block;
    font-size: 1.2em;
    font-weight: bold; 
    margin-bottom: 5px;text-align: center;width:100%;}
.main-nav { 
            max-height: 0;
            overflow-y: auto;           /* enable vertical scrolling */
           -webkit-overflow-scrolling: touch;  
            transition: max-height 0.3s ease;
        }

        .main-nav.active {   
  max-height: calc(100vh - 60px);
        }
 
        .nav-list {
            list-style: none;
            padding: 10px 0;
        }

        .nav-item {
            border-bottom: 1px solid var(--border);
        }

        .nav-link {
            display: block;
            padding: 15px;
            color: var(--secondary);
            text-decoration: none;
            font-weight: bold;
            text-transform: uppercase;
            position: relative;
        }

        .nav-link:hover {
            color: var(--primary);
        }

        /* Dropdowns */
        .dropdown-toggle {
            color:var(--secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dropdown-toggle::after {
            content: "▼";
            font-size: 0.7rem;
            transition: transform 0.3s ease;
        }

        .dropdown-toggle.active::after {
            transform: rotate(180deg);
        }

        .dropdown-top-menu {
            background: var(--bg-light);
            padding-left: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
        }

        .dropdown-top-menu.active {
            max-height: 1000px;
        }

        .dropdown-top-item {
            display: block;
            padding: 12px 15px;
            color: var(--text-muted);
            text-decoration: none;
            border-left: 2px solid var(--border);
        }

        .dropdown-top-item:hover {
            color: var(--secondary);
            border-left-color: var(--secondary);
        }


 @media (max-width: 950px) {     
       .main-nav { 
  width:100%;
  margin: 0;
          }
      .search-container-v2 {  
          margin-top: 10px ;
        display: block;
        position: relative;
        }
      .account-icon {
         display: none;
        }
       .btn-v2 {
         margin-top: 20px ;
        }
  /* Make search box visible by default on mobile */
  .search-box {
    display: flex !important; /* override the display:none */
    position: relative; /* not absolute, so it fits layout */
    gap: 6px; 
    background: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 5px;
    width: 100%;
    height:100%;
    z-index: 1001;
  }
 /* Suggestions Container Styles */
.search-index {
    top:50px;
    left:0;
    width: auto; 
    max-height: 220px;  
    padding: 10px; 
}
}
        /* Desktop Layout */
        @media (min-width: 950px) {
            .header-container {
                display:flex;
                flex-direction: row; 
                height: auto;
            }

            .mobile-top-bar {
                padding: 0;
            }

            .menu-toggle {
                display: none;
            }
 .main-nav {
     flex-direction: row-reverse;
  display: flex;
  justify-content: space-between;  
  align-items: center;  
  padding: 0; 
  max-height: none;
  overflow: visible;
  width:100%;
  margin: 0;
          }
 
            .nav-list {
                display: flex;
                padding: 0;
                gap: 5px;
            }

            .nav-item {
                border-bottom: none;
                position: relative;
            }

            .nav-link {
                padding: 10px 15px;
            }

            .dropdown-top-menu {
                position: absolute;
                top: 100%;
                left: 0;
                min-width: 250px;
                background: var(--bg-light);
                box-shadow: 0 5px 15px rgba(0,0,0,0.3);
                z-index: 999;
            }

            .dropdown-top-item {
                border-left: none;
                padding: 8px 15px;
            }

            .mobile-actions {
                display: none;
            }

            .desktop-actions {
                display: flex;  flex-wrap: wrap; 
                gap: 5px;
            }
        }

        /* Animations */
        @keyframes flicker {
            0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
            20%, 22%, 24%, 55% { opacity: 0.7; }
        }

        .flicker {
            animation: flicker 3s infinite;
        }

        @keyframes rgb {
            0% { text-shadow: 0 0 5px var(--primary); }
            33% { text-shadow: 0 0 5px var(--secondary); }
            66% { text-shadow: 0 0 5px var(--accent); }
            100% { text-shadow: 0 0 5px var(--primary); }
        }
  #particles-js {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

       
        /* Marquee Containers */
        .marquee-container {
            position: relative;
            width: 100%;
            max-width: 1200px;
            overflow: hidden;
            padding: 1.5rem 0;
        }
        
        /* Blurred edge overlays */
        .marquee-container::before,
        .marquee-container::after {
            content: '';
            position: absolute;
            top: 0;
            width: 200px;
            height: 100%;
            z-index: 2;
            pointer-events: none;
        }
        
        .marquee-container::before {
            left: 0;
            background: linear-gradient(to right, white 30%, transparent);
        }
        
        .marquee-container::after {
            right: 0;
            background: linear-gradient(to left, white 30%, transparent);
        }
        
        /* Marquee track */
        .marquee-track {
            display: flex;
            gap: 3.5rem;
            width: max-content;
        }
        
        /* Single marquee item */
        .marquee-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-width: 140px;
            height: 100px;
            background: rgba(30, 41, 59, 0.8);
            border-radius: 12px;
            padding: 1.2rem;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
        }
        
        .marquee-item:hover {
            transform: translateY(-5px);
            background: rgba(51, 65, 85, 0.95);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
            border-color: rgba(96, 165, 250, 0.5);
        }
        
        /* Language logo styling */
        .language-logo {
            font-size: 2.2rem;
            margin-bottom: 0.8rem;
            transition: transform 0.3s ease;
        }
        
        .marquee-item:hover .language-logo {
            transform: scale(1.1);
        }
        
        .language-name {
            font-size: 1rem;
            font-weight: 600;
            color: #e2e8f0;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }
        
        /* Marquee animations */
        .marquee-track-1 {
            animation: scroll-left 35s linear infinite;
        }
        
        .marquee-track-2 {
            animation: scroll-right 40s linear infinite;
        }
        
        /* Pause animation on container hover */
        .marquee-container:hover .marquee-track {
            animation-play-state: paused;
        }
        
        @keyframes scroll-left {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }
        
        @keyframes scroll-right {
            0% {
                transform: translateX(-50%);
            }
            100% {
                transform: translateX(0);
            }
        }
        
        /* Responsive adjustments */
        @media (max-width: 768px) {
            .marquee-item {
                min-width: 120px;
                height: 90px;
                padding: 1rem;
            }
            
            .language-logo {
                font-size: 1.8rem;
            }
            
            .language-name {
                font-size: 0.9rem;
            }
            
            .marquee-container::before,
            .marquee-container::after {
                width: 100px;
            }
        }
        
        @media (max-width: 480px) {
            .marquee-item {
                min-width: 100px;
                height: 80px;
            }
            
            .marquee-container::before,
            .marquee-container::after {
                width: 60px;
            }
        }
        .ptutorialsfeatures {
    padding: var(--space-xl) 0;
    background: var(--bg-lighter);
    position: relative;
}

.trending-header {
    margin-bottom: var(--space-xl);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-lg);
}

.title-group h2 {
    font-size: var(--font-2xl);
    color: var(--text);
    margin-bottom: var(--space-xs);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-light);
    font-size: var(--font-md);
}

.trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: var(--font-sm);
    box-shadow: var(--shadow-md);
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    background: var(--white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-item i {
    font-size: 24px;
    color: var(--primary);
    background: var(--primary-lighter);
    padding: 12px;
    border-radius: 50%;
}

.stat-value {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text);
}

.stat-label {
    color: var(--text-light);
    font-size: var(--font-sm);
}

.modern-chart-container {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.chart-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.nav-group {
    display: flex;
    gap: 8px;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 20px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chart-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-lighter);
    font-size: var(--font-sm);
}

.chart-visualization {
    position: relative;
    min-height: 400px;
    padding-top: var(--space-lg);
}

.chart-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(to right, transparent, transparent 24%, var(--border) 25%),
        repeating-linear-gradient(to bottom, transparent, transparent 19.9%, var(--border) 20%);
    background-size: 25% 20%;
    opacity: 0.3;
}

.modern-bar-chart {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.chart-bar {
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.chart-bar:hover {
    transform: translateX(8px);
}

.chart-bar:hover .bar-hover {
    opacity: 1;
    transform: translateY(-50%);
}

.bar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rank-badge {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 6px;
    font-weight: 700;
    color: var(--text);
    font-size: var(--font-sm);
}

.chart-bar.first .rank-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.chart-bar.second .rank-badge {
    background: linear-gradient(135deg, #C0C0C0, #A0A0A0);
    color: white;
}

.chart-bar.third .rank-badge {
    background: linear-gradient(135deg, #CD7F32, #A0522D);
    color: white;
}

.lang-info {
    flex: 1;
}

.lang-name {
    font-weight: 600;
    color: var(--text);
    font-size: var(--font-md);
}

.lang-count {
    color: var(--text-light);
    font-size: var(--font-sm);
}

.trend-indicator {
    color: var(--secondary);
    font-size: 14px;
}

.bar-track {
    height: 24px;
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.bar-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 12px;
}

.bar-percentage {
    color: white;
    font-weight: 600;
    font-size: var(--font-sm);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.bar-hover {
    position: absolute;
    right: -260px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 240px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
    border-left: 4px solid var(--primary);
}

.bar-hover::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-right-color: white;
}

.chart-axis {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

.y-axis {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: var(--font-sm);
    margin-bottom: 8px;
}

.x-axis {
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-sm);
}

/* Ad Container */
.modern-ad {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.ad-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--light-gray);
    color: var(--text-light);
    font-size: var(--font-sm);
}

.ad-content {
    padding: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading & Error States */
.chart-loading,
.chart-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: var(--text-light);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.loading-spinner i {
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.retry-btn {
    margin-top: 16px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .chart-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .bar-hover {
        display: none;
    }
    
    .stats-summary {
        grid-template-columns: 1fr;
    }
}

/* Details Panel Styles */
.details-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 9999999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-left: 1px solid var(--border);
}

.details-panel.active {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h3 {
    margin: 0;
    font-size: var(--font-lg);
    color: white;
}

.close-panel {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.close-panel:hover {
    background: rgba(255, 255, 255, 0.3);
}

.panel-content {
    padding: 24px;
}

.selected-language {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.lang-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary));
    color: white;
    box-shadow: var(--shadow-md);
}

.lang-info h4 {
    margin: 0 0 8px 0;
    font-size: var(--font-xl);
    color: var(--text);
}

.lang-tags {
    display: flex;
    gap: 8px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.web {
    background: var(--primary-lighter);
    color: var(--primary);
}

.tag.mobile {
    background: #dbeafe;
    color: var(--primary-light);
}

.tag.trending {
    background: var(--accent-light);
    color: var(--accent);
}

.insight-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.insight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: transform 0.2s ease;
}

.insight-item:hover {
    transform: translateY(-2px);
    background: var(--bg-lighter);
}

.insight-label {
    font-size: var(--font-xs);
    color: var(--text-light);
    margin-bottom: 4px;
    text-align: center;
}

.insight-value {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--text);
}

.insight-value.positive {
    color: var(--secondary);
}

.insight-value.negative {
    color: #ef4444;
}

.trend-graph {
    background: var(--light-gray);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    height: 120px;
    position: relative;
}

.trend-line {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 80px;
}

.trend-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--primary) 20%,
        var(--secondary) 40%,
        var(--accent) 60%,
        transparent 100%);
    mask-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 Q50,20 100,40 Q150,80 200,30 Q250,70 300,50' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    animation: trendWave 3s ease-in-out infinite;
}

/* Language details content */
.language-details {
    margin-top: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-size: var(--font-sm);
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 0.5s ease;
}

.repo-list {
    margin-top: 24px;
}

.repo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.repo-item:hover {
    background: var(--bg-lighter);
}

.repo-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.repo-name {
    flex: 1;
    font-weight: 600;
    color: var(--text);
}

.repo-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: var(--font-sm);
}

/* Overlay for panel */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation keyframes */
@keyframes trendWave {
    0%, 100% {
        mask-position: 0% 50%;
    }
    50% {
        mask-position: 100% 50%;
    }
}

/* Responsive panel */
@media (max-width: 768px) {
    .details-panel {
        width: 100%;
        right: -100%;
    }
    
    .insight-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .insight-stats {
        grid-template-columns: 1fr;
    }
    
    .panel-header {
        padding: 16px;
    }
    
    .panel-content {
        padding: 16px;
    }
}

/* Panel controls */
.panel-controls {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.panel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--light-gray);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.panel-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.panel-btn.primary {
    background: var(--primary);
    color: white;
}

.panel-btn.primary:hover {
    background: var(--primary-light);
}

/* Language comparisons */
.comparison-chart {
    margin-top: 24px;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

.comparison-lang {
    width: 100px;
    font-weight: 600;
    color: var(--text);
}

.comparison-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.comparison-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

.comparison-value {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--text);
}
/* Panel Overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Filter-specific styles */
.chart-bar[data-filter="web"] .tag.web {
    display: inline-block;
}

.chart-bar[data-filter="mobile"] .tag.mobile {
    display: inline-block;
}

/* Panel controls */
.panel-controls {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.panel-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--light-gray);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.panel-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.panel-btn.primary {
    background: var(--primary);
    color: white;
}

.panel-btn.primary:hover {
    background: var(--primary-light);
}

/* Add this to your existing .nav-btn styles */
.nav-btn:active {
    transform: scale(0.98);
}

/* Data science filter button style */
.nav-btn[data-filter="data"] i {
    color: var(--python-color);
}

/* Mobile filter button style */
.nav-btn[data-filter="mobile"] i {
    color: var(--swift-color);
}

/* Web filter button style */
.nav-btn[data-filter="web"] i {
    color: var(--js-color);
}
 .cookies-popup {
  position: fixed;
  bottom: 20px;
  left: -350px;
  width: 300px;
  max-width: 90%;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-card-light);
  color: var(--text);
  font-family: "Segoe UI", sans-serif;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
  transition: left 0.45s ease-in-out;
  z-index: 999999;
}

.cookies-popup.show {
  left: 20px;
}

.cookies-header {
     color:var(--text-secondary);
     font-size: 16px;
    font-weight: bold;  margin-bottom: 10px;
    text-shadow: 0px 0px 6px rgba(0, 255, 127, 0.8);
}

.cookies-title {
  font-size: 15px;
}

.cookies-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.cookies-buttons button {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform .2s;
}

#yesButton {
  background:white;
  border:1px solid green;
  color: green;
}

#noButton {
  background:white;
  border:1px solid red;
  color: red;
}

.cookies-buttons button:hover {
  transform: scale(1.06);
}

.cookies-links {
    display: flex;            /* Use flexbox */
    justify-content: center;  /* Center the links horizontally */
    gap: 20px;               /* Optional: space between links */
    margin: 10px 0;          /* Optional: add some margin for spacing */
}

.cookies-links a {

    font-size:10px;
    margin: 5px 0;           /* Optional: add some margin between links */
    text-decoration: none;    /* Remove underline */
}
 .CookieConsentterminal-icon {
            color: royalblue;
            font-weight: bold;
        }

        .cursor {
            POSITION:absolute;
            width: 10px;
            height: 20px;margin-left:5px;
            background-color:royalblue; 
             animation: blink 1s step-end infinite;
        }

        /* Blinking cursor animation */
        @keyframes blink {
            50% {
                opacity: 0;
            }
        }
/* Terminal header with title */
.CookieConsentterminal-header {
    background-color: #333;
    color:lightblue;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0px 0px 6px rgba(0, 255, 127, 0.8);
}
 .topHomeBtn {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 999;
    font-size: 20px;
    color: red;
    cursor: pointer;
    width: 50px;
    height: 50px;
    background-color: black;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
}

.topHomeBtn i {
    margin-top: 15px;
}

.topHomeBtn:active {
    color: black;
    background-color: red;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
}

.topHomeBtn.active i {
    margin-top: 5px;
}

.topHomeBtn:hover {
    background-color: red;
}
/* CSS */
.fa-top {
  display: inline-block;      /* Needed to apply width and height */
  width: 25px;                /* Width of the icon */
  height: 25px;               /* Height of the icon */
  text-align: center;
  margin-top:10px;
  background-size: auto;      /* Adjust if scaling the image */
}