@font-face {
    font-family: 'Inter';
    src: url('./fonts/Inter/inter_18pt-Regular.ttf') format('ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== VARIÁVEIS DE TEMA ===== */
:root {
    /* Tema Escuro (padrão) */
    --bg-color: #0a0a0a;
    --bg-gradient-from: #16181d;
    --bg-gradient-to: #1a1d24;
    --text-color: #E1E1E6;
    --text-secondary: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(130, 87, 229, 0.2);
    --header-bg: rgba(18, 18, 20, 0.8);
    --input-bg: rgba(255, 255, 255, 0.05);
    --footer-bg: #121214;
    
    /* Cores que permanecem iguais */
    --primary-color: #8257E5;
    --primary-gradient: linear-gradient(135deg, #8257E5, #a855f7);
    --success-color: #04D361;
    --accent-color: #ec4899;
}

/* Tema Claro */
body:not(.dark-theme) {
    --bg-color: #ffffff;
    --bg-gradient-from: #ffffff;
    --bg-gradient-to: #e2e2f0;
    --text-color: #1a202c;
    --text-secondary: #4a5568;
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(130, 87, 229, 0.3);
    --header-bg: rgba(255, 255, 255, 0.9);
    --input-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #f7fafc;
}

/* ===== ESTILOS BÁSICOS ===== */
body,
h1,
h2,
h3,
p,
ul,
li,
a {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
    background: -webkit-linear-gradient(to right, var(--bg-gradient-from), var(--bg-gradient-to));
    background: linear-gradient(to right, var(--bg-gradient-from), var(--bg-gradient-to));
    transition: all 0.3s ease;
}

/* ===== BOTÃO DE ALTERNÂNCIA DE TEMA ===== */
#toggle-theme {
    margin: 0;
    padding: 10px 16px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(130, 87, 229, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

#toggle-theme:hover {
    box-shadow: 0 6px 20px rgba(130, 87, 229, 0.4);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-bg) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.name {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 400;
    padding: 0.3rem;
}

.dark-theme .name {
    color: #000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 0.2rem;
}

.name-title {
    padding-right: 0.2rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

/* ===== SEÇÃO HERO ===== */
.focus {
    color: var(--primary-color);
    font-weight: bold;
}

.hero {
    color: var(--text-color);
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 60px;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    align-content: center;
    text-align: left;
    max-width: 1100px;
    gap: 3rem;
}

.hero-image {
    position: absolute;
    right: 10%; /* mais responsivo do que 43rem */
    top: 50%;
    transform: translateY(-50%); /* centraliza verticalmente */
    filter: invert(1);
}

.hero-image img {
    max-width: 18rem; /* limite máximo */
    width: 100%;      /* ocupa todo o espaço disponível dentro do container */
    height: auto;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 90%, black 100%, transparent);
}
/* quando dark-theme estiver ativo */
.dark-theme .hero-image {
  filter: invert(0);
}

.hero h1 {
    font-size: 3.3rem;
    text-transform: none;
    line-height: 120%;
    color: var(--text-color);
    padding: 0rem 0 1rem 0;
    width: 75%;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    padding: 1rem 0 2rem 0;
    text-transform: none;
    width: 65%;
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(130, 87, 229, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(130, 87, 229, 0.6);
}

.btn-small {
    text-decoration: none;
    color: #121214;
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: var(--success-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background-color: #39d680;
    transform: translateY(-2px);
}

/* ===== SEÇÕES GERAIS ===== */
section {
    padding-top: 80px;
}

section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 8rem 2rem;
    overflow: hidden;
}

/* ===== SEÇÃO SOBRE ===== */
#sobre {
    position: relative;
    overflow: hidden;
}

#sobre h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.sobre-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.profile-pic-container {
    position: relative;
    margin-bottom: 20px;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--primary-gradient);
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(130, 87, 229, 0.3);
}

.profile-pic:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(130, 87, 229, 0.5);
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
    text-align: justify;
    position: relative;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.text-content p:hover {
    border-left-color: var(--primary-color);
    background: rgba(130, 87, 229, 0.1);
    transform: translateX(10px);
}

.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== EXPERIÊNCIAS ===== */
#experiencias {
    position: relative;
    backdrop-filter: blur(10px);
}

#experiencias h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.experiencias-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.experiencia-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.experiencia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 24px 24px 0 0;
}

.experiencia-card:hover {
    transform: translateY(-8px);
    border-color: rgba(130, 87, 229, 0.4);
    box-shadow: 0 20px 40px rgba(130, 87, 229, 0.2);
}

.experiencia-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experiencia-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.experiencia-periodo {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.experiencia-cargo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experiencia-cargo::before {
    content: '👨‍💻';
    font-size: 1.2rem;
}

.experiencia-descricao {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: justify;
}

/* ===== TECH STACK ===== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.tech-stack2 {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-end;
}

.tech-stack2 a {
    text-decoration: none;
}

.tech-tag {
    background: rgba(130, 87, 229, 0.1);
    border: 1px solid rgba(130, 87, 229, 0.3);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(130, 87, 229, 0.2);
    transform: translateY(-2px);
}

/* ===== PORTFÓLIO ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(130, 87, 229, 0.2);
    border-color: var(--primary-color);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.img-portfolio2 {
    width: 91% !important;
}

.img-portfolio3 {
    width: 91% !important;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-item p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ===== CONTATO ===== */
#contato h2 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contato-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.contato-item:hover {
    transform: translateX(8px);
    border-color: rgba(130, 87, 229, 0.4);
    background: rgba(130, 87, 229, 0.05);
}

.contato-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.contato-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.contato-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contato-details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contato-details a:hover {
    color: #a855f7;
}

.contato-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 92%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(130, 87, 229, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-enviar {
    width: 100%;
    padding: 1.2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 87, 229, 0.3);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background: var(--footer-bg);
    color: var(--text-color);
    margin-top: 0;
    border-top: 1px solid var(--card-border);
}

.copy {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===== ÍCONES E OUTROS ===== */
.devicon {
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu div {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

@media (min-width: 1400px) {
    .hero-image {
        right: 11%;
    }
}

/* telas muito largas (ultrawide, 1920px+) */
@media (min-width: 1800px) {
    .hero-image {
        right: 28%;
    }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem !important;
        padding: 1.2rem;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .hero p {
        width: 65%;
        text-align: center;
    }

    .focus {
        font-size: 3rem;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .sobre-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .profile-pic {
        margin-bottom: 20px;
        width: 200px;
        height: 200px;
    }

    .experiencia-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contato-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .mobile-menu {
        display: flex;
    }

    nav {
        padding: 2rem !important;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-bg) !important;
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-top: 1px solid var(--card-border);
    }

    nav ul li {
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    #toggle-theme {
        margin: 10px 0;
        padding: 8px 12px;
        font-size: 0.8rem;
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 2rem 1rem !important;
    }

    .profile-pic-container::before {
        top: -6px !important;
        left: 5px !important;
        right: 5px !important;
        bottom: 15px !important;
    }

    nav {
        padding: 1rem 1rem !important;
    }

    .btn-enviar {
        font-size: 1rem;
    }

    .hero {
        background-image: url("/assets/images/work-light-white.jpeg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .dark-theme .hero {
        background-image: url("/assets/images/work-dark-black2.jpg");
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
    }

    .dark-theme .hero h1 {
        font-size: 2em !important;
        text-align: center;
        width: 91% !important;
        background: none !important;
        padding: 1rem 0 !important;
    }

    .hero h1 {
        font-size: 2em !important;
        text-align: center;
        width: 91% !important;
        background-color: #fff;
        border-radius: 12px;
        padding: 1rem 0 !important;
    }

    .hero p {
        display: none;
        font-size: 0.9rem !important;
        padding: 0rem 2rem 2rem 2rem;
        text-align: center;
    }

    .focus {
        font-size: 1.1em !important;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    section h2 {
        margin: 4rem 0 2rem 0 !important;
        font-size: 2rem;
    }

    #sobre h2 {
        font-size: 2rem;
    }

    .profile-pic {
        width: 180px;
        height: 180px;
    }

    #experiencias h2 {
        margin: 4rem 0 2rem 0;
        font-size: 2rem;
    }

    .experiencia-header {
        flex-direction: column;
        align-items: center;
        margin: 1rem 0 2rem 0;
    }

    .experiencia-header h3 {
        font-size: 1.5rem;
    }

    .experiencia-cargo::before {
        display: none;
    }

    .experiencia-cargo {
        justify-content: center;
    }

    .experiencia-periodo {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .experiencia-descricao {
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: left;
        padding: 0.5rem;
    }

    .experiencia-card {
        padding: 1.5rem;
    }

    .contato-info {
        gap: 1rem !important;
    }

    #contato h2 {
        margin: 4rem 0 2rem 0;
        font-size: 2rem;
    }

    .contato-form {
        padding: 1.5rem;
    }

    .contato-item {
        padding: 1rem !important;
    }

    #toggle-theme {
        margin: 4px 0;
        padding: 6px 10px;
        font-size: 0.7rem;
        gap: 4px;
        align-self: center;
    }

    .text-content p {
        font-size: 1rem;
        padding: 1rem;
    }

    .tech-stack {
        justify-content: center;
        gap: 0.6rem;
    }

    .tech-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ===== ANIMAÇÕES ESPECIAIS ===== */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.profile-pic-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: conic-gradient(from 0deg, var(--primary-color), #a855f7, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: rotate 8s linear infinite;
}

/* ===== TRANSIÇÕES SUAVES PARA MUDANÇA DE TEMA ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Evitar transição em elementos que não precisam */
.profile-pic-container::before,
.experiencia-card::before,
nav ul li a::after {
    transition: none;
}

/* ===== AJUSTES FINAIS PARA TEMA CLARO ===== */
body:not(.dark-theme) .hero {
    color: var(--text-color);
}

body:not(.dark-theme) nav ul li a {
    color: var(--text-color);
}

body:not(.dark-theme) nav ul li a:hover {
    color: var(--primary-color);
}

body:not(.dark-theme) .form-group input::placeholder,
body:not(.dark-theme) .form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* ===== MELHORIAS DE ACESSIBILIDADE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}