/* animation.css */

:root {
    --dot-size: 4px;
    --dot-spacing: 10px;
    --dot-color: rgba(88, 88, 88, 0.507);
}

/* Dot Pattern Background with Gradient Mask */
.dot-pattern-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dot-pattern-overlay {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--dot-color) var(--dot-size), transparent var(--dot-spacing));
    background-size: var(--dot-spacing) var(--dot-spacing);
    mask-image: linear-gradient(to bottom right, white, transparent, transparent);
    -webkit-mask-image: linear-gradient(to bottom right, white, transparent, transparent);
    opacity: 0.8;
}

/* Background Text Styling */
.text-overlay {
    position: relative;
    font-size: 5rem;
    font-weight: 500;
    color: #ffffff;
    z-index: 1;
    text-align: center;
    opacity: 0;
    animation: fadeIn var(--fadeDuration) ease forwards;
}

/* Fade-in animation for background text */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
