/* ===== Advanced Portfolio Styles ===== */

.section-subtitle {
    text-align: center;
    color: #cbd5e1;
    font-size: 18px;
    margin-top: -40px;
    margin-bottom: 50px;
}

/* ===== System Architecture Section ===== */
.architecture {
    background: var(--dark-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.architecture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: pulseBackground 10s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.architecture .section-title,
.architecture .section-subtitle {
    color: white;
}

.architecture-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    position: relative;
    z-index: 1;
}

.arch-node {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    flex: 1;
    margin: 0 10px;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
}

.arch-node:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.1);
}

.arch-node.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.15);
}

.node-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: rotate3d 5s linear infinite;
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.arch-node h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: white;
}

.arch-node p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
}

.node-details {
    margin-top: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.arch-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    position: relative;
    animation: flowAnimation 2s linear infinite;
}

@keyframes flowAnimation {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.arch-connector::after {
    content: '→';
    position: absolute;
    right: -10px;
    top: -12px;
    color: var(--primary-color);
    font-size: 24px;
    animation: moveArrow 2s ease-in-out infinite;
}

@keyframes moveArrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.architecture-info {
    margin-top: 60px;
    position: relative;
}

.info-card {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 56, 202, 0.3);
    border-radius: 15px;
    padding: 30px;
    display: none;
    animation: fadeInUp 0.5s ease;
}

.info-card.active {
    display: block;
}

.info-card h4 {
    font-size: 24px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-card ul {
    list-style: none;
}

.info-card li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.info-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 20px;
}

.info-card strong {
    color: var(--primary-color);
}

/* ===== About Stats ===== */
.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 2px solid rgba(67, 56, 202, 0.3);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.stat-box h4 {
    font-size: 36px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-box p {
    font-size: 14px;
    color: var(--gray-color);
    margin: 0;
}

.about-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ===== Advanced Projects ===== */
.projects-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(67, 56, 202, 0.3);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    color: var(--text-color);
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.project-card.advanced {
    position: relative;
    transition: all 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

.project-card.advanced:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.project-header {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.project-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.production {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-badge.demo {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-badge:not(.production):not(.demo) {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.project-card.advanced:hover .demo-overlay {
    opacity: 1;
    pointer-events: all;
}

.demo-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.demo-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    border-color: rgba(255, 255, 255, 0.6);
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.problem,
.solution {
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
}

.problem {
    background: rgba(239, 68, 68, 0.05);
    border-color: #ef4444;
}

.solution {
    background: rgba(16, 185, 129, 0.05);
    border-color: #10b981;
}

.problem h4,
.solution h4 {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.problem p,
.solution p {
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 10px;
}

.project-metrics .metric {
    text-align: center;
}

.project-metrics .value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.project-metrics .label {
    font-size: 12px;
    color: var(--gray-color);
    text-transform: uppercase;
}

.project-decision {
    margin: 20px 0;
    padding: 15px;
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 5px;
}

.project-decision strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 8px;
}

.project-decision p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
    color: var(--text-color);
}

/* ===== AI Chat Section ===== */
.ai-chat {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
}

.ai-chat .section-title,
.ai-chat .section-subtitle {
    color: white;
}

.chat-container {
    max-width: 900px;
    margin: 0 auto;
}

.chat-suggestions {
    margin-bottom: 30px;
    text-align: center;
}

.chat-suggestions h3 {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.suggestion-btn {
    padding: 10px 20px;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 56, 202, 0.4);
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.suggestion-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.chat-box {
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(67, 56, 202, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: rgba(67, 56, 202, 0.2);
    border-bottom: 1px solid rgba(67, 56, 202, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.chat-info h4 {
    margin: 0 0 5px 0;
    color: white;
}

.chat-info span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    padding: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-message .message-avatar {
    background: var(--gradient);
    color: white;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.message-content {
    flex: 1;
}

.user-message .message-content {
    text-align: right;
}

.message-content p {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(5px);
    padding: 12px 18px;
    border-radius: 15px;
    margin: 0 0 5px 0;
    line-height: 1.6;
}

.user-message .message-content p {
    background: var(--gradient);
}

.message-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.chat-input-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(10, 14, 26, 0.8);
    border: 1px solid rgba(67, 56, 202, 0.4);
    border-radius: 25px;
    color: white;
    font-size: 15px;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.send-btn {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* ===== DevTools Monitor Section ===== */
.devtools-monitor {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 60px 0;
}

.devtools-monitor .section-title {
    color: white;
}

.devtools-monitor .section-subtitle {
    color: #888;
}

.monitor-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    border-bottom: 2px solid #333;
}

.monitor-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.monitor-tab:hover {
    color: #d4d4d4;
}

.monitor-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.monitor-content {
    background: #252526;
    border-radius: 0 0 10px 10px;
    min-height: 400px;
}

.monitor-panel {
    display: none;
    padding: 20px;
}

.monitor-panel.active {
    display: block;
}

.console-output {
    font-family: 'Fira Code', 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.log-entry {
    padding: 8px 12px;
    border-left: 3px solid transparent;
    margin-bottom: 5px;
    display: flex;
    gap: 10px;
    border-radius: 3px;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.05);
}

.log-time {
    color: #808080;
}

.log-level {
    font-weight: 600;
}

.log-entry.info {
    border-left-color: #4fc3f7;
}

.log-entry.info .log-level {
    color: #4fc3f7;
}

.log-entry.success {
    border-left-color: #66bb6a;
}

.log-entry.success .log-level {
    color: #66bb6a;
}

.log-entry.warning {
    border-left-color: #ffb74d;
}

.log-entry.warning .log-level {
    color: #ffb74d;
}

.log-entry.error {
    border-left-color: #ef5350;
}

.log-entry.error .log-level {
    color: #ef5350;
}

.network-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #2d2d30;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.stat-card h4 {
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 14px;
    font-weight: 600;
}

.stat-trend.up {
    color: #66bb6a;
}

.stat-trend.down {
    color: #4fc3f7;
}

.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-label {
    width: 150px;
    font-size: 14px;
    color: #d4d4d4;
}

.metric-bar {
    flex: 1;
    height: 20px;
    background: #3e3e42;
    border-radius: 10px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.metric-fill.cpu {
    background: linear-gradient(90deg, #4fc3f7, #6366f1);
}

.metric-fill.memory {
    background: linear-gradient(90deg, #ffb74d, #ff9800);
}

.metric-fill.db {
    background: linear-gradient(90deg, #66bb6a, #4caf50);
}

.metric-fill.cache {
    background: linear-gradient(90deg, #ab47bc, #8b5cf6);
}

.metric-value {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: white;
}

.logs-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    background: #2d2d30;
    border: 1px solid #3e3e42;
    border-radius: 5px;
    color: #d4d4d4;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #3e3e42;
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .architecture-diagram {
        flex-direction: column;
        gap: 30px;
    }

    .arch-connector {
        width: 2px;
        height: 60px;
        transform: rotate(90deg);
    }

    .problem-solution {
        grid-template-columns: 1fr;
    }

    .project-metrics {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-tabs {
        flex-direction: column;
    }

    .stat-card {
        text-align: center;
    }

    .network-stats {
        grid-template-columns: 1fr;
    }

    .monitor-tabs {
        overflow-x: auto;
    }
}

/* ===== Mobile Advanced Animations ===== */
@media (max-width: 768px) {
    /* Architecture node tap effect */
    .arch-node {
        transform-style: preserve-3d;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        position: relative;
        overflow: hidden;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Hidden state for scroll animation - only applied via JS */
    .arch-node.water-animate:not(.visible) {
        opacity: 0;
        transform: translateY(100px);
    }

    /* Water wave effect on scroll */
    .arch-node::before {
        content: '';
        position: absolute;
        bottom: -100%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(67, 56, 202, 0.3) 0%, transparent 70%);
        animation: waterRise 1.5s ease-out forwards;
        opacity: 0;
    }

    .arch-node.visible {
        animation: waterSlideUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    .arch-node.visible::before {
        opacity: 1;
    }

    @keyframes waterSlideUp {
        0% {
            opacity: 0;
            transform: translateY(100px) scale(0.8);
        }
        50% {
            transform: translateY(-10px) scale(1.05);
        }
        100% {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    @keyframes waterRise {
        0% {
            bottom: -100%;
            transform: rotate(0deg);
        }
        100% {
            bottom: 100%;
            transform: rotate(360deg);
        }
    }

    /* Stagger animation for each node */
    .arch-node:nth-child(1).visible {
        animation-delay: 0.1s;
    }

    .arch-node:nth-child(2).visible {
        animation-delay: 0.2s;
    }

    .arch-node:nth-child(3).visible {
        animation-delay: 0.3s;
    }

    .arch-node:nth-child(4).visible {
        animation-delay: 0.4s;
    }

    .arch-node:nth-child(5).visible {
        animation-delay: 0.5s;
    }

    .arch-node:active {
        transform: translateY(-5px) scale(0.98);
        box-shadow: 0 10px 30px rgba(67, 56, 202, 0.6);
    }

    .arch-node.active {
        animation: nodePulse 1s ease-in-out infinite;
    }

    @keyframes nodePulse {
        0%, 100% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
    }

    /* Liquid wave effect */
    .arch-node::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: -100%;
        width: 300%;
        height: 60px;
        background: linear-gradient(90deg, 
            transparent,
            rgba(67, 56, 202, 0.2),
            transparent);
        animation: wave 3s linear infinite;
        opacity: 0;
    }

    .arch-node.visible::after {
        opacity: 1;
        animation-delay: 0.5s;
    }

    @keyframes wave {
        0% {
            left: -100%;
        }
        100% {
            left: 100%;
        }
    }

    /* Stat box counter animation */
    .stat-box {
        animation: statAppear 0.6s ease-out backwards;
    }

    .stat-box:nth-child(1) { animation-delay: 0.1s; }
    .stat-box:nth-child(2) { animation-delay: 0.2s; }
    .stat-box:nth-child(3) { animation-delay: 0.3s; }
    .stat-box:nth-child(4) { animation-delay: 0.4s; }

    @keyframes statAppear {
        from {
            opacity: 0;
            transform: scale(0.5) rotate(-5deg);
        }
        to {
            opacity: 1;
            transform: scale(1) rotate(0);
        }
    }

    /* Tab button wave effect */
    .tab-btn {
        position: relative;
        overflow: hidden;
    }

    .tab-btn::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(67, 56, 202, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .tab-btn:active::after {
        width: 200px;
        height: 200px;
    }

    /* Project card entrance */
    .project-card.advanced {
        animation: cardFlipIn 0.8s ease-out backwards;
    }

    @keyframes cardFlipIn {
        from {
            opacity: 0;
            transform: perspective(1000px) rotateY(-90deg);
        }
        to {
            opacity: 1;
            transform: perspective(1000px) rotateY(0);
        }
    }

    /* Metrics counter animation */
    .project-metrics .metric {
        animation: metricPop 0.5s ease-out backwards;
    }

    .project-metrics .metric:nth-child(1) { animation-delay: 0.1s; }
    .project-metrics .metric:nth-child(2) { animation-delay: 0.2s; }
    .project-metrics .metric:nth-child(3) { animation-delay: 0.3s; }

    @keyframes metricPop {
        0% {
            opacity: 0;
            transform: scale(0);
        }
        70% {
            transform: scale(1.1);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        }
    }

    /* Chat message slide animation */
    .message {
        animation: messageSlide 0.4s ease-out;
    }

    .ai-message {
        animation-name: messageSlideLeft;
    }

    .user-message {
        animation-name: messageSlideRight;
    }

    @keyframes messageSlideLeft {
        from {
            opacity: 0;
            transform: translateX(-50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @keyframes messageSlideRight {
        from {
            opacity: 0;
            transform: translateX(50px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Suggestion button hover/tap */
    .suggestion-btn {
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .suggestion-btn:active {
        transform: scale(0.95) translateY(2px);
        background: rgba(67, 56, 202, 0.4);
    }

    /* Monitor tab switch animation */
    .monitor-panel {
        animation: panelFade 0.4s ease-out;
    }

    @keyframes panelFade {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Log entry streaming effect */
    .log-entry {
        animation: logStream 0.3s ease-out;
    }

    @keyframes logStream {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Network stat pulse */
    .stat-card {
        animation: statPulse 2s ease-in-out infinite;
    }

    @keyframes statPulse {
        0%, 100% {
            box-shadow: 0 0 10px rgba(67, 56, 202, 0.2);
        }
        50% {
            box-shadow: 0 0 20px rgba(67, 56, 202, 0.5);
        }
    }

    /* Metric bar fill animation */
    .metric-fill {
        animation: barGlow 2s ease-in-out infinite;
    }

    @keyframes barGlow {
        0%, 100% {
            filter: brightness(1);
        }
        50% {
            filter: brightness(1.3);
        }
    }

    /* Touch feedback for all interactive elements */
    button, a, .clickable {
        -webkit-tap-highlight-color: rgba(67, 56, 202, 0.3);
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .arch-node {
        padding: 20px;
    }

    .node-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        animation: iconSpin 3s linear infinite;
    }

    @keyframes iconSpin {
        0% { transform: rotateY(0deg); }
        100% { transform: rotateY(360deg); }
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .project-metrics {
        grid-template-columns: 1fr;
    }

    /* Hero buttons animation */
    .hero-buttons .btn {
        animation: buttonFloat 3s ease-in-out infinite;
    }

    .hero-buttons .btn:nth-child(1) {
        animation-delay: 0s;
    }

    .hero-buttons .btn:nth-child(2) {
        animation-delay: 0.5s;
    }

    @keyframes buttonFloat {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
}
