
/* Floating squares container */
.floating-squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: contrast(1.2) brightness(1.1);
}

/* Base square styles */
.square {
    position: absolute;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 0;
    opacity: 0;
    animation: floatAndFade 8s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Individual square variations */
.square-1 {
    width: 8px;
    height: 8px;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.square-2 {
    width: 12px;
    height: 12px;
    top: 25%;
    left: 80%;
    animation-delay: 1.5s;
    animation-duration: 10s;
}

.square-3 {
    width: 6px;
    height: 6px;
    top: 45%;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 14s;
}

.square-4 {
    width: 10px;
    height: 10px;
    top: 65%;
    left: 70%;
    animation-delay: 4.5s;
    animation-duration: 11s;
}

.square-5 {
    width: 14px;
    height: 14px;
    top: 35%;
    left: 60%;
    animation-delay: 6s;
    animation-duration: 13s;
}

.square-6 {
    width: 7px;
    height: 7px;
    top: 75%;
    left: 30%;
    animation-delay: 7.5s;
    animation-duration: 9s;
}

.square-7 {
    width: 11px;
    height: 11px;
    top: 85%;
    left: 85%;
    animation-delay: 9s;
    animation-duration: 15s;
}

.square-8 {
    width: 9px;
    height: 9px;
    top: 55%;
    left: 40%;
    animation-delay: 10.5s;
    animation-duration: 12s;
}

.square-9 {
    width: 13px;
    height: 13px;
    top: 5%;
    left: 50%;
    animation-delay: 12s;
    animation-duration: 11s;
}

.square-10 {
    width: 5px;
    height: 5px;
    top: 95%;
    left: 15%;
    animation-delay: 13.5s;
    animation-duration: 16s;
}

/* Floating animation */
@keyframes floatAndFade {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(0deg) scale(0.8);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }
    10% {
        opacity: 1;
        transform: translateY(0px) rotate(45deg) scale(1);
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    }
    20% {
        opacity: 0.9;
        transform: translateY(-10px) rotate(90deg) scale(1.1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    }
    30% {
        opacity: 0.7;
        transform: translateY(-5px) rotate(135deg) scale(1);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    40% {
        opacity: 0.5;
        transform: translateY(-15px) rotate(180deg) scale(0.9);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    }
    50% {
        opacity: 0.3;
        transform: translateY(-20px) rotate(225deg) scale(0.8);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    60% {
        opacity: 0.1;
        transform: translateY(-25px) rotate(270deg) scale(0.7);
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.05);
    }
    70% {
        opacity: 0;
        transform: translateY(-30px) rotate(315deg) scale(0.6);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.02);
    }
    80% {
        opacity: 0;
        transform: translateY(-35px) rotate(360deg) scale(0.5);
        box-shadow: 0 0 1px rgba(255, 255, 255, 0.01);
    }
    90% {
        opacity: 0;
        transform: translateY(-40px) rotate(405deg) scale(0.4);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    100% {
        opacity: 0;
        transform: translateY(-45px) rotate(450deg) scale(0.3);
        box-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
}

/* Cutting edge effects */
.square::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    z-index: -1;
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 1px); }
}

/* All squares are now strictly black with white borders */
.square-3, .square-7 {
    background: #000000;
    /* border: 1px solid #ffffff; */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.square-5, .square-9 {
    background: #000000;
    /* border: 1px solid #ffffff; */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}