/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Color and Size Variables */
:root {
    --color-main: #2a9d8f;
    --color-basic: #fcf7e8;
    --color-text: #1d3557;
    --color-acent: #d1495b;

    --font-family: "KorbRegular", "Source Sans Pro", Helvetica, sans-serif;
    --font-size-base: 1.2rem;
    --font-size-lg: 2.5rem;
    --container-padding: 2%;
    --container-max-width: 60rem;
    --header-padding: 0.5rem 0;
    --section-margin: 2.5rem 0;
}

/* General Settings */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-basic);
    color: var(--color-text);
    line-height: 1.6;
    font-size: var(--font-size-base);
    padding: 0;
    text-rendering: optimizeLegibility;
    text-align: justify;
}

/* Highlight Class */
.highlight {
    color: var(--color-main);
    font-weight: bold;
}

/* Standard Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Fixed Header */
header {
    background-color: var(--color-main);
    padding: var(--header-padding);
    position: fixed;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
}

header .container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    margin-left: 0;
}

header .logo h1 {
    font-size: 2.2rem;
    color: var(--color-basic);
    margin: 0;
}

.logo h1 {
    font-family: 'Audiowide', 'Arial', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-basic);
    transition: color 0.3s ease;
}

.logo a {
    text-decoration: none;
    color: var(--color-main);
    transition: color 0.3s ease;
}

.logo a:hover h1 {
    color: var(--color-acent);
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 0;
}

header nav ul li {
    margin-left: 1.25rem;
}

header nav ul li a {
    color: var(--color-basic);
    text-decoration: none;
    font-size: 1rem;
}

header nav ul li a:hover {
    color: var(--color-acent);
}

/* Contêiner para os botões de ação (paleta e idioma) */
.menu-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

/* Estilo básico do botão de paleta */
.palette-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-basic);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.palette-btn:hover {
    color: var(--color-acent);
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

#current-lang {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

#current-lang:hover {
    color: var(--color-acent);
}

#current-lang i,
#current-lang span {
    transition: color 0.3s ease;
}

#current-lang i {
    font-size: 1.2rem;
}

#current-lang span {
    font-size: 1rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-basic);
    align-items: center;
    transition: color 0.3s ease;
    margin-left: 12px;
    display: block;
    font-size: 1rem;
}


/* Section Styles */
section {
    margin: var(--section-margin);
    scroll-margin-top: 140px;
}

h2 {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-main);
    margin-top: 9rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.625rem;
    display: flex;
    align-items: center;
}

h2::after {
    content: '';
    flex-grow: 1;
    margin-left: 1.25rem;
    height: 0.0625rem;
    background-color: var(--color-main);
}

.main-heading {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--color-main);
    margin-top: 9rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 0.625rem;
    display: flex;
    align-items: center;
}

.main-heading::after {
    content: '';
    flex-grow: 1;
    margin-left: 1.25rem;
    height: 0.0625rem;
    background-color: var(--color-main);
}


/* "About Me" Section Styles */
.about-content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.profile-photo img {
    max-width: 10rem;
    border-radius: 50%;
    margin-right: 1.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile-photo img:hover {
    transform: scale(1.05);
}

.about-text {
    max-width: 100%;
    flex: 2;
    margin-left: 0;
}

.about-text h1 {
    font-size: var(--font-size-base);
    font-weight: normal;
    display: inline;
    color: var(--color-text);
    margin: 0;
    padding: 0;
}

.about-text p {
    display: inline;
}

.talk-btn {
    width: 40%;
    display: block;
    margin-top: 1rem;
    background-color: var(--color-main);
    color: var(--color-basic);
    padding: 10px 20px;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.talk-btn:hover {
    background-color: var(--color-acent);
}

/* General Link Styling */
ul li a {
    color: var(--color-main);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

ul.custom-bullets {
    list-style-type: none;
    padding-left: 1.25rem;
}

ul.custom-bullets li {
    position: relative;
    line-height: 2.5;
}

ul.custom-bullets li::before {
    content: "•";
    position: absolute;
    left: -1.25rem;
    color: var(--color-main);
    font-size: 1.2rem;
}

/* "Projects" Section Styles */
.project {
    display: flex;
    align-items: flex-start;
    margin-bottom: 11rem;
}

.project-image {
    flex: 1;
    width: 100%;
}

.project-image img {
    max-width: 100%;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.project-image img:hover {
    transform: scale(1.05);
}

.project-details {
    flex: 2;
    margin-left: 1.25rem;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
    color: var(--color-acent);
}

.project-details h3 a {
    color: var(--color-main);
    text-decoration: none;
}

.project-details h3 a:hover {
    color: var(--color-hover);
}

.project-details p {
    margin-bottom: 0.9375rem;
    line-height: 1.6;
    text-align: justify;
}

.project-description {
    max-height: 6rem;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.project-description.expanded {
    max-height: none;
}

.weitere-projekte-description {
    max-height: none;
    overflow: visible;
}

.read-more-btn {
    background-color: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.625rem;
}

.read-more-btn:hover {
    color: var(--color-acent);
}

.project-buttons {
    display: flex;
    gap: 0.625rem;
    margin-top: 2rem;
}

.project-buttons .btn {
    flex: 1;
    background-color: var(--color-main);
    color: var(--color-basic);
    padding: 0.625rem 0.9375rem;
    text-decoration: none;
    border-radius: 0.3125rem;
    transition: background-color 0.3s ease;
    text-align: center;
}

.project-buttons .btn:hover {
    background-color: var(--color-acent);
}

/* Weitere Projekte" */
.project-code-animation {
    background-color: var(--color-text);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    color: var(--color-basic);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    box-sizing: border-box;
}

.code {
    overflow: hidden;
    white-space: pre;
    line-height: 0.8;
}

.line {
    display: block;
    opacity: 0;
    animation: typing 1s steps(30) forwards;
}

.line:nth-child(1) {
    animation-delay: 1s;
}

.line:nth-child(2) {
    animation-delay: 2s;
}

.line:nth-child(3) {
    animation-delay: 3s;
}

.line:nth-child(4) {
    animation-delay: 4s;
}

.line:nth-child(5) {
    animation-delay: 5s;
}

.line:nth-child(6) {
    animation-delay: 6s;
}

/* Repetição da animação com intervalo */
@keyframes typing {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes resetAnimation {

    0%,
    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.project-code-animation {
    animation: resetAnimation 9s ease-in-out infinite;
}

.project-image a {
    display: block;
    text-decoration: none;
}


/* "Contact" Section Styles */
.contact-icons {
    display: flex;
    justify-content: space-around;
    margin-top: 2.5rem;
}

.contact-icons li {
    list-style: none;
}

.contact-icons li a {
    text-decoration: none;
    color: var(--color-main);
    font-size: 2.5rem;
    position: relative;
    transition: font-size 0.3s ease, color 0.3s ease;
}

.contact-icons li a:hover {
    color: var(--color-acent);
    font-size: 2.8rem;
}

.contact-icons li a[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: 3.125rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-basic);
    padding: 0.3125rem 0.625rem;
    border-radius: 0.3125rem;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
}

/* "Downloads" Section Styles */
#downloads p,
#downloads ul li {
    line-height: 3;
    margin-bottom: 0.625rem;
}

#downloads a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-main);
    font-weight: bold;
}

.download-icon {
    font-size: 1.5rem;
    color: var(--color-main);
    margin-right: 0.5rem;
    vertical-align: middle;
}

.download-list p {
    margin: 0;
    line-height: 1.5rem;
    display: inline-block;
    vertical-align: middle;
}

.download-list a:hover .download-icon {
    color: var(--color-acent);
}

#downloads a:hover {
    color: var(--color-acent);
}

ul.download-list {
    list-style-type: none;
    padding-left: 0;
}

ul.download-list li {
    margin-bottom: 0.9375rem;
}

/* Minimalist Footer Styles */
footer {
    background-color: var(--color-main);
    color: var(--color-basic);
    padding: 1.5rem 0;
    text-align: center;
    width: 100%;
    position: relative;
    margin: 0;
    margin-top: 8rem;
}

#footer-nav {
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-menu li {
    display: inline;
}

.footer-menu li:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    color: var(--color-basic);
}

.footer-menu a {
    color: var(--color-basic);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-acent);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-basic);
    margin-top: 1rem;
}

/* Hamburger Menu Button Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 12px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--color-basic);
    border-radius: 5px;
    transition: all 0.3s;
}



/* Media Queries for Screens up to 800px (Tablets) */
@media (max-width: 800px) {

    /* Display the hamburger menu button on smaller screens */
    .hamburger {
        display: flex;
        margin-left: 15px;
        position: relative;
    }

    /* Position the language selector next to the hamburger menu */
    .language-selector {
        position: absolute;
        top: 20px;
        right: 60px;
    }

    /* Hide the navigation menu by default */
    header nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 20px;
        background-color: var(--color-main);
        width: 200px;
        border-radius: 5px;
        padding: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    /* Display the navigation menu when active */
    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    header .container {
        padding: 0 20px;
    }

    .container {
        padding: 0 20px;
    }

    h2 {
        font-size: 2rem;
        margin-top: 100px;
        margin-bottom: 30px;
    }

    h3 {
        margin: 20px 0;
    }

    .talk-btn {
        width: 54%;
        display: block;
        margin: 20px auto 0;
    }

    #weitere-projekte-btn {
        flex: none;
        width: 68%;
        display: block;
        margin: 20px auto 0;
    }

    .project {
        flex-direction: column;
    }

    .project-details {
        margin-left: 0;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .profile-photo img {
        margin-right: 0;
        margin-bottom: 35px;
    }

    header nav ul {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul li {
        margin-left: 0;
        margin-top: 10px;
    }

    .about-text {
        margin-left: 0;
    }

    footer {
        padding: 20px;
    }

    .footer-menu {
        flex-direction: column;
        align-items: center;
    }

    .footer-menu li:not(:last-child)::after {
        content: none;
    }

    footer p,
    .footer-menu li a {
        font-size: 1rem;
    }
}




/* Media Queries for Screens up to 414px (Smartphones) */
@media (max-width: 414px) {

    :root {
        --font-size-base: 1.1rem;
    }

    .container {
        padding: 0 15px;
    }

    header .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 1.6rem;
        margin-top: 100px;
        margin-bottom: 20px;
    }

    .project-details h3 {
        font-size: 1.3rem;
        margin: 20px 0;
    }

    .project-details p {
        font-size: 1.1rem;
    }

    .talk-btn {
        width: 95%;
    }

    .project-buttons .btn {
        padding: 10px 5px;
        margin-top: 2rem;
    }

    .project-description {
        max-height: 5.5rem;
    }

    #weitere-projekte-btn {
        margin: 80px auto 0;
    }


    .about-content {
        padding: 0 10px;
    }

    .contact-icons {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    .contact-icons li {
        margin-bottom: 0;
    }

    .contact-icons li a {
        font-size: 1.5rem;
    }
}