/* =========================================
   IMPORTS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');


/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors — TechStudio palette (adapted) */
    --dark-bg:           #34344a;
    --dark-surface:      #44445e;
    --dark-border:       rgba(232, 234, 240, 0.1);
    --light-bg:          #fafcfb;
    --light-surface:     #f0f2f1;
    --light-border:      rgba(30, 30, 46, 0.09);
    --accent:            #789dfd;   /* Wisteria Blue — use on dark backgrounds */
    --accent-dark:       #4d6fd4;   /* Wisteria Blue darkened — use on light backgrounds, contrast 5.1:1 */
    --accent-secondary:  #73ab84;   /* Muted Teal */
    --text-dark:         #e8eaf0;
    --text-light:        #1e1e2e;
    --text-muted:        #6b7280;

    /* Typography */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'Fira Code', 'Cascadia Code', monospace;

    /* Layout */
    --header-height:    7rem;
    --container-max:    1160px;
    --section-padding:  9rem 0;

    /* Transitions */
    --transition: 0.22s ease;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.7;
    background-color: var(--light-bg);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button {
    font-family: var(--font-sans);
}


/* =========================================
   UTILITIES
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2.4rem;
}

.hidden {
    display: none !important;
}


/* =========================================
   HEADER
   ========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background var(--transition), box-shadow var(--transition);
}

#header.scrolled {
    background: rgba(52, 52, 74, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

nav#nav {
    display: flex;
    gap: 3.5rem;
}

.nav-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(232, 234, 240, 0.65);
    text-decoration: none;
    letter-spacing: 0.015em;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 0.2rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 2.8rem;
    line-height: 1;
    padding: 0.4rem;
}


/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.6rem;
    border-radius: 0.6rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
}

.btn--primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn--ghost {
    background: transparent;
    color: var(--text-dark);
    border-color: rgba(232, 234, 240, 0.25);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}


/* =========================================
   SECTIONS — BASE
   ========================================= */
.section {
    padding: var(--section-padding);
}

.section--dark {
    background-color: var(--dark-bg);
    color: var(--text-dark);
}

.section--light {
    background-color: var(--light-bg);
    color: var(--text-light);
}

.section--bordered {
    border-top: 1px solid var(--light-border);
    border-bottom: 1px solid var(--light-border);
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4rem;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.section-heading--centered {
    text-align: center;
}

.section-heading--light {
    color: var(--text-dark);
}


/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero__label {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 1.8rem;
}

.hero__name {
    font-family: var(--font-serif);
    font-size: clamp(4.8rem, 7.5vw, 8rem);
    font-weight: 700;
    line-height: 1.04;
    color: var(--text-dark);
    margin-bottom: 1.4rem;
    letter-spacing: -0.025em;
}

.hero__tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.4vw, 2.2rem);
    font-style: italic;
    color: var(--accent-secondary);
    margin-bottom: 2.4rem;
}

.hero__intro {
    font-size: 1.75rem;
    color: rgba(232, 234, 240, 0.75);
    max-width: 50ch;
    line-height: 1.75;
    margin-bottom: 4rem;
}

.hero__actions {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 4.5rem;
}

.hero__social {
    display: flex;
    gap: 1.2rem;
}

.hero__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 1.5px solid rgba(232, 234, 240, 0.18);
    border-radius: 0.7rem;
    color: rgba(232, 234, 240, 0.55);
    font-size: 2.2rem;
    text-decoration: none;
    transition: all var(--transition);
}

.hero__social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(120, 157, 253, 0.08);
}

/* Hero Image */
.hero__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image-frame {
    position: relative;
    width: clamp(28rem, 36vw, 48rem);
    height: clamp(28rem, 36vw, 48rem);
    border-radius: 50%;
    overflow: hidden;
    background: var(--dark-surface);
    border: 3px solid rgba(120, 157, 253, 0.25);
    box-shadow:
        0 0 0 8px rgba(120, 157, 253, 0.06),
        0 40px 80px rgba(0, 0, 0, 0.45);
}

.hero__image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}


/* =========================================
   SOBRE
   ========================================= */
.sobre__inner {
    display: grid;
    grid-template-columns: 1fr 34rem;
    gap: 7rem;
    align-items: start;
}

.sobre__bio .section-heading {
    margin-bottom: 2.5rem;
}

.sobre__bio p {
    font-size: 1.7rem;
    line-height: 1.8;
    color: rgba(30, 30, 46, 0.82);
    max-width: 64ch;
    margin-bottom: 1.8rem;
}

.sobre__bio p:last-child {
    margin-bottom: 0;
}

.sobre__bio strong {
    color: var(--text-light);
    font-weight: 600;
}

/* Info Card */
.info-card {
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 1.2rem;
    padding: 2.6rem;
    margin-bottom: 2rem;
}

.info-card__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--light-border);
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.info-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-list__item i {
    font-size: 2rem;
    color: var(--accent-dark);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.info-list__item > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.info-list__label {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}

.info-list__value {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    padding: 0.5rem 1.1rem;
    background: rgba(77, 111, 212, 0.07);
    color: var(--accent-dark);
    border: 1px solid rgba(77, 111, 212, 0.18);
    border-radius: 2rem;
    white-space: nowrap;
    transition: background var(--transition), border-color var(--transition);
}

.tag:hover {
    background: rgba(77, 111, 212, 0.13);
    border-color: rgba(77, 111, 212, 0.35);
}


/* =========================================
   TIMELINE
   ========================================= */
.timeline-tabs {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 5rem;
}

.timeline-tab {
    padding: 0.9rem 2.6rem;
    border-radius: 0.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: 1.5px solid var(--light-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.timeline-tab:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.timeline-tab.active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.timeline {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 1.5px;
    background: var(--light-border);
}

.timeline__item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 3.5rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -0.55rem;
    top: 2.8rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--accent-dark);
    border: 2.5px solid var(--light-bg);
    box-shadow: 0 0 0 2px var(--accent-dark);
}

.timeline__card {
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 1rem;
    padding: 2.6rem 3.2rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline__card:hover {
    border-color: rgba(77, 111, 212, 0.28);
    box-shadow: 0 4px 24px rgba(77, 111, 212, 0.07);
}

.timeline__period {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent-dark);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.timeline__role {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0.5rem 0 0.3rem;
    letter-spacing: -0.01em;
}

.timeline__company {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.timeline__desc {
    font-size: 1.5rem;
    color: rgba(30, 30, 46, 0.72);
    line-height: 1.7;
}


/* =========================================
   PUBLICAÇÕES
   ========================================= */
.filter-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4.5rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-size: 1.35rem;
    font-weight: 500;
    border: 1.5px solid var(--light-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.filter-btn.active {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
    gap: 2.4rem;
}

.pub-card {
    background: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 1.2rem;
    padding: 2.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pub-card:hover {
    border-color: rgba(77, 111, 212, 0.24);
    box-shadow: 0 8px 32px rgba(77, 111, 212, 0.07);
    transform: translateY(-2px);
}

.pub-card__meta {
    display: flex;
    gap: 0.8rem;
}

.pub-tag {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 0.4rem;
}

.pub-tag--podcast {
    background: rgba(120, 157, 253, 0.1);
    color: var(--accent-dark);
}

.pub-tag--blog {
    background: rgba(115, 171, 132, 0.12);
    color: #3d7a52;
}

.pub-tag--academico {
    background: rgba(145, 110, 185, 0.1);
    color: #6b4fa0;
}

.pub-tag--midia {
    background: rgba(195, 115, 179, 0.1);
    color: #9b3d95;
}

.pub-card__title {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.35;
    letter-spacing: -0.01em;
    flex: 1;
}

.pub-card__desc {
    font-size: 1.5rem;
    color: rgba(30, 30, 46, 0.68);
    line-height: 1.65;
}

.pub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.8rem;
    transition: gap var(--transition), color var(--transition);
}

.pub-card__link:hover {
    gap: 0.9rem;
    color: var(--accent);
}


/* =========================================
   CONTATO
   ========================================= */
.contato__inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 9rem;
    align-items: start;
}

.contato__intro .section-heading {
    margin-bottom: 1.8rem;
}

.contato__intro > p {
    font-size: 1.7rem;
    color: rgba(232, 234, 240, 0.72);
    line-height: 1.75;
    max-width: 36ch;
    margin-bottom: 4rem;
}

.contato__links {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contato__link {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: rgba(232, 234, 240, 0.65);
    text-decoration: none;
    transition: color var(--transition);
}

.contato__link i {
    font-size: 2.6rem;
    color: var(--accent);
}

.contato__link:hover {
    color: var(--text-dark);
}

/* Contact groups */
.contato__groups {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contato__group {
    padding: 2.2rem 2.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(232, 234, 240, 0.1);
    border-radius: 1.2rem;
}

.contato__group-title {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(232, 234, 240, 0.08);
}

.contato__items {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contato__item {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    text-decoration: none;
    transition: color var(--transition);
}

.contato__item i {
    font-size: 2.2rem;
    color: rgba(232, 234, 240, 0.35);
    flex-shrink: 0;
    transition: color var(--transition);
}

.contato__item:hover i {
    color: var(--accent);
}

.contato__item-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contato__item-label {
    font-size: 1.2rem;
    color: rgba(232, 234, 240, 0.45);
}

.contato__item-value {
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition);
}

.contato__item:hover .contato__item-value {
    color: var(--accent);
}


/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: #2c2c40;
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer__copy {
    font-size: 1.35rem;
    color: rgba(232, 234, 240, 0.35);
}

.footer__social {
    display: flex;
    gap: 1.6rem;
}

.footer__social a {
    font-size: 2.2rem;
    color: rgba(232, 234, 240, 0.35);
    text-decoration: none;
    transition: color var(--transition);
}

.footer__social a:hover {
    color: var(--accent);
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 7rem 0;
    }

    .hero__inner {
        gap: 5rem;
    }

    .sobre__inner {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .sobre__sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }

    .info-card {
        margin-bottom: 0;
    }

    .contato__inner {
        gap: 5rem;
    }
}

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero__image {
        order: -1;
    }

    .hero__image-frame {
        width: clamp(22rem, 55vw, 34rem);
        height: clamp(22rem, 55vw, 34rem);
        border-radius: 50%;
    }

    .hero__intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__social {
        justify-content: center;
    }

    .contato__inner {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .contato__intro > p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 56.25%;
    }

    .menu-toggle {
        display: block;
    }

    nav#nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(52, 52, 74, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(232, 234, 240, 0.07);
        padding: 1rem 0;
    }

    nav#nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1.4rem 2.4rem;
        font-size: 1.6rem;
    }

    .nav-link::after {
        display: none;
    }

    .sobre__sidebar {
        grid-template-columns: 1fr;
    }

    .pub-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    :root {
        --section-padding: 5.5rem 0;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .filter-btn {
        font-size: 1.25rem;
        padding: 0.7rem 1.5rem;
    }

    .timeline {
        padding-left: 2.2rem;
    }

    .timeline__card {
        padding: 2rem 2.2rem;
    }

    .pub-card {
        padding: 2.2rem;
    }
}
