/* General styles */
:root {
    --dark-bg: #121212;
    --dark-color: #ffffff;
    --light-bg: #ffffff;
    --light-color: #000000;
    --accent-color: #E6F8B2;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--dark-color);
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
    cursor: default;
    overflow-x: hidden;
}

body.light-mode {
    background-color: var(--light-bg);
    color: var(--light-color);
}

.custom-cursor-section {
    cursor: none;
}

body.loading {
    overflow: hidden;
    background: var(--dark-bg);
}

.preloader {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--dark-bg);
}

.status {
    width: 100%;
    text-align: center;
}

.progress-bar {
    background-color: var(--accent-color);
    height: 200px;
    color: var(--dark-bg);
    font-size: 100px;
    line-height: 200px;
    font-family: 'Rubik Mono One', sans-serif;
    text-align: center;
    transition: width 0.3s;
}

body.is-touch .cursor__ball {
    display: none;
}

.custom-cursor-section .cursor {
    display: block;
}

.custom-cursor-section .cursor__ball {
    position: fixed;
    top: 0;
    left: 0;
    mix-blend-mode: difference;
    z-index: 1000;
    pointer-events: none;
    will-change: transform;
    transition: background-color 0.3s, transform 0.3s;
}

.custom-cursor-section .cursor__ball circle {
    fill: var(--accent-color);
}

.custom-cursor-section .cursor__ball--big circle {
    transition: transform 0.3s ease;
}

.custom-cursor-section .cursor.active .cursor__ball--big circle {
    transform: scale(4);
}

body .cursor {
    display: none;
}

.bg {
    height: 100vh;
    background-color: '#66666e';
}

h1, h2, h3 {
    font-family: 'Rubik Mono One', sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--accent-color);
    color: var(--light-color);
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode header {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.toggle-container {
    display: flex;
    align-items: center;
}

#mode-toggle {
    display: none;
}

.toggle-label {
    cursor: pointer;
    font-size: 24px;
    color: var(--light-color);
    transition: color 0.3s;
}

body.light-mode .toggle-label {
    color: var(--dark-color);
}

.menu-toggle {
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    text-align: center;
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.open .open-icon {
    display: none;
}

.menu-toggle.open .close-icon {
    display: inline;
}

body.light-mode .menu-toggle {
    color: var(--dark-color);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

body.light-mode .nav-menu {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.nav-menu ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.nav-menu ul li {
    margin: 20px 0;
}

.nav-menu ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 4em;
    transition: font-weight 0.3s;
}

.nav-menu ul li a:hover {
    font-weight: bold;
}

.nav-menu.open {
    transform: translateY(0);
}

.logo {
    font-family: 'Origram', sans-serif;
    font-size: 24px;
    color: inherit;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.logo a:hover {
    color: inherit;
    font-weight: normal;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.hero h1 {
    font-size: 10em;
    margin: 0;
    color: var(--accent-color);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.hero p.title {
    font-size: 1.5em;
    margin: 0;
    color: var(--accent-color);
    position: absolute;
    bottom: 80px;
    z-index: 1;
}

body.light-mode .hero {
    background-color: var(--accent-color);
}

body.light-mode .hero h1, body.light-mode .hero p, body.light-mode .scroll-down {
    color: var(--light-color);
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--accent-color);
    animation: bounce 2s infinite;
    z-index: 1;
}

body.light-mode .scroll-down {
    color: var(--light-color);
}

@media (max-height: 600px) {
    .scroll-down {
        bottom: 10px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.about {
    padding: 40px;
    text-align: center;
    margin: 20px 50px;
    box-sizing: border-box;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
}

body.light-mode .about {
    border: 2px solid var(--light-color);
}

.links {
    padding: 40px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
    margin: 10px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}

.about-image-container {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-text {
    flex: 2;
    max-width: 50%;
    padding-left: 80px;
    padding-top: 50px;
    text-align: left;
    line-height: 1.5em;
}

.social-icons {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    color: inherit;
    text-decoration: none;
    font-size: 1.5em;
}

.tagcloud {
    color: var(--accent-color);
    font-size: 0.8em;
    margin: auto;
    width: 100%;
}

body.light-mode .tagcloud {
    color: var(--light-color);
}

.tagcloud--item:hover {
      font-weight: bold;
}

.skills-works-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap;
}

.skills, .notable-works {
    flex: 1;
    min-width: 300px;
}

.skills {
    margin-right: 20px;
}

.notable-works {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.notable-works .work-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 600px;
}

.notable-works .work-cover {
    width: 100px;
    height: auto;
    margin-right: 20px;
    border-radius: 5px;
}

.notable-works .work-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    width: 100%;
}

.notable-works .work-details h4 {
    margin: 0 0 5px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    line-height: 1.2em;
}

.notable-works .work-details p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    line-height: 1.2em;
}

.column {
    flex: 1;
    min-width: 200px;
    padding: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

body.light-mode .column {
    border-color: var(--light-color);
}

ul {
    list-style: none;
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: font-weight 0.3s;
}

a:hover {
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 10px;
    background-color: var(--accent-color);
    color: var(--light-color);
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode footer {
    background-color: var(--light-color);
    color: var(--dark-color);
}

.external-link {
    position: fixed;
    top: 70px;
    left: 0;
    background-color: var(--accent-color);
    color: var(--dark-bg);
    padding: 10px 20px;
    text-decoration: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-left: 2px solid var(--dark-bg);
    border-right: 2px solid var(--dark-bg);
    border-bottom: 2px solid var(--dark-bg);
    border-top: none;
    box-shadow: 1px 1px 10px rgba(230, 248, 178, 0.25);
    transform: rotate(-90deg) translate(-100%, 0);
    transform-origin: left top;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
    z-index: 1001;
}

body.light-mode .external-link {
    background-color: var(--light-color);
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
}

.external-link + .external-link {
    margin-top: 180px;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-text {
        padding-left: 0;
        padding-top: 10px;
        max-width: 100%;
        text-align: center;
        line-height: 1.25em;
    }

    .social-icons {
        margin-top: 40px;
        gap: 20px;
    }

    .skills-works-container {
        flex-direction: column;
        align-items: center; /* Center the sections */
    }

    .skills, .notable-works {
        margin-right: 0;
        margin-left: 0;
        align-items: center; /* Center content within each section */
        text-align: center; /* Center text content */
    }

    .notable-works .work-item {
        justify-content: center; /* Center the work item content */
    }

    .notable-works .work-cover {
        width: 80px;
        margin-right: 15px;
    }

    .notable-works .work-details {
        text-align: center; /* Center the text within work details */
    }

    .notable-works .work-details h4 {
        font-size: 1.1em;
    }

    .notable-works .work-details p {
        font-size: 0.9em;
    }

    .external-link {
        padding: 7px 14px;
        font-size: 14px;
    }

    .external-link + .external-link {
        margin-top: 150px;
    }

    .hero h1 {
        font-size: 8em;
    }

    .about {
        margin: 40px;
        padding: 30px;
    }

    .links {
        padding: 30px;
        gap: 40px;
    }

    .column {
        margin: 30px 0;
        padding: 20px;
    }

    .nav-menu ul li a {
        font-size: 3em;
    }
}

@media (max-width: 600px) {
    .about-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .about-image-container {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-image {
        max-width: 100%;
        height: auto;
    }

    .about-text {
        width: 100%;
        padding: 0;
        text-align: center;
        font-size: 0.9em;
    }

    .skills, .notable-works {
        width: 100%;
        text-align: center;
        margin: 20px 0;
    }

    .notable-works .work-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .notable-works .work-cover {
        width: 100px;
        margin-bottom: 10px;
    }

    .notable-works .work-details {
        text-align: center;
        width: 100%;
    }

    .notable-works .work-details h4 {
        font-size: 0.8em;
    }

    .notable-works .work-details p {
        font-size: 0.6em;
        margin: 3px 0;
    }

    .tagcloud {
        font-size: 0.7em;
        width: 100%;
    }

    .external-link {
        padding: 5px 10px;
        font-size: 12px;
    }

    .external-link + .external-link {
        margin-top: 130px;
    }

    .hero h1 {
        font-size: 4em;
    }

    .about {
        margin: 30px;
        padding: 20px;
    }

    .links {
        padding: 20px;
        gap: 20px;
    }

    .column {
        margin: 10px 0;
        padding: 20px;
    }

    .nav-menu ul li a {
        font-size: 2em;
    }
}

@media (max-width: 400px) {
    .about {
        margin: 20px 20px;
        padding: 15px;
        width: calc(100% - 40px);
        box-sizing: border-box;
    }

    .about-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .about-image {
        max-width: 90%;
        height: auto;
        margin-bottom: 15px;
    }

    .about-text {
        padding: 0;
        text-align: center;
        font-size: 0.8em;
        width: 100%;
        margin-bottom: 15px;
    }

    .skills, .notable-works {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .notable-works .work-item {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .notable-works .work-cover {
        width: 100px;
        margin-bottom: 10px;
    }

    .notable-works .work-details h4 {
        font-size: 0.9em;
    }

    .notable-works .work-details p {
        font-size: 0.7em;
        margin: 3px 0;
    }

    .tagcloud {
        font-size: 0.6em;
        width: 100%;
    }

    .external-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .hero h1 {
        font-size: 3.5em;
    }

    .links {
        padding: 15px;
        gap: 15px;
    }

    .column {
        margin: 10px 0;
        padding: 15px;
    }

    .nav-menu ul li a {
        font-size: 1.8em;
    }
}

