/* ===== HERO AI VISUALIZATION ===== */
.ai-visualization {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 0; /* Add padding to prevent tooltip cutoff */
}

/* AI Brain Center */
.ai-brain {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.brain-core {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.6),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: brainPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.brain-rings {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: ringExpand 4s ease-in-out infinite;
}

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

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

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

/* Service Orbit Icons */
.service-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
}

.service-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-accent);
    cursor: pointer;
    transition: all var(--transition-medium);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.service-icon:hover {
    transform: scale(1.2);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.service-icon::before {
    content: attr(data-service);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity var(--transition-fast);
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.service-icon:hover::before {
    opacity: 1;
}

/* Position service icons in orbit */
.icon-1 { /* Voice - Top */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.icon-2 { /* Chat - Top Right */
    top: 15%;
    right: 0;
    animation-delay: 1s;
}

.icon-3 { /* Reviews - Bottom Right */
    bottom: 15%;
    right: 0;
    animation-delay: 2s;
}

.icon-4 { /* Design - Bottom */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 3s;
}

.icon-5 { /* Automation - Bottom Left */
    bottom: 15%;
    left: 0;
    animation-delay: 4s;
}

.icon-6 { /* Content - Top Left */
    top: 15%;
    left: 0;
    animation-delay: 5s;
}

/* Adjust tooltip positioning for edge icons to prevent cutoff */
.icon-6::before {
    left: 0;
    transform: translateX(0);
}

.icon-5::before {
    left: 0;
    transform: translateX(0);
}

/* Data Connection Lines */
.data-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    background: var(--gradient-primary);
    opacity: 0.4;
    animation: dataFlow 3s ease-in-out infinite;
}

.line-1 {
    width: 2px;
    height: 80px;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    animation-delay: 0s;
}

.line-2 {
    width: 2px;
    height: 80px;
    top: 30%;
    right: 20%;
    transform: rotate(60deg);
    animation-delay: 0.5s;
}

.line-3 {
    width: 2px;
    height: 80px;
    bottom: 30%;
    right: 20%;
    transform: rotate(120deg);
    animation-delay: 1s;
}

.line-4 {
    width: 2px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    animation-delay: 1.5s;
}

.line-5 {
    width: 2px;
    height: 80px;
    bottom: 30%;
    left: 20%;
    transform: rotate(240deg);
    animation-delay: 2s;
}

.line-6 {
    width: 2px;
    height: 80px;
    top: 30%;
    left: 20%;
    transform: rotate(300deg);
    animation-delay: 2.5s;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-accent);
    border-radius: 50%;
    opacity: 0.7;
    animation: particleFloat 8s linear infinite;
    box-shadow: 0 0 10px currentColor;
}

.p-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.p-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.p-3 {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.p-4 {
    bottom: 15%;
    right: 25%;
    animation-delay: 6s;
}

.p-5 {
    top: 50%;
    left: 5%;
    animation-delay: 1s;
}

/* ===== ANIMATIONS ===== */
@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.6),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 
            0 0 50px rgba(0, 212, 255, 0.8),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes ringExpand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    33% {
        transform: translateY(-15px) scale(1.05);
    }
    66% {
        transform: translateY(-10px) scale(0.95);
    }
}

@keyframes dataFlow {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    50% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-50px) translateX(20px);
        opacity: 0;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
/* S10 Ultra Tablet Optimization */
@media screen and (min-width: 900px) and (max-width: 1024px) {
    .ai-visualization {
        height: 450px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .service-orbit {
        width: 380px;
        height: 380px;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .brain-core {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .connection-line {
        height: 80px;
    }
}

@media (max-width: 1024px) {
    .ai-visualization {
        height: 400px;
    }
    
    .service-orbit {
        width: 350px;
        height: 350px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }
    
    .ai-visualization {
        height: 350px;
        margin: 0 auto;
        padding: 40px 20px; /* Increase padding on mobile */
    }
    
    /* Hide service tooltips on mobile to prevent cutoff issues */
    .service-icon::before {
        display: none;
    }
    
    .service-orbit {
        width: 300px;
        height: 300px;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .brain-core {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .connection-line {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        height: 350px;
        padding: 20px 0;
    }
    
    .ai-visualization {
        height: 300px;
        width: 300px;
        margin: 0 auto;
    }
    
    .service-orbit {
        width: 250px;
        height: 250px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .service-icon::before {
        display: none; /* Hide labels on very small screens */
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    .brain-core,
    .ring,
    .service-icon,
    .connection-line,
    .particle {
        animation: none;
    }
    
    .service-icon:hover {
        transform: scale(1.1);
    }
}