/* General Styling */
body {
    margin: 0;
    padding: 0;
    font-family: "Verdana", sans-serif;
    background: url('../assets/background-img.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    display: flex;
    flex-direction: column;
    height: 100vh; 
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Header */
header {
    flex-shrink: 0; /* Keep header fixed height */
}

/* Footer */
footer {
    flex-shrink: 0; /* Keep footer fixed height */
}

.icon-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    grid-auto-rows: 1fr; 
    gap: 10%; 
    padding: 20px; 
    padding-top: 70px;
    box-sizing: border-box; 
    height: calc(100vh - 120px); 
    width: 100%; 
}



/* Icon Styling */
.icon {
    text-align: center;
    width: 100%; 
    max-width: 120px; 
    height: auto; 
    cursor: pointer;
    
}

.icon img {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    display: block;
}

.icon span {
    display: block;
    font-size: 12px;
    color: #000;
    margin-top: 15px;
    text-decoration: none;
    

}

.icon:hover span {
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    
}

.icon a {
    text-decoration: none !important; 


/* Tooltip Styling */
.icon::after {
    content: attr(data-hover);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    z-index: 10;
}

.icon:hover::after {
    opacity: 1;
}

.icon:hover img {
    transform: scale(1.1);

}



/* Responsive Adjustments */
@media (max-width: 600px) {
    .icon-container {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); 
        gap: 15px; 
    }

    .icon img {
        width: 48px;
        height: 48px;
        margin: 0 auto;
        display: block;
        transition: transform 0.3s ease;
    }

    .icon:hover img {
        transform: scale(1.2); 
        filter: brightness(1.3); 
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
        
    }

    .icon span {
        font-size: 10px;
    }

    .icon::after {
        font-size: 9px;
    }
}
}