html,
body {
    height: 100%;
    margin: 0;
    background: #050505;
    font-family: 'Pixelify Sans', sans-serif;
    color: white;
    scroll-behavior: smooth;
}

:root {
    --accent-color: #00ff41;
    --accent-dim: rgba(0, 255, 65, 0.2);
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 20%
    }
}

@keyframes float {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes cursor-blink {
    50% {
        border-color: transparent;
    }
}

main {
    display: flex;
    justify-content: center;
    padding-left: 70px;
    padding-bottom: 150px;
}

/* - - - - - - - - - NAVIGATION BAR  - - - - - - - - - */
nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

#nav-block {
    list-style-type: none;
    font-size: 20px;
    padding: 0;
    display: flex;
    gap: 10vw;
    margin: 40px 0 80px 0;
}

.nav-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-item:hover {
    color: var(--accent-color);
    text-shadow: var(--accent-color) 0px 0px 10px;
}

/* - - - - - HERO / MAIN SECTION - - - - - */

main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 60vh;
}

#main-block {
    width: 100%;
    display: flex;
    justify-content: center;
}

.home {
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.greeting {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* THE TEXT BLOCK */
.text-side {
    width: 100%;
    max-width: 1000px;
    padding-top: 70px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#main-greeting {
    font-size: clamp(76px, 5vw, 75px);
    font-weight: bold;
    color: white;
    line-height: 1.1;
    margin: 0 0 20px 0;
    white-space: normal;
}

#main-bio {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    color: #cccccc;
    text-align: left;
    margin: 0;
    line-height: 1.6;
    max-width: 100%;
}

/* TERMINAL TEXT */
.log {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

#log-text {
    font-size: 18px;
    color: var(--accent-color);
    text-shadow: var(--accent-color) 0px 0px 10px;
    font-family: 'Courier New', monospace;
    margin: 0;
    white-space: nowrap;
}

#time-log {
    color: var(--accent-color);
    text-shadow: var(--accent-color) 0px 0px 10px;
    font-weight: bold;
    margin-right: 8px;
}

#info-tag {
    color: var(--accent-color);
    margin-right: 8px;
}

#status-msg {
    color: var(--accent-color);
    border-right: 10px solid var(--accent-color);
    text-shadow: var(--accent-color) 0px 0px 10px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-color);
    }
}

/* - - - - - RESPONSIVE (Mobile) - - - - - */
@media (max-width: 900px) {
    .greeting {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .text-side {
        align-items: center;
        text-align: center;
    }

    #main-bio {
        text-align: center;
    }

    #gif {
        height: 180px;
    }
}

/* - - - - - - - - - PROJECT / SKILLS SECTION  - - - - - - - - - */

#project-section {
    padding-top: 70px;
    padding-bottom: 100px;
}

#projects-bio-header,
#projects-header {
    font-family: 'Pixelify Sans';
    font-size: 40px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.projects-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* CARD */
.project-bio-card {
    width: 80%;
    max-width: 1000px;
    font-family: 'Courier New', monospace;
    background-color: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    color: white;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#projects-bio {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.skill-category h3 {
    color: var(--accent-color);
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    font-family: 'Pixelify Sans';
}

.skill-category ul {
    list-style-type: none;
    padding-left: 0;
}

.skill-category li::before {
    content: "> ";
    color: var(--accent-color);
    font-weight: bold;
}

.lang-header {
    font-weight: bold;
    margin-top: 20px;
}

.lang-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.lang-list li {
    background: #222;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #444;
    font-size: 14px;
}

.lang-level {
    color: var(--accent-color);
    text-shadow: var(--accent-color) 0px 0px 10px;
}

/* PROJECT CARDS */
.project-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.card {
    width: 450px;
    min-height: 250px;
    font-family: 'Courier New', monospace;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-dim);
    transform: translateY(-5px);
}

.card-info {
    text-decoration: none;
    color: white;
}

.card-info h2 {
    font-family: 'Pixelify Sans';
    font-size: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-type {
    color: var(--accent-color);
    font-size: 14px;
    border: 1px solid var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
}

/* - - - - - RESPONSIVE - - - - - */
@media (max-width: 768px) {
    #nav-block {
        gap: 20px;
        font-size: 16px;
    }

    #main-greeting {
        text-align: center;
    }

    .project-bio-card {
        width: 90%;
        padding: 20px;
    }

    .card {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* - - - - - CONTACT SECTION - - - - - */

#contact {
    display: flex;
    justify-content: center;
    padding: 0 0 50px 0;
    width: 100%;
}

.contact-block {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-align: left;
}

#contact-header {
    font-family: 'Pixelify Sans';
    font-size: 40px;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.terminal-output {
    background-color: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.comment {
    color: #666;
    margin: 0 0 20px 0;
}

.cmd-line {
    margin-top: 15px;
}

.prompt {
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.cmd {
    color: white;
}

.result {
    margin: 5px 0 15px 0;
    padding-left: 20px;
}

.result a {
    color: #cccccc;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px dashed #555;
}

.result a:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    text-shadow: 0 0 8px var(--accent-dim);
}

#footer-note {
    text-align: center;
    font-family: 'Play', sans-serif;
    color: #444;
    font-size: 14px;
    margin-top: 50px;
}

/* Mobile */
@media (max-width: 600px) {
    .terminal-output {
        font-size: 14px;
        padding: 15px;
    }
}

/* STAR BACKGROUND */
.sky {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.star {
    position: absolute;
    background: white;
    border-radius: 0;
    opacity: 1;
    animation: twinkle linear infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    40% {
        opacity: 0.2;
        transform: scale(1.2);
    }

    60% {
        opacity: 0;
        transform: scale(0.9);
    }
}

.star:nth-child(n) {
    width: 2px;
    height: 2px;
}

.star:nth-child(3n) {
    width: 1px;
    height: 1px;
}


.star:nth-child(5n) {
    width: 3px;
    height: 3px;
}

.star:nth-child(11n) {
    width: 4px;
    height: 4px;
}

.star:nth-child(2n) {
    animation-duration: 2s;
}

.star:nth-child(3n) {
    animation-duration: 3s;
}

.star:nth-child(4n) {
    animation-duration: 4s;
}

.star:nth-child(5n) {
    animation-duration: 5s;
}

.star:nth-child(7n) {
    animation-delay: 0s;
}

.star:nth-child(9n) {
    animation-delay: 0.5s;
}

.star:nth-child(13n) {
    animation-delay: 1s;
}

.star:nth-child(17n) {
    animation-delay: 1.5s;
}

/* - - - - - - - - */