* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.header {
    text-align: center;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #000000, #1b1b1d);
}

.header h1 a {
    color: #00be62;
    text-decoration: none;
    font-size: 2.8rem;
    font-weight: bold;
}

.header h1 a:hover {
    opacity: 0.85;
}

.header h2 {
    margin-top: 10px;
    font-size: 1.8rem;
}

.header p {
    margin-top: 10px;
    color: #bbbbbb;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* PORTFÓLIO GRID */
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 60px 0 100px;
}

/* CARD */  
.card {
    position: relative;
    overflow: hidden;

    background-color: var(--bg-inferior);
    padding: 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;

    display: flex;
    flex-direction: column;

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);

    transition:
        transform 0.45s ease,
        box-shadow 0.45s ease;
}

.card:hover {
    transform: translateY(-14px) scale(1.04);
    box-shadow: 0 30px 60px rgba(2, 2, 2, 0.25);
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(84, 236, 78, 0.6);
    cursor: pointer;
}

/* IMAGEM */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* CONTEÚDO */
.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #00be62;
}

.card-content p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 18px;
    line-height: 1.5;
}

.card button,
.card a {
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.card:hover button,
.card:hover a {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px #00be62;
}

/* BOTÃO */
.btn {
    margin-top: auto;
    align-self: center;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 12px 26px;
    background: linear-gradient(135deg, #076638, #00be62);
    color: #020617;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;

    transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* WHATSAPP FIXO */
.whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #19db60;
    color: #fff;
    font-size: 26px;
    padding: 16px;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    z-index: 999;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 25px;
    background-color: #1b1b1d;
    font-size: 0.9rem;
    color: #888;
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
  .portfolio-item {
    width: 100%;
  }

  .portfolio-item img {
    width: 100%;
    height: auto;
  }
}

/* =========================
   AJUSTES MOBILE – PORTFÓLIO
   (SEM ALTERAR DESKTOP)
========================= */

@media (max-width: 768px) {

    .header {
        padding: 60px 20px 40px;
    }

    .header h1 a {
        font-size: 2.2rem;
    }

    .header h2 {
        font-size: 1.4rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .portfolio {
        justify-items: center;
        padding: 40px 0 80px;
    }

    .card {
        max-width: 100%;
        width: 100%;
    }

    .card img {
        height: 180px;
    }
}

@media (max-width: 480px) {

    .header h1 a {
        font-size: 2rem;
    }

    .header h2 {
        font-size: 1.25rem;
    }

    .card {
        border-radius: 16px;
    }

    .card-content {
        padding: 18px;
    }

    .btn {
        min-height: 48px;
        font-size: 1rem;
        width: 100%;
    }
}
