/* ============================================
   CARDS - Projects, Reports, etc.
   Tron / Matrix Theme
   ============================================ */

/* Work Section */
.work-section {
    padding: 100px 0;
    background: #000;
    position: relative;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.project-card {
    position: relative;
    background: rgba(0, 10, 5, 0.8);
    border-radius: 4px;
    padding: 2rem;
    border: 1px solid rgba(255, 51, 51, 0.15);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    overflow: hidden;
}

/* Tron corner accents */
.project-card::before,
.project-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.project-card::before {
    top: 0;
    left: 0;
    border-top: 2px solid rgba(255, 51, 51, 0.3);
    border-left: 2px solid rgba(255, 51, 51, 0.3);
}

.project-card::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    border-right: 2px solid rgba(255, 51, 51, 0.3);
}

/* Scan line effect */
.project-card .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transform: translateY(-100%);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 30px rgba(255, 51, 51, 0.15),
        inset 0 0 30px rgba(255, 51, 51, 0.03);
    border-color: rgba(255, 51, 51, 0.4);
    background: rgba(0, 20, 10, 0.9);
}

.project-card:hover::before,
.project-card:hover::after {
    width: 40px;
    height: 40px;
    border-color: var(--accent);
}

.project-card:hover .scan-line {
    animation: scan-down 1s ease-out;
}

@keyframes scan-down {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(400px); }
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(255, 51, 51, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 6px;
    color: var(--accent);
    transition: all 0.2s ease;
}

.project-card:hover .link-icon {
    background: transparent;
    border-color: #00ff41;
    color: #00ff41;
    box-shadow: none;
}

.project-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.project-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--accent-dim);
    background: rgba(255, 51, 51, 0.05);
    border: 1px solid rgba(255, 51, 51, 0.15);
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.project-card:hover .project-tech span,
.project-card:hover .project-type {
    color: #00ff41;
    background: rgba(0, 255, 65, 0.15);
    border-color: rgba(0, 255, 65, 0.8);
    box-shadow: none;
}

.project-card-future-focus {
    background:
        linear-gradient(145deg, rgba(255, 51, 51, 0.06), rgba(0, 255, 65, 0.025)),
        rgba(0, 10, 5, 0.8);
    border-style: dashed;
}

.project-card-future-focus .project-description {
    margin-bottom: 1rem;
}

.future-focus-signal {
    display: grid;
    gap: 0.55rem;
    margin: 0.2rem 0 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 51, 51, 0.16);
    background: rgba(255, 255, 255, 0.025);
}

.future-focus-signal span {
    display: block;
    height: 10px;
    max-width: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.32), rgba(164, 255, 110, 0.18), transparent);
    filter: blur(4px);
    opacity: 0.78;
}

.future-focus-signal span:nth-child(2) {
    width: 72%;
}

.future-focus-signal span:nth-child(3) {
    width: 46%;
}

/* Report Cards */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.report-card {
    background: rgba(0, 20, 0, 0.5);
    border: 1px solid rgba(255, 51, 51, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.report-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.2);
}

.report-header {
    text-align: center;
    margin-bottom: 2rem;
}

.report-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid rgba(255, 51, 51, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.report-icon i {
    font-size: 2rem;
    color: var(--accent);
}

.report-card h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.report-subtitle {
    color: var(--text-medium);
    font-style: normal;
    margin-bottom: 1rem;
}

.report-highlights h4 {
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.report-highlights ul {
    list-style: none;
    padding: 0;
}

.report-highlights li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 51, 51, 0.1);
    color: var(--text-medium);
    font-size: 0.9rem;
}

.report-highlights li:before {
    content: "> ";
    color: var(--accent);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.report-highlights li:last-child {
    border-bottom: none;
}

.report-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Animation keyframe */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }
}
