/* Hero Section */
.portfolio-hero {
    height: 138px;
    background-color: var(--white-ceream);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white-shiri);
    padding-top: 35px;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 30, 0.4), var(--brown));
}

.portfolio-hero h1 {
    font-family: 'gohar';
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

/* Modern Category Card */
.modern-category-card {
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: all 0.5s ease;
    cursor: pointer;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

/* ایجاد سایه روی عکس برای خوانایی متن */
.modern-category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 60%);
}

.card-content {
    position: relative;
    z-index: 5;
    padding: 30px;
    width: 100%;
    color: #fff;
    transform: translateY(40px);
    transition: transform 0.4s ease;
}

.card-content h3 {
    font-family: 'gohar';
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.projects-count {
    background: var(--brown);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    display: inline-block;
    font-family: vazir;
    margin-bottom: 10px;
}

.card-footer-info {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Hover Effects */
.modern-category-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modern-category-card:hover .card-bg {
    transform: scale(1.1);
}

.modern-category-card:hover .card-content {
    transform: translateY(0);
}

.modern-category-card:hover .card-footer-info {
    opacity: 1;
}
