/* Modern Project Cards Styling - Premium Redesign */
.portfolio-item {
    margin-bottom: 30px;
}

.portfolio-item-inner {
    background: #151b29;
    /* Deep Night Blue/Black */
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-item-inner:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--skin-color);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 240px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item-inner:hover .portfolio-img img {
    transform: scale(1.08);
    /* Smoother zoom */
}

.portfolio-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #151b29;
    /* Ensure background consistency */
}

.portfolio-content h4 {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    /* Forever White */
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

/* Individual tech tags - Pill Style */
.tech-tag {
    display: inline-block;
    background: rgba(236, 24, 57, 0.1);
    /* Low opacity theme color */
    color: var(--skin-color);
    padding: 6px 14px;
    border-radius: 50px;
    /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.tech-tag:hover {
    background: var(--skin-color);
    color: white;
    transform: none;
}

.portfolio-content>p {
    color: #b0b5c1;
    /* Soft Grey for description */
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    flex: 1;
}

.portfolio-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.portfolio-links .btn {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #252e42;
    /* Standard Button Background */
    color: white;
}

.portfolio-links .btn:hover {
    background-color: var(--skin-color);
    transform: translateY(-3px);
}

.portfolio-links .btn i {
    margin-right: 8px;
}

/* Dark mode overrides (mostly handled by base styles now, but ensuring safety) */
.dark .portfolio-item-inner {
    background: #151b29;
    border-color: rgba(255, 255, 255, 0.05);
}

.dark .portfolio-content h4 {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 991px) {
    .portfolio-img {
        height: 220px;
    }
}

@media (max-width: 767px) {
    .portfolio-img {
        height: 200px;
    }

    .portfolio-content h4 {
        font-size: 20px;
    }
}