/* ============================================
   ORBITAL RING COMPONENT - ENHANCED
   ============================================ */

/* Container for the orbital animation with 3D perspective */
.orbital-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Particle Background Layer */
.particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--orbital-color-005, rgba(52, 184, 193, 0.05)) 0%, transparent 70%);
    animation: particlePulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes particlePulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Orbit Rings - Enhanced with 3D and Glow Effects */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: transparent;
    will-change: transform;
}

.orbit-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid transparent;
    background: linear-gradient(0deg, 
        var(--orbital-color-01, rgba(52, 184, 193, 0.1)) 0%, 
        transparent 30%, 
        transparent 70%, 
        var(--orbital-color-01, rgba(52, 184, 193, 0.1)) 100%);
    animation: ringRotate 20s linear infinite;
}

.ring-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orbital-color-015, rgba(52, 184, 193, 0.15)) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Ring 1 - Innermost (120px radius) */
.orbit-ring-1 {
    width: 240px;
    height: 240px;
    z-index: 2;
}

.orbit-ring-1::before {
    border: 1px solid var(--orbital-color-04, rgba(52, 184, 193, 0.4));
    box-shadow: 
        0 0 15px var(--orbital-color-02, rgba(52, 184, 193, 0.2)),
        inset 0 0 15px var(--orbital-color-01, rgba(52, 184, 193, 0.1));
    animation: ringRotate 15s linear infinite;
}

/* Ring 2 - Second (160px radius) */
.orbit-ring-2 {
    width: 320px;
    height: 320px;
    z-index: 1;
}

.orbit-ring-2::before {
    border: 1px solid var(--orbital-color-03, rgba(52, 184, 193, 0.3));
    box-shadow: 
        0 0 12px var(--orbital-color-015, rgba(52, 184, 193, 0.15)),
        inset 0 0 12px var(--orbital-color-008, rgba(52, 184, 193, 0.08));
    animation: ringRotate 25s linear infinite reverse;
}

/* Ring 3 - Third (200px radius) */
.orbit-ring-3 {
    width: 400px;
    height: 400px;
    z-index: 0;
}

.orbit-ring-3::before {
    border: 1px solid var(--orbital-color-025, rgba(52, 184, 193, 0.25));
    box-shadow: 
        0 0 10px var(--orbital-color-01, rgba(52, 184, 193, 0.1)),
        inset 0 0 10px var(--orbital-color-005, rgba(52, 184, 193, 0.05));
    animation: ringRotate 30s linear infinite;
}

/* Connection Lines SVG */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.orbital-container:hover .connection-lines {
    opacity: 1;
}

/* Enhanced Center Point with Multiple Layers */
.orbital-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    z-index: 15;
    will-change: transform;
}

.center-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--orbital-color, rgba(52, 184, 193, 1)) 0%, var(--orbital-color-06, rgba(52, 184, 193, 0.6)) 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 20px var(--orbital-color-08, rgba(52, 184, 193, 0.8)),
        0 0 40px var(--orbital-color-04, rgba(52, 184, 193, 0.4)),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    animation: centerPulse 2s ease-in-out infinite;
}

.center-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid var(--orbital-color-06, rgba(52, 184, 193, 0.6));
    border-radius: 50%;
    animation: pulseExpand 2s ease-out infinite;
}

@keyframes centerPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulseExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.center-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.center-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--orbital-color-08, rgba(52, 184, 193, 0.8));
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px var(--orbital-color-06, rgba(52, 184, 193, 0.6));
}

.center-particles .particle:nth-child(1) {
    animation: particleOrbit1 3s linear infinite;
}

.center-particles .particle:nth-child(2) {
    animation: particleOrbit2 3s linear infinite 0.5s;
}

.center-particles .particle:nth-child(3) {
    animation: particleOrbit3 3s linear infinite 1s;
}

.center-particles .particle:nth-child(4) {
    animation: particleOrbit1 3s linear infinite 1.5s;
}

.center-particles .particle:nth-child(5) {
    animation: particleOrbit2 3s linear infinite 2s;
}

.center-particles .particle:nth-child(6) {
    animation: particleOrbit3 3s linear infinite 2.5s;
}

@keyframes particleOrbit1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(25px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(25px) rotate(-360deg);
        opacity: 0.3;
    }
}

@keyframes particleOrbit2 {
    from {
        transform: translate(-50%, -50%) rotate(120deg) translateX(25px) rotate(-120deg);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) rotate(480deg) translateX(25px) rotate(-480deg);
        opacity: 0.3;
    }
}

@keyframes particleOrbit3 {
    from {
        transform: translate(-50%, -50%) rotate(240deg) translateX(25px) rotate(-240deg);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) rotate(600deg) translateX(25px) rotate(-600deg);
        opacity: 0.3;
    }
}

/* Enhanced Orbiting Icons */
.orbital-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.12),
        0 2px 10px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 2px var(--orbital-color-01, rgba(52, 184, 193, 0.1));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    cursor: pointer;
    will-change: transform;
    transform-style: preserve-3d;
}

.orbital-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--orbital-color-03, rgba(52, 184, 193, 0.3)), var(--orbital-color-01, rgba(52, 184, 193, 0.1)));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--orbital-color-04, rgba(52, 184, 193, 0.4)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.particle-trail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    background: var(--orbital-color-06, rgba(52, 184, 193, 0.6));
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.orbital-icon:hover .particle-trail {
    animation: trailEffect 1s ease-out infinite;
}

@keyframes trailEffect {
    0% {
        transform: translate(-50%, -50%) translateY(0);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) translateY(-40px);
        opacity: 0;
    }
}

/* Icon SVG Styling with Rotation */
.orbital-icon svg {
    width: 26px;
    height: 26px;
    color: var(--orbital-color, rgba(52, 184, 193, 1));
    stroke-width: 2.5;
    transition: transform 0.3s ease, color 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Tooltip Styling */
.orbital-icon .tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%) translateY(5px);
}

.orbital-icon .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.95);
}

.orbital-icon:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Icon Positions and Animations - Example for Icon 1 */
.icon-1 {
    animation: orbit1 12s linear infinite;
    transform-origin: 50% 50%;
}

.icon-1 svg {
    animation: iconRotate 8s linear infinite;
}

@keyframes orbit1 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

/* Icon 2 - Orbit Ring 2, starts at right, counter-clockwise */
.icon-2 {
    animation: orbit2 15s linear infinite;
    transform-origin: 50% 50%;
}

.icon-2 svg {
    animation: iconRotate 10s linear infinite reverse;
}

@keyframes orbit2 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(160px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg) translateX(160px) rotate(360deg);
    }
}

/* Icon 3 - Orbit Ring 1, starts at bottom, clockwise */
.icon-3 {
    animation: orbit3 10s linear infinite;
    transform-origin: 50% 50%;
    animation-delay: -3s;
}

.icon-3 svg {
    animation: iconRotate 6s linear infinite;
}

@keyframes orbit3 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(120px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(120px) rotate(-360deg);
    }
}

/* Icon 4 - Orbit Ring 3, starts at top-left, counter-clockwise */
.icon-4 {
    animation: orbit4 18s linear infinite;
    transform-origin: 50% 50%;
    animation-delay: -2s;
}

.icon-4 svg {
    animation: iconRotate 12s linear infinite reverse;
}

@keyframes orbit4 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(200px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg) translateX(200px) rotate(360deg);
    }
}

/* Icon 5 - Orbit Ring 2, starts at bottom-right, clockwise */
.icon-5 {
    animation: orbit5 14s linear infinite;
    transform-origin: 50% 50%;
    animation-delay: -5s;
}

.icon-5 svg {
    animation: iconRotate 9s linear infinite;
}

@keyframes orbit5 {
    from {
        transform: translate(-50%, -50%) rotate(0deg) translateX(160px) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg) translateX(160px) rotate(-360deg);
    }
}

/* Icon Rotation Animation */
@keyframes iconRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.orbital-icon:hover {
    transform: translate(-50%, -50%) scale(1.15) translateZ(20px);
    box-shadow: 
        0 8px 30px var(--orbital-color-04, rgba(52, 184, 193, 0.4)),
        0 4px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 0 0 3px var(--orbital-color-03, rgba(52, 184, 193, 0.3));
    z-index: 20;
    filter: drop-shadow(0 0 12px var(--orbital-color-06, rgba(52, 184, 193, 0.6)));
}

.orbital-icon:hover::before {
    opacity: 1;
}

.orbital-icon:hover .icon-glow {
    opacity: 1;
    animation: glowPulse 1.5s ease-in-out infinite;
}

.orbital-icon:hover svg {
    transform: scale(1.25) rotate(15deg);
    color: var(--orbital-color, rgba(52, 184, 193, 1));
    filter: drop-shadow(0 0 4px var(--orbital-color-08, rgba(52, 184, 193, 0.8)));
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1200px) {
    .orbital-container {
        width: 350px;
        height: 350px;
    }
    
    .orbit-ring-1 {
        width: 210px;
        height: 210px;
    }
    
    .orbit-ring-2 {
        width: 280px;
        height: 280px;
    }
    
    .orbit-ring-3 {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .orbital-container {
        width: 300px;
        height: 300px;
    }
    
    .orbit-ring-1 {
        width: 180px;
        height: 180px;
    }
    
    .orbit-ring-2 {
        width: 240px;
        height: 240px;
    }
    
    .orbit-ring-3 {
        width: 300px;
        height: 300px;
    }
    
    .orbital-icon {
        width: 45px;
        height: 45px;
    }
    
    .orbital-icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 768px) {
    .orbital-container {
        display: none;
    }
}

@media (max-width: 480px) {
    .orbital-container {
        width: 250px;
        height: 250px;
    }
    
    .orbit-ring-1 {
        width: 125px;
        height: 125px;
    }
    
    .orbit-ring-2 {
        width: 175px;
        height: 175px;
    }
    
    .orbit-ring-3 {
        width: 225px;
        height: 225px;
    }
    
    .orbital-icon {
        width: 36px;
        height: 36px;
    }
    
    .orbital-icon svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .orbital-container {
        width: 220px;
        height: 220px;
    }
}

@media print {
    .orbital-container {
        display: none;
    }
}

