/* ============================================
   ANTIGRAVITY-STYLE BACKGROUND ANIMATION
   Floating particles with organic movement
   ============================================ */

/* Base background setup for dark theme pages */
.dark-page {
    background: #0a0a12;
    color: #f0f0f5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient orbs */
.orb-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

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

/* Orange orbs */
.orb-orange-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.5) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    --duration: 20s;
    --delay: 0s;
}

.orb-orange-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);
    bottom: 20%;
    right: -50px;
    --duration: 25s;
    --delay: -5s;
}

/* Cyan orbs */
.orb-cyan-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.4) 0%, transparent 70%);
    top: 40%;
    right: 10%;
    --duration: 22s;
    --delay: -8s;
}

.orb-cyan-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.3) 0%, transparent 70%);
    bottom: -50px;
    left: 30%;
    --duration: 18s;
    --delay: -12s;
}

/* Purple/pink accent orbs */
.orb-accent-1 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    top: 60%;
    left: 10%;
    --duration: 24s;
    --delay: -3s;
}

.orb-accent-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    top: 10%;
    right: 30%;
    --duration: 19s;
    --delay: -10s;
}

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

/* Particle system */
.particles-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particle-float var(--duration) linear infinite;
    animation-delay: var(--delay);
    left: var(--x);
    top: var(--y);
}

.particle.glow {
    box-shadow: 0 0 6px rgba(255, 107, 53, 0.5);
    background: rgba(255, 107, 53, 0.6);
}

.particle.cyan {
    box-shadow: 0 0 6px rgba(8, 145, 178, 0.5);
    background: rgba(8, 145, 178, 0.6);
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Subtle grid overlay */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 2;
}

/* Floating lines/decorative elements */
.float-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
    animation: line-drift var(--duration) ease-in-out infinite;
    animation-delay: var(--delay);
}

.float-line-1 {
    width: 200px;
    top: 30%;
    left: 10%;
    --duration: 15s;
    --delay: 0s;
}

.float-line-2 {
    width: 150px;
    top: 70%;
    right: 20%;
    --duration: 18s;
    --delay: -5s;
}

.float-line-3 {
    width: 100px;
    top: 50%;
    left: 60%;
    --duration: 12s;
    --delay: -8s;
}

@keyframes line-drift {
    0%, 100% {
        transform: translateX(0) rotate(var(--rotation, 0deg));
        opacity: 0.3;
    }
    50% {
        transform: translateX(50px) rotate(calc(var(--rotation, 0deg) + 5deg));
        opacity: 0.6;
    }
}

/* Content wrapper to sit above animations */
.dark-content {
    position: relative;
    z-index: 10;
}

/* Dark theme navigation - consistent with homepage */
.dark-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 18, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dark-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.dark-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #f0f0f5;
}

.dark-brand span {
    font-family: 'Orbitron', monospace;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dark-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.dark-nav-links a {
    color: rgba(240, 240, 245, 0.5);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
}

.dark-nav-links a:hover {
    color: #f0f0f5;
}

.dark-nav-links a.active {
    color: #ff6b35;
    font-weight: 700;
}

/* Dark theme buttons - consistent with homepage */
.btn-dark-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #ff6b35, #e05520);
    color: #fff;
    border: none;
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.3), 0 0 0 1px rgba(255, 107, 53, 0.1);
    cursor: pointer;
}

.btn-dark-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.btn-dark-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Orbitron', monospace;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(240, 240, 245, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.btn-dark-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-dark-sm {
    padding: 8px 20px;
    font-size: 0.7rem;
    border-radius: 8px;
}

/* Dark theme cards */
.dark-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px 28px;
    transition: all 0.3s ease;
}

.dark-card:hover {
    border-color: rgba(255, 107, 53, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Dark theme section headers */
.dark-section-label {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.08);
    border: 1px solid rgba(8, 145, 178, 0.15);
    color: #0891b2;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.dark-section-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #f0f0f5;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.dark-section-sub {
    font-size: 0.95rem;
    color: rgba(240, 240, 245, 0.45);
    max-width: 540px;
    line-height: 1.8;
    margin-bottom: 48px;
}

/* Dark theme footer */
.dark-footer {
    padding: 60px 0 36px;
    background: #08080e;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 10;
}

.dark-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.dark-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.dark-footer-brand {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f0f0f5;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.dark-footer-desc {
    font-size: 0.85rem;
    color: rgba(240, 240, 245, 0.35);
    line-height: 1.8;
}

.dark-footer-col-title {
    font-family: 'Orbitron', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(240, 240, 245, 0.5);
    margin-bottom: 14px;
}

.dark-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dark-footer-links a {
    color: rgba(240, 240, 245, 0.35);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.dark-footer-links a:hover {
    color: #ff6b35;
}

.dark-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: rgba(240, 240, 245, 0.25);
}

/* Responsive adjustments for dark theme */
@media (max-width: 768px) {
    .orb-orange-1,
    .orb-orange-2 {
        width: 250px;
        height: 250px;
    }
    
    .orb-cyan-1,
    .orb-cyan-2 {
        width: 200px;
        height: 200px;
    }
    
    .dark-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dark-footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .dark-nav-links {
        gap: 12px;
    }
    
    .dark-nav-links a:not(.btn-dark-primary) {
        display: none;
    }
}
