/* =========================
 *   BASIC RESET
 *   ========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #0d1117;
    color: #c9d1d9;

    font-family:
    "JetBrains Mono",
    "Fira Code",
    "Cascadia Code",
    Consolas,
    monospace;

    line-height: 1.7;
}


/* =========================
 *   COLORS
 *   ========================= */

.green-text {
    color: #39ff88;
}

.blue-text {
    color: #58a6ff;
}


/* =========================
 *   HEADER
 *   ========================= */

.terminal-header {
    position: sticky;
    top: 0;

    z-index: 100;

    background: #161b22;

    border-bottom: 1px solid #30363d;

    padding: 12px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.terminal-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.terminal-name {
    margin-left: 8px;
    color: #8b949e;
    font-size: 14px;
}


/* Terminal window dots */

.dot {
    width: 11px;
    height: 11px;

    border-radius: 50%;

    display: inline-block;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}


/* =========================
 *   NAVIGATION
 *   ========================= */

nav {
    display: flex;
    gap: 22px;
}

nav a {
    color: #8b949e;

    text-decoration: none;

    font-size: 14px;

    transition: color 0.2s ease;
}

nav a:hover {
    color: #39ff88;
}


/* =========================
 *   MAIN
 *   ========================= */

main {
    width: min(1000px, 90%);

    margin: 0 auto;
}


/* =========================
 *   SECTIONS
 *   ========================= */

section {
    padding: 100px 0;
    border-bottom: 1px solid #21262d;
}


/* =========================
 *   HERO
 *   ========================= */

.hero {
    min-height: 90vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 4.5rem);

    color: #f0f6fc;

    margin: 20px 0;
}

.hero-description {
    max-width: 650px;

    font-size: 1.1rem;

    color: #8b949e;

    margin-bottom: 30px;
}


/* =========================
 *   TERMINAL PROMPT
 *   ========================= */

.prompt {
    color: #8b949e;

    margin-bottom: 15px;

    font-size: 14px;
}


/* =========================
 *   TERMINAL BOX
 *   ========================= */

.terminal-box {
    background: #010409;

    border: 1px solid #30363d;

    border-left: 3px solid #39ff88;

    padding: 25px;

    margin-top: 15px;

    box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25);
}

.terminal-box p {
    margin-bottom: 10px;
}

.terminal-box p:last-child {
    margin-bottom: 0;
}


/* =========================
 *   HEADINGS
 *   ========================= */

h2 {
    color: #f0f6fc;

    font-size: 2rem;

    margin-bottom: 30px;
}

h2::before {
    content: "# ";

    color: #39ff88;
}


/* =========================
 *   PROJECTS
 *   ========================= */

.projects {
    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;
}

.project {
    background: #161b22;

    border: 1px solid #30363d;

    padding: 25px;

    transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.project:hover {
    border-color: #39ff88;

    transform: translateY(-4px);
}

.project h3 {
    color: #f0f6fc;

    margin-bottom: 15px;
}

.project p {
    color: #8b949e;

    margin-bottom: 20px;
}

.project a {
    color: #39ff88;

    text-decoration: none;
}

.project a:hover {
    text-decoration: underline;
}


/* =========================
 *   LINKS
 *   ========================= */

.links {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.links a {
    display: block;

    padding: 15px 20px;

    color: #c9d1d9;

    text-decoration: none;

    background: #161b22;

    border: 1px solid #30363d;

    transition:
    color 0.2s ease,
    border-color 0.2s ease,
    padding-left 0.2s ease;
}

.links a:hover {
    color: #39ff88;

    border-color: #39ff88;

    padding-left: 28px;
}


/* =========================
 *   FOOTER
 *   ========================= */

footer {
    width: min(1000px, 90%);

    margin: auto;

    padding: 50px 0;

    color: #8b949e;

    text-align: center;
}

.copyright {
    margin-top: 15px;

    font-size: 13px;
}


/* =========================
 *   TERMINAL CURSOR
 *   ========================= */

.cursor {
    color: #39ff88;

    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}


/* =========================
 *   MOBILE
 *   ========================= */

@media (max-width: 650px) {

    .terminal-header {
        flex-direction: column;

        align-items: flex-start;
    }

    nav {
        width: 100%;

        overflow-x: auto;

        gap: 18px;
    }

    section {
        padding: 70px 0;
    }

    .hero {
        min-height: 80vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .terminal-box {
        padding: 18px;
    }
}

.ascii-logo {
    color: #00ff66;
    font-family: monospace;
    font-size: 5px;
    line-height: 1;
    white-space: pre;
    overflow-x: auto;
    margin: 1rem 0 2rem 0;
}
