* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #000000;
    min-height: 100vh;
    width: 100%;
}

body {
    color: #00fab3;
    font-family: 'Courier New', monospace;
    overflow-x: hidden;
    position: relative;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.boot-screen, .scanlines, header, .container, footer {
    position: relative;
    z-index: 10;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0, 250, 179, 0.02) 0px, rgba(0, 250, 179, 0.02) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 2px);
    pointer-events: none;
    z-index: 999;
}

.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: fadeOut .5s forwards;
    animation-delay: .5s;
}

@keyframes fadeOut {
    to { opacity: 0; pointer-events: none; }
}

.boot-text {
    font-size: 1.2rem;
    color: #00fab3;
    text-shadow: 0 0 10px #00fab3;
    margin: 0.5rem 0;
    opacity: 0;
    animation: bootUp 0.5s forwards;
}

.boot-text:nth-child(1) { animation-delay: 0.1s; }
.boot-text:nth-child(2) { animation-delay: 0.1s; }
.boot-text:nth-child(3) { animation-delay: 0.1s; }
.boot-text:nth-child(4) { animation-delay: 1.1s; }

@keyframes bootUp {
    to { opacity: 1; }
}

header {
    padding: 2rem;
    border-bottom: 1px solid #00fab3;
    opacity: 0.9;
    background: #000000;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #00fab3;
    background: #000000;
    animation: dotPulse 2s infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { background: #000000; box-shadow: none; }
    50% { background: #00fab3; box-shadow: 0 0 10px #00fab3; }
}

.terminal-path {
    font-size: 0.9rem;
    color: #00fab3;
    flex-grow: 1;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

h1::before {
    content: '> ';
    animation: blink 1s infinite;
}

h1::after {
    content: '_';
    animation: blink 1s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.system-info {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    gap: 0.5rem;
}

.info-label {
    color: #00fab3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #000000;
}

.command-line {
    background: rgba(0, 250, 179, 0.03);
    border: 1px solid rgba(0, 250, 179, 0.3);
    border-left: 3px solid #00fab3;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    box-shadow: inset 0 0 20px rgba(0, 250, 179, 0.05);
}

.command-line::before {
    content: '~ ';
    color: #00fab3;
    font-weight: bold;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.dir-card {
    background: #000000;
    border: 1px solid rgba(0, 250, 179, 0.3);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.dir-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0), #00fab3, rgba(0, 0, 0, 0));
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.dir-card:hover {
    border-color: #00fab3;
    box-shadow: 0 0 30px rgba(0, 250, 179, 0.3), inset 0 0 30px rgba(0, 250, 179, 0.05);
    transform: translateY(-3px) scale(1.02);
}

.dir-card:hover::before {
    animation-duration: 1s;
}

.card-header {
    background: rgba(0, 250, 179, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 250, 179, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-id {
    font-size: 0.75rem;
    font-weight: bold;
}

.card-status {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid #00fab3;
    border-radius: 2px;
    text-transform: uppercase;
    background: rgba(0, 250, 179, 0.1);
    box-shadow: 0 0 10px rgba(0, 250, 179, 0.2);
}

.card-body {
    padding: 1.5rem;
    background: #000000;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    text-shadow: 0 0 10px rgba(0, 250, 179, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title::before {
    content: '//';
    font-size: 1rem;
}

.card-desc {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(0, 250, 179, 0.8);
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 250, 179, 0.2);
}

.meta-item::before {
    content: '▸ ';
}

.warning-banner {
    background: rgba(0, 250, 179, 0.05);
    border: 1px solid rgba(0, 250, 179, 0.3);
    border-left: 4px solid #00fab3;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: warningPulse 2s infinite;
}

@keyframes warningPulse {
    0%, 100% { border-left-color: #00fab3; }
    50% { border-left-color: rgba(0, 250, 179, 0.3); }
}

.warning-icon {
    font-size: 1.5rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 250, 179, 0.2);
    background: #000000;
}

/* Responsive: merged and cleaned */
@media (max-width: 768px) {
    header { padding: 1rem; }
    .container { padding: 1rem; max-width: 100%; margin: 0; }
    header img { width: 100%; max-width: 300px; height: auto; margin: 0 auto; display: block; }
    .terminal-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 0.5rem; }
    .terminal-path { font-size: 0.8rem; word-break: break-word; width: 100%; }
    .system-info { gap: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; flex-direction: column; }
    .info-item { flex: 0 0 calc(50% - 0.25rem); justify-content: space-between; }
    .directory-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; padding: 0; }
    .card-header { padding: 0.75rem 1rem; }
    .card-body { padding: 1rem; }
    .card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
    .card-desc { font-size: 0.85rem; line-height: 1.5; margin-bottom: 0.75rem; }
    .card-meta { gap: 1rem; padding-top: 0.75rem; font-size: 0.7rem; }
    .command-line { padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.9rem; }
    .warning-banner { padding: 0.75rem 1rem; margin: 1rem 0; font-size: 0.85rem; flex-direction: row; gap: 0.5rem; }
    .warning-icon { font-size: 1.2rem; flex-shrink: 0; }
    footer { padding: 1.5rem 1rem; margin-top: 2rem; }
    footer p { font-size: 0.8rem; margin: 0.5rem 0; word-break: break-word; }
    .dir-card { min-height: 120px; }
    .card-title, .card-status { touch-action: manipulation; }
    .scanlines { background: repeating-linear-gradient(0deg, rgba(0, 250, 179, 0.015) 0px, rgba(0, 250, 179, 0.015) 1px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 3px); }
    #particles-js canvas { transform: translateZ(0); backface-visibility: hidden; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container { padding: 1.5rem; max-width: 100%; }
    .directory-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    header { padding: 1.5rem; }
    header img { max-width: 350px; width: 100%; height: auto; }
    .system-info { gap: 1.5rem; }
}

@media (max-width: 480px) {
    header, .container { padding: 0.75rem; }
    .boot-text { font-size: 1rem; text-align: center; padding: 0 0.5rem; }
    .system-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .info-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .card-header { padding: 0.5rem 0.75rem; }
    .card-body { padding: 0.75rem; }
    .card-title { font-size: 1rem; }
    .card-desc { font-size: 0.8rem; }
    .card-meta { flex-direction: column; gap: 0.5rem; }
    .warning-banner { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    footer { padding: 1rem 0.75rem; }
    footer p { font-size: 0.75rem; }
    .directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 320px) {
    .boot-text { font-size: 0.9rem; }
    .terminal-path { font-size: 0.7rem; }
    .system-info { grid-template-columns: 1fr; }
    .command-line, .warning-banner { font-size: 0.75rem; }
}

@media (min-width: 1400px) {
    .container { max-width: 95%; padding: 2rem 1.5rem; }
    .directory-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.container, .directory-grid, .dir-card { min-width: 0; }
