/* ============================================
   MODERN AI/DIGITAL MARKETING DESIGN SYSTEM
   Professional, Colorful, Attractive
   ============================================ */

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

:root {
    /* AI/Digital Marketing Color Palette */
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

    /* Neutrals */
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ANIMATED BACKGROUND */
.ai-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
    background:
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
}

.ai-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, rgba(99, 102, 241, 0.03) 0px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, rgba(139, 92, 246, 0.03) 0px, transparent 1px, transparent 40px);
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

/* CONTAINER */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* HEADER */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.main-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

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

/* HERO SECTION */
.hero-section {
    margin-top: 80px;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 10, 30, 0.7) 0%, rgba(0, 20, 50, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 4px at 12% 25%, rgba(6, 182, 212, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 22% 50%, rgba(6, 182, 212, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 32% 35%, rgba(59, 130, 246, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 42% 60%, rgba(6, 182, 212, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 58% 30%, rgba(59, 130, 246, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 68% 55%, rgba(6, 182, 212, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 78% 40%, rgba(59, 130, 246, 0.9) 0%, transparent 100%),
        radial-gradient(circle 4px at 88% 65%, rgba(6, 182, 212, 0.9) 0%, transparent 100%);
    z-index: 2;
    animation: connectionBlink 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes connectionBlink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 700px 500px at 25% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 600px 400px at 75% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 100;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Security Shield Container */
.security-shield {
    position: relative;
    width: 450px;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.shield-glow {
    position: absolute;
    width: 170%;
    height: 170%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background:
        radial-gradient(ellipse at center, rgba(6, 182, 212, 0.9) 0%, rgba(59, 130, 246, 0.7) 25%, rgba(16, 185, 129, 0.4) 45%, transparent 70%);
    filter: blur(120px);
    animation: shieldPulse 4s ease-in-out infinite;
    z-index: 1;
}

@keyframes shieldPulse {
    0%, 100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.shield-image {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: 85%;
    background-position: center center;
    background-repeat: no-repeat;
    clip-path: polygon(50% 4%, 88% 16%, 88% 42%, 88% 71%, 50% 96%, 12% 71%, 12% 42%, 12% 16%);
    z-index: 2;
    opacity: 1;
}

.shield-border-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    filter: drop-shadow(0 0 30px rgba(6, 182, 212, 1)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.7));
    pointer-events: none;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: visible;
    animation: heroFloat 6s ease-in-out infinite;
}

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

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: var(--radius-2xl);
    animation: shieldGlow 4s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(6, 182, 212, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -20px;
    background:
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(6, 182, 212, 0.05) 10px, rgba(6, 182, 212, 0.05) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(59, 130, 246, 0.05) 10px, rgba(59, 130, 246, 0.05) 20px);
    z-index: -2;
    border-radius: var(--radius-2xl);
    filter: blur(15px);
    opacity: 0.7;
    animation: circuitPulse 6s ease-in-out infinite;
}

@keyframes shieldGlow {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow:
            0 0 30px rgba(59, 130, 246, 0.6),
            0 0 60px rgba(6, 182, 212, 0.4);
    }
    50% {
        background-position: 100% 50%;
        box-shadow:
            0 0 40px rgba(59, 130, 246, 0.8),
            0 0 80px rgba(6, 182, 212, 0.6);
    }
}

@keyframes circuitPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes borderGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-2xl);
}

.hero-content {
    position: relative;
    z-index: 50;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: #ffffff;
    letter-spacing: -1.5px;
}

.hero-content h1.gradient-text-animated {
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 30%, #c7d2fe 50%, #e0e7ff 70%, #ffffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 1)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
}

.hero-content .tagline {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: var(--space-lg);
    line-height: 1.75;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1), 0 4px 16px rgba(0, 0, 0, 0.9), 0 6px 24px rgba(0, 0, 0, 0.7);
    font-weight: 400;
    opacity: 0.98;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

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

/* SECTION */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-description {
    font-size: 1.25rem;
    color: var(--gray-500);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* MODERN SLIDER - 1000x250px (4:1 ratio) */
.modern-slider {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-lg);
}

.slider-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    padding: 6px;
    background: var(--gradient-primary);
    animation: sliderBorderRotate 8s linear infinite;
}

@keyframes sliderBorderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.slider-inner {
    border-radius: calc(var(--radius-2xl) - 6px);
    overflow: hidden;
    height: 250px;
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide-item.active {
    opacity: 1;
}

.slide-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-nav {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 40px;
    border-radius: var(--radius-sm);
    background: white;
}

/* ANALYTICS CARDS */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.analytics-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: visible;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.analytics-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    border-radius: var(--radius-xl);
    z-index: -1;
    animation: borderShine 4s ease-in-out infinite;
}

.analytics-card::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.4), rgba(240, 147, 251, 0.3));
    background-size: 300% 300%;
    border-radius: var(--radius-xl);
    z-index: -2;
    filter: blur(15px);
    opacity: 0.5;
    animation: borderShine 4s ease-in-out infinite;
}

@keyframes borderShine {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.analytics-card > div,
.analytics-card > * {
    position: relative;
    z-index: 1;
}

.analytics-card-inner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 245, 255, 0.95));
    padding: var(--space-xl);
    border-radius: calc(var(--radius-xl) - 2px);
    backdrop-filter: blur(10px);
}

.analytics-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 50px rgba(102, 126, 234, 0.4);
}

.analytics-card:hover::after {
    opacity: 0.8;
    filter: blur(20px);
}

.analytics-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.analytics-label {
    color: var(--gray-500);
    font-weight: 600;
    font-size: 1rem;
}

/* BOOK CARDS */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.book-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.book-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
}

.book-image {
    height: 350px;
    overflow: hidden;
    position: relative;
}

.book-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.book-card:hover .book-image img {
    transform: scale(1.1);
}

.book-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: var(--gradient-warm);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.875rem;
}

.book-body {
    padding: var(--space-lg);
}

.book-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.book-description {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.book-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 2px solid var(--gray-100);
}

.book-price {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* BLOG CARDS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.blog-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

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

.blog-image {
    height: 240px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-body {
    padding: var(--space-lg);
}

.blog-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.blog-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--gray-900);
}

.blog-excerpt {
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

/* BANNER STRIP */
.banner-strip {
    background: var(--gradient-primary);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2); }
    50% { box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.4); }
}

/* FOOTER */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h3 {
    color: white;
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--primary);
}

/* ========================================
   MOBILE APP-LIKE RESPONSIVE DESIGN
   ======================================== */

/* MOBILE HAMBURGER MENU */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary, #6366f1);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-items {
    padding: 1rem 0;
}

.mobile-menu-items a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-menu-items a:hover,
.mobile-menu-items a:active {
    background: #f3f4f6;
    color: #6366f1;
}

.mobile-menu-items a i {
    width: 24px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* BOTTOM NAVIGATION BAR */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
    padding: 0.5rem 0;
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.5rem;
    min-width: 60px;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.bottom-nav-item.active {
    color: #6366f1;
}

.bottom-nav-item .bottom-cart-count {
    position: absolute;
    top: 0;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* TABLET - 768px */
@media (max-width: 768px) {
    /* ENABLE MOBILE MENU */
    .mobile-menu-toggle {
        display: block !important;
    }

    .mobile-menu,
    .mobile-menu-overlay {
        display: block !important;
    }

    .bottom-nav {
        display: block !important;
    }

    /* HEADER - MOBILE APP STYLE */
    .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 99 !important;
        background: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
        padding: 0.75rem 0 !important;
    }

    .header-inner {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 1rem !important;
    }

    /* HIDE DESKTOP NAV ON MOBILE */
    .main-nav {
        display: none !important;
    }

    /* SECTIONS - MOBILE PADDING */
    section {
        padding: 2rem 0 !important;
    }

    .container {
        padding: 0 1rem !important;
    }

    /* STATS GRID */
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }

    /* BOOKS GRID - 2 COLUMNS */
    .books-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* BLOG GRID */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* BOTTOM SPACING FOR NAV */
    body {
        padding-bottom: 70px !important;
    }

    /* HERO */
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem !important;
    }

    .slider-inner {
        height: 350px !important;
    }
}

/* MOBILE - 480px */
/* Blog Details - Bootstrap Row Layout */
.sidebar {
    position: sticky;
    top: 80px;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    /* STATS - SINGLE COLUMN */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* BOOKS - SINGLE COLUMN */
    .books-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .hero-content h1 {
        font-size: 1.6rem !important;
    }

    .slider-inner {
        height: 280px !important;
    }

    section {
        padding: 1.5rem 0 !important;
    }
}
