/* ==========================================================================
   TrustInLabs - AI & Edge Computing Page Styles
   ========================================================================== */

::-moz-selection { background-color: #38B2AC; color: #ffffff; }
::selection { background-color: #38B2AC; color: #ffffff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0D1B2A; }
::-webkit-scrollbar-thumb { background: #4FD1C5; border-radius: 4px; border: 2px solid #0D1B2A; }
::-webkit-scrollbar-thumb:hover { background: #38B2AC; }

section { scroll-margin-top: 80px; }

.dropdown-menu { will-change: transform, opacity; backface-visibility: hidden; }

input:focus, textarea:focus { outline: none; }

#mobile-menu { transition: opacity 0.3s ease, transform 0.3s ease; }

/* Hero */
.page-hero {
    background-image: linear-gradient(120deg, rgba(13, 27, 42, 0.88) 0%, rgba(15, 30, 48, 0.8) 55%, rgba(13, 30, 40, 0.84) 100%), url('../../images/ai_banner.jpg');
    background-size: cover;
    background-position: center 28%;
    background-repeat: no-repeat;
    min-height: clamp(420px, 58vh, 620px);
    position: relative;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .page-hero {
        min-height: clamp(360px, 52vh, 520px);
        background-position: center 24%;
    }
}

@media (max-width: 640px) {
    .page-hero {
        min-height: 380px;
        background-position: center 22%;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(56, 178, 172, 0.18) 0%, rgba(56, 178, 172, 0.1) 40%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff12 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.3;
    pointer-events: none;
}

/* Neural network pulse animation */
@keyframes neuralPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.neural-node {
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-node:nth-child(2) { animation-delay: 0.5s; }
.neural-node:nth-child(3) { animation-delay: 1s; }
.neural-node:nth-child(4) { animation-delay: 1.5s; }

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px -8px rgba(0, 180, 216, 0.2);
}

.section-heading-line {
    width: 48px;
    height: 4px;
    background: #00b4d8;
    border-radius: 2px;
    margin: 16px auto 0;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.25);
    color: #0090b0;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.tech-badge:hover { background: rgba(0, 180, 216, 0.15); }

.cta-btn {
    transition: all 0.25s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(0, 82, 204, 0.45);
}

/* AI challenges accordion */
.ai-challenges {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ai-challenge-item {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.ai-challenge-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: #475569;
    padding: 1rem 0;
    transition: color 0.2s ease;
}

.ai-challenge-summary::-webkit-details-marker {
    display: none;
}

.ai-challenge-item[open] .ai-challenge-summary,
.ai-challenge-summary:hover {
    color: #0D1B2A;
}

.ai-challenge-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: #94A3B8;
    flex-shrink: 0;
    transition: transform 0.25s ease, color 0.25s ease;
}

.ai-challenge-item[open] .ai-challenge-icon {
    transform: rotate(180deg);
    color: #38B2AC;
}

.ai-challenge-body {
    padding: 0 0 1rem 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.75rem;
    max-width: 52rem;
}

.ai-challenge-item:first-child {
    border-top: 1px solid #e2e8f0;
}

/* AI metric bar */
.metric-bar-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0052cc, #00b4d8);
    border-radius: 3px;
    transition: width 1s ease;
}

@media print {
    .site-header, #menu-btn, #mobile-menu { display: none !important; }
    body { color: #000; background: #fff; }
}
