/* projects_style.css */
:root {
    --bg-color: #05080a;
    --text-color: #00dffc; /* Electric Sky Blue / Cyan */
    --shadow-color: rgba(0, 223, 252, 0.4);
    --border-color: rgba(0, 223, 252, 0.7);
    --card-bg: rgba(10, 25, 40, 0.5);
    --glitch-color-1: #ff00c1;
    --glitch-color-2: #00fff3;
}

body {
    background-color: var(--bg-color); color: var(--text-color); font-family: 'VT323', monospace;
    font-size: 1.1rem; display: flex; flex-direction: column; align-items: center;
    min-height: 100vh; margin: 0; padding: 20px; box-sizing: border-box;
}

.scanlines { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%); background-size: 100% 4px; z-index: 10; pointer-events: none; }

.container { width: 95%; max-width: 1200px; padding: 20px 40px; }
header { text-align: center; margin-bottom: 40px; }
h1 { font-size: 2.5rem; text-shadow: 0 0 10px var(--shadow-color); margin: 0; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 15px var(--shadow-color);
    backdrop-filter: blur(5px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    /* スクロールアニメーション用 */
    opacity: 0;
    transform: translateY(30px);
}
.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--shadow-color);
}

.project-image {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    aspect-ratio: 16 / 9; /* 画像のアスペクト比を16:9に */
}
.project-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }

.project-title { font-size: 1.8rem; margin: 0 0 10px 0; }
.project-status { margin: 0 0 15px 0; font-weight: bold; }
/* ステータスに応じて色を変更 */
.project-status[data-status="Complete"] { color: #00ff41; }
.project-status[data-status="In-Progress"] { color: #ffdd00; }

.project-description { margin: 0 0 20px 0; line-height: 1.5; }
.tech-title { font-size: 1.1rem; margin: 0 0 10px 0; border-bottom: 1px dashed var(--border-color); padding-bottom: 5px; }
.project-tech { list-style: none; padding: 0; margin: 0 0 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.project-tech li { background: rgba(0, 223, 252, 0.1); padding: 5px 10px; border: 1px solid rgba(0, 223, 252, 0.2); }

.project-links { margin-top: auto; display: flex; gap: 15px; }
.btn {
    border: 1px solid var(--border-color); color: var(--text-color);
    padding: 8px 15px; text-decoration: none; transition: background-color 0.2s, color 0.2s;
}
.btn:hover { background: var(--text-color); color: var(--bg-color); }

footer { text-align: center; margin-top: 40px; }
.back-link { color: var(--text-color); text-decoration: none; font-size: 1.2rem; }
.back-link:hover { background-color: var(--text-color); color: var(--bg-color); padding: 5px; }

/* Glitch effect (color updated) */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; background: var(--bg-color); }
.glitch::before { left: 2px; text-shadow: -2px 0 var(--glitch-color-1); animation: glitch-anim 3s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--text-color); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip-path: inset(89% 0 1% 0); } 100% { clip-path: inset(69% 0 18% 0); } }