/* ===== FLUTTER APP BLUE THEME VARIABLES ===== */
:root {
    /* Dark Theme - Matching Flutter App Colors */
    --primary-blue: #3B82F6;
    /* darkPrimary */
    --accent-cyan: #06B6D4;
    /* darkAccent */
    --bg-primary: #0F172A;
    /* darkBackground */
    --bg-secondary: #1E293B;
    /* darkSurface */
    --bg-tertiary: #334155;
    /* darkCardBackground */

    /* Text Colors */
    --text-primary: #F1F5F9;
    /* darkTextPrimary */
    --text-secondary: #CBD5E1;
    /* darkTextSecondary */
    --text-tertiary: #94A3B8;
    /* darkTextTertiary */

    /* Gradients - Blue Theme */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --gradient-accent: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    --gradient-ocean: linear-gradient(135deg, #0EA5E9 0%, #2563EB 50%, #4F46E5 100%);

    /* Shadows */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-blue: 0 8px 24px rgba(59, 130, 246, 0.4);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --header-height: 80px;
    --section-padding: 60px 40px;
    --download-btn-height: 100px;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    padding-bottom: var(--download-btn-height);
    position: relative;
}

/* ===== MODERN BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse 80% 50% at 50% -20%,
            rgba(59, 130, 246, 0.08),
            transparent);
}

.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    filter: blur(80px);
    top: -300px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50px, 50px);
    }
}

/* ===== MODERN HEADER ===== */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    z-index: 1000;
    transition: var(--transition-medium);
}

.modern-header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-large);
    border-bottom-color: rgba(59, 130, 246, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== LOGO ===== */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--shadow-blue);
    transition: var(--transition-medium);
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.6);
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
}

/* ===== IMAGE LOGO ===== */
.logo-image {
    height: 50px;
    /* Much bigger */
    width: auto;
    max-width: 200px;
    /* Allow wider logos */
    object-fit: contain;
    cursor: pointer;
    transition: var(--transition-medium);
}

.logo-image:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 42px;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 38px;
        max-width: 140px;
    }
}

.highlight {
    /* background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* background-clip: text; */

    color: #3B82F6;
} 

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== EYE-CATCHING HEADER DOWNLOAD BUTTON ===== */
.header-download-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.header-download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.header-download-btn:hover::before {
    transform: translateX(100%);
}

.header-download-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.7);
}

.header-download-btn:active {
    transform: translateY(0) scale(1);
}

.header-download-btn i {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* ===== HIDE MENU BUTTON AND MENU ===== */
.menu-toggle,
.side-menu,
.menu-overlay {
    display: none !important;
}

/* ===== WELCOME BANNER (REPLACES HERO) ===== */
.welcome-banner {
    padding: 80px 40px 60px;
    text-align: center;
    background: linear-gradient(to bottom,
            rgba(59, 130, 246, 0.05) 0%,
            transparent 100%);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.welcome-badge i {
    color: #FFD700;
}

.welcome-title {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: var(--gradient-ocean);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== CATEGORY SECTION ===== */
.category-section {
    padding: 40px;
}

.section-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.category-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 8px;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-pill:hover {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
    border-color: rgba(59, 130, 246, 0.4);
}

.category-pill.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: var(--shadow-blue);
}

.category-pill i {
    font-size: 14px;
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 20px 40px 60px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* ===== CONTENT CARDS ===== */
.content-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: var(--transition-medium);
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.card-image {
    width: 100%;
    aspect-ratio: 2/3;
    background: var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.95) 0%,
            rgba(15, 23, 42, 0.4) 40%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.content-card:hover .card-image::after {
    opacity: 1;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: var(--shadow-small);
    z-index: 2;
}

.card-rating i {
    color: #FFD700;
    font-size: 12px;
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
    z-index: 2;
}

.content-card:hover .card-info {
    transform: translateY(0);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-meta {
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

/* ===== LOAD MORE BUTTON ===== */
.load-more-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 32px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.load-more-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: var(--section-padding);
    text-align: center;
}

.features-section .section-title {
    font-size: 36px;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: var(--shadow-blue);
    transition: var(--transition-medium);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ===== FAQ SECTION - FIXED PADDING ===== */
.faq-section {
    padding: 60px 40px 140px;
}

.faq-section .section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    padding: 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 17px;
    user-select: none;
}

.faq-question i {
    font-size: 20px;
    color: var(--text-secondary);
    transition: transform var(--transition-medium);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ===== FLOATING DOWNLOAD ===== */
.floating-download {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 40px;
    /* Increased bottom padding for mobile */
    background: linear-gradient(to top, rgba(15, 23, 42, 0.98), transparent);
    backdrop-filter: blur(10px);
    z-index: 999;
    pointer-events: none;
}

.download-btn {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 18px 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-blue);
    pointer-events: all;
}

.download-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.6);
}

.download-btn:active {
    transform: scale(0.98);
}

.download-btn i {
    font-size: 20px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
/* ===== LEGAL SECTION ===== */
.legal-section {
    padding: 40px 40px 60px;
    /* Reduced bottom padding */
    background: rgba(59, 130, 246, 0.03);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.legal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-blue);
}

.legal-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    text-align: left;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 30px 20px 100px;
    }

    .legal-container {
        padding: 30px 20px;
    }

    .legal-title {
        font-size: 18px;
    }

    .legal-text {
        font-size: 13px;
    }
}

/* ===== MOBILE DOWNLOAD BUTTON FIX ===== */
@media (max-width: 768px) {
    .floating-download {
        padding: 16px 16px 36px;
        /* More space at bottom on mobile */
    }

    .download-btn {
        padding: 16px 32px;
        /* Slightly smaller on mobile */
        font-size: 16px;
    }

    .legal-section {
        padding: 30px 20px 40px;
        /* Less bottom padding on mobile */
    }
}