/* Modern Service Cards - Full Background Image with Overlay Text */

.staff-member {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Perfect square */
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.staff-member .card {
    position: relative;
    height: 100%;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

/* Full background service image */
.service-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.staff-member:hover .service-image {
    transform: scale(1.1);
}

/* Dark gradient overlay at bottom for text readability */
.service-text-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    z-index: 2;
    transition: all 0.3s ease;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.service-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 5px 0 0 0;
    font-weight: 400;
}

/* Hover effect - enhance shadow and lift */
.staff-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.staff-member:hover .service-text-overlay {
    background: linear-gradient(to top, rgba(101, 37, 138, 0.9) 0%, rgba(101, 37, 138, 0.5) 70%, transparent 100%);
}

/* Hide the old overlay */
.staff-member .overlay {
    display: none;
}

/* Remove default card styling */
.staff-member .card-body {
    display: none;
}

/* Portfolio and Laptop Cards - Same styling */
.portfolio-modern-card,
.laptop-modern-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Perfect square */
    overflow: hidden;
    border-radius: 16px;
    transition: all 0.4s ease;
    text-decoration: none;
}

.portfolio-modern-card .card,
.laptop-modern-card .card {
    position: relative;
    height: 100%;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1a;
}

.portfolio-modern-card:hover,
.laptop-modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-modern-card:hover .service-text-overlay,
.laptop-modern-card:hover .service-text-overlay {
    background: linear-gradient(to top, rgba(101, 37, 138, 0.9) 0%, rgba(101, 37, 138, 0.5) 70%, transparent 100%);
}

.portfolio-modern-card:hover .service-image,
.laptop-modern-card:hover .service-image {
    transform: scale(1.1);
}