@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Pixelify+Sans:wght@400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Coral+Pixels&display=swap');

* {
    font-family: "Montserrat", sans-serif;
}

body {
    background-color: #F5F1EB;
    max-width: 100vw;
}

h1, h2 {
    font-weight: 900;
    color: #FF6B6B;
    text-align: center;
    position: relative;
}

h1::before, h1::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: #5DADE2;
    clip: rect(0, 900px, 50%, 0);
    animation: glitch 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}


.header {
    padding: 3rem;
    text-align: center;
}

.skills {
    padding: 2rem;
    text-align: center;
}

.grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background-color: #FCE8D5; /* pastel block */
    padding: 2rem;
    text-align: center;
    box-shadow: 4px 4px 0 #0B3D2E; /* retro block shadow */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translate(-4px, -4px); /* pops up like retro button */
    box-shadow: 8px 8px 0 #0B3D2E; /* bigger retro shadow on hover */
}

.card img {
    width: 60%;
    max-width: 80px;
    height: auto;
    image-rendering: pixelated; /* optional, retro feel for logos */
}

.card p {
    font-weight: bold;
    color: #0B3D2E;
    margin: 0;
}
