/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --vermelho: #e63946;
    --vermelho-escuro: #a4161a;
    --vermelho-claro: #f28482;
    --preto: #0a0a0a;
    --preto-claro: #1a1a1a;
    --cinza-escuro: #2b2b2b;
    --cinza: #4a4a4a;
    --cinza-claro: #e0e0e0;
    --branco: #f5f5f5;
    --whatsapp: #25D366;
    --whatsapp-escuro: #128C7E;
    --gradiente-vermelho: linear-gradient(135deg, var(--vermelho), var(--vermelho-escuro));
    --gradiente-whatsapp: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-escuro));
    --sombra: 0 10px 30px rgba(230, 57, 70, 0.15);
    --sombra-whatsapp: 0 10px 30px rgba(37, 211, 102, 0.3);
    --sombra-escura: 0 15px 40px rgba(0, 0, 0, 0.3);
    --transicao: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--preto);
    color: var(--branco);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.highlight {
    color: var(--vermelho);
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title span {
    color: var(--vermelho);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--cinza-claro);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: var(--transicao);
    cursor: pointer;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradiente-vermelho);
    color: white;
    box-shadow: var(--sombra);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.3);
}

.btn-whatsapp {
    background: var(--gradiente-whatsapp);
    color: white;
    box-shadow: var(--sombra-whatsapp);
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-whatsapp-huge {
    padding: 22px 50px;
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-secondary {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--vermelho);
}

.btn-secondary:hover {
    background: var(--vermelho);
    transform: translateY(-5px);
}

/* Navegação */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    padding: 20px 0;
    transition: var(--transicao);
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

.navbar.scrolled {
    padding: 15px 0;
    background-color: rgba(10, 10, 10, 0.98);
    box-shadow: var(--sombra);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--branco);
}

.logo span {
    color: var(--vermelho);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--vermelho);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--branco);
    margin: 3px 0;
    transition: var(--transicao);
}

/* Seção Hero */
.hero {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.1) 0%, rgba(10, 10, 10, 0) 70%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--cinza-claro);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--vermelho);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(230, 57, 70, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-animation {
    background-color: var(--preto-claro);
    border-radius: 10px;
    padding: 30px;
    border-left: 4px solid var(--vermelho);
    box-shadow: var(--sombra-escura);
    font-family: monospace;
    font-size: 1.2rem;
    max-width: 500px;
}

.code-line {
    margin-bottom: 10px;
    color: var(--cinza-claro);
}

.code-line span {
    color: var(--vermelho-claro);
}

.string {
    color: #4ecdc4;
}

.comment {
    color: #6a9955;
}

.keyword {
    color: #569cd6;
}

.variable {
    color: #9cdcfe;
}

.property {
    color: #9cdcfe;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--cinza-claro);
    font-size: 0.9rem;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--cinza);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--vermelho);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* Seção Sobre */
.sobre-content {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 3rem;
}

.sobre-text {
    flex: 1;
}

.sobre-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.sobre-text p {
    margin-bottom: 1.5rem;
    color: var(--cinza-claro);
}

.sobre-info {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    text-align: center;
}

.info-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vermelho);
    line-height: 1;
}

.info-label {
    font-size: 0.9rem;
    color: var(--cinza-claro);
}

.frontend-focus {
    background-color: rgba(230, 57, 70, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--vermelho);
}

.frontend-focus h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.frontend-focus h4 i {
    color: var(--vermelho);
}

.frontend-focus ul {
    list-style-type: none;
}

.frontend-focus li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.frontend-focus li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--vermelho);
    font-weight: bold;
}

.sobre-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 300px;
    height: 350px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradiente-vermelho);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: white;
}

.frame-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--vermelho);
    border-radius: 20px;
    z-index: -1;
}

/* Seção Projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
}

.projeto-card {
    background-color: var(--preto-claro);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transicao);
    box-shadow: var(--sombra-escura);
}

.projeto-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.projeto-imagem {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.projeto-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.projeto-card:hover .projeto-imagem img {
    transform: scale(1.05);
}

.projeto-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--vermelho);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.projeto-conteudo {
    padding: 25px;
}

.projeto-conteudo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.projeto-conteudo p {
    color: var(--cinza-claro);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.projeto-tecnologias {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.projeto-tecnologias span {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--vermelho-claro);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.projeto-link {
    color: var(--whatsapp);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transicao);
}

.projeto-link:hover {
    gap: 10px;
    color: var(--whatsapp-escuro);
}

.projetos-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(230, 57, 70, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.projetos-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Seção Habilidades */
.habilidades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 3rem;
}

.habilidade-categoria {
    background-color: var(--preto-claro);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--sombra-escura);
    border-top: 4px solid var(--vermelho);
}

.habilidade-categoria h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.habilidade-category h3 i {
    color: var(--vermelho);
}

.habilidade-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.habilidade-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.habilidade-nome {
    flex: 1;
    font-weight: 500;
}

.habilidade-bar {
    flex: 2;
    height: 8px;
    background-color: var(--cinza-escuro);
    border-radius: 4px;
    overflow: hidden;
}

.habilidade-nivel {
    height: 100%;
    background: var(--gradiente-vermelho);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.habilidade-porcentagem {
    font-weight: 600;
    color: var(--vermelho);
    min-width: 40px;
    text-align: right;
}

.habilidades-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(37, 211, 102, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(37, 211, 102, 0.1);
}

.habilidades-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Seção Contato */
.contato {
    background-color: var(--preto-claro);
    position: relative;
    overflow: hidden;
}

.contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(230, 57, 70, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.contato-content {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 60px;
    margin-top: 3rem;
}

.contato-info {
    flex: 1;
}

.contato-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contato-info p {
    color: var(--cinza-claro);
    margin-bottom: 2rem;
}

.contato-detalhes {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 3rem;
}

.detalhe-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.detalhe-item i {
    font-size: 1.5rem;
    color: var(--vermelho);
    margin-top: 5px;
}

.detalhe-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detalhe-item p {
    color: var(--cinza-claro);
    margin: 0;
}

.frontend-services {
    background-color: rgba(230, 57, 70, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--vermelho);
}

.frontend-services h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.frontend-services h4 i {
    color: var(--vermelho);
}

.frontend-services ul {
    list-style-type: none;
}

.frontend-services li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.frontend-services li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--vermelho);
    font-weight: bold;
}

.social-links h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transicao);
}

.social-icon:hover {
    transform: translateY(-5px);
}

.whatsapp:hover {
    background-color: var(--whatsapp);
    color: white;
}

.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}

.github:hover {
    background-color: #333;
    color: white;
}

.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.contato-whatsapp {
    flex: 1;
}

.whatsapp-box {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(37, 211, 102, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.whatsapp-icon {
    font-size: 4rem;
    color: var(--whatsapp);
    margin-bottom: 1.5rem;
}

.whatsapp-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.whatsapp-box p {
    color: var(--cinza-claro);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.whatsapp-note {
    margin-top: 1.5rem;
    color: var(--cinza-claro);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.whatsapp-note i {
    color: var(--whatsapp);
}

/* Footer */
.footer {
    background-color: var(--preto-claro);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(230, 57, 70, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo p {
    margin-top: 15px;
    color: var(--cinza-claro);
    max-width: 300px;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--cinza-claro);
    transition: var(--transicao);
}

.footer-links a:hover {
    color: var(--vermelho);
    padding-left: 5px;
}

.footer-services {
    flex: 1;
    min-width: 200px;
}

.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-services li {
    color: var(--cinza-claro);
    position: relative;
    padding-left: 15px;
}

.footer-services li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--vermelho);
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--cinza-escuro);
    color: var(--cinza-claro);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transicao);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* Botão Voltar ao Topo */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradiente-vermelho);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transicao);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--sombra);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Responsividade */
@media (max-width: 992px) {
    .hero .container,
    .sobre-content,
    .contato-content {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .habilidades-grid {
        grid-template-columns: 1fr;
    }
    
    .contato-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: var(--preto);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        border-top: 1px solid var(--cinza-escuro);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .sobre-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .projetos-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .contato-content {
        gap: 30px;
    }
    
    .whatsapp-box {
        padding: 2rem;
    }
}