:root {
    --bg-dark: #0D0D0D;
    --bg-gradient: linear-gradient(to right, #260D26, #3F1840, #0D0D0D);
    --primary-purple: #8A038C;
    --dark-purple: #3F1840;
    --accent-yellow: #F27F1B; /* Agora é Laranja */
    --text-white: #ffffff;
    --text-gray: #b2bec3;
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-yellow);
}

.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    transition: 0.3s;
    position: relative;
}

.desktop-nav a:hover {
    color: var(--accent-yellow);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-yellow);
    transition: width 0.3s;
}

.desktop-nav a:hover::after {
    width: 100%;
}

/* Menu Hamburger (Mobile) */
.hamburger-menu, .close-mobile-nav {
    display: none; /* Ocultos no desktop */
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1002; /* Acima do mobile-nav */
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%; /* Começa fora da tela */
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease-in-out;
    z-index: 1001;
}

.mobile-nav.active {
    left: 0; /* Desliza para dentro */
}

.mobile-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav li { margin: 20px 0; }
.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--accent-yellow); }
.close-mobile-nav {
    position: absolute;
    top: 25px;
    right: 35px;
}

/* --- Hero Section Interativa --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at center, #3F1840 0%, #0D0D0D 70%);
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.btn-main {
    padding: 15px 40px;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    font-weight: 800;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
}

/* Elementos flutuantes no fundo */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    z-index: 1;
    transition: transform 0.1s ease-out;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: var(--primary-purple);
    top: -50px;
    left: -50px;
}

.shape2 {
    width: 400px;
    height: 400px;
    background: var(--dark-purple);
    bottom: -100px;
    right: -100px;
}

/* --- Cards Section --- */
.services {
    padding: 100px 50px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--accent-yellow);
    border-bottom: 3px solid var(--primary-purple);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.1s;
    /* JS controla isso */
    transform-style: preserve-3d;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card i {
    font-size: 3rem;
    color: var(--accent-yellow);
    margin-bottom: 20px;
    transform: translateZ(20px);
    /* Efeito 3D */
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-purple);
    transform: translateZ(20px);
}

.card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    transform: translateZ(20px);
}

/* --- Portfolio / Banners --- */
.portfolio {
    padding: 100px 50px;
    background: #050505;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(138, 3, 140, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.overlay h4 {
    color: var(--accent-yellow);
    font-size: 1.4rem;
}

/* --- WhatsApp Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 0px 15px rgba(37, 211, 102, 0.6);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Footer --- */
footer {
    padding: 50px;
    text-align: center;
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-gray);
}

/* --- Animação de Scroll (Fade In) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modal do Portfólio --- */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.portfolio-modal.show { opacity: 1; }

.portfolio-modal-content {
    width: 90%;
    max-width: 900px; /* Limita a largura máxima em telas grandes */
    max-height: 90%;
    text-align: center;
    color: white;
    position: relative;
}

.portfolio-modal-content img {
    width: 100%; /* Ocupa a largura do container */
    aspect-ratio: 16 / 9; /* Força uma proporção 16:9 */
    object-fit: cover; /* Garante que a imagem cubra a área sem distorcer */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(138, 3, 140, 0.5);
    margin-bottom: 20px;
}

.close-portfolio {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: 0.3s;
}
.close-portfolio:hover { color: var(--accent-yellow); transform: scale(1.2); }

/* --- Sobre o Projeto (Redesign) --- */
#sobre-projeto {
    background: linear-gradient(180deg, #050505 0%, #150515 100%);
    padding-bottom: 100px;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Sistema de Row e Col para o Sobre */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Centraliza verticalmente */
    gap: 40px;
}

.col {
    flex: 1; /* Ocupa o espaço disponível */
}

/* Coluna do Título (Esquerda) */
.title-col {
    flex: 0 0 30%; /* Ocupa 30% da largura */
    text-align: center; /* Título centralizado na coluna dele */
    border-right: 2px solid var(--primary-purple); /* Linha divisória */
    padding-right: 20px;
}

.title-col h3 {
    font-size: 2.2rem;
    color: var(--accent-yellow);
    margin: 0;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Coluna da Descrição (Direita) */
.desc-col {
    flex: 0 0 65%; /* Ocupa 65% da largura (deixa um espacinho pro gap) */
    font-size: 1.1rem;
    color: #dcdde1;
    line-height: 1.9;
    text-align: left; /* Descrição justificada à esquerda */
    font-weight: 300;
}

/* --- Responsividade --- */

@media (max-width: 992px) { /* Breakpoint para Tablets */
    header {
        padding: 20px 30px;
    }
    .desktop-nav {
        display: none; /* Esconde menu desktop */
    }
    .hamburger-menu {
        display: block; /* Mostra menu hamburger */
    }
    .services, .portfolio, #sobre-projeto {
        padding: 80px 30px;
    }
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 900px) { /* Tablet e Celulares Maiores */
    .about-container { padding: 30px; }
    .row {
        flex-direction: column; /* Empilha no celular */
        gap: 20px;
    }
    .title-col, .desc-col {
        flex: 0 0 100%; /* Ocupa 100% da largura */
        width: 100%;
    }
    .title-col {
        border-right: none;
        border-bottom: 2px solid var(--primary-purple);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }    
}

@media (max-width: 500px) { /* Celulares menores */
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    .gallery { grid-template-columns: 1fr; } /* Coluna única */
    .card { padding: 30px; }
}