:root {
    --primary: #00f2ff;
    --secondary: #0066cc;
    --dark-bg: #0a0e17;
    --card-bg: #151b2b;
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --dark-bg: #f0f4f8;
    --card-bg: #ffffff;
    --text-main: #1a202c;
    --text-muted: #64748b;
    /* Maintain primary/secondary but adjust readability if needed */
    --primary: #0066cc;
    /* Darker blue for light mode visibility */
    --secondary: #00f2ff;
}

/* Theme Toggle Button */
.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

[data-theme="light"] .theme-toggle {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Fix post-thumb sizing */
.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .post-thumb {
    transform: scale(1.05);
}

/* Ensure navbar text color in light mode */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .navbar .logo {
    color: var(--text-main);
}

/* Fix specific hardcoded white text */
[data-theme="light"] .blog-content h3 a,
[data-theme="light"] .blog-content h2 a {
    color: var(--text-main);
}

[data-theme="light"] .blog-content h3 a:hover,
[data-theme="light"] .blog-content h2 a:hover {
    color: var(--primary);
}

[data-theme="light"] .post-body h2,
[data-theme="light"] .post-body blockquote,
[data-theme="light"] .lead,
[data-theme="light"] .post-body {
    color: var(--text-main);
}

[data-theme="light"] .service-desc {
    color: var(--text-muted);
    /* Ensure this is visible */
}