/* Particle Network Background styles */

/* Ensure the main-content has proper positioning for the canvas */
.main-content {
    position: relative;
    overflow: hidden;
    /* Prevent particles from causing scrollbars */
    z-index: 1;
    /* Ensure content appears above background */
}

/* Add a gradient background behind the particles */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(45, 45, 46, 0.9) 0%,
            rgba(10, 10, 10, 0.95) 100%);
    z-index: -2;
}

/* Ensure text content has proper contrast against the background */
.greeting,
.tagline,
.cta-button {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* Add a subtle glow to the profile pic */
.profile-pic {
    position: relative;
    z-index: 2;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* Ensure the canvas maintains proper positioning - Only visible on desktop */
.main-content canvas {
    pointer-events: none;
    /* Allows clicking through the canvas */
    display: none;
    /* Hide by default */
}

/* Only show the canvas on desktop screens */
@media (min-width: 992px) {
    .main-content canvas {
        display: block;
    }
}

/* Enhance the CTA button with a glowing effect on hover */
.cta-button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.cta-button:hover .arrow {
    animation: arrow-animation 1s infinite;
}

@keyframes arrow-animation {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}