/* =========================================
   FONTES
   ========================================= */
/* Montserrat - pesos 400, 700, 900 */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('webfonts/Montserrat-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('webfonts/Montserrat-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('webfonts/Montserrat-Black.ttf') format('truetype');
}

/* Raleway - pesos 400, 600, 700 */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('webfonts/Raleway-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('webfonts/Raleway-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('webfonts/Raleway-Bold.ttf') format('truetype');
}

/* =========================================
   VARIÁVEIS
   ========================================= */
:root {
    --bg-light: #e5e5e5;
    --bg-dark: #000000;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Raleway', sans-serif;
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Transição fluida para ancoras do menu */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   NAVEGAÇÃO (HEADER FIXO)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 40px; /* REDUZIDO para deixar a barra mais fina */
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.header-logo-img {
    height: 28px; /* REDUZIDO para acompanhar o menu fino */
    object-fit: contain;
    filter: invert(1);
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    align-items: center;
    gap: 35px; /* Levemente reduzido */
    flex-wrap: wrap;
}

nav a {
    color: var(--text-light);
    font-family: var(--font-head);
    font-size: 13px; /* Levemente reduzido para harmonia */
    font-weight: 700;
    text-transform: uppercase;
}

nav a:hover {
    color: #ddd;
}

/* Seletor de Idioma */
.lang-selector {
    position: relative;
    display: inline-block;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 0; /* Reduzido o volume vertical */
}

.lang-selector:hover {
    color: #ddd;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

.lang-selector:hover .lang-dropdown {
    display: flex;
}

.lang-dropdown a {
    font-size: 12px;
    letter-spacing: 1px;
}

/* =========================================
   HERO SECTION (Otimizado para 768px de altura)
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    background-color: var(--bg-light);
    padding-top: 50px; /* Reduzido para compensar o header mais fino */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-color: var(--bg-dark);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 45%;
    padding: 0 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-icon-img {
    width: 100%;
    max-width: 250px; /* Reduzido drasticamente para economizar altura */
    height: auto;
    margin-bottom: 20px; /* Reduzido o espaço abaixo da logo gigante */
    mix-blend-mode: multiply;
}

.hero-content h2 {
    font-family: var(--font-head);
    font-size: 20px; /* Reduzido levemente */
    font-weight: 700;
    margin-bottom: 5px; /* Reduzido */
}

.hero-content h1 {
    font-family: var(--font-head);
    font-size: 48px; /* Ajustado para caber sem empurrar as redes sociais pra baixo */
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-content h3 {
    font-size: 16px; /* Reduzido levemente */
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 30px; /* Reduzido o espaço até os botões */
}

.social-hero {
    display: flex;
    gap: 15px;
}

.social-hero a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #d4d4d4;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 20px;
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.1);
}

.social-hero a:hover {
    background: #bbb;
}

.hero-image {
    position: absolute;
    bottom: 0;
    right: 5%;
    z-index: 3;
    max-height: 82vh; /* Ajustado para garantir que a foto não vaze pra baixo */
    max-width: 40vw;
    object-fit: contain;
    object-position: bottom right;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
    mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

/* =========================================
   SEÇÕES GERAIS
   ========================================= */
section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-box-title {
    display: inline-block;
    border-style: solid;
    border-width: 0px 0px 2px 0px;
    padding: 15px 40px;
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-weight: 600;
    font-size: 15px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    color: var(--text-dark);
    font-weight: bold;
}

.divider::before, .divider::after {
    content: '';
    height: 2px;
    width: 50px;
    background-color: var(--text-dark);
}

/* =========================================
   SISTEMA DE CARDS (NOVO LAYOUT)
   ========================================= */
.service-item, .education-item, .exp-item, .skills-category {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-item:hover, .education-item:hover, .exp-item:hover, .skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* =========================================
   ABOUT ME (CARDS)
   ========================================= */
.about-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item h4 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.service-item p {
    font-size: 14px;
    color: #555;
}

/* =========================================
   EDUCAÇÃO E EXPERIÊNCIA (CARDS)
   ========================================= */
.education-item, .exp-item {
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.education-item h4 {
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.exp-header strong {
    font-size: 1.2em;
    color: var(--primary-accent);
}

.exp-date {
    background-color: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    color: var(--text-muted);
}

.exp-list {
    list-style-type: square;
    margin-top: 15px;
    padding-left: 20px;
    color: #555;
}

.exp-list li {
    margin-bottom: 8px;
}

/* =========================================
   SKILLS (CARDS)
   ========================================= */
.skills-category {
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.skills-category h3 {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    display: inline-block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    justify-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.1);
}

.skill-icon {
    font-size: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-name {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.image-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

/* Cores FontAwesome e Textos */
.fa-node-js { color: #68A063; }
.fa-docker { color: #2496ED; }
.fa-vuejs { color: #41B883; }
.fa-database { color: #00758F; }
.fa-linux { color: #000000; }
.fa-git-alt { color: #F05032; }
.fa-js { color: #F7DF1E; }
.icon-text { font-family: var(--font-head); font-weight: 900; font-size: 32px; color: var(--primary-accent); }

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-muted);
    text-align: center;
    padding: 30px 20px;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Botão do Menu Mobile */
.menu-toggle {
    display: none;
    color: var(--text-light);
    font-size: 28px;
    cursor: pointer;
    z-index: 1000;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDADE)
   ========================================= */

/* Tablets e Monitores Menores (Até 900px) */
@media screen and (max-width: 900px) {
    .hero::after {
        width: 100%;
        clip-path: none;
        opacity: 0.95;
    }

    header {
        padding: 15px 30px;
    }

    nav {
        justify-content: center;
        gap: 20px;
    }

    .hero-content {
        width: 100%;
        padding: 40px 5%;
        color: var(--text-light);
        align-items: center;
        text-align: center;
    }

    .hero-content h3 {
        color: #cccccc;
    }

    .logo-icon-img {
        max-width: 200px;
        margin-bottom: 40px;
        mix-blend-mode: normal;
        filter: invert(1);
    }

    .hero-image {
        display: none;
    }
}

/* Celulares (Até 768px de LARGURA) */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 20px;
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 58px; /* Ajustado para acompanhar o novo header mais fino */
        left: 0;
        width: 100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 20px 0 40px 0;
        gap: 25px;
        display: none;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
    }

    nav.nav-active {
        display: flex;
    }

    nav a {
        font-size: 18px;
    }

    .lang-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        display: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h2 { font-size: 1.2rem; }
    .social-hero { margin-bottom: 20px; }

    section { padding: 60px 15px; }
    .section-box-title { font-size: 18px; padding: 10px 20px; margin-bottom: 30px; }
    .section-desc { text-align: justify; }
    .about-services { text-align: center; }
    .service-item h4 { justify-content: center; }

    .exp-header { flex-direction: column; align-items: flex-start; }
    .exp-date { margin-top: 5px; }

    .skills-category { padding: 25px 15px; }
    .skills-category h3 { display: block; text-align: center; }
}

/* Celulares Muito Pequenos (Até 480px) */
@media screen and (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    nav { gap: 10px; }
    nav a { font-size: 16px; }
}
