/* html > css > flexbox > bootstrap > javascript > react */

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

body {
    overflow: hidden;
    height: 100%;
    min-height: 100vh;
    color: #fff;
    font-family: "Courier New", monospace;
    overflow-x: hidden;
    overflow-x: hidden; 
    overflow-y: auto; 
}
  
html {
    scroll-behavior: smooth;
    background: #010101;
}

#matrix-rain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none; 
}
 

.page {
    min-height: 100vh;
    padding: 40px 20px 40px;
}

.pixel-text {
  font-family: 'Pixelify Sans', sans-serif;
}   


.navigation {
    display: flex;
    justify-content: center;
    align-items: flex-start;

    gap: 100px;

    margin-bottom: 20px;
}



.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: white;
    text-decoration: none;

    cursor: pointer;
}


.nav-item img {
    width: 110px;
    height: 110px;

    object-fit: contain;

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}



.nav-item:hover img {
    transform: scale(1.20);

    filter:
        drop-shadow(0 0 7px #a000ff)
        drop-shadow(0 0 15px rgba(160, 0, 255, 0.5));
}

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

.nav-spin:hover img {
    animation: spin 1.5s linear infinite;
}



@keyframes swing {
    0%, 100% { transform: scale(1.2) rotate(-15deg); }
    50%      { transform: scale(1.2) rotate(15deg); }
}

.nav-swing:hover img {
    animation: swing 0.6s ease-in-out infinite;
    transform-origin: center; 
}


.nav-item span {
    margin-top: 8px;

    color: white;

    font-size: 23px;
    letter-spacing: 1px;

    text-transform: lowercase;
}


.content {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;

    padding: 40px 20px;
    background: rgba(1, 1, 1, 0.8);
    border-radius: 8px;
}


h1 {
    margin-bottom: 40px;
    font-size: clamp(80px, 5vw, 55px);
    font-weight: bold;

    color: white;
}


.about h2 {
    margin-bottom: 20px;

    font-size: 30px;
    font-weight: bold;
}


.about p {
    max-width: 900px;
    margin: 0 auto;
    font-size: 22px;
    line-height: 1.55;
    color: white;

}

@media (max-width: 700px) {

    .page {
        padding-top: 25px;
    }

    .navigation {
        gap: 25px;
        flex-wrap: wrap;
        margin-bottom: 45px;
    }

    .nav-item img {
        width: 80px;
        height: 80px;
    }

    .nav-item span {
        font-size: 14px;
    }

    h1 {
        font-size: 32px;
    }

    .about h2 {
        font-size: 21px;
    }

    .about p {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 450px) {

    .navigation {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 10px;
    }

    .nav-item img {
        width: 70px;
        height: 70px;
    }
}