body {
    font-family: 'Poppins', sans-serif;
    animation: earthquakeShake 0.3s infinite, colors 0.3s infinite;
}

.font-pixel {
    font-family: 'VT323', monospace;
}
.card-shake {
    animation: brutalshake 0.7s infinite;
}
.title-shake {
     animation: amazingshake 0.5s infinite;
}
nav, footer {
    animation: brutalshake 0.4s infinite;
}

section {
    text-align: center;
}

.profile-picture {
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 1.5rem auto;
    display: block;
}

h2 {
    animation: amazingshake 0.5s infinite;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
    margin-top: 3rem;
}

.project-card {
    background: #ffffff; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: brutalshake 0.6s infinite; 
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.project-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    margin: 1rem 1.2rem;
}

.project-card p {
    margin: 0 1.2rem 1.5rem 1.2rem;
    color: #666;
    font-size: 0.9rem;
}

.contact-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

footer {
    padding: 1rem;
    text-align: center;
}

.shake-on-hover:hover {
    animation: brutalshake 0.5s infinite;
}

@keyframes earthquakeShake {
  0% { transform: translate(3px, 2px) rotate(1deg); }
  10% { transform: translate(-2px, -3px) rotate(-1deg); }
  20% { transform: translate(-4px, 0px) rotate(1deg); }
  30% { transform: translate(4px, 3px) rotate(0deg); }
  40% { transform: translate(2px, -2px) rotate(1deg); }
  50% { transform: translate(-2px, 3px) rotate(-1deg); }
  60% { transform: translate(-4px, 2px) rotate(0deg); }
  70% { transform: translate(4px, 2px) rotate(-1deg); }
  80% { transform: translate(-2px, -2px) rotate(1deg); }
  90% { transform: translate(2px, 3px) rotate(0deg); }
  100% { transform: translate(2px, -3px) rotate(-1deg); }
}
@keyframes brutalshake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-0.5deg); }
  20% { transform: translate(-2px, 0px) rotate(0.5deg); }
  30% { transform: translate(2px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(0.5deg); }
  50% { transform: translate(-1px, 2px) rotate(-0.5deg); }
  60% { transform: translate(-2px, 1px) rotate(0deg); }
  70% { transform: translate(2px, 1px) rotate(-0.5deg); }
  80% { transform: translate(-1px, -1px) rotate(0.5deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-0.5deg); }
}
@keyframes amazingshake {
  0% { transform: translate(2px, 2px) rotate(0deg); }
  10% { transform: translate(-2px, -4px) rotate(-0.5deg); }
  20% { transform: translate(-4px, 0px) rotate(0.5deg); }
  30% { transform: translate(4px, 3px) rotate(0deg); }
  40% { transform: translate(2px, -2px) rotate(0.5deg); }
  50% { transform: translate(-2px, 4px) rotate(-0.5deg); }
  60% { transform: translate(-4px, 2px) rotate(0deg); }
  70% { transform: translate(4px, 2px) rotate(-0.5deg); }
  80% { transform: translate(-2px, -2px) rotate(0.5deg); }
  90% { transform: translate(2px, 4px) rotate(0deg); }
  100% { transform: translate(2px, -4px) rotate(-0.5deg); }
}
@keyframes colors {
    0% { background-color: #e83838; }
    10% { background-color: #ee9938; }
    20% { background-color: #e7e139; }
    30% { background-color: #64eb3a; }
    40% { background-color: #3be858; }
    50% { background-color: #38e0e6; }
    60% { background-color: #34a7f5; }
    70% { background-color: #9b38f1; }
    80% { background-color: #e233ee; }
    90% { background-color: #ef3aad; }
    100% { background-color: #f33d3d; }
}


@media (max-width: 640px) {
    header nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    header nav > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    header nav > div > * + * {
        margin-left: 0;
    }
}
#game-area {
    border: 4px solid #333;
}

#clickable-target {
    transition: all 0.5s ease-in-out;
    transform: translateZ(0); 
    user-select: none;
}
.hit-effect {
    filter: drop-shadow(0 0 15px rgb(255, 0, 0)) brightness(3.5);
    transform: translateZ(0) scale(1.2) rotate(360deg) !important;
}
