/* =========================================================
   VARIÁVEIS
   ========================================================= */
:root {
    --green: #08c61b;
    --sans: Arial, Helvetica, sans-serif;
}

/* =========================================================
   RESET E BASE
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000000;
    font-family: Consolas, monospace;
    overflow-x: hidden; /* evita rolagem horizontal causada pelas animações */
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
   FUNDO ANIMADO
   ========================================================= */
#background {
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

.code {
    position: absolute;
    color: var(--green);
    opacity: .08;
    white-space: pre;
    font-size: 18px;
    animation: float linear infinite;
    user-select: none;
}

@keyframes float {
    from {
        transform: translateY(110vh);
    }
    to {
        transform: translateY(-150%);
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fefdfb;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 60px);
}

.hero p {
    font-size: clamp(16px, 2.2vw, 22px);
}

button {
    padding: 15px 35px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    border-radius: 8px;
}

/* =========================================================
   SEÇÃO SOBRE
   ========================================================= */
#about {
    min-height: 600px;
    width: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

#textabout {
    padding-left: 50px;
    padding-right: 20px;
    width: 50%;
    display: flex;
    flex-direction: column;
    font-size: medium;
}

#imgabout {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imgabout img {
    margin-right: 20px;
    margin-left: 50px;
    border: solid transparent;
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    height: auto;
    box-shadow: 0px 8px 15px -6px var(--green);
}

#titulo {
    font-size: 30px;
    color: var(--green);
}

#paragrafo {
    margin-top: 30px;
    width: 100%;
    max-width: 500px;
}

#paragrafo p {
    font-size: 20px;
    font-family: var(--sans);
}

/* =========================================================
   SEÇÃO PRODUTOS
   ========================================================= */
#Produtos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    width: 100%;
    padding: 40px 0;
    color: var(--green);
}

#Produtos h1 {
    margin-bottom: 25px;
    text-align: center;
    padding: 0 20px;
}

#galeria {
    min-height: 380px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--green) #000000;
    padding: 30px 0; /* espaço para o efeito de zoom no hover */
}

.cardsprodutos {
    position: relative;
    flex: 0 0 330px;
    width: 330px;
    height: 280px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 25px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid #1d2a24;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    cursor: pointer;
}

.cardsprodutos .cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.4rem 1rem .9rem;
    background: linear-gradient(transparent, #000d 60%);
}

.cardsprodutos h3 {
    color: #fefdfb;
    margin: 0;
    font: 700 1.1rem var(--sans);
}

.cardsprodutos a {
    position: absolute;
    inset: 0;
    z-index: 3;
    text-indent: -9999px;
}

.cardsprodutos img {
    height: 80%;
    width: 100%;
    object-fit: cover;
    border-radius: 25px;
}

.cardsprodutos .cap p {
    margin: .15rem 0 0;
    font-size: .85rem;
    color: #b7c2bc;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .3s, opacity .3s;
}

.cardsprodutos:hover .cap p,
.cardsprodutos:focus-within .cap p {
    max-height: 5rem;
    opacity: 1;
}

.cardsprodutos:hover,
.cardsprodutos:focus-within {
    transform: scale(1.07);
    z-index: 2;
    border-color: var(--green);
    box-shadow: 0 20px 40px #000, 0 0 30px #00e67644;
}

/* =========================================================
   SEÇÃO CONTATO
   ========================================================= */
#contato {
    min-height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    padding: 40px 0;
}

#box {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#form {
    margin-top: 60px;
    padding-left: 60px;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: start;
}

.inpcurto {
    width: 90%;
    height: 50px;
    margin-bottom: 15px;
    background-color: transparent;
    border: 1px solid #b3edb9;
    border-radius: 10px;
    outline: none;
}

.inpcurto,
textarea {
    color: #ffffff;
    caret-color: #ffffff;
    font-size: medium;
    font-family: inherit;
    padding: 12px 16px;
}
#Whatsapp::-webkit-inner-spin-button, #Whatsapp::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

#Detalhes {
    width: 90%;
    height: 200px;
    margin-bottom: 15px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #b3edb9;
    border-radius: 10px;
    outline: none;
    resize: vertical;
}

#box button {
    width: 90%;
}

.inpcurto:focus,
#Detalhes:focus {
    border-color: var(--green);
}

/* =========================================================
   EFEITOS CSS
   ========================================================= */
.hidden2 {
    opacity: 0;
    filter: blur(15px);
    transition: all 2s;
}

.show {
    opacity: 1;
    filter: blur(0px);
    transition: all 2s;
}

.hidden1 {
    opacity: 0;
    transform: translateX(-100%);
    transition: all 2s;
}

.show2 {
    opacity: 1;
    transform: translateX(0);
    transition: all 2s;
}

/* =========================================================
   RODAPÉ
   ========================================================= */
#rodape {
    background-color: #000;
    border-top: 2px solid var(--green);
}

.footerconteiner {
    width: 100%;
    background-color: #000;
}

#footercontent {
    background-color: #000;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 3rem 3.5rem;
}

#social {
    display: flex;
    margin-left: 7rem;
    gap: 2rem;
}

#social .footer_link {
    height: 2.5rem;
    width: 2.5rem;
    color: #fff;
    border-radius: 50%;
    transition: all 0.4s;
}

#social .footer_link:hover {
    opacity: 0.8;
}

#social .footer_link i {
    font-size: 1.5rem;
}

#instagram {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(#7f37c9, #ff2992, #ff9807);
    text-decoration: none;
}

#Whatsapp {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #25d366;
    text-decoration: none;
}

#Linkedin {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0077B5;
    text-decoration: none;
}

.footerlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
}

.footerlist h3 {
    color: #fff;
}

.footerlist a {
    color: #fff;
    text-decoration: none;
}

#footercopy {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

/* ---------- Notebooks pequenos / tablets na horizontal (até 1024px) ---------- */
@media (max-width: 1024px) {

    #textabout {
        padding-left: 30px;
    }

    #imgabout img {
        margin-left: 20px;
        margin-right: 20px;
    }

    #paragrafo p {
        font-size: 18px;
    }

    #form {
        width: 90%;
        padding-left: 20px;
    }

    #footercontent {
        padding: 2.5rem 2rem;
    }

    #social {
        margin-left: 0;
    }
}

/* ---------- Tablets na vertical (até 768px) ---------- */
@media (max-width: 768px) {

    /* Sobre: imagem e texto empilhados */
    #about {
        flex-direction: column-reverse;
        min-height: auto;
        padding: 50px 20px;
        gap: 30px;
    }

    #textabout,
    #imgabout {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    #textabout {
        align-items: center;
        text-align: center;
    }

    #paragrafo {
        margin-top: 20px;
        max-width: 600px;
    }

    #imgabout img {
        margin: 0;
        max-width: 420px;
    }

    /* Produtos */
    #Produtos {
        min-height: auto;
        padding: 50px 0;
    }

    .cardsprodutos {
        flex: 0 0 min(78vw, 330px);
        width: min(78vw, 330px);
        height: 260px;
        margin-left: 12px;
        margin-right: 12px;
    }

    /* Contato */
    #contato {
        min-height: auto;
        padding: 50px 0;
    }

    #box {
        width: 92%;
    }

    #form {
        width: 100%;
        margin-top: 30px;
        padding-left: 0;
        align-items: center;
    }

    .inpcurto,
    #Detalhes,
    #box button {
        width: 100%;
    }

    /* Rodapé em coluna única */
    #footercontent {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 2rem;
        padding: 2.5rem 1.5rem;
    }

    #social {
        justify-content: center;
        margin-left: 0;
    }

    .footerlist {
        align-items: center;
    }
}

/* ---------- Celulares (até 480px) ---------- */
@media (max-width: 480px) {

    .code {
        font-size: 12px;
    }

    .hero {
        gap: 14px;
    }

    button {
        padding: 13px 28px;
        font-size: 16px;
    }

    #about {
        padding: 40px 16px;
    }

    #titulo {
        font-size: 24px;
    }

    #paragrafo p {
        font-size: 16px;
        line-height: 1.5;
    }

    #imgabout img {
        border-radius: 18px;
    }

    #Produtos h1 {
        font-size: 24px;
    }

    .cardsprodutos {
        flex: 0 0 82vw;
        width: 82vw;
        height: 240px;
        border-radius: 18px;
    }

    .cardsprodutos img {
        border-radius: 18px;
    }

    .cardsprodutos h3 {
        font-size: 1rem;
    }

    #contato h1,
    #contato h2 {
        font-size: 24px;
        text-align: center;
    }

    .inpcurto {
        height: 46px;
    }

    #Detalhes {
        height: 160px;
    }

    #social {
        gap: 1.2rem;
    }

    #footercontent {
        padding: 2rem 1rem;
    }
}

/* ---------- Telas muito pequenas (até 360px) ---------- */
@media (max-width: 360px) {

    .hero h1 {
        font-size: 28px;
    }

    #titulo {
        font-size: 22px;
    }

    .cardsprodutos {
        height: 220px;
    }
}

/* ---------- Celular deitado (pouca altura) ---------- */
@media (max-height: 480px) and (orientation: landscape) {

    .hero {
        min-height: 100vh;
        padding: 30px 20px;
    }
}