/* ============================================
   PC GILMORE - Floating Computer Icons Background
   Abstract animated background with tech icons
   ============================================ */


/* Container for floating icons */

.floating-icons-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.4;
}


/* Hero-specific floating icons (higher opacity) */

.hero-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.6;
}


/* Individual floating icon */

.floating-icon {
    position: absolute;
    color: var(--primary-color, #8B1A1A);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.floating-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Different icon sizes */

.floating-icon--xs {
    width: 30px;
    height: 30px;
}

.floating-icon--sm {
    width: 50px;
    height: 50px;
}

.floating-icon--md {
    width: 80px;
    height: 80px;
}

.floating-icon--lg {
    width: 120px;
    height: 120px;
}

.floating-icon--xl {
    width: 180px;
    height: 180px;
}


/* Position variants */

.floating-icon:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-icon:nth-child(2) {
    top: 20%;
    left: 15%;
    animation-delay: 2s;
    animation-duration: 30s;
}

.floating-icon:nth-child(3) {
    top: 60%;
    left: 8%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.floating-icon:nth-child(4) {
    top: 80%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 28s;
}

.floating-icon:nth-child(5) {
    top: 15%;
    left: 40%;
    animation-delay: 3s;
    animation-duration: 26s;
}

.floating-icon:nth-child(6) {
    top: 70%;
    left: 35%;
    animation-delay: 5s;
    animation-duration: 24s;
}

.floating-icon:nth-child(7) {
    top: 30%;
    left: 60%;
    animation-delay: 2.5s;
    animation-duration: 32s;
}

.floating-icon:nth-child(8) {
    top: 85%;
    left: 55%;
    animation-delay: 1.5s;
    animation-duration: 27s;
}

.floating-icon:nth-child(9) {
    top: 5%;
    left: 75%;
    animation-delay: 4.5s;
    animation-duration: 29s;
}

.floating-icon:nth-child(10) {
    top: 45%;
    left: 80%;
    animation-delay: 0.5s;
    animation-duration: 23s;
}

.floating-icon:nth-child(11) {
    top: 75%;
    left: 70%;
    animation-delay: 3.5s;
    animation-duration: 31s;
}

.floating-icon:nth-child(12) {
    top: 25%;
    left: 90%;
    animation-delay: 6s;
    animation-duration: 25s;
}

.floating-icon:nth-child(13) {
    top: 55%;
    left: 92%;
    animation-delay: 2s;
    animation-duration: 28s;
}

.floating-icon:nth-child(14) {
    top: 90%;
    left: 85%;
    animation-delay: 5.5s;
    animation-duration: 24s;
}

.floating-icon:nth-child(15) {
    top: 40%;
    left: 25%;
    animation-delay: 7s;
    animation-duration: 26s;
}


/* Float animation - gentle up/down with slight rotation */

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-30px) rotate(5deg) scale(1.05);
    }
    50% {
        transform: translateY(-15px) rotate(-3deg) scale(0.95);
    }
    75% {
        transform: translateY(-40px) rotate(8deg) scale(1.02);
    }
}


/* Alternative float pattern for variety */

@keyframes float-alt {
    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-25px) translateX(15px) rotate(-5deg);
    }
    66% {
        transform: translateY(-35px) translateX(-10px) rotate(3deg);
    }
}

.floating-icon--alt {
    animation-name: float-alt;
}


/* Pulse animation for some icons */

@keyframes pulse-glow {
    0%,
    100% {
        opacity: 0.1;
        filter: drop-shadow(0 0 5px currentColor);
    }
    50% {
        opacity: 0.25;
        filter: drop-shadow(0 0 20px currentColor);
    }
}

.floating-icon--pulse {
    animation: float 20s infinite ease-in-out, pulse-glow 4s infinite ease-in-out;
}


/* Abstract gradient orbs */

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orb-float 15s infinite ease-in-out;
}

.gradient-orb--primary {
    background: radial-gradient(circle, rgba(139, 26, 26, 0.4) 0%, transparent 70%);
    width: 400px;
    height: 400px;
}

.gradient-orb--secondary {
    background: radial-gradient(circle, rgba(201, 162, 39, 0.3) 0%, transparent 70%);
    width: 300px;
    height: 300px;
}

.gradient-orb--accent {
    background: radial-gradient(circle, rgba(139, 26, 26, 0.2) 0%, transparent 70%);
    width: 350px;
    height: 350px;
}


/* Orb positions */

.gradient-orb:nth-of-type(1) {
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.gradient-orb:nth-of-type(2) {
    top: 40%;
    right: -10%;
    animation-delay: 5s;
}

.gradient-orb:nth-of-type(3) {
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes orb-float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}


/* Grid pattern overlay */

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(139, 26, 26, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(139, 26, 26, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}


/* Binary rain effect (subtle) */

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.03;
    font-family: monospace;
    font-size: 14px;
    color: var(--primary-color, #8B1A1A);
    pointer-events: none;
}

.binary-column {
    position: absolute;
    top: -100%;
    animation: binary-fall 10s linear infinite;
}

@keyframes binary-fall {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(200%);
    }
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .floating-icons-bg,
    .hero-floating-icons {
        opacity: 0.3;
    }
    .floating-icon--xl,
    .floating-icon--lg {
        display: none;
    }
    .floating-icon--md {
        width: 50px;
        height: 50px;
    }
    .gradient-orb {
        filter: blur(40px);
        opacity: 0.2;
    }
    .gradient-orb--primary,
    .gradient-orb--secondary,
    .gradient-orb--accent {
        width: 200px;
        height: 200px;
    }
}


/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    .floating-icon,
    .gradient-orb,
    .tech-grid,
    .binary-column {
        animation: none;
    }
}


/* Section-specific backgrounds */

.section-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.3;
}


/* Dark section variant */

.floating-icons-bg--dark .floating-icon {
    color: rgba(245, 240, 232, 0.1);
}

.floating-icons-bg--dark .gradient-orb--primary {
    background: radial-gradient(circle, rgba(245, 240, 232, 0.15) 0%, transparent 70%);
}