@font-face {
    font-family: '0xProtoNerdFontMono';
    src: url('../fonts/0xProtoNFM-Regular.woff2') format('woff2'),
        url('../fonts/0xProtoNFM-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: '0xProtoNerdFontMono', monospace;
    background: #0a0a0a;
    color: #00ffff;
    position: fixed;
    min-height: 100vh;
    min-width: 100vw;
    overflow: hidden;
}

/* nav bar */

a {
    text-decoration: none;
    font-family: '0xProtoNerdFontMono', monospace;
    color: #00ffff;
}

a:hover {
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.8);
}

nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem;
    border-bottom: 1px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    position: relative;
    z-index: 2;
    background: #0a0a0a;
}

nav a {
    color: #00ffff;
    margin-right: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover {
    border: 1px solid #ff00ff;
    border-radius: 10px;
    background: rgba(255, 0, 255, 0.1);
}

/* containers */

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
    margin: 2vh 5vw;
    gap: 30px;
    height: 90vh;
}

.grid-item {
    display: flex;
    border: 1px solid #00ffff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    z-index: 2;
    background: #0a0a0a;
    transform-origin: top;
}

.grid-item:hover {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        border-color: #00ffff;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
    }

    50% {
        border-color: #ff00ff;
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.6);
    }
}

.inner-grid {
    margin: 5%;
    height: 80%;
    width: 90%;
}

.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    text-align: center;
    margin-top: 6%;
}

.learning-grid i {
    font-size: 6rem;
    transition: color 0.5s ease;
}

.learning-grid i:hover {
    color: #ff00ff;
    transition: color 0.5s ease;
}

.project-list {
    display: flex;
    flex-direction: column;
    min-height: 90%;
    justify-content: space-between;
}

.project-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.project-item i,
svg {
    font-size: 5rem;
    fill: #00ffff;
}

a:hover svg {
    fill: #ff00ff;
}

.about-me {
    grid-row: 1/ 4;
    font-size: min(1.6vh, 1vw);
}

.selected-projects {
    grid-row: 1/5;
    grid-column: 2;
}

.currently-learning {
    grid-row: 4/5;
}

/* tool tips */

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f0f0f;
    color: #00ffff;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    text-shadow: none;
    z-index: 3;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* blinky cursor */

.blinky-cursor {
    animation: blink 1.2s linear infinite;
}

@keyframes blink {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* mobile menus */

.mobile-nav,
.mobile-nav-item,
.mobile-close {
    display: none;
}
