body {
    margin: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: radial-gradient(circle, #4332E5 0%, #000000 100%);
    -webkit-overflow-scrolling: touch; /* Ensure smooth scrolling on iOS */
}

#globeCanvas {
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Prevent scrollbars */
}

.container {
    position: relative;
    background-color: transparent; /* Change to transparent to show gradient */
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-lights {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

a{
    color: #fff;
}

.githublogo{
    filter: brightness(100);
}

.centered-glass {
    position: absolute;
    top: 45%; /* Adjust top position */
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 8px 16px; /* Adjust padding */
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1rem; /* Make text smaller */
    text-align: center;
    z-index: 15;
    max-width: 90%; /* Make text responsive */
    width: auto;
    margin: 0 5px; /* Add margin to prevent the div from being too narrow on mobile */
}

.logo {
    position: absolute;
    top: calc(45% + 80px); /* Adjust position to be closer to the text */
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50px; /* Make image smaller */
    z-index: 15;
    max-width: 90%; /* Make image responsive */
    width: auto;
}

.centered-glass img {
    margin-top: 10px;
    height: 120px;
}

.contact-info {
    position: fixed; /* Change to fixed to separate from the globe */
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    font-family: 'Syne', sans-serif;
    user-select: text; /* Allow text selection */
    pointer-events: auto; /* Ensure it can be clicked */
    z-index: 20; /* Ensure it is above other elements */
}

.contact-info .subtitle {
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.contact-info .email {
    font-size: 1rem;
}

.contact-info .email a {
    color: #fff;
    text-decoration: none;
}

/* Ensure status bar header color matches the page */
@media (prefers-color-scheme: dark) {
    body {
      background: radial-gradient(circle, #4332E5 0%, #000000 100%);
    }
}

@media (prefers-color-scheme: light) {
    body {
      background: radial-gradient(circle, #4332E5 0%, #000000 100%);
    }
}

/* Ensure visibility on mobile devices */
@media (max-width: 600px) {
    .contact-info {
        bottom: 20px;
        font-size: 0.9rem;
    }

    .contact-info .email a {
        pointer-events: auto;
    }
}

@media (min-width: 601px) {
    .contact-info .email a {
        pointer-events: none;
    }
}

@keyframes popBounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes popBounceOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

.animated-image {
    position: absolute;
    animation: popBounceIn 0.3s ease-in-out, popBounceOut 0.2s ease-in-out 4.3s;
    will-change: transform, opacity; /* Optimize for smoother animations */
    height: calc(60px + (40 * (random() - 0.5))); /* Random size up to 100px */
    border-radius: 50%; /* Make images rounded */
    border: 4px solid rgba(255, 255, 255, 0.5); /* Add semi-transparent border */
}

@media (max-width: 600px) {
    .animated-image {
        display: none; /* Hide images on mobile devices */
    }
}
