:root {
    color-scheme: dark;

    --bg-color: rgba(0, 0, 0, 0.05);
    --dark-bg-color: rgba(255, 255, 255, 0.05);
    --border-color: #707070;
    
    --fancy-font-family: "Parkinsans", sans-serif;
    --general-font-family: "Gabarito", sans-serif;

    --border-radius-btn: .2rem;

    --p-size: 1.2rem;
    --p-size-variant: 1.4rem;

    --h1-size: 4rem;

    --black: #0f1115;
    --white: #f5f5f5;
    --yellow: #fff312;
    --hue-0: var(--yellow);
    --hue-1: #ff0088;
    --hue-2: #dd00ee;
    --hue-3: #9911ff;
    --hue-4: #0d63f8;
    --hue-5: #0cdcf7;
    --hue-6: #4ff0b7;

    --timeline-primary: var(--yellow);
    --timeline-secondary: var(--hue-2);

    ::selection {
        background-color: var(--hue-2);
        color: var(--black);
    }
}

:root.light-mode {
    color-scheme: light;

    --black: #f5f5f5;
    --white: #0f1115;

    --yellow: #f0c808;     /* Softened yellow with better contrast */
    --hue-0: var(--yellow);
    --hue-1: #d4006e;      /* Deeper, more readable pink */
    --hue-2: #9c00b0;      /* Richer, more subdued purple */
    --hue-3: #6a00ff;      /* Slightly muted purple */
    --hue-4: #0044cc;      /* More saturated, readable blue */
    --hue-5: #00a8cc;      /* Brighter, clearer cyan */
    --hue-6: #00b369;      /* Deeper, more muted green */
    
    /* Theme toggle colors for light mode */
    --theme-toggle-bg: #f0f0f0;
    --theme-toggle-circle: #333;
}

.white-text {
    color: #f5f5f5;
}

.black-text {
    color: #0f1115;
}

small {
    color: var(--hue-2);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.theme-toggle .moon,
.theme-toggle .sun {
    position: absolute;
    transform-origin: center;
}

.theme-toggle .moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

.theme-toggle .sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle.light .moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle.light .sun {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: inherit;
}

html {
    box-sizing: border-box;
    font-size: 100%;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scrollbar-color: rgb(235, 235, 235) transparent;
}

body {
    background: var(--black);
    padding: 0;
    margin: 0;
    font-family: var(--general-font-family);
    overflow-x: hidden;
}

.container {
    padding-top: calc(2rem + 80px);
    padding-left: 2rem;
    padding-right: 2rem;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.header .left-header,
.header .right-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.header .left-header a {
    text-decoration: none;
    color: var(--white);
    font-size: var(--p-size-variant);
}

.header .right-header a {
    text-decoration: none;
    background-color: var(--yellow);
    padding: .6rem 1.2rem;
    color: #0f1115;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    box-shadow: 8px 8px 0 black;
    transition: 180ms ease all;
}

.header .right-header a:hover {
    box-shadow: 4px 4px 0 black;
}

.social-menu {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    height: 60px;
    width: 220px;
    gap: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--dark-bg-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.social-menu:hover {
    width: 250px;
    height: 70px;
}

.social-icon {
    width: 40px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: 
        transform 0.3s ease, 
        width 0.3s ease, 
        margin 0.3s ease;
}

.social-menu:hover .social-icon {
    transform: scale(0.9);
    transition: 
        transform 0.3s ease, 
        width 0.3s ease, 
        margin 0.3s ease;
}

.social-menu .social-icon:hover {
    transform: scale(1.2);
    z-index: 10;
}

.social-menu:hover .social-icon:not(:hover) {
    transform: scale(0.8);
    opacity: 0.7;
}

.hero {
    height: 100vh;
    margin-top: -10rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
}

.hero svg {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: .5;
    margin-top: 4rem;
    transition: 600ms ease all;
}

.hero svg:hover {
    opacity: 1;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: default;
}

.tooltip .tooltip-text {
    text-transform: none;
    width: 160px;
    font-size: .8rem;
    visibility: hidden;
    background-color: var(--dark-bg-color);
    border: 1px solid var(--border-color);
    color: var(--white);
    text-align: center;
    padding: .6rem .8rem;
    border-radius: 5px;
    position: absolute;
    bottom: 200%; /* Move tooltip above */
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hero h1 {
    font-size: var(--h1-size);
    text-transform: uppercase;
    font-family: var(--fancy-font-family);
}

.hero p {
    text-transform: lowercase;
    font-size: var(--p-size-variant);
    line-height: 0.6rem;
}

main {
    display: flex;
    flex-direction: column; /* Alinha os itens como coluna */
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente */
    height: 100vh; /* Preenche a altura total da tela */
}

main > section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

main > section:not(:first-child) {
    margin-top: 2rem;
}

main .cooking,
main .skills,
main .other {
    width: 100%; /* Ajusta a largura conforme necessário */
    max-width: 800px; /* Define um limite para a largura */
    text-align: left; /* Mantém o texto alinhado à esquerda */
}

main .cooking h2,
main .skills h2,
main .other h2  {
    display: inline-block;
    background-color: var(--yellow);
    padding: 0.4rem;
    color: var(--black);
    text-align: left;
}


.social-icon svg {
    width: 100%;
    height: 100%;
    transition: fill 0.3s ease;
}

/* GitHub Icon */
.github-icon svg {
    fill: var(--white);
    color: #333;
}

/* LinkedIn Icon */
.linkedin-icon svg {
    fill: #0A66C2;
}




.timeline {
    position: relative;
    max-width: 800px;
    margin: 100px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 100%;
    background: var(--dark-bg-color);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    left: 50%;
}

.timeline-item:nth-child(odd) {
    align-self: flex-start;
    left: 0;
}

.timeline-content {
    background: var(--dark-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--timeline-primary);
    top: 20px;
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-tag {
    display: inline-block;
    background: var(--timeline-secondary);
    color: #f5f5f5;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 0.8rem;
}

.timeline-title {
    color: var(--yellow);
    margin-bottom: 10px;
    font-family: var(--fancy-font-family);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::before {
        left: 10px;
    }
}


@media (max-width: 768px) {
    .header {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row; /* Ensure horizontal layout */
    }

    .header .left-header,
    .header .right-header {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .header .left-header img {
        width: 50px !important;
        margin-right: 0.5rem;
    }

    .header .right-header a {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .theme-toggle {
        margin-right: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header .left-header,
    .header .right-header {
        gap: 0.5rem;
    }

    .header .left-header img {
        width: 40px;
    }

    .header .right-header a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .theme-toggle {
        margin-right: 0.5rem;
    }
}

/* Add this to your styles.css */
.changelog-preview {
    position: absolute;
    background-color: var(--dark-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-width: 400px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 1100;
}

.changelog-preview.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-scroll-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--dark-bg-color);
    border-radius: 10px;
    margin-top: 1rem;
    position: relative;
}

.project-scroll-container::before,
.project-scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, var(--dark-bg-color) 0%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.project-scroll-container::before {
    left: 0;
}

.project-scroll-container::after {
    right: 0;
    transform: rotateZ(180deg);
}

.project-scroll-text {
    padding: 1rem;
    display: flex;
    width: calc(250px * 14);
    animation: scrollProjects 40s linear infinite alternate;
}

.project-scroll-text span {
    flex: 0 0 250px;
    padding-right: 2rem;
    font-size: var(--p-size-variant);
    color: var(--white);
    white-space: nowrap;
}

@keyframes scrollProjects {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-250px * 7));
    }
}



/* Pre-loader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.preloader-content svg {
    animation: pulse 1.5s infinite;
}

.preloader.loaded {
    opacity: 0;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

