:root {
    --color-normal: #028602;
    --color-dark: #ffffff;
    --color-bw: #000000;
    --color-link-normal: #00aeff;
    --color-link-dark: #ffffff;
    --color-link-bw: #000000;
    --color-subheading-normal: #00aeff;  /* Blue for default mode */
    --color-subheading-dark: #ffffff;    /* White for dark mode */
    --color-subheading-bw: #000000;     /* Black for bw mode */
    --workplace-color-normal: #0c437e; /* Blue for default mode */
    --workplace-color-dark: #ffffff;   /* White for dark mode */
    --workplace-color-bw: #000000;    /* Black for bw mode */
}

body {
    background-color: #001f3f;
    color: var(--color-normal);
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background-color: transparent;
    z-index: 1000;
}

main {
    padding-top: 0px;
}

nav {
    margin-left: -2cm;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

.resume-button {
    border: 1px solid var(--color-link-normal);
    padding: 5px 10px;
    border-radius: 7px;
    margin-right: 40px;
}

.about-container {
    background-color: #001f3f;
    color: var(--color-normal);
    font-family: 'JetBrains Mono', monospace;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    font-size: 1.1em;
}

.about-header {
    text-align: center;
    color: var(--color-subheading-normal);
    margin-bottom: 20px;
}

.about-section {
    margin-bottom: 20px;
}

.about-image {
    float: left;
    margin-right: 20px;
    border-radius: 50%;
    width: 165px;
    height: 165px;
}

.about-text {
    display: block;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    padding: 0 50px;
    box-sizing: border-box;
    text-align: left;
    margin-left: 30%;
}

.hero p {
    color: #006b09;
    font-size: 1.2em;
}

.hero h1 {
    font-size: 4em;
    margin: 10px 0;
    white-space: nowrap;
}

.hero h2 {
    font-size: 3em;
    color: #0c437e;
    margin: 5px 0;
    white-space: nowrap;
}

.hero .description {
    font-size: 1.2em;
    margin: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.contact-button {
    color: #eeeeee;
    border: 1px solid var(--color-link-normal);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.social-links {
    position: fixed;
    left: 20px;
    bottom: 20px;
}

.social-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-links ul li {
    margin: 10px 0;
}

.social-links ul li a img {
    width: 80px; 
    height: 80px; 
    background-color: transparent;
}

footer {
    position: absolute;
    right: 20px;
    bottom: 20px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #8892B0;
}

.typing {
    border-right: 0.1em solid #ffffff;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #ffffff; }
}

body.work,
body.projects-page,
body.contact-page {
    height: auto;
    overflow-y: auto;
}

.work-container {
    background-color: #001f3f;
    color: var(--color-normal);
    font-family: 'JetBrains Mono', monospace;
    padding: 20px;
    max-width: 800px;
    margin: auto;
    font-size: 1.1em;
    margin-top: 120px;
}

.awards,
.projects,
.contact {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    margin-top: 50px;
    color: var(--color-normal);
}

.awards h1,
.projects h1,
.contact h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.award,
.project,
.contact-info {
    margin-bottom: 30px;
}

.award h2,
.project h2 {
    font-size: 1.8em;
    color: var(--color-link-normal);
    margin-bottom: 10px;
}

.award p,
.project p,
.contact-info p {
    font-size: 1.1em;
}

.contact-info a {
    color: var(--color-link-normal);
    text-decoration: none;
}

.contact-form {
    margin-top: 30px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form label {
    margin-bottom: 5px;
    font-size: 1em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-normal);
    border-radius: 5px;
    background-color: #013568;
    color: var(--color-normal);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1em;
}

.contact-form textarea {
    height: 100px;
}

.contact-form .send-message {
    width: 150px;
    padding: 10px;
    background-color: var(--color-link-normal);
    color: #ffffff;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    align-self: flex-end;
}

.contact-form .send-message:hover {
    background-color: #0083c0;
}

.news-image {
    text-align: center;
    margin-top: 40px;
}

.news-image img {
    width: 80%;
    height: auto;
    border: transparent;
}

body.blog-page {
    height: auto;
    overflow-y: auto;
}

.blog {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    margin-top: 50px;
    color: var(--color-normal);
    text-align: center;
}

.blog h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.coming-soon {
    font-size: 1.5em;
    color: var(--color-link-normal);
}

.coming-soon {
    color: var(--color-link-normal);
}

body.dark-mode .coming-soon {
    color: var(--color-link-dark);
}

body.bw-mode .coming-soon {
    color: var(--color-link-bw);
}

@media only screen and (max-width: 768px) {
    nav ul {
        display: none;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .menu-icon {
        display: flex;
    }

    .resume-button {
        margin-right: 0;
    }

    .hero {
        padding: 0 20px;
        margin-left: 0;
        align-items: center;
        text-align: center;
    }

    .hero p {
        font-size: 1em;
        white-space: normal;
    }

    .hero h1 {
        font-size: 2em;
        white-space: normal;
    }

    .hero h2 {
        font-size: 1.5em;
        white-space: normal;
    }

    .hero .description {
        font-size: 1em;
        white-space: normal;
    }

    .social-links {
        left: 10px;
        bottom: 10px;
    }

    .social-links ul li a img {
        width: 40px; /* Adjusted size */
        height: 40px; /* Adjusted size */
    }

    .work-container,
    .awards,
    .projects,
    .contact,
    .blog {
        padding: 10px;
        margin-top: 100px;
    }

    .contact-form .form-group {
        margin-bottom: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1em;
    }

    .contact-form .send-message {
        width: 100px;
        font-size: 0.9em;
    }
}

/* Theme Slider */
.theme-switch-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-slider {
    position: relative;
    width: 120px; /* Increased width to better fit the icons */
    height: 34px;
    background: #ccc;
    border-radius: 34px;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ddd;
    border-radius: 34px;
    display: flex;
    justify-content: space-around; /* Adjusted spacing */
    align-items: center;
}

.slider-icon {
    width: 20px;
    height: 20px;
}

.slider-thumb {
    position: absolute;
    width: 34px;
    height: 34px;
    background: #fff;
    border-radius: 50%;
    top: 0;
    transition: left 0.3s;
}

.theme-slider[data-theme="0"] .slider-thumb {
    left: 3px; /* Adjusted position */
}

.theme-slider[data-theme="1"] .slider-thumb {
    left: calc(50% - 17px);
}

.theme-slider[data-theme="2"] .slider-thumb {
    left: calc(100% - 37px); /* Adjusted position */
}

/* Dark Mode */
body.dark-mode {
    background-color: #1a1a1a;
    color: var(--color-dark);
}

body.dark-mode a {
    color: var(--color-dark);
}

body.dark-mode header,
body.dark-mode .about-container,
body.dark-mode .about-header,
body.dark-mode .hero,
body.dark-mode .work-container,
body.dark-mode .awards,
body.dark-mode .projects,
body.dark-mode .contact,
body.dark-mode .blog,
body.dark-mode .about-container {
    background-color: #1a1a1a;
    color: var(--color-dark);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background-color: #333333;
    color: var(--color-dark);
    border: 1px solid var(--color-dark);
}

body.dark-mode .send-message {
    background-color: #333333;
    color: white;
    border: 1px solid white;
}

body.dark-mode .send-message:hover {
    background-color: #070707;
}

body.dark-mode .resume-button,
body.dark-mode .contact-button {
    border-color: var(--color-dark);
    color: var(--color-dark);
}

body.dark-mode .about-header,
body.dark-mode .hero h2,
body.dark-mode .project h2 {
    color: var(--color-subheading-dark);
}

body.dark-mode .hero p,
body.dark-mode .hero h1,
body.dark-mode .description,
body.dark-mode .resume-button,
body.dark-mode .contact-button,
body.dark-mode .typing,
body.dark-mode nav ul li a,
body.dark-mode footer,
body.dark-mode .social-links ul li a {
    color: var(--color-dark);
}

body.dark-mode .social-links ul li a img {
    filter: invert(1);
}

/* Black and White Mode */
body.bw-mode {
    background-color: #ffffff;
    color: var(--color-bw);
}

body.bw-mode a {
    color: var(--color-bw);
}

body.bw-mode header,
body.bw-mode .about-container,
body.bw-mode .about-header,
body.bw-mode .hero,
body.bw-mode .work-container,
body.bw-mode .awards,
body.bw-mode .projects,
body.bw-mode .contact,
body.bw-mode .blog,
body.bw-mode .about-container {
    background-color: #ffffff;
    color: var(--color-bw);
}

body.bw-mode .contact-form input,
body.bw-mode .contact-form textarea {
    background-color: #e0e0e0;
    color: var(--color-bw);
    border: 1px solid var(--color-bw);
}

body.bw-mode .resume-button,
body.bw-mode .contact-button {
    border-color: var(--color-bw);
    color: var(--color-bw);
}

body.bw-mode .about-header,
body.bw-mode .hero h2,
body.bw-mode .project h2 {
    color: var(--color-subheading-bw);
}

body.bw-mode .hero p,
body.bw-mode .hero h1,
body.bw-mode .description,
body.bw-mode .resume-button,
body.bw-mode .contact-button,
body.bw-mode nav ul li a,
body.bw-mode footer,
body.bw-mode .social-links ul li a {
    color: var(--color-bw);
}

body.bw-mode .social-links ul li a img {
    filter: invert(0);
}

body.dark-mode .awards h2,
body.bw-mode .awards h2 {
    color: inherit;
}

body.dark-mode .awards p,
body.bw-mode .awards p {
    color: inherit;
}

body.dark-mode .news-image h2,
body.bw-mode .news-image h2 {
    color: inherit;
}

body.dark-mode .news-image img {
    filter: none;
}

body.bw-mode .news-image img {
    filter: none;
}

.contact-info p {
    color: var(--color-normal);
}

body.dark-mode .contact-info p {
    color: var(--color-dark);
}

body.bw-mode .contact-info p {
    color: var(--color-bw);
}

.contact-form label {
    color: var(--color-normal);
}

body.dark-mode .contact-form label {
    color: var(--color-dark);
}

body.bw-mode .contact-form label {
    color: var(--color-bw);
}

.job-position {
    color: var(--workplace-color-normal);
}

body.dark-mode .job-position {
    color: var(--workplace-color-dark);
}

body.bw-mode .job-position {
    color: var(--workplace-color-bw);
}

/* Hamburger Menu Styles */
.mobile-menu {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 50px; 
    z-index: 1001;
}

.menu-icon .navicon {
    background: #fff;
    display: block;
    height: 2px;
    width: 18px;
    position: relative;
    transition: background 0.2s ease-out;
}

.menu-icon .navicon:before,
.menu-icon .navicon:after {
    background: #fff;
    content: '';
    display: block;
    height: 100%;
    width: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
}

.menu-icon .navicon:before {
    top: 5px;
}

.menu-icon .navicon:after {
    top: -5px;
}

#menu-toggle:checked + .menu-icon .navicon {
    background: transparent;
}

#menu-toggle:checked + .menu-icon .navicon:before {
    transform: rotate(-45deg);
}

#menu-toggle:checked + .menu-icon .navicon:after {
    transform: rotate(45deg);
}

#menu-toggle {
    display: none;
}

.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    right: 15px;
    top: 50px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    padding: 10px;
}

#menu-toggle:checked + .menu-icon + .menu {
    display: flex;
}

.menu li {
    margin: 5px 0;
}

.menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

@media only screen and (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .menu-icon {
        display: flex;
    }

    .resume-button {
        margin-right: 0;
    }

    .hero {
        padding: 0 20px;
        margin-left: 0;
        align-items: center;
        text-align: center;
    }

    .hero p {
        font-size: 1em;
        white-space: normal;
    }

    .hero h1 {
        font-size: 2em;
        white-space: normal;
    }

    .hero h2 {
        font-size: 1.5em;
        white-space: normal;
    }

    .hero .description {
        font-size: 1em;
        white-space: normal;
    }

    .social-links {
        left: 10px;
        bottom: 10px;
    }

    .social-links ul li a img {
        width: 40px; /* Adjusted size */
        height: 40px; /* Adjusted size */
    }

    .work-container,
    .awards,
    .projects,
    .contact,
    .blog {
        padding: 10px;
        margin-top: 100px;
    }

    .contact-form .form-group {
        margin-bottom: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 1em;
    }

    .contact-form .send-message {
        width: 100px;
        font-size: 0.9em;
    }
}
