:root {
    --font-sans: neue-haas-grotesk-display, sans-serif;
    --font-heading: neue-haas-grotesk-display, sans-serif;

    --color-bg: #ffffff;
    --color-accent: #000;
    /* The requested blue base */
    --color-text: #000;
    /* Text is now pure blue as in some references */
    --color-navbar-bg: rgba(255, 255, 255, 0.9);

    --container-padding: 3rem;
    --border-color: rgba(224, 224, 224, 0.2);
}

body.dark-theme {
    --color-bg: #000000;
    --color-accent: #ffffff;
    --color-text: #ffffff;
    --color-navbar-bg: rgba(0, 0, 0, 0.9);
    --border-color: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.6;
}

::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.container {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    max-width: 1600px;
    margin: 0 auto;
}

/* Utilities */
.mb-1 {
    margin-bottom: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.highlight-yellow a {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
    text-decoration-thickness: 1px;
    text-decoration-color: #000;
    font-weight: bold;
}

.fw-500 {
    font-weight: 500;
}

.opacity-70 {
    opacity: 0.7;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--color-navbar-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.logo-icon {
    font-size: 3.8rem;
    transform: rotate(-90deg);
    /* Faz o triângulo do play apontar para cima */
}

.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icon:hover {
    opacity: 0.6;
}

.nav-center {
    font-weight: 400;
    opacity: 0.6;
}

.contact-btn {
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 50px;
}

/* Hero Marquee */
.hero {
    height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.hero-marquee {
    white-space: nowrap;
    will-change: transform;
    /* Optional: you can animate this to scroll right-to-left */
}

.hero-marquee h1 {
    font-size: clamp(4rem, 12vw, 15rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.8;
}

/* Base Sections */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0em;
    font-weight: 700;
}

/* About Intro */
.about-section {
    padding-top: 5rem;
    padding-bottom: 5em;
}

.about-text-large {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    width: 100%;
}

.about-text-small {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 1200px;
    opacity: 0.8;
}

.about-text-small p {
    margin-bottom: 1rem;
}

.scroll-arrow {
    text-align: left;
    font-size: 3rem;
    margin-top: 2rem;
    margin-bottom: -5rem;
}

/* Grids */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 4rem;
}

.grid-col-sidebar {
    /* To align titles */
}

/* Lists and Tables */
.list-table {
    display: flex;
    flex-direction: column;
}

.list-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.list-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-label {
    flex: 1;
    font-weight: 400;
    opacity: 0.6;
}

.list-value {
    flex: 2;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Projects & Presentations */
.project-item {
    margin-bottom: 4rem;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.8;
    max-width: 80%;
}

/* Education & Languages */
.simple-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.simple-list li {
    font-size: 1.25rem;
    display: flex;
    flex-direction: column;
}

.flex-list li {
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* Half grid for BG section */
#background .grid-layout {
    grid-template-columns: 1fr 1fr;
}

/* GitHub */
.github-chart-wrapper {
    width: 100%;
    overflow-x: auto;
}

.github-chart-wrapper img {
    min-width: 700px;
    display: block;
    mix-blend-mode: multiply;
    /* ensures background blends nicely */
    opacity: 0.9;
}

body.dark-theme .github-chart-wrapper img {
    filter: invert(1) hue-rotate(180deg);
    mix-blend-mode: screen;
}

/* Footer */
.footer {
    padding-top: 8rem;
    padding-bottom: 3rem;
}

.footer-heading {
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.footer-email {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    display: block;
    margin-bottom: 8rem;
    opacity: 0.7;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-bottom {
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-copy {
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-layout,
    #background .grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }

    .hidden-mobile {
        display: none;
    }

    .hero {
        height: 40vh;
    }

    .logo-icon {
        font-size: 2.25rem;
    }

    .social-icon {
        font-size: 1.25rem;
    }

    #theme-toggle {
        font-size: 1.75rem;
    }

    .section {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .scroll-arrow {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }


    .about-section {
        padding-top: 2rem;
        padding-bottom: 1.5rem;
    }

    .about-text-large {
        font-size: 1.25rem;
    }

    .about-text-small {
        font-size: 1.05rem;
    }

    .list-row {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .list-value {
        font-size: 1.15rem;
    }

    .project-name {
        font-size: 1.5rem;
        gap: 1rem;
        align-items: flex-start;
    }

    .project-desc {
        max-width: 100%;
    }

    .github-chart-wrapper img {
        min-width: 0;
        width: 100%;
        height: auto;
    }

    .footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .footer-heading {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .footer-email {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}