/* ==========================================================================
   OPERATIONAL FIELD LOG: EXPERIENCES STYLING (CYBER HUD ENGINE)
   Omar Ashraf Portfolio - High-Tech Tactical Missions Matrix
   ========================================================================== */

:root {
    --cyber-cyan: #00D4FF;
    --cyber-purple: #a78bfa;
    --cyber-emerald: #10b981;
    --cyber-amber: #f59e0b;
    --cyber-blue: #3b82f6;
    --cyber-dark: #070c1a;
    --cyber-darker: #040711;
    --cyber-card-bg: rgba(15, 23, 42, 0.72);
    --cyber-card-border: rgba(0, 212, 255, 0.22);
    --cyber-glow-cyan: rgba(0, 212, 255, 0.35);
    --cyber-glow-purple: rgba(167, 139, 250, 0.35);
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cyber-dark);
    color: #e2e8f0;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

/* Ambient Canvas & Orbs */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

.ambient-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: orbFloat 22s infinite alternate ease-in-out;
}

.ambient-orb-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #00D4FF 0%, transparent 70%);
    top: -120px;
    right: -100px;
    animation-duration: 25s;
}

.ambient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation-duration: 28s;
}

.ambient-orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #10b981 0%, transparent 70%);
    top: 45%;
    left: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.12;
    animation-duration: 32s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.08); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Pulsing Status Dot */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--cyber-emerald);
    box-shadow: 0 0 10px var(--cyber-emerald);
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Cyber Badge */
.cyber-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: var(--cyber-cyan);
    box-shadow: 0 0 18px rgba(0, 212, 255, 0.15);
}

/* Telemetry Bento Cards */
.telemetry-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.telemetry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.6), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.telemetry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 212, 255, 0.1);
}

.telemetry-card:hover::before {
    opacity: 1;
}

/* ==========================================================================
   MISSION TIMELINE & CONDUIT
   ========================================================================== */
.timeline-conduit-wrapper {
    position: relative;
}

.timeline-conduit-line {
    position: absolute;
    top: 40px;
    bottom: 40px;
    left: 28px;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.6) 0%, rgba(167, 139, 250, 0.6) 50%, rgba(16, 185, 129, 0.6) 100%);
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
    z-index: 1;
    display: none;
}

@media (min-width: 1024px) {
    .timeline-conduit-line {
        display: block;
    }
}

/* ==========================================================================
   TACTICAL MISSION CARDS (BENTO)
   ========================================================================== */
.mission-card {
    background: rgba(13, 20, 38, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.22);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
    transition: var(--transition-smooth);
}

.mission-card:hover {
    border-color: rgba(0, 212, 255, 0.45);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 255, 0.15);
    transform: translateY(-4px);
}

.mission-card.highlight-pulse {
    animation: neonHighlight 2.5s ease-out;
}

@keyframes neonHighlight {
    0% { transform: scale(1.02); box-shadow: 0 0 45px rgba(0, 212, 255, 0.9); }
    50% { transform: scale(1.01); box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
    100% { transform: scale(1); box-shadow: none; }
}

/* Corner Cyber Brackets */
.cyber-bracket-tl,
.cyber-bracket-br {
    position: absolute;
    width: 14px;
    height: 14px;
    pointer-events: none;
    z-index: 10;
    transition: var(--transition-smooth);
}

.cyber-bracket-tl {
    top: 10px;
    left: 10px;
    border-top: 2px solid var(--cyber-cyan);
    border-left: 2px solid var(--cyber-cyan);
}

.cyber-bracket-br {
    bottom: 10px;
    right: 10px;
    border-bottom: 2px solid var(--cyber-cyan);
    border-right: 2px solid var(--cyber-cyan);
}

.mission-card:hover .cyber-bracket-tl,
.mission-card:hover .cyber-bracket-br {
    width: 22px;
    height: 22px;
    border-color: #ffffff;
}

/* Scanline */
.scanline-sweeper {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.25) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mission-card:hover .scanline-sweeper {
    opacity: 1;
    animation: scanSweep 2s infinite linear;
}

@keyframes scanSweep {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* Filter pills */
.filter-pill {
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.filter-pill:hover {
    color: #ffffff;
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.08);
}

.filter-pill.active {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
}

.filter-count {
    font-size: 0.7rem;
    font-family: ui-monospace, monospace;
    padding: 1px 7px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.skill-tag-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: ui-monospace, monospace;
    transition: var(--transition-smooth);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.skill-tag-pill:hover,
.skill-tag-pill.active-skill {
    border-color: var(--cyber-cyan);
    background: rgba(0, 212, 255, 0.12);
    color: var(--cyber-cyan);
    transform: translateY(-1px);
}

.view-mode-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #94a3b8;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-mode-btn:hover {
    color: #fff;
    border-color: rgba(0, 212, 255, 0.3);
}

.view-mode-btn.active {
    background: rgba(0, 212, 255, 0.18);
    border-color: var(--cyber-cyan);
    color: var(--cyber-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* ==========================================================================
   STUDENT SCORECARD & EVALUATION BARS
   ========================================================================== */
.score-progress-bar-bg {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.score-progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #00D4FF 0%, #a78bfa 100%);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.review-quote-box {
    background: rgba(10, 16, 32, 0.7);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-left: 3px solid var(--cyber-purple);
    border-radius: 12px;
    padding: 14px 18px;
    position: relative;
    transition: var(--transition-smooth);
}

.review-quote-box:hover {
    border-color: var(--cyber-purple);
    background: rgba(14, 22, 44, 0.85);
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(167, 139, 250, 0.15);
}

/* ==========================================================================
   TACTICAL MISSION DOSSIER MODAL
   ========================================================================== */
.experience-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(4, 7, 17, 0.94);
    backdrop-filter: blur(24px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.experience-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-box {
    position: relative;
    max-width: 1050px;
    width: 100%;
    max-height: 90vh;
    background: rgba(13, 20, 38, 0.96);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 212, 255, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScale {
    from { transform: scale(0.93); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-body-scrollable {
    overflow-y: auto;
    padding: 24px 28px;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-btn:hover:not(:disabled) {
    background: var(--cyber-cyan);
    color: var(--cyber-dark);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
}

.nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Table Ledger Mode */
.ledger-table-container {
    background: rgba(13, 20, 38, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ledger-table th {
    background: rgba(8, 14, 28, 0.85);
    padding: 16px 20px;
    font-size: 0.75rem;
    font-family: ui-monospace, monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.ledger-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.ledger-row:hover {
    background: rgba(0, 212, 255, 0.05);
}

.ledger-row td {
    padding: 16px 20px;
    vertical-align: middle;
}

/* Lightbox */
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2100;
    background: rgba(4, 7, 17, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 212, 255, 0.3);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #040711;
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.25);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--cyber-cyan);
}
