body {
    background: linear-gradient(-45deg, #6A0572, #A66CFF, #2E2E2E, #6A0572);
    background-size: 400% 400%;
    animation: gradientAnim 15s ease infinite;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    color: #fff;
}

@keyframes gradientAnim {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.portofoliu-container {
    padding: 4rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portofoliu-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.portofoliu-intro h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.portofoliu-intro p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.titlu-sectiune {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    text-align: center;
    color: #A66CFF;
}

.grid-proiecte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.card-glass {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.card-glass img {
    width: 100%;
    height: 500px;
    object-fit:cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
}

.card-text {
    padding: 1.2rem;
    flex-grow: 1;
    text-align: center;
}

.card-text h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #ffffff;
}

.card-text p {
    margin: 0.5rem 0 1rem;
    font-size: 1rem;
    color: #ccc;
}

.btn-vezi {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(45deg, #A66CFF, #6A0572);
    border-radius: 30px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-vezi:hover {
    background: #ffffff;
    color: #A66CFF;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .portofoliu-intro h1 {
        font-size: 2.2rem;
    }

    .card-glass img {
        height: 150px;
    }

    .card-text h3 {
        font-size: 1.2rem;
    }

    .card-text p {
        font-size: 0.95rem;
    } }