:root {
    --bg-light: #ffffff;
    --text-light: #1a1a1a;
    --primary-light: #2563eb;
    --secondary-light: #64748b;
    --card-bg-light: #f1f5f9;

    --bg-dark: #1a1a1a;
    --text-dark: #ffffff;
    --primary-dark: #60a5fa;
    --secondary-dark: #94a3b8;
    --card-bg-dark: #2d2d2d;
}

/* General Styles */
body {
    margin: 0;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--bg-dark);
    color: var(--text-dark);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.dark-mode a {
    color: var(--primary-dark);
}

a:hover {
    color: var(--text-light);
}

.dark-mode a:hover {
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    padding: 1rem;
    background-color: transparent;
    border-bottom: 1px solid #e5e7eb;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}

.dark-mode .nav-links a {
    color: var(--text-dark);
}

.nav-links a.active {
    color: var(--primary-light);
    font-weight: 600;
}

.dark-mode .nav-links a.active {
    color: var(--primary-dark);
}

#theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-light);
}

.dark-mode #theme-toggle {
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--secondary-light);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.dark-mode .subtitle {
    color: var(--secondary-dark);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.dark-mode .social-links a {
    color: var(--primary-dark);
}

.social-links a:hover {
    color: var(--text-light);
}

.dark-mode .social-links a:hover {
    color: var(--text-dark);
}

/* About Section */
.about-preview {
    margin: 3rem 0;
}

.about-preview h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-preview p {
    color: var(--secondary-light);
    line-height: 1.8;
}

.dark-mode .about-preview p {
    color: var(--secondary-dark);
}

/* Currently Learning Section */
.currently-learning {
    margin: 3rem 0;
}

.currently-learning h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.currently-learning ul {
    list-style: none;
    padding: 0;
}

.currently-learning li {
    margin: 1rem 0;
    color: var(--secondary-light);
}

.dark-mode .currently-learning li {
    color: var(--secondary-dark);
}

/* Recent Blog Posts Section */
.recent-posts {
    margin: 3rem 0;
}

.recent-posts h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.post-list {
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background-color: var(--card-bg-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s;
}

.dark-mode .post-card {
    background-color: var(--card-bg-dark);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card h3 {
    margin-bottom: 0.5rem;
}

.post-card h3 a {
    color: var(--text-light);
    text-decoration: none;
}

.dark-mode .post-card h3 a {
    color: var(--text-dark);
}

.post-card h3 a:hover {
    color: var(--primary-light);
}

.dark-mode .post-card h3 a:hover {
    color: var(--primary-dark);
}

.post-date {
    color: var(--secondary-light);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.dark-mode .post-date {
    color: var(--secondary-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
}

.dark-mode footer {
    border-top-color: #2d2d2d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    .post-list {
        grid-template-columns: 1fr;
    }
}