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

:root {
    /* Premium Color Palette */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: var(--primary-500);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-base: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ===== HEADER STYLES ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 700;
    font-size: var(--text-xl);
    font-family: var(--font-heading);
    transition: var(--transition-fast);
}

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

.brand-icon {
    font-size: var(--text-2xl);
}

.nav-menu {
    display: flex;
    align-items: center;
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-base);
    transition: var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background-color: var(--primary-50);
}

.dropdown-toggle {
    position: relative;
}

.dropdown-icon {
    transition: transform var(--transition-fast);
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    list-style: none;
    padding: var(--space-2);
    margin-top: var(--space-2);
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: var(--space-3) var(--space-4);
    text-decoration: none;
    color: var(--gray-700);
    font-size: var(--text-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    background-color: var(--gray-100);
    color: var(--primary-600);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 240px;
    padding: var(--space-2) var(--space-3);
    padding-right: var(--space-10);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    background-color: white;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.search-btn {
    position: absolute;
    right: var(--space-2);
    padding: var(--space-1);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.search-btn:hover {
    color: var(--primary-600);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    transition: var(--transition-fast);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-top: var(--header-height);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1.1;
    color: white;
    margin-bottom: var(--space-6);
}

.hero-description {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-12);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-8);
    text-align: center;
    min-width: 140px;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-scroll-hint {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-8);
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Calculator Preview */
/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BORING CALCULATOR TEASER SECTION ===== */
.boring-calculator-teaser {
    padding: 3rem 0;
    background: linear-gradient(135deg, #fef7cd 0%, #fbbf24 100%);
    text-align: center;
}

.teaser-content {
    max-width: 800px;
    margin: 0 auto;
}

.teaser-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.teaser-description {
    font-size: 1.2rem;
    color: #78350f;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.teaser-emoji {
    font-size: 1.3rem;
    color: #78350f;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .teaser-title {
        font-size: 2rem;
    }
    
    .teaser-description {
        font-size: 1.1rem;
    }
    
    .teaser-emoji {
        font-size: 1.2rem;
    }
}

/* ===== QUICK CONVERTER SECTION ===== */
.quick-converter {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.converter-container {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    border: 1px solid #e2e8f0;
    max-width: 1000px;
    margin: 0 auto;
}

.converter-header {
    margin-bottom: 2rem;
    text-align: center;
}

.converter-dropdown-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
}

.converter-dropdown {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.converter-dropdown option {
    background: white;
    color: #333;
    padding: 0.5rem;
}

.converter-dropdown:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.converter-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.dropdown-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: white;
    transition: transform 0.3s ease;
}

.converter-dropdown:focus + .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.input-section {
    margin-bottom: 2rem;
}

.input-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.converter-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.converter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.converter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.unit-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.unit-card:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.unit-card.highlight {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    box-shadow: 0 4px 6px -1px rgb(59 130 246 / 0.2);
}

.unit-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.unit-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    word-break: break-all;
}

.unit-symbol {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.conversion-info {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 0.75rem;
    border: 1px solid #bae6fd;
}

.info-text {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Loading state */
.units-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Currency Interface Styles */
.currency-interface {
    display: none; /* Initially hidden, controlled by JavaScript */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 0; /* Remove margin to prevent positioning issues */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative; /* Ensure proper positioning context */
    max-width: 100%;
    overflow-x: auto;
}

.currency-conversion-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow: hidden;
}

.currency-input-group,
.currency-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.currency-input-group label,
.currency-dropdown-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#currencyAmount {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

#currencyAmount:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.currency-select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    min-width: 160px;
    max-width: 100%;
    width: 100%;
}

.currency-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.currency-swap-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

#currencySwapBtn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#currencySwapBtn:hover {
    transform: translateY(-2px) rotate(180deg);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.currency-result {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.2);
}

.result-display {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#currencyResultCode {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-left: 0.5rem;
}

.exchange-rate {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.currency-info {
    text-align: center;
    padding: 1rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.last-updated {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

/* Responsive Design for Currency Interface */
@media (max-width: 768px) {
    .currency-conversion-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .currency-swap-btn {
        order: 3;
        margin: 1rem 0;
    }
    
    .currency-interface {
        padding: 1.5rem;
    }
    
    .result-display {
        font-size: 2rem;
    }
    
    .currency-select {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .currency-interface {
        padding: 1rem;
    }
    
    .result-display {
        font-size: 1.8rem;
    }
    
    #currencyResultCode {
        font-size: 1.2rem;
    }
}
    .converter-container {
        padding: 1.5rem;
        margin: 0 1rem;
        border-radius: 1rem;
    }
    
    .units-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .unit-card {
        padding: 0.75rem;
    }
    
    .converter-dropdown {
        font-size: 1rem;
        padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    }
    
    .converter-input {
        font-size: 1.1rem;
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .units-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .unit-name {
        font-size: 0.8rem;
    }
    
    .unit-value {
        font-size: 1rem;
    }
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.blog-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.blog-date {
    color: #6b7280;
}

.blog-category {
    color: #3b82f6;
    font-weight: 600;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-link {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-link:hover {
    color: #1d4ed8;
}

.blog-cta {
    text-align: center;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-content {
        padding: 1.25rem;
    }
    
    .blog-title {
        font-size: 1.125rem;
    }
}

/* ===== CATEGORIES SECTION ===== */
.categories {
    padding: var(--space-20) 0;
    background-color: var(--gray-50);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.category-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-200);
}

.category-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.category-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.category-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.category-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

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

/* ===== FEATURES SECTION ===== */
.features {
    padding: var(--space-20) 0;
    background-color: white;
}

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

.feature-item {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-brand-icon {
    font-size: var(--text-2xl);
}

.footer-brand-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--gray-800);
    color: var(--gray-400);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-600);
    color: white;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Newsletter Section */
.newsletter-section {
    max-width: 300px;
}

.newsletter-description {
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-md);
    background-color: var(--gray-800);
    color: white;
    font-size: var(--text-sm);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.newsletter-btn {
    padding: var(--space-3) var(--space-4);
    background-color: var(--primary-600);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.newsletter-btn:hover {
    background-color: var(--primary-700);
}

.newsletter-privacy {
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: var(--space-8);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.copyright {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition-fast);
}

.footer-bottom-link:hover {
    color: var(--primary-400);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
    
    .brand-section {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .search-input {
        width: 200px;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .brand-section {
        grid-column: span 1;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .nav-container {
        padding: 0 var(--space-3);
    }
    
    .search-container {
        display: none;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .calc-grid {
        gap: var(--space-1);
    }
    
    .newsletter-input-group {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.category-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Stagger animations */
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --gray-100: #ffffff;
        --gray-900: #000000;
    }
}