@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;500;700&display=swap');

.tech-section {
    padding: 50px 20px;
    text-align: center;
    color: white;
}

/* Layout */
.tech-container {
    display: flex;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}

.tech-section-title{
    font-size: 2.5rem;
color: #003b4d;
margin-bottom: 2rem;

}

/* Left Side - Description Box */
.tech-description-box {
    flex: 1;
    background: #F9F9F9;
    padding: 30px;
    border-radius: 10px;
    color: white;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    text-align: left;
    height: 450px;
    overflow: auto;
    overflow-x: hidden;
}

.tech-description-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: black;
}

.tech-description-box p {
    font-size: 16px;
    color: black;
}

/* Right Side - Card Layout */
.tech-card-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    width: 48%;
    min-height: 150px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.tech-card:hover,
.tech-card.active {
    /* transform: scale(1.05); */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tech-card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s;
}

.tech-card:hover .tech-card-image {
    transform: scale(1.1);
}

.tech-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 59, 77, 0.6);
    transition: background-color 0.3s;
}

.tech-card-title {
    font-size: 16px;
    color: white;
    padding: 15px;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .tech-card:hover,
    .tech-card.active {
        transform: none;
        box-shadow: none;
    }
.tech-description-box{
    display: none;
}
    .tech-card.active {
        /*Example styling to show active state*/
        border:none;
    }

    .tech-card:hover .tech-card-image {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tech-container {
        flex-direction: column;
    }

    .tech-section-title{
        font-size: 1em;
    color: #003b4d;
    margin-bottom: 2rem;
    
    }

    .tech-card-container {
        justify-content: center;
    }

    .tech-card {
        width: 100%;
    }
}
