/* Enhanced portfolio section styling */

/* Portfolio filtering */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--dark-color);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
}

/* Feature badge */
.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    transform: translateY(-10px);
    opacity: 0.9;
}

/* App icon image style */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin: 0 auto 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(var(--primary-color-rgb), 0.2);
}

.feature:hover .feature-icon img {
    transform: scale(1.1);
}

/* App ratings */
.app-rating {
    display: flex;
    align-items: center;
    margin: 15px 0;
    gap: 10px;
}

.stars {
    color: #FFD700; /* Gold color for stars */
}

.stars i {
    margin-right: 2px;
}

/* App links in portfolio */
.app-links {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased space between links */
    margin-top: 20px;
    align-items: center; /* Center the links */
}

.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 8px; /* Changed from 20px for more modern look */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.app-link.website-link {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    font-size: 14px;
    min-width: 170px;
    text-align: center;
    white-space: nowrap; /* Prevent text from wrapping */
}

.app-link.website-link:hover {
    background-color: #ff7d00; /* Slightly lighter orange */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(var(--primary-color-rgb), 0.3);
}

.app-link.playstore-link {
    background-color: transparent;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    max-width: 170px; /* Control width */
    box-shadow: none; /* Remove shadow for image link */
}

.app-link.playstore-link:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.playstore-logo {
    height: auto;
    width: 100%;
    max-width: 170px;
    display: block;
    object-fit: contain;
}

.app-link i {
    margin-left: 5px;
}

/* Responsive adjustments for app links */
@media (min-width: 500px) {
    .app-links {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 20px; /* More space between buttons */
    }

    .app-link {
        flex-grow: 0; /* Don't stretch */
        text-align: center;
    }
    
    .app-link.website-link {
        min-width: 170px; /* Match width with Play Store button */
    }
}

/* Feature card animation */
.feature {
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature:hover {
    transform: translateY(-15px) scale(1.03);
    z-index: 10;
}

/* Filter animation */
[data-category] {
    transition: all 0.5s ease;
}

[data-category].hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-filter {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .feature-badge {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 0.7rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }
}

/* Mobile specific adjustments */
@media (max-width: 480px) {
    .app-links {
        width: 100%;
    }
    
    .app-link.playstore-link {
        max-width: 180px;
        margin-bottom: 5px;
    }
    
    .app-link.website-link {
        width: 100%;
        max-width: 180px;
        font-size: 13px; /* Slightly smaller font on mobile */
        padding: 8px 15px; /* Smaller padding on mobile */
    }
}
