body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}
.header {
    position: sticky;
    top: 0;
    background-color: #4a90e2;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}
.header img {
    height: 40px;
}
#dark-mode-toggle {
    padding: 8px 12px;
    background-color: #fff;
    color: #4a90e2;
    border: 1px solid #4a90e2;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s, color 0.3s;
}
#dark-mode-toggle:hover {
    background-color: #4a90e2;
    color: white;
}
.nav-container {
    background: #fff;
    padding: 8px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 60px;
    z-index: 999;
}
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.nav-menu li {
    position: relative;
    margin: 0 5px;
}
.nav-menu a {
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
    padding: 8px 10px;
    display: block;
    font-size: 0.95em;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}
.nav-menu a:hover {
    background: #34a853;
    color: white;
    border-radius: 5px;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
}
.nav-menu li:hover .dropdown-menu {
    display: block;
}
.dropdown-menu a {
    color: #0077cc;
    padding: 6px 12px;
    display: block;
    text-align: left;
    font-weight: normal;
    font-size: 0.9em;
    transition: background 0.3s, color 0.3s;
}
.dropdown-menu a:hover {
    background: #f0f0f0;
    color: #0056b3;
}
.hamburger {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    color: #0077cc;
    cursor: pointer;
}
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.about-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.about-section h2 {
    color: #34a853;
    font-size: 1.5em;
    margin-top: 0;
}
.about-section p {
    margin: 10px 0;
}
.bio-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}
.bio-section img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.bio-content {
    flex: 1;
}
.bio-content h2 {
    color: #34a853;
    font-size: 1.5em;
    margin-top: 0;
}
/* Dark Mode Styles */
body.dark-mode {
    background-color: #2a2a2a;
    color: #f4f4f4;
}
body.dark-mode .header {
    background-color: #222;
}
body.dark-mode .nav-container {
    background: #333;
}
body.dark-mode .nav-menu a {
    color: #bbddff;
}
body.dark-mode .nav-menu a:hover {
    background: #1a7b2e;
    color: white;
}
body.dark-mode .dropdown-menu {
    background: #3c3c3c;
}
body.dark-mode .dropdown-menu a {
    color: #bbddff;
}
body.dark-mode .dropdown-menu a:hover {
    background: #4a4a4a;
    color: #99ccff;
}
body.dark-mode .about-section {
    background: #3c3c3c;
}
body.dark-mode .bio-section {
    background: #3c3c3c;
}
body.dark-mode #dark-mode-toggle {
    background: #333;
    color: #bbddff;
    border-color: #bbddff;
}
body.dark-mode #dark-mode-toggle:hover {
    background: #bbddff;
    color: #333;
}
body.dark-mode .hamburger {
    color: #bbddff;
}
/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        padding: 12px 15px;
        border-bottom: 1px solid #ddd;
        font-size: 0.9em;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        padding-left: 20px;
        max-height: none;
        overflow-y: visible;
    }
    .dropdown-menu a {
        padding: 8px 12px;
    }
    .hamburger {
        display: block;
    }
    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 20px;
    }
    .bio-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .bio-section img {
        width: 120px;
        height: 120px;
    }
    body.dark-mode .nav-menu {
        background: #333;
    }
    body.dark-mode .dropdown-menu {
        background: #3c3c3c;
    }
    body.dark-mode .nav-menu a {
        border-bottom: 1px solid #555;
    }
}
@media (max-width: 480px) {
    .header img {
        height: 30px;
    }
    #dark-mode-toggle {
        padding: 6px 10px;
        font-size: 0.85em;
    }
    .nav-menu a {
        font-size: 0.85em;
    }
    .dropdown-menu a {
        font-size: 0.8em;
    }
    .about-section h2 {
        font-size: 1.3em;
    }
    .bio-section h2 {
        font-size: 1.3em;
    }
    .bio-section img {
        width: 100px;
        height: 100px;
    }
}