/* --- 1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #00ffee;
    --text-color: #ffffff;
    --bg-dark: #1f242d;
    --bg-light: #323946;
    --shadow-color: rgba(0, 255, 238, 0.2);
}

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

html {
    font-family: "Poppins", sans-serif;
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 8rem;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    font-size: 1.6rem;
}

section {
    min-height: 100vh;
    padding: 10rem 8% 5rem;
}

h2.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 700;
}

span {
    color: var(--primary-color);
}

/* --- 2. HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 8%;
    background-color: var(--bg-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: var(--bg-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 3.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-color);
}

/* --- 3. SEÇÃO INÍCIO (HERO) --- */
.inicio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.cont-inicio {
    max-width: 60rem;
}

.cont-inicio h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.cont-inicio h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.cont-inicio h4 {
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.cont-inicio p {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.midiassociais a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--primary-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--primary-color);
    margin-right: 1.5rem;
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.midiassociais a:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 1rem var(--primary-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.8rem;
    background-color: var(--primary-color);
    border-radius: 4rem;
    color: var(--bg-dark);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: box-shadow 0.3s ease;
    margin-top: 3rem;
    gap: 1rem;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.5rem var(--shadow-color);
}

.imagem-inicio img {
    width: 35vw;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 2.5rem var(--shadow-color);
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }
}

/* --- 4. SEÇÃO SOBRE --- */
.sobre {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8rem;
    background-color: var(--bg-light);
}

.imgsobre img {
    width: 35vw;
    max-width: 400px;
    border-radius: 1rem;
    box-shadow: 0 0 2.5rem var(--shadow-color);
}

.conteudosobremim h3 {
    font-size: 2.6rem;
    line-height: 1.2;
}

.conteudosobremim h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0 2rem;
}

.conteudosobremim p {
    font-size: 1.6rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.conteudosobremim ul {
    list-style: none;
    padding-left: 0;
}

.conteudosobremim ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

.conteudosobremim ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- 5. SEÇÃO SERVIÇOS --- */
.servicos {
    background-color: var(--bg-dark);
}

.conteudo-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    justify-content: center;
}

.caixa-servicos {
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    background-color: var(--bg-light);
    border: 0.2rem solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
}

.caixa-servicos:hover {
    transform: translateY(-1rem);
    border-color: var(--primary-color);
}

.caixa-servicos i {
    font-size: 7rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.caixa-servicos h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.caixa-servicos p {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex: 1;
}

.caixa-servicos .btn {
    align-self: center;
    margin-top: auto;
}

/* --- 6. SEÇÃO PORTFÓLIO --- */
.portfolio {
    background-color: var(--bg-light);
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.portfolio-box {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    min-height: 300px;
}

.portfolio-box:hover {
    transform: translateY(-1rem);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.portfolio-box img {
    width: 60%;
    max-width: 180px;
    height: auto;
    transition: transform 0.5s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(31, 36, 45, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-layer p {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-layer a:hover {
    box-shadow: 0 0 1.5rem var(--primary-color);
}

.portfolio-layer a i {
    font-size: 2.4rem;
    color: var(--bg-dark);
}

/* --- 7. SEÇÃO CONTATO --- */
.contato {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contato-content {
    max-width: 70rem;
}

.contato-content p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.contato .btn i {
    font-size: 2.4rem;
}

/* --- 8. FOOTER --- */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 8%;
    background-color: var(--bg-light);
    text-align: center;
}

.footer p {
    font-size: 1.4rem;
}

/* --- 9. MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }

    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .inicio,
    .sobre {
        flex-direction: column;
        text-align: center;
    }

    .imagem-inicio img,
    .imgsobre img {
        width: 70vw;
        margin-top: 4rem;
    }

    .sobre {
        flex-direction: column-reverse;
    }
}