/* CSS Variables for theming */
:root {
    --bg-primary: #eee;
    --bg-container: white;
    --text-primary: #333;
    --text-secondary: #555;
    --border-color: black;
    --link-color: #0066cc;
    --link-hover: #004499;
    --hr-color: black;
}

html {
    scroll-behavior: smooth;
}

[data-theme="dark"] {
    --bg-primary: #0d0d0d;
    --bg-container: #121212;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --link-color: #6db3f2;
    --link-hover: #99ccff;
    --hr-color: #333333;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-container);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: inline;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

.theme-toggle .icon-sun {
    display: none;
}

.theme-toggle .icon-moon {
    display: inline;
}

/* Base styles */
div#container {
    width: 850px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 25px;
    border: 2px solid var(--border-color);
    background: var(--bg-container);
    padding: 40px 50px 50px 50px;
    transition: all 0.3s ease;
}

div#my_name {
    float: left;
}

div#my_contact {
    float: right;
    text-align: right;
}

body {
    background: var(--bg-primary);
    font-size: 100%;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

h1 {
    font-family: 'Open Sans', Segoe UI, freesans, sans-serif;
    font-size: 160%;
    font-weight: normal;
    color: var(--text-primary);
}

h1#name {
    font-size: 210%;
}

h2 {
    font-family: 'Open Sans', Segoe UI, freesans, sans-serif;
    font-size: 150%;
    font-weight: normal;
    margin-top: 4px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

h3 {
    font-family: 'Open Sans', Segoe UI, freesans, sans-serif;
    font-size: 136%;
    font-weight: normal;
    margin-top: 6px;
    margin-bottom: 0px;
    color: var(--text-primary);
}

li {
    font-family: 'Open Sans', Segoe UI, freesans, sans-serif;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

#awards-list li,
#awards-list li span {
    margin-bottom: 0px;
}

#nav ul,
#nav li {
    display: inline;
    padding: 0;
    font-weight: bold;
}

p {
    font-family: 'Open Sans', Segoe UI, freesans, sans-serif;
    font-weight: normal;
    color: var(--text-secondary);
}

hr {
    border-width: 0;
    color: var(--hr-color);
    background-color: var(--hr-color);
    height: 1.5pt;
}

code {
    font-family: monospace;
}

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

a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

div.clearboth {
    clear: both;
    padding: 0;
    margin: 0;
    height: 0;
}

div.vspace {
    height: 10px;
    margin: 0;
    padding: 0;
}

div#profile-pic {
    float: right;
    margin-left: 10px;
}

div#profile-pic img {
    border-radius: 50%;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

ul.jump-bar {
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
}

ul.jump-bar li {
    display: inline;
    font-weight: bold;
}

strong {
    color: var(--text-primary);
}

em {
    color: var(--text-secondary);
}

@media (max-width:760px) {
    body {
        background: var(--bg-container);
    }

    div#container {
        width: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0px;
        margin-bottom: 0px;
        background: var(--bg-container);
        padding: 0 0 0 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    div#my_name {
        float: none;
    }

    div#my_contact {
        float: none;
    }

    div#profile-pic {
        float: none;
        margin-left: 0px;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}