/* styles.css */

/* Your existing CSS goes here */

body {
    background-color: #000000;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(15px);
    z-index: 1;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.apps {
    display: flex;
    flex-direction: row; /* Icons are displayed horizontally by default */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 3;
}

.app {
    margin: 9px;
    transition: transform 0.3s;
    position: relative;
    width: 100px;
    height: 100px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    z-index: 4;
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 25%;
    z-index: 5;
}

.title-box {
    position: absolute;
    top: 110%; /* Move the title box just below the icon */
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    white-space: nowrap;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 6; /* Ensure title boxes are above the icons */
}

.app:hover .title-box {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    z-index: 7; /* Bring the hover box to the front */
}

@media screen and (max-width: 600px) {
    body {
        flex-direction: column;
        overflow: auto;
    }

    .app {
        width: 70px;
        height: 70px;
        margin: 20px;
    }

    .app-icon {
        width: 70px;
        height: 70px;
        border-radius: 25%;
        z-index: 5;
    }

    .apps {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .title-box {
        top: 110%; /* Adjust for smaller icons */
        padding: 3px 6px; /* Adjust padding for smaller icons */
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply the animations with a delay for each icon */
.app:nth-child(1),
.app:nth-child(9) {
    animation-delay: 0.1s;
}

.app:nth-child(2),
.app:nth-child(10) {
    animation-delay: 0.2s;
}

.app:nth-child(3),
.app:nth-child(11) {
    animation-delay: 0.3s;
}

.app:nth-child(4),
.app:nth-child(12) {
    animation-delay: 0.4s;
}

.app:nth-child(5),
.app:nth-child(13) {
    animation-delay: 0.5s;
}

.app:nth-child(6),
.app:nth-child(14) {
    animation-delay: 0.6s;
}

.app:nth-child(7),
.app:nth-child(15) {
    animation-delay: 0.7s;
}

.app:nth-child(8),
.app:nth-child(16) {
    animation-delay: 0.8s;
}

/* Styles for footer buttons */
.footer-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px; /* Space between buttons */
    z-index: 10; /* Ensure the buttons are on top */
}

.footer-button {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.footer-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Styles for footer text */
.footer-text {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-decoration: none;
    z-index: 10;
}

.footer-text:hover {
    text-decoration: underline;
}
