/* ============================================
   1. CSS VARIABLES (CENTRALIZED CONTROL)
   ============================================ */
:root {
    /* Primary Color Palette (Blue) */
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: rgba(14, 165, 233, 0.15);
    --primary-gradient: linear-gradient(135deg, #0ea5e9, #0284c7);
    
    /* Secondary Color Palette (Green) */
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: rgba(16, 185, 129, 0.15);
    --secondary-gradient: linear-gradient(135deg, #10b981, #059669);
    
    /* Neutral Colors */
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-lighter: #f8fbff;
    --bg-dark: #111827;
    
    --border-light: rgba(100, 116, 139, 0.12);
    --border-medium: #cbd5e1;
    --border-dark: #1f2937;

    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --font-xs: 0.75rem;      /* 12px */
    --font-sm: 0.875rem;     /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-lg: 1.125rem;     /* 18px */
    --font-xl: 1.25rem;      /* 20px */
    --font-2xl: 1.5rem;      /* 24px */
    --font-3xl: 1.875rem;    /* 30px */
    --font-4xl: 2.25rem;     /* 36px */
    --font-5xl: 3rem;        /* 48px */
    --font-6xl: 3.75rem;     /* 60px */
    
    /* Spacing */
    --spacing-1: 0.25rem;    /* 4px */
    --spacing-2: 0.5rem;     /* 8px */
    --spacing-3: 0.75rem;    /* 12px */
    --spacing-4: 1rem;       /* 16px */
    --spacing-5: 1.25rem;    /* 20px */
    --spacing-6: 1.5rem;     /* 24px */
    --spacing-8: 2rem;       /* 32px */
    --spacing-10: 2.5rem;    /* 40px */
    --spacing-12: 3rem;      /* 48px */
    --spacing-16: 4rem;      /* 64px */
    --spacing-20: 5rem;      /* 80px */
    
    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-3xl: 2rem;      /* 32px */
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 40px rgba(14, 165, 233, 0.15);
    --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 4px 12px rgba(14, 165, 233, 0.3);
    
    /* Breakpoints */
    --breakpoint-mobile: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-large: 1280px;
}

/* ============================================
   2. FONT IMPORTS & BASE TYPOGRAPHY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. RESET & UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--breakpoint-large);
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: var(--spacing-5) var(--spacing-6);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: var(--breakpoint-large);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-icon {
    width: 200px;
    display: flex;
}

.logo-icon img { 
    width: 100%; 
    height: auto;
}

/* Desktop Navigation */
.nav {
    display: flex;
    gap: var(--spacing-8);
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    padding: var(--spacing-2) 0;
    font-family: var(--font-primary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   5. HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
    padding: var(--spacing-16) var(--spacing-4);
    text-align: center;
}

.hero-title {
    font-size: var(--font-5xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-4);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: var(--font-xl);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   6. COMPRESS SECTION
   ============================================ */
.compress-section {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
    padding: var(--spacing-12) var(--spacing-6);
}

/* Upload Zone */
.upload-zone {
    background: var(--bg-white);
    border: 3px dashed var(--border-medium);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-16) var(--spacing-12);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--spacing-8);
}

.upload-zone:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), rgba(14, 165, 233, 0.02));
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.upload-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    margin: 0 auto var(--spacing-6);
}

.upload-title {
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-3);
}

.upload-subtitle {
    color: var(--text-light);
    font-size: var(--font-base);
    margin-bottom: var(--spacing-8);
}

/* ============================================
   7. BUTTONS
   ============================================ */
.btn-primary {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-4) var(--spacing-10);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--font-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-primary);
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: var(--font-sm);
}

.btn-compress {
    background: var(--primary-gradient);
    color: var(--text-white);
}

.btn-download {
    background: var(--secondary-gradient);
    color: var(--text-white);
}

.btn-download.active {
    display: inline-block;
}

.btn-clear {
    background: transparent;
    border: 2px solid var(--border-medium);
    color: var(--text-light);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   8. BATCH ACTIONS
   ============================================ */


.batch-actions {
    background: var(--bg-white);
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-8);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.batch-actions.active {
    display: block;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-4);
}

.batch-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-8);
}

.image-count {
    font-weight: 600;
    font-size: var(--font-lg);
}

.quality-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.quality-label {
    color: var(--text-light);
    font-size: var(--font-sm);
}

.slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.quality-value {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 45px;
}

.batch-buttons {
    display: flex;
    gap: var(--spacing-3);
    flex-wrap: wrap;
}

/* ============================================
   9. IMAGES GRID
   ============================================ */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-12);
}

.image-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-5);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: slideDown 0.4s ease-out;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.image-preview {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--spacing-4);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compression-badge {
    position: absolute;
    top: var(--spacing-3);
    right: var(--spacing-3);
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
}

.image-name {
    font-weight: 600;
    margin-bottom: var(--spacing-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-sm);
}

.image-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-xs);
}

.stat-row {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    color: var(--text-light);
}

.stat-value {
    font-weight: 600;
}

.stat-value.highlight {
    color: var(--primary-color);
}

.image-quality {
    margin-bottom: var(--spacing-4);
}

.quality-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-2);
    font-size: var(--font-xs);
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: var(--spacing-2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #06b6d4);
    border-radius: 2px;
    animation: progress 1.5s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 0%; }
}

.compressing-text {
    text-align: center;
    color: var(--text-light);
    font-size: var(--font-xs);
}

.image-actions {
    display: flex;
    gap: var(--spacing-2);
}

.btn-action {
    flex: 1;
    padding: var(--spacing-3);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: var(--font-xs);
}

.btn-compress-single {
    background: var(--primary-gradient);
    color: var(--text-white);
}

.btn-download-single {
    background: var(--secondary-gradient);
    color: var(--text-white);
}

.btn-remove {
    flex: 0 0 auto;
    padding: var(--spacing-3) var(--spacing-4);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-action:hover {
    transform: translateY(-2px);
}

/* ============================================
   10. HOW IT WORKS
   ============================================ */
.how-it-works {
    background: var(--bg-white);
    padding: var(--spacing-20) var(--spacing-6);
}

.section-title {
    text-align: center;
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-12);
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: var(--spacing-10) var(--spacing-8);
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    border: 2px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-6);
}

.step-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.step-text {
    color: var(--text-light);
    line-height: 1.6;
    font-family: var(--font-secondary);
}

/* ============================================
   11. SEO SECTION
   ============================================ */
.seo-section {
    background: var(--bg-light);
    padding: var(--spacing-20) var(--spacing-6);
}

.seo-content {
    max-width: 900px;
    margin: 0 auto;
}

.seo-block {
    margin-bottom: var(--spacing-12);
}

.seo-title {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.seo-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--font-lg);
    font-family: var(--font-secondary);
}

/* ============================================
   12. FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: #f3f4f6;
    padding: var(--spacing-16) var(--spacing-4) var(--spacing-4);
    font-family: var(--font-primary);
    line-height: 1.6;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

/* Footer Logo */
.footer-logo-section {
    margin-bottom: var(--spacing-8);
}

.footer-logo-img {
    max-width: 220px;
    height: auto;
}

/* Footer Description */
.footer-description-section {
    max-width: 800px;
    margin: 0 auto var(--spacing-10);
}

.footer-seo-title {
    font-size: var(--font-2xl);
    color: #38bdf8;
    margin-bottom: var(--spacing-4);
    font-weight: 700;
}

.footer-seo-text {
    color: #9ca3af;
    font-size: var(--font-lg);
    font-family: var(--font-secondary);
}

/* Footer Features */
.footer-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-8);
}

.feature-tag {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: var(--spacing-2) var(--spacing-5);
    border-radius: var(--radius-md);
    font-size: var(--font-xs);
    color: #e5e7eb;
    font-family: var(--font-secondary);
}

.footer-divider {
    border: 0;
    border-top: 1px solid var(--border-dark);
    margin-bottom: var(--spacing-12);
}

/* Footer Navigation */
.footer-nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-8);
    margin-bottom: var(--spacing-8);
    width: 100%;
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
}

.nav-title {
    color: var(--text-white);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.nav-list-horizontal {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-8);
}

.nav-list-horizontal a {
    color: #9ca3af;
    text-decoration: none;
    font-size: var(--font-sm);
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
}

.nav-list-horizontal a:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}

.nav-list a.active {
    color: #38bdf8;
    font-weight: 600;
}

/* Copyright */
.footer-copyright-bar {
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--border-dark);
    color: #6b7280;
    font-size: var(--font-sm);
    font-family: var(--font-secondary);
}

/* ============================================
   13. BLOG STYLES
   ============================================ */
.blog-hero {
    background: var(--primary-gradient);
    color: var(--text-white);
    padding: var(--spacing-20) var(--spacing-8);
    text-align: center;
    margin-bottom: var(--spacing-20);
}

.blog-hero h1 {
    font-size: var(--font-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-5);
    font-family: var(--font-primary);
}

.blog-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--font-lg);
    line-height: 1.7;
    opacity: 0.95;
    font-family: var(--font-secondary);
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--spacing-1) var(--spacing-4);
    border-radius: 50px;
    font-size: var(--font-xs);
    font-weight: 600;
    display: inline-block;
    margin-bottom: var(--spacing-5);
    font-family: var(--font-secondary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
    padding: 0 var(--spacing-8);
}

.blog-card {
    max-width: 400px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(5, 141, 240, 0.15);
}

.blog-image {
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1) rotate(1deg);
}

.blog-content {
    padding: var(--spacing-6);
}

.category {
    color: #4c4c4c;
    font-weight: 500;
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 1px solid #ebebeb;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-sm);
    font-family: var(--font-secondary);
}

.blog-content a {
    text-decoration: none;
}

.blog-content h2 {
    font-size: var(--font-xl);
    font-weight: 600;
    margin: var(--spacing-3) 0;
    color: var(--text-dark);
    line-height: 1.3;
    font-family: var(--font-primary);
}

.blog-content h2:hover {
    color: #38bdf8;
}

.blog-content p {
    color: var(--text-light);
    font-size: var(--font-sm);
    line-height: 1.6;
    margin-bottom: var(--spacing-5);
    font-family: var(--font-secondary);
}

.blog-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: var(--spacing-4);
}

.meta {
    color: #aaa;
    font-size: var(--font-xs);
    font-weight: 500;
    font-family: var(--font-secondary);
}


/* ============================================
   14. BLOG DETAIL STYLES
   ============================================ */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s ease;
}

.container-small {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

/* Breadcrumb */
.breadcrumb-container {
    padding: var(--spacing-5) 0;
    text-align: center;
}

.breadcrumb-list {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: var(--spacing-2) var(--spacing-5);
    margin: 0;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-light);
    border: 1px solid #ebebeb;
    border-radius: 20px;
    font-family: var(--font-secondary);
}

.breadcrumb-list li a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.2s ease;
    font-family: var(--font-primary);
}

.breadcrumb-list li a:hover {
    color: var(--primary-dark);
    font-weight: 600;
}

.breadcrumb-list .separator {
    margin: 0 var(--spacing-3);
    color: var(--border-medium);
    font-weight: 400;
}

.breadcrumb-list .current {
    color: var(--text-muted);
    font-weight: 400;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Post Hero */
.post-hero {
    padding: var(--spacing-16) 0 var(--spacing-8);
    text-align: center;
}

.back-link {
    display: block;
    margin-bottom: var(--spacing-8);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-primary);
}

.post-title {
    font-size: var(--font-5xl);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin: var(--spacing-4) 0 var(--spacing-6);
    font-family: var(--font-primary);
}

.post-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
    margin-bottom: var(--spacing-12);
}

.post-date {
    font-size: var(--font-xs);
    color: var(--text-light);
    font-family: var(--font-secondary);
}

.featured-image {
    width: 100%;
    height: 720px;
    overflow: hidden;
    border: 5px solid #ebebeb;
    border-radius: var(--radius-3xl);
    margin-bottom: 4em;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* table of content */
.toc-container {
    background: var(--bg-lighter, #f8fafc);
    border: 1px solid var(--border-medium, #e2e8f0);
    border-radius: var(--radius-xl, 12px);
    margin: var(--spacing-8) 0;
    padding: var(--spacing-4);
}

.toc-container summary {
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    color: var(--text-dark);
    list-style: none; /* Removes default arrow in some browsers */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Add a custom arrow using pseudo-elements */
.toc-container summary::after {
    content: "＋";
    font-size: 1.2rem;
    color: var(--primary-color);
}

.toc-container details[open] summary::after {
    content: "－";
}

.toc-links ul {
    list-style: none;
    padding: var(--spacing-4) 0 0 var(--spacing-2);
    margin: 0;
}

.toc-links li {
    margin-bottom: var(--spacing-3);
}

.toc-links a {
    text-decoration: none;
    color: var(--text-medium);
    transition: color 0.2s;
    font-size: var(--font-md);
}

.toc-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Smooth Scroll for better UX */
html {
    scroll-behavior: smooth;
}






/* Content Typography */
.content-area {
    font-size: var(--font-lg);
    line-height: 1.8;
    color: var(--text-medium);
    font-family: var(--font-secondary);
}

.lead {
    font-size: var(--font-xl);
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--spacing-8);
    font-family: var(--font-primary);
}

.content-area h2 {
    font-size: var(--font-3xl);
    margin: var(--spacing-12) 0 var(--spacing-6);
    color: var(--text-dark);
    font-family: var(--font-primary);
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-4) var(--spacing-8);
    background: var(--bg-lighter);
    font-style: italic;
    font-size: var(--font-xl);
    margin: var(--spacing-12) 0;
    border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
    font-family: var(--font-secondary);
}

.cta-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: var(--text-white);
    padding: var(--spacing-12);
    border-radius: var(--radius-2xl);
    text-align: center;
    margin: var(--spacing-16) 0;
}

.cta-box h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-4);
    font-family: var(--font-primary);
}

.cta-box p {
    opacity: 0.8;
    margin-bottom: var(--spacing-8);
    font-family: var(--font-secondary);
}



/* Blog detail progress */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    /* Using your primary blue variable */
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    width: 0%; /* Start at zero */
    z-index: 1001; /* Higher than the header */
    transition: width 0.1s ease;
}



/* ============================================
   15. SITEMAP STYLES
   ============================================ */
.sitemap-wrapper {
    padding: var(--spacing-16) var(--spacing-8);
    background-color: var(--bg-lighter);
}

.sitemap-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-20);
}

.breadcrumb-simple {
    font-size: var(--font-xs);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: var(--spacing-4);
    font-family: var(--font-secondary);
}

.breadcrumb-simple a {
    text-decoration: none;
}

.seo-h1 {
    font-size: clamp(var(--font-3xl), 5vw, var(--font-5xl));
    color: var(--text-dark);
    font-weight: 00;
    margin-bottom: var(--spacing-4);
    font-family: var(--font-primary);
}

.seo-p {
    font-size: var(--font-lg);
    color: var(--text-light);
    line-height: 1.6;
    font-family: var(--font-secondary);
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-6);
    margin-top: var(--spacing-16);
}

.sitemap-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--spacing-8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sitemap-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-5);
}

.card-icon {
    font-size: var(--font-2xl);
}

.sitemap-card h2 {
    font-size: var(--font-xl);
    color: var(--text-dark);
    margin: 0;
    font-family: var(--font-primary);
}

.sitemap-links {
    list-style: none;
    padding: 0;
}

.sitemap-links li {
    margin-bottom: var(--spacing-3);
}

.sitemap-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: var(--font-base);
    transition: color 0.2s ease;
    font-family: var(--font-primary);
}

.sitemap-links a:hover {
    color: var(--primary-color);
}

.bold-link {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.nested {
    padding-left: var(--spacing-5);
    border-left: 2px solid #f1f5f9;
    margin-left: var(--spacing-1);
}

/* ============================================
   16. 404 PAGE STYLES
   ============================================ */
body.page-404 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    color: var(--text-white) !important;
    overflow-x: hidden !important;
    font-family: var(--font-primary) !important;
}

.error-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.error-content {
    text-align: center;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.error-code {
    font-size: 12rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: -20px;
    position: relative;
    display: inline-block;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: var(--font-primary);
}

.error-code span {
    display: inline-block;
    animation: errorBounce 2s ease infinite;
}

.error-code span:nth-child(2) { animation-delay: 0.1s; }
.error-code span:nth-child(3) { animation-delay: 0.2s; }

.error-title {
    font-size: var(--font-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-5);
    background: linear-gradient(to right, #fff, #a8edea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: errorFadeInUp 1s ease;
    font-family: var(--font-primary);
}

.error-subtitle {
    font-size: var(--font-lg);
    margin-bottom: var(--spacing-16);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    animation: errorFadeInUp 1s ease 0.2s both;
    font-family: var(--font-secondary);
}

/* ============================================
   17. ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

@keyframes errorFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}


body.global-drag-active::after {
    content: "Drop Images Anywhere to Upload";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 165, 233, 0.9); /* Your Primary Color */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    z-index: 9999;
    pointer-events: none;
    border: 8px dashed white;
}



/* ============================================
   18. FAQ & ABOUT ALIGNED STYLES
   ============================================ */
.info-area {
    padding: var(--spacing-20) 0;
    background-color: var(--bg-white);
}

.about-block {
    text-align: center;
    max-width: 850px;
    margin: 0 auto var(--spacing-16);
}

.faq-header-compact {
    text-align: center;
    margin-bottom: var(--spacing-10);
}

/* Reusing your policy badge style */
.policy-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: var(--spacing-1) var(--spacing-4);
    border-radius: var(--radius-3xl);
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: var(--spacing-4);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
}

.faq-card {
    background: var(--bg-light);
    padding: var(--spacing-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.faq-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.faq-icon {
    font-size: var(--font-2xl);
    margin-bottom: var(--spacing-4);
}

.faq-card h3 {
    font-size: var(--font-lg);
    color: var(--text-dark);
    margin-bottom: var(--spacing-3);
    font-family: var(--font-primary);
}

.faq-card p {
    font-size: var(--font-sm);
    color: var(--text-light);
    line-height: 1.6;
    font-family: var(--font-secondary);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .info-area { padding: var(--spacing-12) 0; }
    .faq-grid { grid-template-columns: 1fr; }
}




/* ============================================
   19. Privacy policy popup model
   ============================================ */

/* Modal Backdrop */
.modal-overlay {
    display: none; /* Keep it hidden at start */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999; /* Make sure this is very high */
    align-items: center;
    justify-content: center;
}

/* Modal Content Box */
.modal-box {
  background: white;
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideUp 0.3s ease-out;
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
  max-height: 80vh;
  color: #475569;
  line-height: 1.6;
}

.modal-body h2 { color: #1e293b; margin-bottom: 20px; }
.modal-body h3 { color: #1e293b; margin-top: 25px; }

/* Close Button */
.modal-close {
  position: absolute;
  top: 15px; right: 20px;
  background: #f1f5f9;
  border: none;
  font-size: 24px;
  width: 35px; height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: #e2e8f0; }

/* Animation */
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Body lock when modal is open */
body.modal-open { overflow: hidden; }



/* ============================================
   . RESPONSIVE STYLES (ALL MEDIA QUERIES)
   ============================================ */

/* Mobile Styles (≤ 480px) */
@media screen and (max-width: 480px) {
    :root {
        --font-base: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-4);
    }
    
    .header {
        padding: var(--spacing-4);
    }

    .hero {
      padding: var(--spacing-6) var(--spacing-6);
    }
    
    .hero-title {
        font-size: var(--font-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-base);
    }
    
    .upload-zone {
        padding: var(--spacing-8) var(--spacing-6);
    }
    
    .feature-tag {
        width: 100%;
    }
    
    .nav-list-horizontal {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    .blog-hero h1 {
        font-size: var(--font-3xl);
    }
    
    .featured-image {
        height: 400px;
    }
    
    .post-title {
        font-size: var(--font-3xl);
    }
    
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: var(--font-2xl);
    }
    
    .error-subtitle {
        font-size: var(--font-base);
    }
    
    .breadcrumb-list .current {
        max-width: 400px;
    }
}

/* Tablet & Mobile Menu Styles (≤ 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        padding: 80px var(--spacing-8) var(--spacing-8);
        gap: var(--spacing-6);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }
    
    .nav.open {
        right: 0;
    }
    
    .nav-overlay.active {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        z-index: 999;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .nav {
        gap: var(--spacing-4);
    }
    
    .batch-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .images-grid {
        grid-template-columns: 1fr;
    }
    
    .upload-zone {
        padding: var(--spacing-12) var(--spacing-8);
    }
    
    .footer-nav-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-seo-title {
        font-size: var(--font-xl);
    }
    
    .error-code {
        font-size: 8rem;
    }
    
    .error-title {
        font-size: var(--font-3xl);
    }
    
    .error-broken-image {
        width: 150px;
        height: 150px;
    }
    
    .breadcrumb-list {
        font-size: var(--font-xs);
    }
    
    .breadcrumb-list .separator {
        margin: 0 var(--spacing-2);
    }
    
    .sitemap-wrapper {
        padding: var(--spacing-16) var(--spacing-4);
    }
    
    .sitemap-card {
        padding: var(--spacing-6);
    }
    
    .seo-h1 {
        font-size: var(--font-3xl);
    }
}

/* Tablet Only (481px - 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 90%;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (≥ 769px) */
@media screen and (min-width: 769px) {
    /* Desktop-specific optimizations */
    .hero {
        padding: var(--spacing-20) var(--spacing-8);
        padding-bottom: 0px;
    }
    
    .compress-section {
        padding: var(--spacing-16) var(--spacing-8);
    }
}

/* Large Desktop (≥ 1024px) */
@media screen and (min-width: 1024px) {
    .container {
        max-width: var(--breakpoint-large);
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra Large Desktop (≥ 1400px) */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        color: #000;
        font-family: var(--font-secondary);
    }
    
    .no-print {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}