:root {
    --azul-tech: #1E90FF;
    --azul-neon: #00BFFF;
    --preto-grafite: #121212;
    --cinza-claro: #F4F4F4;
    --prata: #C0C0C0;
    --texto-claro: #F4F4F4;
    --texto-escuro: #121212;
}

/* ====== Modo Claro ====== */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0d0d0d;  /* quase preto */
    color: #ffffff;             /* texto claro */
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* ====== Modo Escuro Automático ====== */
@media (prefers-color-scheme: dark) {
    body {
        background-color: var(--preto-grafite);
        color: var(--texto-claro);
    }
    header, footer {
        background-color: #0D0D0D;
    }
    .app-card {
        background-color: #1E1E1E;
        color: var(--texto-claro);
    }
}

/* ===================== */
/*        CABEÇALHO      */
/* ===================== */
header {
    background-color: var(--preto-grafite);
    padding: 15px 20px;
}

.header-content {
    display: grid;
    grid-template-columns: 1fr 4fr;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    color: white;
    gap: 10px;
}

.logo {
    width: 140px;
    height: auto;
}

.title-area h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    color: var(--azul-tech);
    margin: 0;
    text-align: left;
    font-weight: 600;
    margin-bottom: 10px;
}

/* ===================== */
/*          HERO         */
/* ===================== */
.hero {
    background-color: var(--preto-grafite);
    color: var(--texto-claro);
    text-align: center;
    padding: 20px 20px;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    color: var(--azul-tech);
    margin-bottom: 20px;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: var(--prata);
    line-height: 1.6;
}

.btn-hero {
    background-color: var(--azul-tech);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-hero:hover {
    background-color: var(--azul-neon);
}

/* ===================== */
/*       PORTFÓLIO       */
/* ===================== */
.portfolio {
    padding: 10px 20px;
    text-align: center;
    
}

.portfolio h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.apps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Cards com animação */
.app-card {
    background-color: white;
    border: 1px solid var(--prata);
    padding: 20px 40px;
    border-radius: 10px;
    color: var(--texto-escuro);
    text-decoration: none;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    flex: 1 1 250px; /* largura mínima */
    max-width: 320px;
    max-height: 100px;
    box-sizing: border-box;
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    background-color: var(--azul-tech);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* ===================== */
/*        RODAPÉ         */
/* ===================== */
footer {
    background-color: var(--preto-grafite);
    color: var(--prata);
    text-align: center;
    padding: 100px;
    font-size: 0.9rem;
}

/* ===================== */
/*    RESPONSIVIDADE     */
/* ===================== */
@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .title-area h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    .hero {
        padding: 70px 15px;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .apps {
        flex-direction: column;
        align-items: center;
    }

    .app-card {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-hero {
        padding: 10px 20px;
    }
}

.info {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding: 50px 100px;
}

/* Container do botão fixo */
    .whatsapp-float {
      position: fixed;
      right: 20px;            /* distância da lateral esquerda */
      bottom: 20px;          /* distância da parte de baixo */
      z-index: 9999;
      display: inline-block;
      width: 64px;           /* tamanho padrão (ajuste se quiser) */
      height: 64px;
      transition: transform 0.12s ease;
    }

    /* Ajuste responsivo: menor em telas pequenas */
    @media (max-width: 480px) {
      .whatsapp-float {
        width: 56px;
        height: 56px;
        left: 14px;
        bottom: 14px;
      }
    }

    /* Efeito sutil ao passar o mouse */
    .whatsapp-float:hover {
      transform: scale(1.08);
    }

    /* Garante que a imagem preencha o container e seja clicável */
    .whatsapp-float img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: contain;
      border: none;
    }

    /* Para usuários de teclado (acessibilidade) */
    .whatsapp-float:focus,
    .whatsapp-float:active {
      outline: 3px solid rgba(37, 211, 102, 0.25);
      border-radius: 50%;
    }
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.2rem;
    text-align: center;
}

.card-content h4 {
    font-family: 'Montserrat', sans-serif;
    color: #2d30e9;
    margin-bottom: 0.5rem;
}

.card-content p {
    font-family: 'Inter', sans-serif;
    color: #444;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.btn-card {
    display: inline-block;
    background: #2d30e9;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.btn-card:hover {
    background: #1c1ee0;
}

/* botões sobre e contato */
.info {
    display: grid;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.btn-footer {
    background: #2d30e9;
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-footer:hover {
    background: #1e22c7;
    transform: translateY(-2px);
}

/* Ajuste para celular */
@media (max-width: 480px) {
    .info {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn-footer {
        width: 100%;
        text-align: center;
    }
}

