/* ==================== 3D AI HOLOGRAM MODEL ==================== */

.hero-image {
    position: relative;
    animation: fadeInRight 0.8s ease;
}

.ai-3d-scene {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    transform-style: preserve-3d;
}

/* Hologram Container */
.hologram-container {
    position: relative;
    width: 500px;
    height: 500px;
    transform-style: preserve-3d;
    animation: holoRotate 30s linear infinite;
}

/* AI Core Sphere */
.ai-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    transform-style: preserve-3d;
}

.core-sphere {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.8), rgba(99, 102, 241, 0.4));
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.8),
        0 0 100px rgba(139, 92, 246, 0.6),
        inset 0 0 60px rgba(139, 92, 246, 0.4);
    animation: corePulse 3s ease-in-out infinite;
}

.sphere-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
    animation: innerRotate 10s linear infinite;
}

.sphere-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    filter: blur(20px);
}

/* Sphere Particles */
.sphere-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: particleOrbit 4s linear infinite;
}

.sphere-particles span:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.sphere-particles span:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 0.66s;
}

.sphere-particles span:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 1.33s;
}

.sphere-particles span:nth-child(4) {
    top: 50%;
    left: 0;
    animation-delay: 2s;
}

.sphere-particles span:nth-child(5) {
    top: 25%;
    right: 25%;
    animation-delay: 2.66s;
}

.sphere-particles span:nth-child(6) {
    bottom: 25%;
    left: 25%;
    animation-delay: 3.33s;
}

/* Orbiting Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    transform-style: preserve-3d;
}

.ring-1 {
    width: 250px;
    height: 250px;
    margin: -125px 0 0 -125px;
    border-top-color: var(--primary);
    animation: ring1Spin 8s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border-right-color: var(--secondary);
    animation: ring2Spin 12s linear infinite reverse;
    transform: rotateY(60deg);
}

.ring-3 {
    width: 350px;
    height: 350px;
    margin: -175px 0 0 -175px;
    border-left-color: var(--accent);
    animation: ring3Spin 10s linear infinite;
    transform: rotateX(60deg);
}

/* Data Nodes */
.data-node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    animation: nodeFloat 3s ease-in-out infinite;
}

.node-1 {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.node-2 {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.75s;
}

.node-3 {
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

.node-4 {
    top: 50%;
    right: -40px;
    transform: translateY(-50%);
    animation-delay: 2.25s;
}

/* Holographic Panels */
.holo-panel {
    position: absolute;
    background: rgba(15, 15, 30, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(99, 102, 241, 0.2);
    animation: panelFloat 4s ease-in-out infinite;
}

.panel-left {
    top: 15%;
    left: -180px;
    min-width: 180px;
    animation-delay: 0s;
}

.panel-right {
    top: 15%;
    right: -180px;
    min-width: 160px;
    animation-delay: 1s;
}

.panel-bottom {
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.status-bar {
    height: 8px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.status-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
    color: var(--text-secondary);
    font-size: 11px;
}

.project-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin: 5px 0;
}

.tech-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-tag {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 12px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.connect-line {
    stroke: var(--primary);
    stroke-width: 1;
    stroke-dasharray: 5, 5;
    animation: lineFlow 3s linear infinite;
}

/* Scan Effect */
.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(99, 102, 241, 0.1) 50%,
        transparent 100%
    );
    animation: scanMove 3s linear infinite;
    pointer-events: none;
}

/* Holographic Grid */
.holo-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

/* Tech Constellation */
.tech-constellation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.constellation-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: constellationFloat 6s ease-in-out infinite;
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 14px;
    border: 2px solid var(--primary);
    animation: pulseRing 2s ease-out infinite;
}

.icon-py {
    top: 8%;
    left: 12%;
    animation-delay: 0s;
}

.icon-js {
    top: 12%;
    right: 15%;
    animation-delay: 1s;
}

.icon-react {
    top: 45%;
    left: 3%;
    animation-delay: 2s;
}

.icon-node {
    top: 48%;
    right: 5%;
    animation-delay: 3s;
}

.icon-git {
    bottom: 12%;
    left: 18%;
    animation-delay: 4s;
}

.icon-db {
    bottom: 10%;
    right: 20%;
    animation-delay: 5s;
}

/* Binary Rain */
.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.binary-rain span {
    position: absolute;
    top: -50px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: rgba(99, 102, 241, 0.3);
    animation: binaryFall 8s linear infinite;
}

.binary-rain span:nth-child(1) { left: 10%; animation-delay: 0s; }
.binary-rain span:nth-child(2) { left: 20%; animation-delay: 1s; }
.binary-rain span:nth-child(3) { left: 35%; animation-delay: 2s; }
.binary-rain span:nth-child(4) { left: 50%; animation-delay: 0.5s; }
.binary-rain span:nth-child(5) { left: 65%; animation-delay: 1.5s; }
.binary-rain span:nth-child(6) { left: 75%; animation-delay: 2.5s; }
.binary-rain span:nth-child(7) { left: 85%; animation-delay: 3s; }
.binary-rain span:nth-child(8) { left: 92%; animation-delay: 3.5s; }

/* Environment Particles */
.environment-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.environment-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: envParticleFloat 10s ease-in-out infinite;
}

.environment-particles .particle:nth-child(1) { left: 15%; animation-delay: 0s; }
.environment-particles .particle:nth-child(2) { left: 25%; animation-delay: 1s; }
.environment-particles .particle:nth-child(3) { left: 35%; animation-delay: 2s; }
.environment-particles .particle:nth-child(4) { left: 45%; animation-delay: 3s; }
.environment-particles .particle:nth-child(5) { left: 55%; animation-delay: 4s; }
.environment-particles .particle:nth-child(6) { left: 65%; animation-delay: 5s; }
.environment-particles .particle:nth-child(7) { left: 75%; animation-delay: 6s; }
.environment-particles .particle:nth-child(8) { left: 85%; animation-delay: 7s; }
.environment-particles .particle:nth-child(9) { left: 40%; animation-delay: 8s; }
.environment-particles .particle:nth-child(10) { left: 60%; animation-delay: 9s; }

/* Glowing Floor */
.ai-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: radial-gradient(
        ellipse at center bottom,
        rgba(99, 102, 241, 0.2) 0%,
        transparent 70%
    );
    filter: blur(30px);
    animation: floorGlow 3s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */

@keyframes holoRotate {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

@keyframes corePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 60px rgba(99, 102, 241, 0.8),
            0 0 100px rgba(139, 92, 246, 0.6),
            inset 0 0 60px rgba(139, 92, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 80px rgba(99, 102, 241, 1),
            0 0 120px rgba(139, 92, 246, 0.8),
            inset 0 0 80px rgba(139, 92, 246, 0.6);
    }
}

@keyframes innerRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(100px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(100px) rotate(-360deg);
    }
}

@keyframes ring1Spin {
    from {
        transform: rotateX(75deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(75deg) rotateZ(360deg);
    }
}

@keyframes ring2Spin {
    from {
        transform: rotateY(60deg) rotateZ(0deg);
    }
    to {
        transform: rotateY(60deg) rotateZ(-360deg);
    }
}

@keyframes ring3Spin {
    from {
        transform: rotateX(60deg) rotateZ(0deg);
    }
    to {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes nodeFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(0, -15px) scale(1.2);
    }
}

@keyframes panelFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes lineFlow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 20;
    }
}

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

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

@keyframes constellationFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes binaryFall {
    0% {
        top: -50px;
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes envParticleFloat {
    0% {
        bottom: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

@keyframes floorGlow {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hologram-container {
        width: 400px;
        height: 400px;
    }
    
    .ai-core {
        width: 160px;
        height: 160px;
    }
    
    .panel-left,
    .panel-right {
        display: none;
    }
    
    .constellation-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .ai-3d-scene {
        height: 400px;
    }
    
    .hologram-container {
        width: 320px;
        height: 320px;
    }
    
    .ai-core {
        width: 140px;
        height: 140px;
    }
    
    .orbit-ring.ring-1 {
        width: 200px;
        height: 200px;
        margin: -100px 0 0 -100px;
    }
    
    .orbit-ring.ring-2 {
        width: 240px;
        height: 240px;
        margin: -120px 0 0 -120px;
    }
    
    .orbit-ring.ring-3 {
        width: 280px;
        height: 280px;
        margin: -140px 0 0 -140px;
    }
    
    .panel-bottom {
        font-size: 11px;
        padding: 12px 16px;
    }
    
    .constellation-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
    
    .icon-react,
    .icon-node,
    .icon-git {
        display: none;
    }
}
