/* Reset e variáveis */
:root {
    --primary-color: #485696;
    /* Yinmn Blue - Cor principal */
    --secondary-color: #F24C00;
    /* Golden Gate Bridge - Destaques fortes */
    --accent-color: #FC7A1E;
    /* Pumpkin - Destaques secundários */
    --text-color: #E7E7E7;
    /* Platinum - Texto e elementos claros */
    --bg-color: #1A1B26;
    /* Fundo escuro para contraste */
    --card-bg: #242635;
    /* Cards um pouco mais claros que o fundo */
    --highlight-color: #F9C784;
    /* Sunset - Elementos sutis */
    --gradient-1: linear-gradient(135deg, #485696 0%, #3A4675 100%);
    --gradient-2: linear-gradient(135deg, #F24C00 0%, #FC7A1E 100%);
    --hover-color: #3A4675;
    /* Versão mais escura do Yinmn Blue */
}

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

body {
    font-family: 'Roboto', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--highlight-color);
}

/* HEADER MODERNO */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    background: rgba(26, 27, 38, 0.65);
    box-shadow: 0 8px 32px 0 rgba(72, 86, 150, 0.10);
    backdrop-filter: blur(18px);
    border-bottom: 1.5px solid rgba(72, 86, 150, 0.10);
    transition: background 0.3s, box-shadow 0.3s;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 27, 38, 0.85);
    backdrop-filter: blur(18px);
    border: 1.5px solid rgba(72, 86, 150, 0.13);
    border-radius: 24px;
    padding: 1.2rem 2.5rem 1.2rem 2rem;
    box-shadow: 0 4px 24px 0 rgba(72, 86, 150, 0.10);
    transition: all 0.3s;
    position: relative;
}

.header-container h1 {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-shadow: 0 2px 12px rgba(72, 86, 150, 0.10);
    margin-right: 1.5rem;
    transition: text-shadow 0.3s;
}

.header-container.scrolled {
    background: rgba(26, 27, 38, 0.92);
    box-shadow: 0 8px 32px 0 rgba(72, 86, 150, 0.18);
    border-radius: 0 0 24px 24px;
}

/* MENU NAVEGAÇÃO */
.main-nav ul {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.08rem;
    padding: 0.7rem 1.3rem;
    border-radius: 16px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    z-index: 1;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.13;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--highlight-color);
    background: rgba(72, 86, 150, 0.10);
    box-shadow: 0 2px 12px rgba(249, 199, 132, 0.10);
}

.main-nav a:hover::before,
.main-nav a:focus::before {
    transform: scaleX(1);
}

.main-nav a.active,
.main-nav a[aria-current="page"] {
    color: var(--accent-color);
    background: rgba(252, 122, 30, 0.10);
    font-weight: 700;
}

.main-nav a.active::before,
.main-nav a[aria-current="page"]::before {
    opacity: 0.25;
    transform: scaleX(1);
}

/* MENU MOBILE */
@media (max-width: 900px) {
    .header-container {
        padding: 1rem 1.2rem 1rem 1rem;
    }

    .header-container h1 {
        font-size: 1.5rem;
    }

  
}

@media (max-width: 768px) {
    .header-container {
        padding: 0.7rem 0.7rem 0.7rem 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 80vw;
        max-width: 340px;
        height: 100vh;
        background: linear-gradient(120deg, #f4f7fb 60%, #e7e7e7 100%);
        color: #222;
        box-shadow: -4px 0 32px rgba(72, 86, 150, 0.10);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 7rem 2.2rem 3rem 2.2rem;
        transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        backdrop-filter: blur(16px);
        z-index: 1100;
        border-top-left-radius: 36px;
        border-bottom-left-radius: 36px;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        width: 100%;
    }

    .main-nav a {
        color: #222;
        font-size: 1.25rem;
        padding: 1.1rem 0.5rem;
        border-radius: 18px;
        width: 100%;
        text-align: left;
        margin-left: 0;
    }

    .main-nav a.active,
    .main-nav a[aria-current="page"] {
        color: var(--accent-color);
        background: rgba(252, 122, 30, 0.13);
    }

    .main-nav a:active {
        background: var(--highlight-color);
        color: #222;
        box-shadow: 0 2px 12px rgba(249, 199, 132, 0.10);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 24px;
        top: 24px;
        z-index: 1201;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
    }
}

/* Microinteração: sombra ao rolar */
header.scrolled,
.header-container.scrolled {
    box-shadow: 0 8px 32px 0 rgba(72, 86, 150, 0.18);
    background: rgba(26, 27, 38, 0.97);
}

/* Home Section Redesenhado */
.home-container {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    padding: 8rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

.home-text {
    position: relative;
    z-index: 2;
}

.home-text::before {
    content: '<dev>';
    position: absolute;
    top: -2rem;
    left: -1rem;
    font-family: 'Courier New', monospace;
    color: rgba(72, 86, 150, 0.2);
    font-size: 1.5rem;
}

.home-text::after {
    content: '</dev>';
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    font-family: 'Courier New', monospace;
    color: rgba(72, 86, 150, 0.2);
    font-size: 1.5rem;
}

.home-text h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.destaque-nome {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--highlight-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0.5rem 0;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.destaque-nome::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
    border-radius: 4px;
    opacity: 0.5;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.destaque-nome:hover::after {
    transform: scaleX(1);
}

.home-text h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 1rem 0;
    font-weight: 500;
    opacity: 0.9;
}

.home-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 600px;
    line-height: 1.8;
    margin: 1.5rem 0;
}

.home-foto {
    position: relative;
}

.home-foto::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -20%;
    left: -20%;
    z-index: -1;
    animation: morphing 15s ease-in-out infinite;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.home-foto img {
    width: 100%;
    height: auto;
    border-radius: 30% 70% 70% 30% / 40% 40% 70% 70%;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2);
    animation: float 6s ease-in-out infinite;
}

/* Sobre mim */
#sobre {
    padding: 6rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

#sobre::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(72, 86, 150, 0.08), transparent 65%);
    pointer-events: none;
}

.sobre-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bio-content {
    background: rgba(36, 38, 53, 0.65);
    border: 1px solid rgba(72, 86, 150, 0.15);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.bio-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    background: rgba(252, 122, 30, 0.1);
    color: var(--highlight-color);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bio-title {
    font-size: 2.3rem;
    margin: 1.5rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.bio-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: rgba(231, 231, 231, 0.9);
}

.bio-list strong {
    color: var(--highlight-color);
}

.bio-counters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.counter {
    background: rgba(26, 27, 38, 0.7);
    border-radius: 18px;
    padding: 1.2rem;
    border: 1px solid rgba(72, 86, 150, 0.15);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(249, 199, 132, 0.08);
}

.counter strong {
    display: block;
    font-size: 2rem;
    color: var(--highlight-color);
    margin-bottom: 0.4rem;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.progress-item {
    background: rgba(26, 27, 38, 0.6);
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(72, 86, 150, 0.1);
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s ease;
}

.progress-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--highlight-color);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 1.1s cubic-bezier(0.23, 1, 0.32, 1);
}

.bio-image {
    display: flex;
    justify-content: center;
}

.bio-card {
    background: linear-gradient(180deg, rgba(72, 86, 150, 0.2), rgba(26, 27, 38, 0.9));
    border-radius: 30px;
    padding: 1.5rem;
    border: 1px solid rgba(72, 86, 150, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    max-width: 420px;
}

.bio-card img {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 1.2rem;
}

.bio-card-content {
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bio-card-content span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--highlight-color);
}

/* Projetos Redesenhados */
#projetos {
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

#projetos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(72, 86, 150, 0.05), transparent 70%),
        radial-gradient(circle at bottom left, rgba(252, 122, 30, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#projetos h2 {
    color: var(--highlight-color);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(249, 199, 132, 0.2);
}

#projetos h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(249, 199, 132, 0.3);
}

.projetos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 2rem;
    perspective: 1000px;
    position: relative;
    z-index: 1;
}

.projeto-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background: linear-gradient(145deg, var(--card-bg), rgba(36, 38, 53, 0.8));
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(72, 86, 150, 0.1);
}

.projeto-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(249, 199, 132, 0.2);
}

.projeto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 86, 150, 0.1), rgba(252, 122, 30, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.projeto-card:hover::before {
    opacity: 1;
}

.projeto-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg,
            transparent 20%,
            rgba(72, 86, 150, 0.1) 40%,
            rgba(252, 122, 30, 0.1) 60%,
            transparent 80%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.projeto-card:hover::after {
    opacity: 1;
    animation: shine 1.5s infinite;
}

@keyframes shine {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0;
    }
}

.projeto-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    filter: grayscale(30%) contrast(1.1);
    transition: all 0.5s ease;
    transform-origin: center;
}

.projeto-card:hover img {
    filter: grayscale(0%) contrast(1.2);
    transform: scale(1.08);
}

.card-content {
    padding: 2rem;
    background: linear-gradient(to bottom,
            var(--card-bg) 0%,
            rgba(36, 38, 53, 0.95) 100%);
    position: relative;
    z-index: 3;
}

.card-content h3 {
    color: var(--highlight-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.card-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.projeto-card:hover .card-content h3::after {
    width: 100px;
}

.card-content p {
    color: #d0d0d0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.tech-stack span {
    padding: 0.4rem 0.9rem;
    background: rgba(72, 86, 150, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-color);
    border: 1px solid rgba(252, 122, 30, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-stack span::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 122, 30, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-stack span:hover {
    background: rgba(252, 122, 30, 0.15);
    color: var(--highlight-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 122, 30, 0.2);
}

.tech-stack span:hover::before {
    left: 100%;
}

/* Botões de Projetos - Estilos Modernos */
.projeto-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-site,
.btn-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: none;
    cursor: pointer;
    z-index: 1;
    letter-spacing: 0.3px;
}

.btn-site {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(72, 86, 150, 0.25);
}

.btn-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn-site:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 86, 150, 0.4), 0 0 20px rgba(252, 122, 30, 0.2);
}

.btn-site:hover::before {
    left: 100%;
}

.btn-site i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-site:hover i {
    transform: scale(1.15) rotate(5deg);
}

.btn-github {
    background: rgba(36, 38, 53, 0.8);
    color: var(--text-color);
    border: 2px solid rgba(72, 86, 150, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-github::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(72, 86, 150, 0.2), rgba(252, 122, 30, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-github:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(252, 122, 30, 0.3), 0 0 15px rgba(72, 86, 150, 0.2);
    color: var(--highlight-color);
}

.btn-github:hover::before {
    opacity: 1;
}

.btn-github i {
    font-size: 1.1rem;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-github:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* Efeito de brilho ao passar o mouse */
.btn-site::after,
.btn-github::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-site:hover::after,
.btn-github:hover::after {
    width: 300px;
    height: 300px;
}

.btn-vermais {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border-radius: 25px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.btn-vermais::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.btn-vermais:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 76, 0, 0.3);
}

.btn-vermais:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.btn-vermais::after {
    content: '\f061';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.btn-vermais:hover::after {
    transform: translateX(5px);
}

.back-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1500;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-6px);
}

/* Responsividade para projetos */
@media (max-width: 768px) {
    .projetos-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .projeto-card {
        max-width: 100%;
    }

    #projetos h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .card-content h3 {
        font-size: 1.4rem;
    }

    .projeto-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-site,
    .btn-github {
        width: 100%;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        justify-content: center;
    }
}

/* Habilidades Redesenhadas */
#habilidades {
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
}

#habilidades::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(72, 86, 150, 0.05), transparent 70%),
        radial-gradient(circle at bottom left, rgba(252, 122, 30, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#habilidades h2 {
    color: var(--highlight-color);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(249, 199, 132, 0.2);
}

#habilidades h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(249, 199, 132, 0.3);
}

.habilidades-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.skill-category {
    background: linear-gradient(145deg, var(--card-bg), rgba(36, 38, 53, 0.5));
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(72, 86, 150, 0.1);
    backdrop-filter: blur(5px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right,
            rgba(72, 86, 150, 0.1),
            transparent 70%);
    pointer-events: none;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(26, 27, 38, 0.5);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateX(10px);
    background: rgba(72, 86, 150, 0.1);
}

/* Contato Redesenhado */
#contato {
    padding: 6rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--bg-color), rgba(36, 38, 53, 0.8));
}

#contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(72, 86, 150, 0.1), transparent 70%),
        radial-gradient(circle at bottom left, rgba(252, 122, 30, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#contato h2 {
    color: var(--highlight-color);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(249, 199, 132, 0.2);
}

#contato h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--highlight-color));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(249, 199, 132, 0.3);
}

.contato-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(36, 38, 53, 0.5);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(72, 86, 150, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    text-align: center;
}

.contato-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(72, 86, 150, 0.1), rgba(252, 122, 30, 0.1));
    border-radius: 30px;
    z-index: -1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.social-links a {
    font-size: 2.2rem;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding: 1rem;
    border-radius: 50%;
    background: rgba(36, 38, 53, 0.5);
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    color: var(--highlight-color);
    box-shadow: 0 10px 25px rgba(249, 199, 132, 0.3);
}

.social-links a:hover::before {
    opacity: 0.2;
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(242, 76, 0, 0.2);
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
    opacity: 0;
}

.whatsapp-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(242, 76, 0, 0.3);
}

.whatsapp-btn:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.whatsapp-btn i {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover i {
    transform: scale(1.2);
}

/* Responsividade para contato */
@media (max-width: 768px) {
    .contato-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .whatsapp-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    #contato h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

/* Botões da Home */
.home-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn-download,
.btn-contato {
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 1;
}

.btn-download {
    background: var(--gradient-2);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(242, 76, 0, 0.3);
    border: none;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 76, 0, 0.4);
}

.btn-download:hover::before {
    transform: translateX(100%);
}

.btn-contato {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-contato:hover {
    color: var(--bg-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(252, 122, 30, 0.3);
}

.btn-contato:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Adicionar ícones aos botões */
.btn-download::after {
    content: '\f019';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
}

.btn-contato::after {
    content: '\f0e0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .home-foto::before {
        width: 120%;
        height: 120%;
        top: -10%;
        left: -10%;
    }

    .destaque-nome {
        font-size: 3.5rem;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 80%;
        height: 100vh;
        background: #f4f7fb;
        /* Azul claro */
        color: #222;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 1100;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav a {
        color: #222;
    }

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

    .menu-toggle {
        display: block;
        position: absolute;
        right: 24px;
        top: 24px;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000;
    }

    .home-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    #sobre {
        padding: 4rem 1.5rem 2rem;
    }

    .bio-content {
        padding: 1.8rem;
    }

    .bio-title {
        font-size: 2rem;
    }

    .bio-counters {
        grid-template-columns: 1fr;
    }

    .btn-download,
    .btn-contato {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .home-text h2 {
        font-size: 1.6rem;
    }

    .home-text h3 {
        font-size: 1.4rem;
    }

    .home-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Animações Globais */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Responsividade Global */
@media (max-width: 1200px) {
    .home-container {
        gap: 2rem;
        padding: 6rem 3% 4rem;
    }

    .projetos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .habilidades-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .sobre-container {
        grid-template-columns: 1fr;
    }

    .bio-image {
        order: -1;
    }
}

@media (max-width: 992px) {
    .destaque-nome {
        font-size: 4rem;
    }

    .home-text h2 {
        font-size: 1.8rem;
    }

    .home-text h3 {
        font-size: 1.6rem;
    }

    .projetos-container {
        gap: 2rem;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .home-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }

    .home-foto {
        max-width: 400px;
        margin: 0 auto;
    }

    .home-foto::before {
        width: 120%;
        height: 120%;
        top: -10%;
        left: -10%;
    }

    .destaque-nome {
        font-size: 3.5rem;
    }

    .header-container {
        padding: 0.5rem 1rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100vw;
        width: 80%;
        height: 100vh;
        background: #f4f7fb;
        /* Azul claro */
        color: #222;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        z-index: 1100;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    .home-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 300px;
        margin: 2rem auto;
    }

    .btn-download,
    .btn-contato {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .projetos-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .habilidades-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .contato-container {
        padding: 2rem;
        margin: 0 1rem;
    }

    .social-links {
        gap: 1.5rem;
    }

    .social-links a {
        font-size: 1.8rem;
        padding: 0.8rem;
    }

    .whatsapp-btn {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    #projetos h2,
    #habilidades h2,
    #contato h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 576px) {
    .home-container {
        padding: 5rem 1rem 3rem;
    }

    .destaque-nome {
        font-size: 3rem;
    }

    .home-text h2 {
        font-size: 1.5rem;
    }

    .home-text h3 {
        font-size: 1.3rem;
    }

    .home-text p {
        font-size: 0.95rem;
    }

    .projeto-card {
        margin: 0 0.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .card-content p {
        font-size: 0.9rem;
    }

    .tech-stack {
        gap: 0.4rem;
    }

    .tech-stack span {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .projeto-links {
        gap: 0.6rem;
    }

    .btn-site,
    .btn-github {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .btn-site i,
    .btn-github i {
        font-size: 0.9rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    .skill-item i {
        font-size: 1.2rem;
    }

    .skill-item span {
        font-size: 0.9rem;
    }

    .contato-container {
        padding: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-links a {
        font-size: 1.5rem;
        padding: 0.7rem;
    }

    .whatsapp-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

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

    .bio-card {
        padding: 1rem;
    }
}

@media (max-width: 400px) {
    .destaque-nome {
        font-size: 2.5rem;
    }

    .home-text h2 {
        font-size: 1.3rem;
    }

    .home-text h3 {
        font-size: 1.2rem;
    }

    .home-text p {
        font-size: 0.9rem;
    }

    .projeto-card img {
        height: 180px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .tech-stack span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .btn-vermais {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .bio-title {
        font-size: 1.6rem;
    }

    .bio-card-content {
        font-size: 0.85rem;
    }
}

/* Ícone do menu hamburguer */
.menu-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
    z-index: 1200;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
    content: '';
    display: block;
    position: absolute;
    left: 6px;
    right: 6px;
    height: 4px;
    border-radius: 2px;
    background: #fff;
    background: var(--text-color, #fff);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-icon::before {
    top: 9px;
}

.menu-icon::after {
    bottom: 9px;
}

.menu-icon span {
    top: 14px;
}

.menu-toggle.active .menu-icon::before {
    top: 14px;
    transform: rotate(45deg);
    background: var(--accent-color);
}

.menu-toggle.active .menu-icon::after {
    bottom: 14px;
    transform: rotate(-45deg);
    background: var(--accent-color);
}

.menu-toggle.active .menu-icon span {
    opacity: 0;
    transform: translateX(-10px);
}

/* Melhorias no menu mobile */
@media (max-width: 768px) {
    .main-nav {
        box-shadow: -4px 0 24px rgba(72, 86, 150, 0.10), -1px 0 0 rgba(72, 86, 150, 0.08);
        border-top-left-radius: 32px;
        border-bottom-left-radius: 32px;
        padding-top: 7rem;
        padding-bottom: 3rem;
        min-width: 220px;
    }

    .main-nav ul {
        width: 100%;
        gap: 2.5rem;
    }

    .main-nav a {
        font-size: 1.3rem;
        padding: 1rem 0.5rem;
        border-radius: 18px;
        width: 100%;
        text-align: left;
        transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    }

    .main-nav a:active {
        background: var(--highlight-color);
        color: #222;
        box-shadow: 0 2px 12px rgba(249, 199, 132, 0.10);
    }
}

/* Esconde o botão do menu no desktop */
.menu-toggle {
    display: none;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        box-shadow: none;
        outline: none;
        padding: 0;
        margin: 0 0 0 0.5rem;
        cursor: pointer;
    }
}

/* Garante que o .menu-icon não tenha fundo */
.menu-icon {
    background: none !important;
    box-shadow: none !important;
}
