/**
 * Service Cards Styles
 * Styles for service cards section with mascot illustrations on homepage
 */

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Service card container */
.service-card {
    position: relative;
    cursor: pointer;
    overflow: visible;
    height: 100%;
}

.service-card .card {
    position: relative;
    padding: 1.5rem;
    padding-top: 2.5rem;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    overflow: visible !important;
}

.service-card .card-content {
    position: relative;
    text-align: left;
    flex: 1;
    max-width: 70%;
    padding-right: 1rem;
    z-index: 1;
}

.service-card .card-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.service-card .card-content p {
    font-size: 0.8125rem;
    color: #6B7280;
    line-height: 1.4;
}

.service-card .mascot-image {
    position: absolute;
    right: -0.5rem;
    top: -30px;
    width: 140px;
    height: 140px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    z-index: 2;
}

.service-card:hover .mascot-image {
    transform: scale(1.08);
}

/* Small devices (576px and up) */
@media (min-width: 576px) {
    .service-card .card {
        min-height: 170px;
    }
    
    .service-card .card-content h3 {
        font-size: 1.25rem;
    }
    
    .service-card .card-content p {
        font-size: 0.875rem;
    }
    
    .service-card .mascot-image {
        width: 150px;
        height: 150px;
        top: -35px;
        right: 0;
    }
}

/* Medium devices (768px and up) */
@media (min-width: 768px) {
    .service-card .card {
        padding: 1.75rem;
        padding-top: 3rem;
        min-height: 180px;
    }
    
    .service-card .card-content {
        max-width: 70%;
    }
    
    .service-card .card-content h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card .card-content p {
        font-size: 0.9375rem;
    }
    
    .service-card .mascot-image {
        width: 165px;
        height: 165px;
        top: -40px;
        right: 0.25rem;
    }
}

/* Large devices (992px and up) */
@media (min-width: 992px) {
    .service-card .card {
        padding: 2rem;
        padding-top: 3.5rem;
        min-height: 190px;
    }
    
    .service-card .card-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }
    
    .service-card .card-content p {
        font-size: 1rem;
    }
    
    .service-card .mascot-image {
        width: 180px;
        height: 180px;
        top: -45px;
        right: 0.5rem;
    }
}

/* Extra large devices (1200px and up) */
@media (min-width: 1200px) {
    .service-card .mascot-image {
        width: 190px;
        height: 190px;
        top: -48px;
        right: 0.75rem;
    }
}
