@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

code, pre {
    font-family: 'Fira Code', monospace;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, #0f0f0f 0%, #0a0a0a 70%, #000000 100%);
    overflow: hidden;
}

.matrix-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 255, 65, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 65, 0.01) 0%, transparent 50%);
    animation: matrixPulse 12s ease-in-out infinite;
}

.matrix-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 255, 65, 0.005) 50%, transparent 100%),
        linear-gradient(0deg, transparent 0%, rgba(0, 255, 65, 0.005) 50%, transparent 100%);
    background-size: 200px 200px;
    animation: matrixGrid 30s linear infinite;
}

@keyframes matrixPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

@keyframes matrixGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(200px, 200px); }
}



@keyframes modelCardGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ff41;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s linear infinite;
}

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

@media (max-width: 768px) {
    .matrix-bg::after {
        background-size: 50px 50px, 50px 50px;
    }

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

.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00ff41;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.copy-notification.show {
    transform: translateX(0);
}

::-webkit-scrollbar {
    display: none;
}



pre[class*="language-"] {
    background: #0d1117 !important;
    border: none !important;
}

code[class*="language-"] {
    background: transparent !important;
    color: #e6edf3 !important;
}

.token.keyword {
    color: #ff7b72 !important;
}

.token.string {
    color: #a5d6ff !important;
}

.token.comment {
    color: #8b949e !important;
}

.token.function {
    color: #d2a8ff !important;
}

.token.number {
    color: #79c0ff !important;
}





.api-info-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #00ff4130;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

@media (min-width: 640px) {
    .api-info-card {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    .api-info-card {
        padding: 32px;
    }
}

.api-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00ff41 50%, transparent 100%);
    animation: apiCardGlow 4s ease-in-out infinite;
}

.api-info-card:hover {
    transform: translateY(-8px);
    border-color: #00ff4160;
    box-shadow: 0 20px 60px rgba(0, 255, 65, 0.15);
}

.api-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.api-icon-wrapper {
    background: linear-gradient(135deg, #00ff4120 0%, #00ff4110 100%);
    border: 1px solid #00ff4140;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
}

@media (min-width: 640px) {
    .api-icon-wrapper {
        width: 56px;
        height: 56px;
        margin-right: 14px;
    }
}

@media (min-width: 768px) {
    .api-icon-wrapper {
        width: 64px;
        height: 64px;
        margin-right: 16px;
    }
}

.api-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.2), transparent);
    transition: left 0.6s ease;
}

.api-info-card:hover .api-icon-wrapper::before {
    left: 100%;
}

.api-code-block {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border: 1px solid #00ff4140;
    border-radius: 16px;
    padding: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

.api-code-block:hover {
    border-color: #00ff4160;
    transform: scale(1.02);
}

.api-code-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.copy-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    transition: all 0.3s ease;
}

.api-code-block:hover .copy-indicator {
    color: #00ff41;
}

.copy-text {
    opacity: 1;
    color: white;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.api-code-block:hover .copy-text {
    color: #00ff41;
    transform: scale(1.05);
}

.api-code-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.6s ease;
}

.api-code-block:hover .api-code-glow {
    left: 100%;
}

.api-description {
    color: #9ca3af;
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
}

@keyframes apiCardGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.model-card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #00ff41 50%, transparent 100%);
    animation: modelCardGlow 3s ease-in-out infinite;
}

