/* ================= HERO ================= */
.portfolio-hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a28, #7f00ff);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.portfolio-hero h1 {
    font-size: 4rem;
    animation: fadeInUp 1s ease forwards;
}

.portfolio-hero p {
    font-size: 1.5rem;
    margin-top: 1rem;
    animation: fadeInUp 1.5s ease forwards;
}

/* ================= GRID ================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

/* ================= CARD ================= */
.portfolio-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 1.2rem;
    transition: all 0.35s ease;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

/* hover lift */
.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(127,0,255,0.3);
}

/* IMAGE */
.card-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .card-img img {
    transform: scale(1.1);
}

/* ================= DEFAULT CONTENT (NEW) ================= */
.card-content {
    padding: 1.2rem;
    text-align: left;
}

.card-content h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
}

.card-content p {
    margin-top: 6px;
    font-size: 0.9rem;
    color: #cbd5f5;
    line-height: 1.4;
}

/* ================= OVERLAY ================= */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(127,0,255,0.85);
    backdrop-filter: blur(10px);

    color: #fff;

    opacity: 0;
    transition: all 0.3s ease;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 1.5rem;
}

/* show overlay */
.portfolio-card:hover .overlay {
    opacity: 1;
}

/* overlay text */
.overlay h3 {
    margin-bottom: 10px;
}

.overlay p {
    font-size: 0.9rem;
    color: #e0e7ff;
}

/* BUTTON */
.view-btn {
    margin-top: 1rem;
    padding: 0.6rem 1.6rem;
    border: 2px solid #fff;
    border-radius: 2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.view-btn:hover {
    background: #fff;
    color: #6c5ce7;
}

/* ================= MOBILE FIX ================= */
@media (max-width: 768px) {
    .overlay {
        opacity: 1;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(4px);
    }

    .portfolio-card:hover {
        transform: none;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
