/* Creative and Unique Design Elements */

/* Animated Background Patterns */
.hero {
    position: relative;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

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

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 16, 240, 0.1));
    border-radius: 50%;
    filter: blur(40px);
    animation: float-random 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 5s;
    background: linear-gradient(135deg, rgba(255, 60, 172, 0.1), rgba(255, 138, 0, 0.1));
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 30%;
    animation-delay: 10s;
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.1), rgba(200, 48, 204, 0.1));
}

@keyframes float-random {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(30px, 30px) scale(1.05);
    }
}

/* Cyber Grid Background */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 10s linear infinite;
}

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

/* Holographic Robot Display */
.robot-hologram {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-container {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    /* animation: rotate-3d 20s linear infinite; - disabled for performance */
}

@keyframes rotate-3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}

.hologram-robot {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(255, 16, 240, 0.3));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: #00D9FF;
    text-shadow: 
        0 0 20px #00D9FF,
        0 0 40px #00D9FF,
        0 0 60px #00D9FF;
    animation: hologram-flicker 2s ease-in-out infinite;
}

@keyframes hologram-flicker {
    0%, 100% {
        opacity: 1;
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        filter: brightness(1.2);
    }
}

/* Particle System */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00D9FF;
    border-radius: 50%;
    box-shadow: 0 0 10px #00D9FF;
    animation: particle-rise 10s linear infinite;
}

@keyframes particle-rise {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Glitch Text Effect */
.glitch-text {
    position: relative;
    color: white;
    font-weight: 900;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    animation: glitch-1 0.5s infinite;
    color: #00D9FF;
    z-index: -1;
    mix-blend-mode: screen;
}

.glitch-text::after {
    animation: glitch-2 0.5s infinite;
    color: #FF10F0;
    z-index: -2;
    mix-blend-mode: screen;
}

@keyframes glitch-1 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(20% 0 60% 0);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: inset(40% 0 40% 0);
        transform: translate(2px, -2px);
    }
    60% {
        clip-path: inset(60% 0 20% 0);
        transform: translate(-1px, 1px);
    }
    80% {
        clip-path: inset(80% 0 0 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-2 {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0);
    }
    20% {
        clip-path: inset(25% 0 55% 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(45% 0 35% 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(65% 0 15% 0);
        transform: translate(1px, -1px);
    }
    80% {
        clip-path: inset(85% 0 0 0);
        transform: translate(-1px, 1px);
    }
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: monospace;
    font-size: 14px;
    color: #00D9FF;
    text-shadow: 0 0 5px #00D9FF;
    animation: matrix-fall 10s linear infinite;
}

@keyframes matrix-fall {
    to {
        top: 100%;
    }
}

/* Neon Lines Animation */
.neon-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.neon-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D9FF, transparent);
    animation: neon-sweep 3s linear infinite;
}

.neon-line:nth-child(1) {
    top: 20%;
    animation-delay: 0s;
}

.neon-line:nth-child(2) {
    top: 50%;
    animation-delay: 1s;
}

.neon-line:nth-child(3) {
    top: 80%;
    animation-delay: 2s;
}

@keyframes neon-sweep {
    0% {
        left: -100%;
        width: 0;
    }
    50% {
        left: 0;
        width: 100%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

/* Morphing Blob */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.4), rgba(200, 48, 204, 0.4));
    border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%;
    filter: blur(40px);
    animation: morph 20s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 60% 30% 70% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 60% 40% 30% 70% / 40% 70% 30% 60%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 30% 70% 40% 60% / 70% 60% 40% 30%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 70% 30% 60% 40% / 30% 40% 60% 70%;
        transform: rotate(270deg) scale(1.05);
    }
}

/* Interactive Hover Cards */
.interactive-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.4), transparent);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.interactive-card:hover::before {
    opacity: 1;
}

/* Premium Loading Animation */
.loading-premium {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F0F1E, #2D1B69);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-robot {
    width: 100px;
    height: 100px;
    position: relative;
}

.loading-robot::before {
    content: '🤖';
    font-size: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: robot-pulse 1.5s ease-in-out infinite;
}

.loading-robot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 3px solid transparent;
    border-top-color: #00D9FF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: robot-spin 1s linear infinite;
}

@keyframes robot-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes robot-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Creativity */
@media (max-width: 768px) {
    .hologram-container {
        width: 200px;
        height: 200px;
    }
    
    .blob {
        width: 250px;
        height: 250px;
    }
    
    .shape {
        filter: blur(30px);
    }
}