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

html.dark-mode {
    background-color: #111;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #222;
    min-height: 100vh;
    text-align: center;
    line-height: 1.6;
    padding: 90px 20px 20px;
}

html.dark-mode body,
body.dark-mode {
    background-color: #111;
    color: #f5f5f5;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #222;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    z-index: 1000;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: #66b3ff;
}

html.dark-mode .navbar,
body.dark-mode .navbar {
    background-color: #000;
}

.container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.profile-pic {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

html.dark-mode .profile-pic,
body.dark-mode .profile-pic {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.12);
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
}

.about {
    font-size: 1rem;
    color: #444;
    max-width: 650px;
    margin: 0 auto 35px auto;
}

html.dark-mode .subtitle,
body.dark-mode .subtitle {
    color: #bdbdbd;
}

html.dark-mode .about,
body.dark-mode .about {
    color: #d0d0d0;
}

h2 {
    margin-bottom: 15px;
}

ul {
    list-style: none;
    margin-bottom: 35px;
}

li {
    margin: 10px 0;
    font-size: 1.05rem;
}

.project-list a {
    color: #222;
    text-decoration: none;
    font-weight: bold;
}

.project-list a:hover {
    color: #0066cc;
    text-decoration: underline;
}

html.dark-mode .project-list a,
body.dark-mode .project-list a {
    color: #f5f5f5;
}

html.dark-mode .project-list a:hover,
body.dark-mode .project-list a:hover {
    color: #66b3ff;
}

.contact {
    margin-top: 10px;
}

.email-link,
.back-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover,
.back-link:hover {
    text-decoration: underline;
}

html.dark-mode .email-link,
html.dark-mode .back-link,
body.dark-mode .email-link,
body.dark-mode .back-link {
    color: #66b3ff;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
}

.footer {
    margin-top: 40px;
    color: #888;
    font-size: 0.9rem;
}

.dark-toggle {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    min-width: 38px;
}

.dark-toggle:hover {
    background: white;
    color: #222;
}

html.dark-mode .dark-toggle,
body.dark-mode .dark-toggle {
    border-color: #f5f5f5;
    color: #f5f5f5;
}

html.dark-mode .dark-toggle:hover,
body.dark-mode .dark-toggle:hover {
    background-color: #f5f5f5;
    color: #111;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
    }

    .navbar {
        gap: 12px;
        padding: 12px;
    }

    .navbar a {
        font-size: 0.85rem;
    }
}
