/* -------- Reset / básicos -------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f2f2;
    color: #121212;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}

/* -------- Cabeçalho -------- */
header {
    background: linear-gradient(135deg, #121212, #1e1e1e, #333333);
    color: white;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.header-container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo h1 {
    font-size: 1.8rem;
    color: #FF6600;
}
nav {
    display: flex;
    gap: 20px;
}
nav a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}
nav a:hover {
    color: #FF6600;
}

/* -------- Seções -------- */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px 40px;
}
section {
    margin-bottom: 60px;
}
section h2 {
    color: #121212;
    margin-bottom: 20px;
    font-size: 2rem;
    position: relative;
}
section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: #FF6600;
    left: 0;
    bottom: -8px;
    border-radius: 2px;
}

/* -------- Sobre -------- */
.sobre, .servicos, .portfolio, .contato {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    animation: fadeInUp 0.6s ease-in-out;
}

/* -------- Serviços -------- */
.servico-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.servico {
    background-color: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, background-color 0.3s;
}
.servico:hover {
    transform: translateY(-5px);
    background-color: #e6e6e6;
}
.servico h3 {
    margin-bottom: 10px;
    color: #FF6600;
}

/* -------- Portfólio -------- */
.portfolio-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}
.portfolio-item img {
    transition: transform 0.5s;
}
.portfolio-item:hover img {
    transform: scale(1.1);
}
.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.5s;
    text-align: center;
    padding: 10px;
}
.portfolio-item:hover .overlay {
    opacity: 1;
}

/* -------- Contato -------- */
.contato form {
    display: flex;
    flex-direction: column;
}
.contato input, .contato textarea {
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contato input:focus, .contato textarea:focus {
    border-color: #FF6600;
    box-shadow: 0 0 5px rgba(255,102,0,0.4);
}
.contato button {
    padding: 12px;
    background-color: #FF6600;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.contato button:hover {
    background-color: #ff8533;
    color: #000;
}

/* -------- Rodapé -------- */
footer {
    background-color: #121212;
    color: #f2f2f2;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* -------- WhatsApp -------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}
.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FF6600;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, background-color 0.3s;
}
.whatsapp-float a:hover {
    transform: scale(1.1);
    background-color: #ff8533;
}

/* -------- Animações -------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}
