:root {
    --orange: #FF6B35;
    --orange-light: #FF8C5A;
    --orange-dark: #E55A2B;
    --blue: #00D4FF;
    --blue-light: #5CE1E8;
    --blue-dark: #0099CC;
    --white: #FFFFFF;
    --dark: #0A1628;
    --gradient-1: linear-gradient(135deg, #0A1628 0%, #1a2d4a 100%);
    --gradient-2: linear-gradient(45deg, #FF6B35 0%, #00D4FF 100%);
    --gradient-3: linear-gradient(180deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.modern-bg {
    background: var(--dark) !important;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modern-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
    overflow: hidden;
}

.modern-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.modern-background::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 48px,
            rgba(0, 212, 255, 0.02) 48px,
            rgba(0, 212, 255, 0.02) 50px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 48px,
            rgba(0, 212, 255, 0.02) 48px,
            rgba(0, 212, 255, 0.02) 50px
        );
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.futuristic-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--blue);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--orange);
    bottom: -50px;
    left: -50px;
    animation-delay: -4s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: var(--blue-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(0, -40px) scale(0.95); }
    75% { transform: translate(-20px, -20px) scale(1.02); }
}

.circle-ring {
    position: absolute;
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 50%;
    animation: ring-pulse 4s ease-out infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -1s;
}

.ring-3 {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes ring-pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.tech-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--blue) 50%, transparent 100%);
    opacity: 0.2;
    animation: line-glow 3s ease-in-out infinite;
}

.line-1 {
    width: 30%;
    top: 20%;
    right: 0;
    animation-delay: 0s;
}

.line-2 {
    width: 40%;
    top: 40%;
    left: 0;
    animation-delay: -1s;
}

.line-3 {
    width: 25%;
    top: 60%;
    right: 0;
    animation-delay: -2s;
}

.line-4 {
    width: 35%;
    top: 80%;
    left: 0;
    animation-delay: -0.5s;
}

@keyframes line-glow {
    0%, 100% { opacity: 0.2; transform: scaleX(1); }
    50% { opacity: 0.4; transform: scaleX(1.1); }
}

.corner-accent {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid transparent;
}

.corner-accent::before,
.corner-accent::after {
    content: '';
    position: absolute;
    background: var(--gradient-2);
}

.corner-top-left {
    top: 30px;
    left: 30px;
    border-top: 2px solid rgba(0, 212, 255, 0.3);
    border-left: 2px solid rgba(0, 212, 255, 0.3);
}

.corner-top-left::before {
    width: 30px;
    height: 2px;
    top: -2px;
    left: -2px;
    background: var(--orange);
}

.corner-top-left::after {
    width: 2px;
    height: 30px;
    top: -2px;
    left: -2px;
    background: var(--orange);
}

.corner-bottom-right {
    bottom: 30px;
    right: 30px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    border-right: 2px solid rgba(0, 212, 255, 0.3);
}

.corner-bottom-right::before {
    width: 30px;
    height: 2px;
    bottom: -2px;
    right: -2px;
    background: var(--blue);
}

.corner-bottom-right::after {
    width: 2px;
    height: 30px;
    bottom: -2px;
    right: -2px;
    background: var(--blue);
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    opacity: 0.5;
    animation: particle-float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: -1s; }
.particle:nth-child(3) { left: 30%; top: 40%; animation-delay: -2s; }
.particle:nth-child(4) { left: 40%; top: 80%; animation-delay: -3s; }
.particle:nth-child(5) { left: 50%; top: 30%; animation-delay: -4s; }
.particle:nth-child(6) { left: 60%; top: 70%; animation-delay: -5s; }
.particle:nth-child(7) { left: 70%; top: 50%; animation-delay: -0.5s; }
.particle:nth-child(8) { left: 80%; top: 10%; animation-delay: -1.5s; }
.particle:nth-child(9) { left: 90%; top: 90%; animation-delay: -2.5s; }
.particle:nth-child(10) { left: 15%; top: 90%; animation-delay: -3.5s; }

@keyframes particle-float {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(-20px); opacity: 0.8; }
}

.glow-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--orange), 0 0 20px var(--orange-light);
    animation: glow-pulse 2s ease-in-out infinite;
}

.glow-dot:nth-child(1) { left: 25%; top: 25%; }
.glow-dot:nth-child(2) { right: 25%; bottom: 25%; animation-delay: -1s; }

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--orange), 0 0 20px var(--orange-light); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px var(--orange), 0 0 40px var(--orange-light); }
}

@media (max-width: 768px) {
    .futuristic-orb {
        opacity: 0.3;
    }
    
    .orb-1 { width: 200px; height: 200px; }
    .orb-2 { width: 150px; height: 150px; }
    .orb-3 { width: 100px; height: 100px; }
    
    .circle-ring {
        display: none;
    }
    
    .tech-line {
        opacity: 0.1;
    }
    
    .corner-accent {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .particle {
        width: 3px;
        height: 3px;
    }
}
