/* Enhanced Homepage Featured Projects Styles - Modern Grid Layout */

#portfolio .mb-50 {
    margin-bottom: 50px;
}

/* Project Card */
#portfolio .project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

#portfolio .project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(2, 217, 244, 0.3);
    box-shadow: 0 20px 60px rgba(2, 217, 244, 0.2);
}

/* Image Wrapper */
#portfolio .project-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: rgba(0, 0, 0, 0.3);
}

#portfolio .project-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

#portfolio .project-card:hover .project-img-wrapper::before {
    opacity: 1;
}

#portfolio .project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Tags */
#portfolio .project-tags {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#portfolio .project-tags .tag {
    padding: 6px 14px;
    background: rgba(2, 217, 244, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: #000;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Project Info */
#portfolio .project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#portfolio .project-info h4 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

#portfolio .project-info h4 a {
    color: #fff;
    transition: color 0.3s ease;
    display: block;
}

#portfolio .project-card:hover .project-info h4 a {
    color: var(--main-color);
}

#portfolio .view-link {
    color: var(--main-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#portfolio .view-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

#portfolio .project-card:hover .view-link {
    gap: 12px;
}

#portfolio .project-card:hover .view-link svg {
    transform: translate(4px, -4px);
}

/* Section header */
#portfolio .sec-head-xlg h2 {
    font-size: 64px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--main-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: -2px;
}

#portfolio .sec-head-xlg p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Responsive */
@media (max-width: 991px) {
    #portfolio .sec-head-xlg h2 {
        font-size: 48px;
    }
    
    #portfolio .project-info h4 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #portfolio .sec-head-xlg h2 {
        font-size: 36px;
        letter-spacing: -1px;
    }
    
    #portfolio .mb-50 {
        margin-bottom: 30px;
    }
    
    #portfolio .project-info {
        padding: 20px;
    }
    
    #portfolio .project-info h4 {
        font-size: 18px;
    }
}
