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

:root {
    --cor-preto: #0a0a0a;
    --cor-preto-claro: #1a1a1a;
    --cor-vermelho: #dc2626;
    --cor-vermelho-escuro: #991b1b;
    --cor-vermelho-claro: #ef4444;
    --cor-texto: #e5e5e5;
    --cor-texto-claro: #f5f5f5;
    --cor-cinza: #404040;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-preto);
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cor-vermelho);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.badge-disponivel {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: var(--cor-texto-claro);
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 999px;
    background: rgba(220, 38, 38, 0.15);
    animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 12px 2px rgba(220, 38, 38, 0.4); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--cor-vermelho);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--cor-texto);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--cor-preto) 0%, var(--cor-preto-claro) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--cor-vermelho);
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--cor-texto-claro);
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--cor-vermelho);
    color: var(--cor-texto-claro);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--cor-vermelho-escuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--cor-texto-claro);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--cor-vermelho);
}

/* Sobre Mim */
.sobre {
    background-color: var(--cor-preto-claro);
}

.sobre-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.sobre-photo {
    display: flex;
    justify-content: center;
}

.sobre-photo img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--cor-vermelho);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
    background-color: #111;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--cor-texto);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    background-color: rgba(220, 38, 38, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--cor-vermelho);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    background-color: rgba(220, 38, 38, 0.2);
}

.info-item h3 {
    color: var(--cor-vermelho);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.info-item p {
    color: var(--cor-texto-claro);
    font-size: 1rem;
}

/* Projetos */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.projeto-card {
    background-color: var(--cor-preto-claro);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.projeto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.3);
    border-color: var(--cor-vermelho);
}

.projeto-image {
    height: 200px;
    background: linear-gradient(135deg, var(--cor-preto) 0%, var(--cor-preto-claro) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.projeto-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 100%);
}

.projeto-placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: var(--cor-vermelho);
    z-index: 1;
    opacity: 0.7;
    text-align: center;
    padding: 0 16px;
}

.projeto-content {
    padding: 1.5rem;
}

.projeto-content h3 {
    color: var(--cor-texto-claro);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.projeto-content p {
    color: var(--cor-texto);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.projeto-link {
    display: inline-block;
    color: var(--cor-vermelho);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.projeto-link:hover {
    color: var(--cor-vermelho-claro);
    transform: translateX(5px);
}

/* Experiências */
.experiencias {
    background-color: var(--cor-preto-claro);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--cor-vermelho);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--cor-vermelho);
    border: 4px solid var(--cor-preto-claro);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.3);
}

.timeline-content {
    background-color: rgba(220, 38, 38, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--cor-vermelho);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background-color: rgba(220, 38, 38, 0.2);
    transform: translateX(10px);
}

.timeline-content h3 {
    color: var(--cor-vermelho);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: var(--cor-texto-claro);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-date {
    display: inline-block;
    background-color: var(--cor-vermelho);
    color: var(--cor-texto-claro);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--cor-texto);
    line-height: 1.6;
}

/* Contato */
.contato-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contato-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--cor-texto);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 1rem 2rem;
    background-color: var(--cor-preto-claro);
    color: var(--cor-texto-claro);
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--cor-vermelho);
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.social-link:hover {
    background-color: var(--cor-vermelho);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.social-link i {
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: var(--cor-preto);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--cor-texto);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--cor-preto);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-top: 1px solid rgba(220, 38, 38, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-dot {
        left: 11px;
    }

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

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

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

    .sobre-photo img {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar {
        padding: 1rem;
    }
}

/* Freelancer CTA */
.freelancer {
    background: linear-gradient(180deg, var(--cor-preto-claro) 0%, var(--cor-preto) 100%);
}

.freelancer-subtitle {
    text-align: center;
    color: var(--cor-texto);
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-card {
    background-color: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-left: 4px solid var(--cor-vermelho);
    padding: 1.25rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.25);
}

.benefit-card h3 {
    color: var(--cor-vermelho);
    margin-bottom: 0.5rem;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 1.5rem 0 2rem 0;
}

.tag {
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: var(--cor-texto-claro);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    background-color: rgba(220, 38, 38, 0.08);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-primary,
.cta-secondary {
    text-decoration: none;
    padding: 0.9rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary {
    background-color: var(--cor-vermelho);
    color: var(--cor-texto-claro);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.35);
}

.cta-primary:hover {
    transform: translateY(-3px);
    background-color: var(--cor-vermelho-escuro);
}

.cta-secondary {
    background-color: transparent;
    color: var(--cor-texto-claro);
    border: 2px solid var(--cor-vermelho);
}

.cta-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(220, 38, 38, 0.15);
}
