/* Enhanced card styling for Why Us and Portfolio sections */

/* Card hover info */
.card-hover-info {
    /* Menghilangkan efek hover - selalu tampilkan info, tidak perlu perangkat hover */
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--text-color);
    padding: 10px;
    margin-top: 10px;
    opacity: 1;
    transform: none;
    transition: none;
    border-radius: 8px;
}

.card-hover-info span {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--secondary-text-color, #666);
}

.why-card {
    position: relative;
    overflow: visible;
    border-bottom: 3px solid var(--primary-color);
    transition: none;
}

/* Enhanced icon styling */
.icon, .feature-icon, .step-icon {
    position: relative;
}

.icon:before, .feature-icon:before, .step-icon:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    transform: scale(0);
    /* transition: all 0.3s ease; */ /* Efek transisi dihilangkan */
}

/* Menghilangkan selektor hover untuk ikon */
/*
.why-card:hover .icon:before,
.feature:hover .feature-icon:before,
.step:hover .step-icon:before {
    transform: scale(1.2);
    opacity: 0.7;
}
*/

/* Enhanced feature cards */
.feature {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.feature:hover {
    border-bottom: 3px solid var(--primary-color);
}

/* Add shadow pulse effect on hover */
@keyframes shadowPulse {
    0% {
        box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
    }
    50% {
        box-shadow: 0 5px 25px rgba(var(--primary-color-rgb), 0.4);
    }
    100% {
        box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
    }
}

.why-card:hover, .feature:hover {
    animation: shadowPulse 2s infinite;
}

/* Section title subtle animation */
@keyframes titleShine {
    0% {
        background-position: -100px;
    }
    100% {
        background-position: 200px;
    }
}

.section-title {
    position: relative;
    overflow: hidden;
}

.section-title:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    background-position: -100px;
    background-size: 200px 100%;
    animation: titleShine 3s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-title:hover:before {
    opacity: 1;
}
