.div-projetos {
    background-color: rgb(41, 41, 41);
    color: white;
}

/* Título principal da seção */
.title-projetos {
    color: rgb(255, 174, 0);
    padding-top: 100px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

/* Parágrafos (apenas os do card animam depois) */
.text-projects {
    opacity: 0;
    transform: translateY(20px);
}

/* Card inicial */
.card-projeto {
    position: relative;
    width: 45%;
    margin: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-right: 20px;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: 
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

/* Efeito no hover */
.card-projeto:hover {
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}


/* Botão inicial */
.btn-frosted-card-projetos {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding-top: 10px;
    padding-bottom: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.btn-frosted-card-projetos:hover {
    background: rgba(75, 75, 75, 0.3);
}

.contact-link {
  text-decoration: none;
  color: inherit;
  display: inline-block; /* mantém o tamanho do card */
}

.contact-link:hover {
  text-decoration: none;
}


/* Imagem inicial */
.img-projetos {
    opacity: 0;
    height: 350px;
    border-radius: 15px;
}

/* HR dentro dos cards */
.card-projeto hr {
    width: 0;
    opacity: 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    transform-origin: left;
}

/* Título dentro dos cards */
.title-card-projeto {
    color: rgb(255, 174, 0);
    opacity: 0;
    transform: translateY(20px);
}

/* Responsividade */
@media (max-width: 1300px) {
    .card-projeto {
        width: 95%;
        height: 400px;
    }
    .img-projetos {
        display: none;
    }
}

/* ===== ANIMAÇÕES COM .animate ===== */
.card-projeto.animate {
    animation: cardFadeIn 0.4s ease forwards;
}

.card-projeto.animate .img-projetos {
    animation: fadeIn 0.4s ease forwards;
    animation-delay: 0.2s;
}

.card-projeto.animate hr {
    animation: hrGrow 0.4s ease forwards;
    animation-delay: 0.4s;
}

.hr-projetos.animate hr {
    animation: hrGrow 0.4s ease forwards;
    animation-delay: 0.6s;
}

.card-projeto.animate .title-card-projeto {
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 0.8s;
}

.title-projetos {
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 0.8s;
}

.card-projeto.animate p {
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 1s;
}

.card-projeto.animate .btn-frosted-card-projetos {
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 1.2s;
}

/* ===== KEYFRAMES ===== */
@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hrGrow {
    to {
        width: 100%;
        opacity: 1;
    }
}
