/* EnGrossed Advisory shared styles. Included by every page. */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0F172A;
    color: #F3F4F6;
}
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: #FFFFFF; }

/* ── Navigation ── */
.nav-link {
    color: #9CA3AF;
    transition: all 0.3s ease;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.nav-link:hover, .nav-link.active {
    color: #00FFFF;
    text-shadow: 0 0 10px rgba(0,255,255,0.5);
}

/* ── Cards ── */
.service-card {
    background: rgba(17,24,39,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0,255,255,0.6);
    box-shadow: 0 15px 40px -10px rgba(0,255,255,0.3);
    background: rgba(17,24,39,0.85);
}

/* ── Buttons ── */
.action-button {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF00 100%);
    color: #0A0F1C;
    box-shadow: 0 4px 15px rgba(255,215,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}
.action-button:hover {
    background: linear-gradient(135deg, #00FFFF 0%, #00BFFF 100%);
    box-shadow: 0 6px 25px rgba(0,255,255,0.6);
    border-color: rgba(0,255,255,0.8);
    transform: translateY(-2px);
}

/* ── Charts (NIST tools) ── */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    background: rgba(17,24,39,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
}

/* ── Assessment tools ── */
input[type=range] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px;
    background: rgba(212,175,55,0.2);
    border-radius: 9999px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px;
    background: #D4AF37; cursor: pointer; border-radius: 50%;
}
input[type=range]::-moz-range-thumb {
    width: 20px; height: 20px;
    background: #D4AF37; cursor: pointer; border-radius: 50%;
}
.ai-output {
    white-space: pre-wrap;
    background-color: #1f2937;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 0.5rem;
    padding: 1rem; min-height: 150px;
    color: #d1d5db;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
}
.loader {
    border: 4px solid rgba(212,175,55,0.2);
    border-top: 4px solid #D4AF37;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
.step { display: none; }
.step.active { display: block; }
.tooltip { position: relative; display: inline-block; }
.tooltip .tooltiptext {
    visibility: hidden; width: 220px;
    background-color: #111827; color: #fff;
    text-align: center; border-radius: 6px;
    padding: 8px; position: absolute; z-index: 1;
    bottom: 125%; left: 50%; margin-left: -110px;
    opacity: 0; transition: opacity 0.3s; font-size: 0.875rem;
}
.tooltip:hover .tooltiptext { visibility: visible; opacity: 1; }

/* ── Home-page 3D canvas ── */
#threejs-container {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2; background-color: #0F172A; overflow: hidden;
}
.video-overlay {
    position: fixed; top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
    background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.6) 100%);
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease-in-out; }
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ── Accessibility: respect OS reduced-motion preference ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .fade-in { animation: none; opacity: 1; }
    #threejs-container canvas { display: none; }
}
