/* Light mode overrides */
body.light-mode {
    background: #ffffff;
    background-image: none;
    color: #1a1a1a;
}

body.light-mode nav {
    background-color: #f0f0f0;
}

body.light-mode nav a {
    color: #1a1a1a;
}

body.light-mode .project-card {
    background-color: #f5f5f5;
}

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

/* Base body + grid background */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background-color: #0d1117;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    min-height: 100vh;
}

section {
    padding: 60px 20px;
    max-width: 800px;
    margin: 0 auto;
}

h1, h2, h3 {
    margin-bottom: 15px;
}

/* Nav */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    background-color: #161b22;
    position: sticky;
    top: 0;
}

nav a {
    color: #e6edf3;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: #58a6ff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-right: 10px;
    background-color: #238636;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
}

.btn:hover {
    background-color: #2ea043;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #58a6ff;
    color: #58a6ff;
}

.btn-outline:hover {
    background-color: #58a6ff;
    color: #ffffff;
}

/* Project cards */
.project-card {
    background-color: #161b22;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.project-card a {
    color: #58a6ff;
}

/* Contact + social links */
.contact-links {
    display: flex;
    gap: 20px;
}

.contact-links a {
    color: #58a6ff;
    text-decoration: none;
}

.social-links a {
    color: #58a6ff;
    text-decoration: none;
}

/* Theme toggle button */
#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    font-size: 20px;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
}

#theme-toggle:hover {
    background-color: #21262d;
}
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #58a6ff;
    margin: 20px 0;
}