/* ======================
   Reset & Variables
   ====================== */

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

:root {
    /* Colors */
    --color-primary: #4b0d13;
    --color-accent: #940f22;
    --color-text: #525252;
    --color-text-light: #727374;
    --color-border: #e0e0e0;
    --color-bg-light: #fafafa;
    --color-white: #ffffff;
    --color-footer-bg: #2c2c2c;
    
    /* Typography */
    --font-title: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --container-max: 1260px;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    font-weight: 300;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* ======================
   Container
   ====================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======================
   Header & Navigation
   ====================== */

.header {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: block;
    max-width: 325px;
}

.logo img{
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    gap: 3rem;
    align-items: center;
    font-family: 'ATSackersGothic';
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    font-family: 'ATSackersGothic';
}

.lang-link {
    transition: color 0.3s ease;
}

.lang-link:hover {
    color: var(--color-primary);
}

.lang-link.active {
    color: var(--color-primary);
    font-weight: 500;
}

.lang-divider {
    color: var(--color-text-light);
}

/* ======================
   Hero Section
   ====================== */

.hero {
    margin-top: -1px;
    background-color: #f5f5f5;
    position: relative;
}

.hero-int{
    background-color: #f5f5f5;
    position: relative;
    padding: 5rem 0;
    background-image: url(../images/bg-interna.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

.hero:after{
    content:'';
    width: 100%;
    background-color: #fff;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 85px;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    padding-top: 90px;
    position: relative;
    z-index: 2;
}

/* ======================
   Profile Section
   ====================== */

.profile {
    padding: var(--spacing-xl) 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.profile-credentials {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    font-family: 'ATSackersGothic';
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.profile-details {
    margin-top: var(--spacing-md);
    padding-top: 1rem;
    /* border-top: 2px solid var(--color-accent); */
}

.line{
    margin-bottom: var(--spacing-md);
    display: block;
    height: 2px;
    width: 64px;
    background-color: var(--color-accent);
}

.profile-details p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
}

.profile-details strong {
    font-weight: bold;
    /* color: var(--color-primary); */
    color: #525252;
}

/* ======================
   Experience Page
   ====================== */

/* .experience-page {
    padding: var(--spacing-lg) 0;
} */

.content-int .content-section{
    padding: 5rem 0;
}

.page-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    /* margin-bottom: var(--spacing-xl); */
    align-items: center;
    /* padding: 3rem 0; */
    position: relative;
}

/* .page-header-right{
    position: absolute;
} */

.page-title {
    font-family: var(--font-title);
    font-size: 3rem;
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.page-credentials {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    font-family: 'ATSackersGothic';
}

.profile-photo {
    width: 100%;
    max-width: 390px;
    height: auto;
    border-radius: 2px;
    margin-left: auto;
}

/* .content-section {
    margin-bottom: var(--spacing-xl);
} */

.section-title {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 300;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    /* border-bottom: 2px solid var(--color-accent); */
    display: inline-block;
    position: relative;
    padding-top: 24px;
}

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

.btn{
    margin: 1rem 0;
    padding: 1rem 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #940f22;
    color: #f5f5f5;
    text-transform: uppercase;
    transition: all .2s ease-in;
}

.btn:hover{
    background-color: #4b0d13;
}

.section-title:before{
    content:'';
    width: 64px;
    height: 4px;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #940f22;
        display: block;
}

/* Content List (for Formação and Publicações with years) */
.content-list {
    position: relative;
}

.content-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.item-year {
    font-family: 'ATSackersGothic';
    font-size: .9rem;
    /* font-weight: 600; */
    color: var(--color-accent);
    min-width: 160px;
    flex-shrink: 0;
}

.item-content h3{
    font-weight: bold;
    color: #404040;
    font-size: 16px;
}

.item-content p {
    /* font-size: 0.95rem; */
    line-height: 1.7;
    color: var(--color-text);
    font-weight: 300;
    max-width: 570px;
    font-size: 16px;
}

.section-palestras .item-content p{
    max-width: 735px;
    margin-bottom: 1rem;
}

.section-palestras .item-content strong{
    color: #404040;
    font-weight: bold;
}

.item-content strong {
    font-weight: 500;
    color: var(--color-primary);
    display: inline-block;
    margin-bottom: 0.25rem;
}

.bg-section{
    background-color: #fafafa;
}

/* Simple List (for Experiência Profissional and Afiliações) */
.simple-list {
    list-style: none;
    padding-left: 0;
}

.simple-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    padding-left: 1.5rem;
    position: relative;
    font-weight: 300;
}

.simple-list li::before {
    /* content: '•'; */
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ======================
   Footer
   ====================== */

.footer {
    background-color: var(--color-footer-bg);
    color: #ffffff;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    /* margin-top: var(--spacing-xl); */
}

.footer-grid {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    display: block;
}

.footer-logo-img {
    height: auto;
    max-width: 165px;
}

.footer h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    color: rgba(255,255,255,0.9);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.8);
    font-weight: 300;
}

.contact-item svg {
    flex-shrink: 0;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: rgba(255,255,255,1);
}

/* ======================
   Responsive Design
   ====================== */

@media (max-width: 1024px) {
    .nav {
        gap: 2rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .page-header {
        grid-template-columns: 1fr;
        /* padding-top: 9rem; */
    }
    
    .profile-photo {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-int:after{
        display: none;
    }

    .header .container {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem;
        background-color: #fff;
    }

    .hero .container{
        padding: 0;
    }

    .hero .container img{
        padding-top: 0;
    }

    .logo {
        display: block;
        max-width: 235px;
    }

    .logo img{
        width: 100%;
        height: auto;
    }
    
    .logo {
        width: 100%;
        /* margin-bottom: 1rem; */
    }
    
    .nav {
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 0.7rem;
    }
    
    .language-switch {
        position: absolute;
        top: 1rem;
        right: 2rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .profile-name {
        font-size: 2.2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .item-year {
        font-size: 1rem;
        font-weight: normal;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 24px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
}

strong{
    font-weight: bold;
}

p.intro{
    margin-bottom: 2rem;
}

/* ======================
   Animations
   ====================== */

/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile,
.content-section {
    animation: fadeIn 0.6s ease-out;
} */

/* Smooth transitions */
* {
    transition: color 0.3s ease, border-color 0.3s ease;
}

a, button {
    cursor: pointer;
}


@font-face {
    font-family: 'ATSackersGothic';
    src: url('../fonts/ATSackersGothic-Medium.eot');
    src: url('../fonts/ATSackersGothic-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/ATSackersGothic-Medium.woff2') format('woff2'),
        url('../fonts/ATSackersGothic-Medium.woff') format('woff'),
        url('../fonts/ATSackersGothic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@media (min-width: 768px){
    .page-header-left{
        position: relative;
        top: -4rem;
    }
}

@media (min-width: 1200px){

    .hero-int:after{
        content:'';
        width: 100%;
        background-color: #fff;
        position: absolute;
        left: 0;
        bottom: 0;
        height: 105px;
    }

    .profile-photo {
        position: relative;
        z-index: 2;
        right: 5rem;
        top: 5rem;
    }

    .page-header-right{
        position: relative;
    }

    .page-header-right img{
        z-index: 3;
    }

    .page-header-right:after{
        content:"";
        width: 222px;
        height: 222px;
        top: 18rem;
        left: 6rem;
        position: absolute;
        border: 1px solid #4a100f;
        z-index: 2;
    }
}

/* menu mobile */

/* botão escondido no desktop */
.menu-toggle {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    left: 0;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { bottom: 0; }

/* animação virar X */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

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

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        left: 0;
        top: 100%;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
        padding:0 1.5rem;
        gap: 1.5rem;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        border-bottom: 1px solid var(--color-border);
    }

    .nav.open {
        max-height: 300px; /* ajuste se tiver mais itens */
    }

    .language-switch {
        display: none;
    }

    .language-mobile{
        display: block;
        position: initial;
        padding-bottom: 1rem;
    }
}

@media (min-width: 1024px){
    .language-mobile{
        display: none !important;
    }

    .profile-grid{
        gap: 8rem;
    }
}

@media (min-width: 1400px){
    .profile-grid{
        gap: 10rem;
    }

    /* .hero-int{
        padding: 10rem 0;
        background-image: url(../images/bg-interna.jpg);
        background-position: center;
        background-repeat: no-repeat;
    } */
}

.box-mgstudio{
    display:flex;
    align-items: center;
    justify-content: center;
}

.box-mgstudio a{
    color: #727374;
}

.box-mgstudio a:hover{
    color: #940f22;
}

.hero .container, .header .container{
    max-width:1440px;
}