/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - Dark Mode (Default) */
:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #0a0a0a;
    --text-primary: #00ff00;
    --text-secondary: #33ff33;
    --text-tertiary: #006600;
    --accent-color: #39ff14;
    --accent-hover: #00ff00;
    --accent-glow: rgba(57, 255, 20, 0.5);
    --border-color: #1a4d1a;
    --shadow-color: #000;
    --modal-bg: rgba(0, 0, 0, 0.95);
    --terminal-green: #00ff00;
    --scanline-color: rgba(0, 255, 0, 0.03);
}

/* CSS Variables - Light Mode */
:root.light-mode {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --text-primary: #1a1a1a;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --accent-color: #2d9e00;
    --accent-hover: #39ff14;
    --accent-glow: rgba(45, 158, 0, 0.3);
    --border-color: #d0d0d0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --modal-bg: rgba(0, 0, 0, 0.7);
    --terminal-green: #2d9e00;
    --scanline-color: rgba(0, 0, 0, 0.02);
}

/* Keyframe Animations */
@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-glow),
                    0 0 10px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 10px var(--accent-glow),
                    0 0 20px var(--accent-glow),
                    0 0 30px var(--accent-glow);
    }
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes terminal-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* Body & Typography */
body {
    font-family: 'Courier New', 'Consolas', monospace;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Subtle Scanline Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--scanline-color) 2px,
        var(--scanline-color) 4px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

h1 {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow),
                 0 0 20px var(--accent-glow);
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

p {
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-hover);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* Navigation with Terminal Styling */
nav {
    background-color: var(--bg-tertiary);
    padding: 0;
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: all 0.3s ease;
}

nav::before {
    content: '─────────────────────── THE ENRICHMENT HUB TERMINAL ───────────────────────';
    display: block;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%);
    color: var(--text-tertiary);
    padding: 5px 20px;
    font-size: 10px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 1px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px var(--accent-glow);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
}

.logo::before {
    content: '> ';
    color: var(--accent-color);
    animation: blink 1.5s infinite;
}

.logo::after {
    content: '_';
    animation: blink 1s infinite;
    margin-left: 3px;
}

.logo:hover {
    text-shadow: 0 0 15px var(--accent-glow),
                 0 0 30px var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border: 1px solid var(--accent-color);
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '[ ';
}

.nav-links a::after {
    content: ' ]';
}

.nav-links a:hover {
    background-color: var(--accent-color);
    color: var(--bg-tertiary);
    box-shadow: 0 0 15px var(--accent-glow),
                inset 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

/* Theme Toggle with Tech Styling */
.theme-toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-secondary);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.theme-toggle:hover {
    box-shadow: 0 0 20px var(--accent-glow);
    animation: glow-pulse 1.5s infinite;
}

.theme-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 1px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.theme-toggle.light .theme-toggle-slider {
    transform: translateX(30px);
}

/* Hero Section with Terminal Boot Style */
.hero {
    background: var(--bg-tertiary);
    padding: 100px 30px;
    text-align: center;
    border-bottom: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            var(--accent-color) 2px,
            var(--accent-color) 3px
        );
    opacity: 0.03;
    pointer-events: none;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow),
                 0 0 40px var(--accent-glow);
    font-family: 'Courier New', monospace;
    letter-spacing: 4px;
    border: none;
}

.hero h1::before {
    content: '$ ';
    color: var(--text-tertiary);
}

.hero .subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.hero .subtitle::before {
    content: '// ';
    color: var(--text-tertiary);
}

.hero p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section h2 {
    color: var(--accent-color);
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    padding-bottom: 20px;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
}

section h2::before {
    content: '>> ';
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-color),
        transparent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* About Section */
#about {
    background-color: var(--bg-secondary);
}

#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    box-shadow: 0 0 20px var(--accent-glow);
}

#about p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

#about em {
    color: var(--text-tertiary);
    font-size: 14px;
    font-style: normal;
}

#about em::before {
    content: '# ';
}

/* Posts Section */
#posts {
    background-color: var(--bg-secondary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Terminal Window Style Post Cards */
.post-card {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '● ● ●';
    display: block;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 8px 15px;
    font-size: 10px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 3px;
}

.post-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 30px var(--accent-glow),
                0 0 20px var(--accent-glow);
    animation: glitch 0.3s;
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding: 20px 20px 0 20px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--bg-tertiary);
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.post-username {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px var(--accent-glow);
}

.post-username::before {
    content: '@ ';
}

.post-date {
    color: var(--text-tertiary);
    opacity: 0.7;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.post-date::before {
    content: '[';
}

.post-date::after {
    content: ']';
}

.neocities-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    padding: 3px 8px;
    border: 1px solid var(--accent-color);
    border-radius: 0;
    font-size: 10px;
    font-weight: bold;
    margin-top: 5px;
    cursor: help;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.neocities-badge:hover {
    background-color: var(--accent-color);
    color: var(--bg-tertiary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.info-icon {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.tooltip {
    display: none;
    position: fixed;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 0;
    border: 2px solid var(--accent-color);
    font-size: 12px;
    max-width: 300px;
    z-index: 10000;
    box-shadow: 0 0 30px var(--accent-glow);
    font-family: 'Courier New', monospace;
}

.tooltip.show {
    display: block;
}

.post-content {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    padding: 0 20px 20px 20px;
    font-family: 'Courier New', monospace;
}

.view-all-posts {
    display: inline-block;
    margin: 30px auto 0;
    padding: 15px 40px;
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 0;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.view-all-posts::before {
    content: '>> ';
}

.view-all-posts:hover {
    background-color: var(--accent-color);
    color: var(--bg-tertiary);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateX(5px);
}

.posts-footer {
    text-align: center;
}

/* Contact Section */
#contact {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
}

.contact-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.contact-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.contact-content a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Footer with Terminal Style */
footer {
    text-align: center;
    padding: 30px;
    border-top: 2px solid var(--accent-color);
    background-color: var(--bg-tertiary);
    margin-top: 80px;
    font-size: 12px;
    color: var(--text-tertiary);
    box-shadow: 0 -5px 20px var(--accent-glow);
}

footer::before {
    content: '─────────────────────────────────────────────────────────────────────────────';
    display: block;
    color: var(--text-tertiary);
    margin-bottom: 15px;
    font-size: 10px;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Terminal Window Style Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-bg);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--accent-color);
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border-radius: 0;
    box-shadow: 0 0 50px var(--accent-glow);
}

.modal-content::before {
    content: '● ● ●  POST VIEWER';
    display: block;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 10px 20px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
    font-family: 'Courier New', monospace;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-secondary);
}

.modal-avatar {
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--bg-tertiary);
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-user-info {
    flex-grow: 1;
}

.modal-username {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.modal-username::before {
    content: '@ ';
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-color);
    cursor: pointer;
    line-height: 1;
    padding: 5px 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color);
    background: transparent;
}

.modal-close:hover {
    background-color: var(--accent-color);
    color: var(--bg-tertiary);
    box-shadow: 0 0 15px var(--accent-glow);
}

.modal-body {
    padding: 25px;
}

.modal-post-date {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-bottom: 20px;
    font-family: 'Courier New', monospace;
}

.modal-post-date::before {
    content: '[';
}

.modal-post-date::after {
    content: ']';
}

.modal-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* Posts Page Specific Styles */
.post {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    padding: 0;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    display: block;
}

.post::before {
    content: '●●● POST';
    display: block;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 6px 15px;
    font-size: 10px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
}

.post:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateX(5px);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 15px 20px;
}

.post .post-content {
    padding: 0 20px 20px 20px;
    -webkit-line-clamp: unset;
}

.post-date::before {
    content: " [";
}

.post-date::after {
    content: "]";
}

/* Articles Page Terminal Window Style */
.article {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    padding: 0;
    margin-bottom: 30px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article::before {
    content: '●●● ARTICLE';
    display: block;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    padding: 8px 20px;
    font-size: 10px;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
}

.article:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateX(5px);
}

.article-header {
    margin-bottom: 0;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-header-content {
    flex-grow: 1;
}

.dropdown-arrow {
    font-size: 20px;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    margin-left: 20px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.dropdown-arrow.open {
    transform: rotate(180deg);
}

.article-title {
    color: var(--accent-color);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.article-title::before {
    content: '# ';
}

.article-meta {
    color: var(--text-tertiary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Courier New', monospace;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-avatar {
    width: 24px;
    height: 24px;
    border-radius: 0;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: var(--bg-tertiary);
    overflow: hidden;
    border: 1px solid var(--accent-color);
}

.article-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.article-content.open {
    max-height: 3000px;
    padding: 25px 30px;
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content p:first-child {
    text-indent: 0;
}

/* Stuff Page Terminal Styling */
.main-wrapper {
    position: relative;
}

.content {
    width: 100%;
}

.device-item {
    background-color: var(--bg-tertiary);
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.device-item:hover {
    box-shadow: 0 0 15px var(--accent-glow);
}

.device-item .device-type {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.device-item .device-type::before {
    content: '> ';
}

.device-item .device-name {
    color: var(--text-secondary);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

details {
    margin-top: 10px;
}

summary {
    cursor: pointer;
    color: var(--accent-color);
    font-size: 13px;
    padding: 5px 0;
    user-select: none;
    font-family: 'Courier New', monospace;
}

summary::before {
    content: '[+] ';
}

details[open] summary::before {
    content: '[-] ';
}

summary:hover {
    text-shadow: 0 0 8px var(--accent-glow);
}

.specs-content {
    background-color: var(--bg-secondary);
    padding: 15px;
    margin-top: 10px;
    border-left: 3px solid var(--accent-color);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    white-space: pre-wrap;
    overflow-x: auto;
    color: var(--text-tertiary);
    box-shadow: inset 0 0 10px var(--accent-glow);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Reduce scanline effect on mobile for better performance */
    body::before {
        opacity: 0.2;
    }

    /* Mobile Navigation */
    nav::before {
        font-size: 7px;
        padding: 5px 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }

    .logo {
        font-size: 16px;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .nav-links a {
        padding: 8px 12px;
        font-size: 11px;
        flex: 0 1 auto;
    }

    .theme-toggle-container {
        order: -1;
    }

    /* Hero Section Mobile */
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 28px;
        letter-spacing: 1px;
        text-shadow: 0 0 10px var(--accent-glow);
    }

    .hero h1::before {
        content: '$ ';
    }

    .hero .subtitle {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 13px;
    }

    /* Container Mobile */
    .container {
        padding: 0 15px;
    }

    /* Sections Mobile */
    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 22px;
        letter-spacing: 2px;
        margin-bottom: 30px;
    }

    section h2::after {
        width: 80px;
    }

    /* Posts Grid Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card::before {
        font-size: 9px;
        padding: 6px 12px;
    }

    .post-card-header {
        padding: 12px 15px 0 15px;
    }

    .post-content {
        padding: 0 15px 15px 15px;
        font-size: 12px;
    }

    /* Posts Page Mobile */
    .post::before {
        font-size: 9px;
        padding: 5px 12px;
    }

    .post > div {
        padding: 12px;
    }

    .post-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    /* Articles Mobile */
    h1 {
        font-size: 24px;
        letter-spacing: 1px;
    }

    .article {
        margin-bottom: 20px;
    }

    .article::before {
        font-size: 9px;
        padding: 6px 15px;
    }

    .article-title {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .article-header {
        padding: 15px 20px;
    }

    .article-content.open {
        padding: 20px;
    }

    .article-meta {
        font-size: 11px;
        flex-wrap: wrap;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-content::before {
        font-size: 11px;
        padding: 8px 15px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-post-content {
        font-size: 14px;
    }

    /* Contact Section Mobile */
    .contact-content {
        padding: 20px;
    }

    .contact-content p {
        font-size: 14px;
    }

    /* About Section Mobile */
    #about .about-content {
        padding: 20px;
    }

    #about p {
        font-size: 14px;
    }

    /* Footer Mobile */
    footer {
        padding: 25px 15px;
        font-size: 11px;
    }

    footer::before {
        font-size: 8px;
        overflow: hidden;
    }

    /* View All Posts Button Mobile */
    .view-all-posts {
        padding: 12px 30px;
        font-size: 13px;
    }

    /* Device Items Mobile */
    .device-item {
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .device-item .device-type,
    .device-item .device-name {
        font-size: 13px;
    }

    .specs-content {
        font-size: 10px;
        padding: 12px;
    }

    /* Reduce glow effects on mobile for better performance */
    nav,
    .post-card:hover,
    .article:hover,
    .post:hover {
        box-shadow: 0 0 10px var(--accent-glow);
    }

    .theme-toggle:hover {
        animation: none;
    }
}

/* Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 14px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero .subtitle {
        font-size: 13px;
    }

    section h2 {
        font-size: 20px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 10px;
    }

    .post-card-header,
    .post > div {
        gap: 10px;
    }

    .article-title {
        font-size: 16px;
    }
}
