/* Modular CV Layout */

.tech-grid-modular {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    gap: 10px;
}

.tech-card:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.2);
}

.tech-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.5));
}

.tech-card span {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Interests Grid */
.interest-grid-modular {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.interest-tag {
    padding: 10px 20px;
    background: rgba(255, 140, 0, 0.05);
    border: 1px solid var(--accent-orange) !important;
    color: var(--accent-orange);
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(255, 140, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
    transform: scale(1.05);
}

/* Personnel File Header override if needed */
.mission-header {
    margin-bottom: 80px;
}

/* Reusing Home Dossier Styles */
.project-dossier {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Ensure the dossiers in CV look like the ones in Home */
.dossier-card {
    border: 1px solid var(--accent-cyan);
    box-shadow: var(--border-glow);
    padding: 30px;
    background: rgba(0, 242, 255, 0.05);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

@media (max-width: 800px) {
    .dossier-card {
        grid-template-columns: 1fr;
    }

    .tech-grid-modular {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Detail Sub-window for CV Items */
.cv-detail-window {
    position: fixed;
    z-index: 1000;
    width: 250px;
    background: rgba(0, 10, 20, 0.95);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    padding: 15px;
    pointer-events: none;
    display: none;
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-color);
}

.cv-detail-window.active {
    display: block;
}

.cv-detail-window h4 {
    color: var(--accent-orange);
    margin: 0 0 10px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
    padding-bottom: 5px;
    text-transform: uppercase;
}

.cv-detail-window p {
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 10px 0;
    color: #e0e0e0;
}

.cv-detail-window .projects-list {
    margin-top: 10px;
}

.cv-detail-window .projects-list span {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 4px;
}

.cv-detail-window .projects-list span::before {
    content: "> ";
    color: var(--accent-cyan);
}

.cv-detail-media {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-top: 15px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    background: #000;
}
