/* premium-hardware.css - Enhanced Hardware Image Cards */

/* 1. Global Card Container Enhancement */
.featured-courses-area .col-md-4 {
    perspective: 1000px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

/* 2. Glassmorphic Card Style */
.hardware-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

/* 3. Image Styling */
.hardware-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

/* 4. Unique Hover Effects */
.hardware-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 25px 50px rgba(40, 167, 69, 0.15); /* Soft Green shadow matching brand */
    border-color: rgba(40, 167, 69, 0.4);
}

.hardware-card:hover img {
    transform: scale(1.1) rotate(2deg);
}

/* 5. Dynamic Title Style */
.hardware-title {
    margin-top: 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #002147;
    font-size: 1.1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    text-transform: capitalize;
}

.hardware-card:hover .hardware-title {
    opacity: 1;
    color: #28a745; /* Brand Green */
    transform: translateY(-2px);
}

/* 6. Unique Response View (Responsive Optimization) */
@media (max-width: 991px) {
    .featured-courses-area .col-md-4 {
        width: 50%; /* Force 2-column on tablets */
        float: left;
    }
}

@media (max-width: 600px) {
    .featured-courses-area .col-md-4 {
        width: 100%; /* Back to 1-column on small phones */
        float: none;
    }
    
    .hardware-card {
        padding: 15px;
        border-radius: 15px;
    }
}

/* Glow Effect */
.hardware-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hardware-card:hover::after {
    opacity: 1;
}
