/* ==============================================
   TECH VISUAL ELEMENTS - IST Software Identity
   ============================================== */

/* Monospace styling for technical elements */
.mono,
.tech-label,
.code-text {
    font-family: 'JetBrains Mono', 'Fira Code', 'Source Code Pro', 'Consolas', monospace;
    font-size: 0.9em;
    background: rgba(124, 58, 237, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #06b6d4;
    letter-spacing: -0.02em;
}

[data-theme="light"] .mono,
[data-theme="light"] .tech-label,
[data-theme="light"] .code-text {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
}

/* Tech badges for stack/versions */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    color: #06b6d4;
    font-weight: 500;
}

.tech-badge i {
    font-size: 1rem;
}

/* Code snippet container */
.code-snippet {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #cdd6f4;
    overflow-x: auto;
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
}

.code-snippet::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    width: 12px;
    height: 12px;
    background: #ff5f56;
    border-radius: 50%;
    box-shadow: 18px 0 0 #ffbd2e, 36px 0 0 #27ca40;
}

.code-snippet code {
    display: block;
    padding-top: 20px;
}

/* Terminal style */
.terminal-text {
    font-family: 'JetBrains Mono', monospace;
    color: #a6e3a1;
    background: #1e1e2e;
    padding: 2px 8px;
    border-radius: 4px;
}

.terminal-text::before {
    content: '$ ';
    color: #89b4fa;
}

/* Subtle grid pattern background */
.tech-pattern {
    position: relative;
}

.tech-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* Dots pattern (alternative) */
.dots-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Circuit pattern for hero/tech sections */
.circuit-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg stroke='%237c3aed' stroke-width='0.5' stroke-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Enhanced service card hover with tech feel */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    transition: left 0.5s ease;
}

.service-card:hover::after {
    left: 100%;
}

/* Icon animations for tech feel */
.service-icon i {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Typing cursor animation */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: #06b6d4;
    font-weight: 100;
}

/* Data visualization feel */
.data-point {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #06b6d4;
    border-radius: 50%;
    animation: pulse-data 2s infinite;
}

@keyframes pulse-data {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
    }
}

/* Progress bar tech style */
.tech-progress {
    height: 4px;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.tech-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    border-radius: 2px;
    transition: width 1s ease;
}

/* API/Endpoint styling */
.endpoint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: #1e1e2e;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.endpoint-method {
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
}

.endpoint-method.get {
    background: #10b981;
    color: white;
}

.endpoint-method.post {
    background: #3b82f6;
    color: white;
}

.endpoint-method.put {
    background: #f59e0b;
    color: white;
}

.endpoint-method.delete {
    background: #ef4444;
    color: white;
}

.endpoint-path {
    color: #cdd6f4;
}

/* Status indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.status-dot.offline {
    background: #ef4444;
}

.status-dot.pending {
    background: #f59e0b;
    animation: blink 1s infinite;
}

/* Command prompt style */
.command-prompt {
    font-family: 'JetBrains Mono', monospace;
    background: #0d0d0d;
    color: #00ff00;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.command-prompt .prompt-symbol {
    color: #06b6d4;
    margin-right: 8px;
}

/* Keyboard shortcut styling */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: linear-gradient(180deg, #3a3a3a 0%, #252525 100%);
    border: 1px solid #4a4a4a;
    border-radius: 4px;
    box-shadow: 0 2px 0 #1a1a1a;
    color: #e0e0e0;
}

/* Light theme adjustments */
[data-theme="light"] .code-snippet,
[data-theme="light"] .terminal-text,
[data-theme="light"] .command-prompt {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

[data-theme="light"] .code-snippet {
    color: #1e293b;
}

[data-theme="light"] .terminal-text {
    color: #059669;
}

[data-theme="light"] .command-prompt {
    background: #f1f5f9;
    color: #0f172a;
}

[data-theme="light"] .endpoint {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .endpoint-path {
    color: #334155;
}