@font-face {
    font-family: 'Hacked';
    src: url('font/Hacked.ttf') format('truetype');
}

body {
    font-family: 'Courier New', monospace;
    margin: 0;
    background-color: #000;
    color: #33ff33;
    overflow-x: hidden;
    cursor: crosshair;
}

    body.light {
        background-color: #fff;
        color: #111;
    }

    body.light {
        background-color: #fff;
        color: #000;
    }

        body.light .btn {
            background: #fff;
            color: #000;
            border-color: #000;
        }

        body.light .header-box,
        body.light .card,
        body.light .project-wrapper,
        body.light .modal-content {
            background-color: #fff;
            color: #000;
            border-color: #000;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }

        body.light .ascii-name,
        body.light .glitch-title,
        body.light .info-text,
        body.light .counter,
        body.light .objective {
            color: #000;
        }

        body.light a {
            color: #000;
            text-decoration: underline;
        }


canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.topbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.btn {
    background: #000;
    color: #33ff33;
    border: 1px solid #33ff33;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

body.light .btn {
    background: #fff;
    color: #111;
    border-color: #111;
}

.header-box {
    background: #000;
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #33ff33;
    box-shadow: 0 0 10px #00ff99;
}

.profile-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px solid #33ff33;
    object-fit: cover;
    margin-bottom: 0; /* removed spacing */
}

.ascii-name {
    font-family: 'Hacked', monospace;
    font-size: 5rem;
    white-space: break-spaces;
    animation: glitch 1s infinite;
    margin-top: 0; /* remove spacing above */
    margin-bottom: 1rem;
}


@keyframes glitch {
    0% {
        text-shadow: 0 0 2px #0ff, 0 0 4px #f0f;
    }

    20% {
        text-shadow: 2px -2px 4px #f0f, -2px 2px 4px #0ff;
    }

    40% {
        text-shadow: -2px 2px 4px #0ff, 2px -2px 4px #f0f;
    }

    60% {
        text-shadow: 0 0 3px #0ff, 0 0 3px #f0f;
    }

    80% {
        text-shadow: 1px -1px 3px #f0f, -1px 1px 3px #0ff;
    }

    100% {
        text-shadow: 0 0 2px #0ff, 0 0 4px #f0f;
    }
}

.info-text {
    margin-top: 1rem;
    font-size: 1.2rem;
}

.objective {
    font-size: 1rem;
    margin: 1rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.counter-box {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-weight: bold;
}

.counter {
    font-size: 1.5rem;
    color: #00ff99;
}

.project-wrapper {
    width: 95%;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #33ff33;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 15px #00ff99;
}

.project-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: #111;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .project-card:hover {
        transform: scale(1.02);
        box-shadow: 0 0 12px #00ff99;
    }

    .project-card img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border: 1px solid #33ff33;
        border-radius: 8px;
    }

.info {
    flex: 1;
}

.row-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1100px;
}

.card {
    background: #000;
    border: 1px solid #33ff33;
    box-shadow: 0 0 8px #33ff33;
    border-radius: 10px;
    padding: 1.5rem;
    width: 300px;
    min-height: 200px;
    transition: transform 0.3s ease;
}

    .card:hover {
        transform: translateY(-5px);
    }

h3.glitch-title {
    font-family: 'Hacked', monospace;
    animation: glitch 1.5s infinite;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: 5% auto;
    background: #111;
    color: #33ff33;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    text-align: center;
}

    .modal-content img {
        max-width: 100%;
        margin: 1rem 0;
        border-radius: 8px;
        border: 1px solid #33ff33;
    }

.close {
    color: #ff5555;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (max-width: 768px) {
    .ascii-name {
        font-size: 2.5rem;
    }

    .btn {
        font-size: 0.9rem;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
    }

    .row-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Keep your existing CSS above this and add or replace below */

body.light {
    background-color: #fff;
    color: #000;
}

body.light .btn {
    background: #fff;
    color: #000;
    border-color: #000;
}

body.light .header-box,
body.light .card,
body.light .project-wrapper,
body.light .modal-content {
    background-color: #fff;
    color: #000;
    border-color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.light .ascii-name,
body.light .glitch-title,
body.light .info-text,
body.light .counter,
body.light .objective {
    color: #000;
}

body.light a {
    color: #000;
    text-decoration: underline;
}

body.light .project-card {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
    }

body.light .project-card:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

body.light .modal-content {
    background-color: #fff;
    color: #000;
    border-color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
