/* Reset de Estilos e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ccc;
    background-color: #121212;
    margin: 0;
    padding: 0;
}

.container {
    width: 92%;
    margin: 0 auto;
    max-width: 1100px;
}

/* Cabeçalho e Navegação */
header {
    background: #121212; /* Unificado com o fundo do site para remover o efeito de 'bloco' */
    padding: 0.8rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo a {
    color: #5BBE42;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-weight: 500;
}

nav ul li a:hover {
    color: #5BBE42;
}

/* Seção Hero */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 0.8rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #5BBE42;
    margin-bottom: 2rem;
    font-weight: 300;
    font-style: italic;
}

.btn {
    display: inline-block;
    background: #5BBE42;
    color: #fff;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #4aa035;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 190, 66, 0.3);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid #5BBE42;
    color: #5BBE42;
}

.btn-outline:hover {
    background: #5BBE42;
    color: #fff;
}

.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(91, 190, 66, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Seções Principais */
main section {
    padding: 3.5rem 0;
    border-bottom: 1px solid #333;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 2.5rem;
    font-weight: 600;
}

/* Seção Serviços */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.servico-item {
    background: #1f1f1f;
    padding: 1.8rem;
    border-radius: 10px;
    border-left: 4px solid #5BBE42;
    transition: all 0.3s ease;
}

.servico-item h3 {
    color: #5BBE42;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.servico-item p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.servico-item ul li {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Seção Sobre Mim */
.sobre-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.sobre-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.sobre-text h3 {
    color: #5BBE42;
    font-size: 1.4rem;
    margin: 2rem 0 1.2rem;
}

/* Main Skills Compactas */
.main-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.skill-card {
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: center;
    transition: 0.3s;
}

.skill-icon {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.skill-card h4 {
    font-size: 0.95rem;
    color: #5BBE42;
    margin-bottom: 0.4rem;
}

.skill-card p {
    font-size: 0.75rem;
    line-height: 1.3;
}

/* Seção Portfólio */
.portfolio-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Card Wide */
.portfolio-item-wide {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 1.5rem;
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
    align-items: stretch;
    transition: border-color 0.3s;
}

.portfolio-item-wide:hover {
    border-color: #5BBE42;
}

.slideshow-container {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: #000;
}

.slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #1a1a1a;
    transition: opacity 1s ease-in-out;
    padding: 12px;
}

.portfolio-img-static {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #1a1a1a;
    padding: 12px;
}

.portfolio-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-content h3 {
    color: #5BBE42;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.portfolio-description {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: #ccc;
}

.portfolio-modules {
    display: grid;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.module-item {
    display: flex;
    gap: 0.8rem;
}

.module-item strong {
    font-size: 0.9rem;
    color: #5BBE42;
    display: block;
    margin-bottom: 0.2rem;
}

.module-item p {
    font-size: 0.85rem;
    margin: 0;
    color: #aaa;
}

.portfolio-tech {
    color: #5BBE42;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1.5rem;
    background: rgba(91, 190, 66, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.portfolio-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* Seção Contato */
.contato-info {
    margin-bottom: 2rem;
}

.contato-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1ebe57; }

/* Rodapé */
footer {
    padding: 3rem 0;
    text-align: center;
    background: #1a1a1a;
    font-size: 0.95rem;
    border-top: 1px solid #333;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #aaa;
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #5BBE42;
}

/* Responsividade */
@media (max-width: 850px) {
    .container {
        width: 100%; /* Remove as 'bordas' laterais no mobile */
        padding: 0 20px;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .portfolio-item-wide {
        grid-template-columns: 1fr;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }

    .slideshow-container {
        min-height: 250px;
        height: auto;
    }
    
    .slideshow-img, .portfolio-img-static {
        position: relative;
        height: 250px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
    }
    
    .portfolio-actions .btn {
        width: 100%;
        text-align: center;
    }
}
