body {
    background: #040D12;
    font-family: Arial, sans-serif;
    color: #fff;
}

/* Hero Section */
.top-section {
    position: relative;
    width: 100%;
    height: 50vh; /* 50% of viewport height */
    overflow: hidden;
}

/* Image Styling */
.top-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Keeps image proportional */
}

/* Overlay Content */
.top-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}


/* Card Link Reset */
.solution-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Wrapper to hold card + description */
.solution-card-wrapper {
    position: relative;
}

/* Card */
.solution-card {
    background: #040d12;
    border: 1px solid #183D3D;
    padding: 70px 30px;   /* Increased padding */
    text-align: center;
    position: relative;
    transition: 0.4s ease;
    min-height: 300px;    /* Increased min-height */
}

/* Bottom Cyan Line */
.solution-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: #5c8374;
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s ease;
}

/* Icon */
.icons {
    font-size: 60px;       /* Increased icon size */
    color: #5c8374;
    margin-bottom: 25px;
    transition: 0.3s ease;
}

/* Title */
.solution-card h6 {
    color: #ddd;
    line-height: 1.6;
    font-size: 18px;       /* Increased font size */
}

/* Description Box */
.solution-desc {
    background: #040D12;
    border: 1px solid #183D3D;
    padding: 25px;         /* Slightly larger padding */
    margin-top: 15px;
    color: #ccc;
    font-size: 15px;       /* Increased font size */
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    border-radius: 5px;
}

/* Hover Effects */
.solution-card-wrapper:hover .solution-card {
    max-height: 300px;      /* Increased max height */
    opacity: 1;
}

.solution-card-wrapper:hover .solution-card::after {
    transform: scaleX(1);
}

.solution-card-wrapper:hover .icons {
    transform: scale(1.15);
}

.solution-card-wrapper:hover .solution-desc {
    max-height: 250px; /* Large description box */
    opacity: 1;
}

/* ---------------- RESPONSIVE ---------------- */

/* 992px */
@media (max-width: 992px) {
    .solutions-title {
        font-size: 30px;
    }
    .solution-desc {
        font-size: 13px;
    }
}

/* 768px */
@media (max-width: 768px) {
    .top-content h1 {
        font-size: 24px;
    }
    .top-content p {
        font-size: 14px;
    }
    
    .solutions-title {
        font-size: 26px;
    }

    .solution-card {
        padding: 40px 15px;
        min-height: 200px;
    }

    .solution-desc {
        font-size: 12px;
        max-height: 220px;
    }
    
}

/* 480px */
@media (max-width: 480px) {
    .solutions-title {
        font-size: 22px;
    }

    .solution-card {
        padding: 35px 15px;
    }

    .solution-card h6 {
        font-size: 14px;
    }

    .solution-desc {
        font-size: 12px;
        max-height: 200px;
    }
}
