/* About Ultra - Specialized Styles v2.0 (Polished) */

/* === 0. Global / Utility Fixes for About === */
.status-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(2, 12, 27, 0.6);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.status-pill .status-icon { color: var(--accent-primary); }

.status-pill.active-pulse {
    border-color: var(--accent-primary);
    color: var(--text-main);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.1);
}

.status-pill .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-main);
}

.meta-chip i { color: var(--accent-primary); }

/* === 1. Hero Map Visual === */
.map-visual-wrapper {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.grid-map-frame {
    width: 90%;
    height: 90%;
    border: 1px dashed rgba(100, 255, 218, 0.3);
    position: relative;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    border-radius: 12px;
    transform: rotateX(10deg);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.map-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-secondary);
    z-index: 2;
}

.node-fairbanks { top: 20%; left: 30%; }
.node-anchorage { top: 60%; left: 40%; background: var(--accent-primary); box-shadow: 0 0 15px var(--accent-primary); }
.node-kenai { top: 70%; left: 35%; }
.node-juneau { top: 80%; left: 80%; }

.pulse-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border: 1px solid var(--accent-secondary);
    border-radius: 50%;
    opacity: 0;
    animation: mapPulse 3s infinite;
}

.node-anchorage .pulse-ring { border-color: var(--accent-primary); animation-duration: 2s; }

@keyframes mapPulse {
    0% { width: 100%; height: 100%; opacity: 1; }
    100% { width: 400%; height: 400%; opacity: 0; }
}

.map-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
}

.map-lines line {
    stroke: rgba(100, 255, 218, 0.2);
    stroke-width: 1;
    stroke-dasharray: 5;
    animation: dashFlow 30s linear infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -1000; }
}

/* === 2. Credential Cards (ID Badge Style) === */
.credential-card {
    background: linear-gradient(145deg, rgba(17, 34, 64, 0.8), rgba(10, 25, 47, 0.9));
    border-left: 4px solid var(--accent-muted);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%; /* Ensure equal height in grid */
    display: flex;
    flex-direction: column;
}

.credential-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(23, 42, 69, 0.9), rgba(17, 34, 64, 0.95));
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.credential-card.gold { border-left-color: #ffd700; }
.credential-card.red { border-left-color: var(--accent-alert); }
.credential-card.blue { border-left-color: var(--accent-secondary); }

.cred-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.cred-title {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.cred-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.gold .cred-icon { color: #ffd700; }
.red .cred-icon { color: var(--accent-alert); }
.blue .cred-icon { color: var(--accent-secondary); }

.cred-badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.cred-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
}

/* === 3. Mission Feature Enhancements === */
.mission-feature {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    background: rgba(2, 12, 27, 0.3);
    transition: all 0.3s;
    margin-bottom: 0; /* Let grid/flex gap handle spacing */
}

.mission-feature:hover {
    border-color: var(--accent-primary);
    background: rgba(100, 255, 218, 0.05);
    transform: translateX(5px);
}

.mission-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

/* === 4. About Page Grid Overrides === */
/* Standard 3-column grid with balanced spacing */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem; /* Reduced from 6rem/4rem for better visual grouping */
    margin-top: 3rem;
}

/* Ensure grid-3 is available if services-ultra.css fails or is overridden */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Ensure ultra-card is styled correctly */
.ultra-card {
    background: rgba(17, 34, 64, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ultra-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(23, 42, 69, 0.9);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.15);
}

.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

@media (max-width: 992px) {
    .about-grid, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about-grid, .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}