/* Importăm fontul Montserrat (dacă nu este deja importat din hero.css) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&display=swap');

/* =========================================
   STILURI TITLU ȘI SUBTITLU SECȚIUNE
========================================= */
.featured-header-container {
    text-align: center;
    margin-bottom: 4rem; /* Mai mult spațiu între titlu și carduri */
}

/* Titlul Principal al Secțiunii */
.featured-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem); /* Se mărește dinamic în funcție de ecran */
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    
    /* Gradient elegant pe text */
    background: linear-gradient(135deg, #005bbf 0%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    /* Animație de intrare */
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* Linia animată de sub titlu */
.featured-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; /* Pornește de la lățime 0 */
    height: 4px;
    background: linear-gradient(90deg, #005bbf, #00d2ff);
    border-radius: 2px;
    animation: expandLine 0.8s ease-out 0.5s forwards; /* Pornește după titlu */
}

/* Subtitlul secțiunii */
.featured-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: #414754;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    
    /* Animație de intrare cu o mică întârziere față de titlu */
    opacity: 0;
    animation: fadeUpReveal 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.2s forwards;
}

/* =========================================
   KEYFRAMES (ANIMAȚII)
========================================= */
@keyframes fadeUpReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    to {
        width: 100px; /* Lățimea finală a liniei decorative */
    }
}

/* =========================================
   EFECTE CARDURI (app-card)
========================================= */
.app-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

/* Efect de levitație și umbră colorată la hover */
.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 91, 191, 0.1);
    border-color: rgba(0, 91, 191, 0.3);
    z-index: 2;
}

/* =========================================
   ANIMAȚII ICONIȚE
========================================= */
.icon-wrapper {
    transition: all 0.4s ease;
}

.app-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    /* Facem fundalul iconiței puțin mai vizibil la hover */
    background-color: rgba(0, 91, 191, 0.15); 
}

/* =========================================
   STILIZARE LINK "LANSEAZĂ"
========================================= */
.app-link {
    position: relative;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

/* Creăm un fundal fin la hover pentru link */
.app-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 91, 191, 0.08);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
    border-radius: 6px;
}

.app-card:hover .app-link::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Săgeata se îndepărtează puțin la hover */
.app-link span {
    transition: transform 0.3s ease;
}

.app-link:hover span {
    transform: translateX(4px);
}