/* Technology Logo Animations */

/* Rotating - for React, etc. */
.anim-spin {
    animation: spin 10s linear infinite;
    transform-origin: center;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Floating - for Cloud, Docker, etc. */
.anim-float {
    animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Pulse - for AI, Node, etc. */
.anim-pulse {
    animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Bounce - for playful elements */
.anim-bounce {
    animation: bounce-logo 2s infinite;
}

@keyframes bounce-logo {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Service Visual Animations */
.service-visual-container {
    width: 100%;
    height: 350px;
    background: var(--color-neutral-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-neutral-200);
}

.code-window {
    width: 80%;
    height: 70%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.code-header {
    height: 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding-left: 10px;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.dot-yellow {
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.dot-green {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.code-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.code-line {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    width: 0;
    animation: type-line 2s ease-out forwards infinite;
}

.w-40 {
    max-width: 40%;
}

.w-60 {
    max-width: 60%;
}

.w-80 {
    max-width: 80%;
}

.delay-1 {
    animation-delay: 0.5s;
}

.delay-2 {
    animation-delay: 1s;
}

.delay-3 {
    animation-delay: 1.5s;
}

@keyframes type-line {
    0% {
        width: 0;
        opacity: 0.5;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    90% {
        width: 100%;
        opacity: 0;
    }

    100% {
        width: 0;
        opacity: 0;
    }
}

/* Cloud Animation */
.cloud-server-container {
    position: relative;
}

.cloud-icon {
    width: 120px;
    height: 80px;
    background: #e0f2fe;
    border-radius: 50px;
    position: relative;
    animation: float-logo 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cloud-icon::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #e0f2fe;
    border-radius: 50%;
    top: -25px;
    left: 20px;
}

.cloud-icon::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: #e0f2fe;
    border-radius: 50%;
    top: -15px;
    right: 20px;
}

.server-stack {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-box {
    width: 80px;
    height: 12px;
    background: #cbd5e1;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.server-light {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 4px;
    height: 4px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* AI Node Animation */
.ai-nodes {
    position: relative;
    width: 200px;
    height: 200px;
}

.ai-node {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    z-index: 2;
}

.ai-line {
    position: absolute;
    height: 2px;
    background: var(--color-primary-light);
    transform-origin: left center;
    z-index: 1;
    opacity: 0.3;
}

.n1 {
    top: 20%;
    left: 50%;
    animation: pulse-logo 2s infinite;
}

.n2 {
    top: 50%;
    left: 20%;
    animation: pulse-logo 2s infinite 0.5s;
}

.n3 {
    top: 50%;
    left: 80%;
    animation: pulse-logo 2s infinite 1s;
}

.n4 {
    bottom: 20%;
    left: 50%;
    animation: pulse-logo 2s infinite 1.5s;
}

/* Tech Card Icon Sizing */
.tech-card-icon svg {
    width: 100%;
    height: 100%;
}