.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -30;
    background: linear-gradient(145deg, #f0f7ff 0%, #e6f0fa 50%, #d9e6f5 100%);
    overflow: hidden;
}

.gear {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 119, 190, 0.15);
    animation: rotate var(--duration, 20s) linear infinite;
}

.gear::before,
.gear::after {
    content: '';
    position: absolute;
    background: rgba(0, 119, 190, 0.1);
    border-radius: 50%;
}

.gear::before {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border: 1px dashed rgba(0, 119, 190, 0.2);
}

.gear::after {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border: 1px solid rgba(0, 119, 190, 0.25);
}

.gear-1 { width: 500px; height: 500px; top: -150px; right: -100px; --duration: 30s; }
.gear-2 { width: 300px; height: 300px; bottom: 50px; left: -50px; --duration: 20s; animation-direction: reverse; }
.gear-3 { width: 200px; height: 200px; top: 40%; left: 20%; --duration: 15s; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.tech-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 119, 190, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 119, 190, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridPulse 4s ease-in-out infinite alternate;
}

@keyframes gridPulse {
    0% { opacity: 0.2; background-size: 40px 40px; }
    100% { opacity: 0.5; background-size: 45px 45px; }
}

.floating-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid rgba(0, 119, 190, 0.15);
    opacity: 0.4;
    animation: floatTriangle var(--duration, 15s) infinite alternate ease-in-out;
}

@keyframes floatTriangle {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.2; }
    100% { transform: translate(40px, -30px) rotate(15deg); opacity: 0.5; }
}

.triangle-1 { top: 15%; left: 10%; --duration: 18s; }
.triangle-2 { bottom: 20%; right: 15%; --duration: 22s; animation-delay: 2s; }
.triangle-3 { top: 60%; left: 70%; --duration: 20s; animation-delay: 4s; }

.floating-square {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 119, 190, 0.2);
    background: rgba(0, 119, 190, 0.05);
    transform: rotate(45deg);
    animation: floatSquare var(--duration, 12s) infinite alternate ease-in-out;
}

@keyframes floatSquare {
    0% { transform: rotate(45deg) scale(1); opacity: 0.2; }
    100% { transform: rotate(90deg) scale(1.3); opacity: 0.5; }
}

.square-1 { top: 25%; right: 20%; --duration: 14s; }
.square-2 { bottom: 30%; left: 25%; --duration: 16s; animation-delay: 3s; }
.square-3 { top: 70%; left: 40%; --duration: 18s; animation-delay: 5s; }

.floating-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 119, 190, 0.2);
    background: rgba(0, 119, 190, 0.05);
    animation: floatCircle var(--duration, 10s) infinite alternate ease-in-out;
}

@keyframes floatCircle {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.4); opacity: 0.5; }
}

.circle-1 { width: 60px; height: 60px; top: 40%; right: 30%; --duration: 12s; }
.circle-2 { width: 40px; height: 40px; bottom: 15%; right: 40%; --duration: 15s; animation-delay: 2s; }
.circle-3 { width: 80px; height: 80px; top: 10%; left: 30%; --duration: 18s; animation-delay: 4s; }

.digital-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    overflow: hidden;
    opacity: 0.1;
    pointer-events: none;
}

.rain-column {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #0077be, transparent);
    animation: rain 3s linear infinite;
}

@keyframes rain {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.tech-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #0077be;
    border-radius: 50%;
    box-shadow: 0 0 15px #0077be;
    animation: floatParticle var(--duration, 10s) infinite alternate;
    pointer-events: none;
}

@keyframes floatParticle {
    0% { transform: translate(0, 0) scale(1); opacity: 0.2; }
    100% { transform: translate(50px, -30px) scale(1.5); opacity: 0.8; }
}

@keyframes fadeScale {
    0% { opacity: 0; transform: scale(0.98) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.animate-in {
    opacity: 0;
    animation: fadeScale 0.8s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.hover-scale {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-scale:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 119, 190, 0.15);
    z-index: 10;
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(0, 119, 190, 0.5);
    transform: translateY(-3px);
}

input, textarea {
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    transform: scale(1.02);
    outline: none;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0077be;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #005a8c;
}

.text-balance {
    text-wrap: balance;
}

.will-change-transform {
    will-change: transform;
}
