/* Carousel Section */
/* General section styles */
.nanoengineered-tech {
    text-align: center;
    padding: 50px 20px;
}

.section-title {
    font-size: 2em;
    margin-bottom: 30px;
}

/* Container for the hexagonal items */
.hex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

/* Individual hexagon item */
.hex-item {
    position: relative;
    width: 150px;
    height: 150px;
    background-color: #0072bb;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hexagon text content */
.hex-content h3 {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 1;
    display: flex;
    transition: opacity 0.3s ease;
}

/* Hover effect to show text and shadow */
.hex-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hex-item:hover .hex-content h3 {
    opacity: 1;
}

.hex-item .hex-content.show {
    display: block; /* This makes the text visible */
}

/* Optional: Adjust text font size for responsiveness */
@media (max-width: 768px) {
    .hex-item {
        width: 120px;
        height: 120px;
    }

    .hex-content h3 {
        font-size: 14px;
    }
}
