/* Remove the :root section and keep only .normie */
.normie {
    /* Modern color palette */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #334155;
    --text-secondary: #000000;
    --accent: #3b82f6;
    --accent-soft: #93c5fd;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border-color: #e2e8f0;
    
    /* Enhanced shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    
    /* Modern spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Refined measurements */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --header-height: 4rem;

    /* Add background image variables */
    --bg-image: url('../images/subtle-pattern.png');
    --bg-overlay: linear-gradient(to bottom, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.95));
}

html.normie body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-image: var(--bg-image);
    background-repeat: repeat;
    background-attachment: fixed;
    position: relative;
}

html.normie body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: 0;
}

html.normie .main-content {
    position: relative;
    z-index: 1;
}

/* Modern header */
html.normie .main-header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

html.normie .nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Enhanced navigation */
html.normie .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: var(--space-sm);
    border-bottom: 1px solid var(--border-color);
}

html.normie .nav-links a {
    display: block;
    padding: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

html.normie .nav-links a:hover,
html.normie .nav-links a.active {
    background: var(--bg-secondary);
    color: var(--accent);
}

/* Modern buttons */
html.normie .button,
html.normie .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    background: var(--accent);
    color: white;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

html.normie .button:hover,
html.normie .submit-btn:hover {
    background: var(--accent);
    filter: brightness(110%);
}

/* Enhanced post cards */
html.normie .post-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--space-md);
    transition: all 0.2s ease;
}

html.normie .post-preview:hover {
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-md);
}

/* Hero section */
html.normie .hero {
    background: linear-gradient(to right, var(--accent), var(--accent-soft));
    padding: var(--space-xl) var(--space-sm);
    color: white;
    text-align: center;
    border-radius: var(--border-radius-lg);
    margin: var(--space-lg) auto;
}

/* Theme switcher styles */
html.normie .theme-switcher {
    position: relative;
    display: flex;
    gap: var(--space-xs);
    margin-left: auto;
    margin-right: var(--space-sm);
}

html.normie .theme-btn {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}

html.normie .theme-btn:hover {
    background: var(--bg-secondary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

html.normie .theme-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Footer styles */
html.normie .main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-md);
    text-align: center;
    position: relative;
    z-index: 1;
}

html.normie .main-footer p {
    color: #000000;
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile menu styles */
html.normie .mobile-menu-toggle {
    display: none;
    padding: var(--space-xs);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

@media (max-width: 767px) {
    html.normie .mobile-menu-toggle {
        display: block;
    }

    html.normie .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary); /* Solid white background */
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
        border-bottom: 1px solid var(--border-color);
    }

    html.normie .nav-links.active {
        display: block;
    }

    html.normie .nav-container {
        background: var(--bg-primary); /* Solid white background */
    }

    html.normie .main-header {
        background: var(--bg-primary); /* Solid white background */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    html.normie .nav-links a {
        padding: var(--space-sm);
        display: block;
        text-align: left;
        border-radius: var(--border-radius-sm);
    }

    html.normie .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px 0;
        background: var(--text-primary);
        transition: transform 0.3s ease;
    }

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

    html.normie .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

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

/* Responsive design */
@media (min-width: 768px) {
    html.normie .nav-links {
        display: flex;
        position: static;
        padding: 0;
        gap: var(--space-sm);
        border: none;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: var(--border-radius-md);
        padding: var(--space-xs) var(--space-sm);
        margin: 0 var(--space-md);
    }

    html.normie .nav-links a {
        padding: var(--space-xs) var(--space-sm);
        color: var(--text-primary);
        font-weight: 500;
        border-radius: var(--border-radius-sm);
        transition: all 0.2s ease;
    }

    html.normie .nav-links a:hover {
        background: var(--accent);
        color: white;
    }

    html.normie .nav-links a.active {
        background: var(--accent);
        color: white;
    }

    html.normie .mobile-menu-toggle {
        display: none;
    }

    html.normie .hero {
        padding: var(--space-xl);
        max-width: 1200px;
        margin: var(--space-xl) auto;
    }

    html.normie .theme-switcher {
        position: relative;
        margin-left: var(--space-md);
    }
}

/* Mobile optimizations */
@media (max-width: 767px) {
    html.normie .nav-container {
        padding: var(--space-xs);
    }

    html.normie .nav-links {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: var(--shadow-md);
    }

    html.normie .theme-switcher {
        margin-right: var(--space-xl);
    }
    
    html.normie .theme-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.875rem;
    }

    html.normie .hero {
        margin: var(--space-md);
        padding: var(--space-lg);
    }
}

/* Performance and accessibility */
@media (prefers-reduced-motion: reduce) {
    html.normie * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    html.normie {
        color-scheme: dark;
    }
}

/* Print styles */
@media print {
    html.normie * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
}
.tool-card 

.tool-links {
    margin-top: var(--space-md);
    text-align: center;
}

.tool-card .button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s ease;
}

.tool-card .button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
