/* ===================================================
   SERVICES SECTION - DESIGN MODERNO COMPLETO
   =================================================== */

/* SEZIONE PRINCIPALE */
.services-modern {
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 25%, 
        #334155 50%, 
        #1e293b 75%, 
        #1e293b 100%);
    padding: 0;
    margin: 0 !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.services-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* CONTAINER */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

/* HEADER SECTION */
.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

.services-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.services-badge span {
    color: #60a5fa;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-title {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

/* UNIFORMA ALTEZZA DELLE SERVICE CARD */
.services-grid {
    align-items: stretch;
}
.service-card {
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.service-card.featured {
    min-height: 280px;
}

/* SERVICE CARDS */
.service-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(71, 85, 105, 0.3);
    border-radius: 20px;
    padding: 1.8rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    cursor: pointer;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* DISABILITA EFFETTI GLASSMORPHISM E SHINE CHE SCHIARISCONO LE CARD */
.service-card.glassmorphism-active,
.service-card.shine-effect {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.3) !important;
}

.service-card.glassmorphism-active::before,
.service-card.shine-effect::before,
.service-card.glassmorphism-active::after,
.service-card.shine-effect::after {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

/* FEATURED CARD (AI) */
.service-card.featured {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(51, 65, 85, 0.8) 100%) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
    transform: scale(1.05);
}

.service-card.featured.glassmorphism-active,
.service-card.featured.shine-effect {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(51, 65, 85, 0.8) 100%) !important;
    border: 2px solid rgba(59, 130, 246, 0.4) !important;
}

.service-card.featured.glassmorphism-active::before,
.service-card.featured.shine-effect::before,
.service-card.featured.glassmorphism-active::after,
.service-card.featured.shine-effect::after {
    display: none !important;
    background: none !important;
    opacity: 0 !important;
}

.service-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.2);
}

/* Layout speciale per evidenziare AI */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
}

/* Posizionamento speciale per AI card */
.service-card.ai-premium {
    grid-column: 2;
    grid-row: 1;
    margin: -10px;
}

/* Riorganizzazione grid per desktop */
@media (min-width: 992px) {
    .services-grid {
        grid-template-areas: 
            "dev ai cloud"
            "security infra consulting";
    }
    
    .service-card[data-service="development"] { grid-area: dev; }
    .service-card[data-service="ai"] { grid-area: ai; }
    .service-card[data-service="cloud"] { grid-area: cloud; }
    .service-card[data-service="security"] { grid-area: security; }
    .service-card[data-service="infrastructure"] { grid-area: infra; }
    .service-card[data-service="consulting"] { grid-area: consulting; }
}

/* Mobile: AI card in evidenza */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.ai-premium {
        order: -1;
        margin: 0 0 20px 0;
    }
}

/* SERVICE ICON */
.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.service-card.featured .service-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* SERVICE CONTENT */
.service-content {
    margin-bottom: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* SERVICE FEATURES */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-weight: bold;
}

/* CTA BUTTONS */
.service-cta {
    margin-top: auto;
}

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.service-card.featured .cta-button {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.service-card.featured .cta-button:hover {
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* BOTTOM CTA SECTION */
.services-bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.services-bottom-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.services-bottom-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.main-cta-button {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 15px;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.main-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.main-cta-button:hover::before {
    left: 100%;
}

.main-cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

/* ===== AI PREMIUM CARD STYLES - EVIDENZIATA ===== */
.service-card.ai-premium {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(74, 158, 255, 0.5);
    min-height: 320px;
    position: relative;
    overflow: visible;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.4),
        0 0 60px rgba(74, 158, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card.ai-premium::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #4a9eff, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: ai-rainbow-border 4s ease infinite;
    opacity: 0.8;
}

.service-card.ai-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: ai-pulse-glow 3s ease-in-out infinite;
}

@keyframes ai-rainbow-border {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 100% 50%;
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 100% 100%;
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 0% 100%;
        filter: hue-rotate(270deg);
    }
}

@keyframes ai-pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes ai-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-icon {
    background: linear-gradient(135deg, #4a9eff, #8b5cf6) !important;
    color: white !important;
    width: 80px !important;
    height: 80px !important;
    font-size: 2rem !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(74, 158, 255, 0.6),
        0 0 40px rgba(74, 158, 255, 0.4),
        0 10px 30px rgba(74, 158, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: ai-icon-pulse 2s ease-in-out infinite;
}

.ai-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: ai-icon-border 3s linear infinite;
}

@keyframes ai-icon-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(74, 158, 255, 0.6),
            0 0 40px rgba(74, 158, 255, 0.4),
            0 10px 30px rgba(74, 158, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 25px rgba(74, 158, 255, 0.8),
            0 0 50px rgba(74, 158, 255, 0.6),
            0 15px 35px rgba(74, 158, 255, 0.5);
    }
}

@keyframes ai-icon-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: ai-icon-shine 2s linear infinite;
}

@keyframes ai-icon-shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card.ai-premium .service-content h3 {
    color: #4a9eff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-shadow: 
        0 0 10px rgba(74, 158, 255, 0.6),
        0 0 20px rgba(74, 158, 255, 0.4),
        0 0 30px rgba(74, 158, 255, 0.2);
    position: relative;
    animation: ai-title-glow 2s ease-in-out infinite alternate;
}

@keyframes ai-title-glow {
    0% { 
        text-shadow: 
            0 0 10px rgba(74, 158, 255, 0.6),
            0 0 20px rgba(74, 158, 255, 0.4),
            0 0 30px rgba(74, 158, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(74, 158, 255, 0.8),
            0 0 25px rgba(74, 158, 255, 0.6),
            0 0 35px rgba(74, 158, 255, 0.4);
    }
}

.service-card.ai-premium .service-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-card.ai-premium:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 
        0 0 40px rgba(74, 158, 255, 0.6),
        0 0 80px rgba(74, 158, 255, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.4);
    animation: ai-hover-pulse 0.5s ease;
}

@keyframes ai-hover-pulse {
    0% { transform: scale(1.05) translateY(0); }
    50% { transform: scale(1.1) translateY(-10px); }
    100% { transform: scale(1.08) translateY(-15px); }
}

/* ===== EFFETTI PARTICELLE AI ===== */
.service-card.ai-premium {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(74, 158, 255, 0.5);
    min-height: 320px;
    position: relative;
    overflow: visible;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.4),
        0 0 60px rgba(74, 158, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card.ai-premium::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #4a9eff, #8b5cf6, #06b6d4, #10b981, #f59e0b, #ef4444);
    background-size: 400% 400%;
    border-radius: 22px;
    z-index: -1;
    animation: ai-rainbow-border 4s ease infinite;
    opacity: 0.8;
}

.service-card.ai-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: -2;
    animation: ai-pulse-glow 3s ease-in-out infinite;
}

@keyframes ai-rainbow-border {
    0%, 100% { 
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    25% { 
        background-position: 100% 50%;
        filter: hue-rotate(90deg);
    }
    50% { 
        background-position: 100% 100%;
        filter: hue-rotate(180deg);
    }
    75% { 
        background-position: 0% 100%;
        filter: hue-rotate(270deg);
    }
}

@keyframes ai-pulse-glow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes ai-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-icon {
    background: linear-gradient(135deg, #4a9eff, #8b5cf6) !important;
    color: white !important;
    width: 80px !important;
    height: 80px !important;
    font-size: 2rem !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1.5rem !important;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(74, 158, 255, 0.6),
        0 0 40px rgba(74, 158, 255, 0.4),
        0 10px 30px rgba(74, 158, 255, 0.4) !important;
    transition: all 0.3s ease !important;
    animation: ai-icon-pulse 2s ease-in-out infinite;
}

.ai-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4a9eff, #8b5cf6, #06b6d4, #10b981);
    background-size: 300% 300%;
    border-radius: 22px;
    z-index: -1;
    animation: ai-icon-border 3s linear infinite;
}

@keyframes ai-icon-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(74, 158, 255, 0.6),
            0 0 40px rgba(74, 158, 255, 0.4),
            0 10px 30px rgba(74, 158, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 25px rgba(74, 158, 255, 0.8),
            0 0 50px rgba(74, 158, 255, 0.6),
            0 15px 35px rgba(74, 158, 255, 0.5);
    }
}

@keyframes ai-icon-border {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: ai-icon-shine 2s linear infinite;
}

@keyframes ai-icon-shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card.ai-premium .service-content h3 {
    color: #4a9eff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    text-shadow: 
        0 0 10px rgba(74, 158, 255, 0.6),
        0 0 20px rgba(74, 158, 255, 0.4),
        0 0 30px rgba(74, 158, 255, 0.2);
    position: relative;
    animation: ai-title-glow 2s ease-in-out infinite alternate;
}

@keyframes ai-title-glow {
    0% { 
        text-shadow: 
            0 0 10px rgba(74, 158, 255, 0.6),
            0 0 20px rgba(74, 158, 255, 0.4),
            0 0 30px rgba(74, 158, 255, 0.2);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(74, 158, 255, 0.8),
            0 0 25px rgba(74, 158, 255, 0.6),
            0 0 35px rgba(74, 158, 255, 0.4);
    }
}

.service-card.ai-premium .service-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.service-card.ai-premium:hover {
    transform: scale(1.08) translateY(-15px);
    box-shadow: 
        0 0 40px rgba(74, 158, 255, 0.6),
        0 0 80px rgba(74, 158, 255, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.4);
    animation: ai-hover-pulse 0.5s ease;
}

@keyframes ai-hover-pulse {
    0% { transform: scale(1.05) translateY(0); }
    50% { transform: scale(1.1) translateY(-10px); }
    100% { transform: scale(1.08) translateY(-15px); }
}

/* ===== EFFETTI PARTICELLE AI ===== */
.service-card.ai-premium {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(74, 158, 255, 0.5);
    min-height: 320px;
    position: relative;
    overflow: visible;
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(74, 158, 255, 0.4),
        0 0 60px rgba(74, 158, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== EFFETTO BRILLANTEZZA AL HOVER ===== */
.service-card.ai-premium:hover .ai-icon {
    animation: ai-icon-sparkle 0.6s ease;
}

@keyframes ai-icon-sparkle {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.3) saturate(1.2);
        transform: scale(1.1) rotate(5deg);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .services-modern {
        padding: 5rem 0;
    }
    
    .services-container {
        padding: 0 1rem;
    }
    
    .services-title {
        font-size: 1.7rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-card.featured {
        transform: none;
    }
    
    .service-card.ai-premium {
        transform: scale(1.02);
        min-height: 280px;
    }
    
    .service-card.ai-premium:hover {
        transform: scale(1.05) translateY(-10px);
    }
    
    .ai-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    .services-bottom-cta {
        padding: 2rem;
    }
    
    .services-bottom-cta h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 1.4rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-content h3 {
        font-size: 1.3rem;
    }
}

/* ANIMAZIONI */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card.ai-premium:hover .ai-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Inverted background for Services (mirror of About) */
/* Ensures this gradient wins over earlier definitions in this file or others */
html body #services.services-modern {
    background: linear-gradient(45deg,
        #1e293b 0%,
        #334155 25%,
        #475569 50%,
        #334155 75%,
        #1f2937 100%) !important;
}
