@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600&display=swap");

body {
    font-family: "Source Code Pro", monospace;
    background: linear-gradient(135deg, #0d1117, #161b22);
    color: #d0d7de;
    margin: 0;
    padding-top: 70px;
    line-height: 1.7;
    user-select: none;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: #79c0ff;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #161b22;
    border-bottom: 2px solid #238636;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    padding: 0 20px;
    box-sizing: border-box;
}

h1 {
    color: #79c0ff;
    font-weight: 700;
    font-size: 2.6rem;
    text-align: center;
    margin: 0;
    text-shadow: 0 0 8px #79c0ff66;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #79c0ff;
    width: 10ch;
    animation: typing 3s steps(32, end) forwards,
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 10ch;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: #79c0ff;
    }
}

.container {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
}

nav {
    background: #161b22;
    border-right: 1px solid #30363d;
    width: 260px;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 6px rgb(35 134 54 / 0.25);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #238636 transparent;
    transition: transform 0.3s ease;
    z-index: 1001;
    transform: translateX(0);
}

nav::-webkit-scrollbar {
    width: 6px;
}

nav::-webkit-scrollbar-thumb {
    background-color: #238636;
    border-radius: 3px;
}

nav a {
    color: #cdd9e5;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 32px;
    margin: 2px 16px;
    border-left: 4px solid transparent;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    display: block;
    user-select: none;
    border-radius: 4px;
}

nav a:hover {
    background-color: #23863620;
    border-left-color: #238636;
    color: #56d364;
}

nav a.active {
    background-color: #23863640;
    border-left-color: #56d364;
    color: #56d364;
    font-weight: 700;
}

nav a:focus-visible {
    outline-offset: 2px;
    outline: 2px solid #56d364;
}

main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px 40px;
    background: #161b22;
}

section {
    max-width: 720px;
    margin: auto;
    background: #161b22;
    border-radius: 12px;
    box-shadow: 0 0 10px #23863644, inset 0 0 8px #79c0ff33;
    padding: 25px 30px;
    display: none;
    font-size: 1.05rem;
    color: #c9d1d9;
}

section.active {
    display: block;
    animation: fadeIn 0.7s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #56d364;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 6px #56d36466;
    border-left: 5px solid #238636;
    padding-left: 10px;
}

pre {
    white-space: pre-wrap;
    background: #0d1117;
    border: 1px solid #238636;
    border-radius: 10px;
    padding: 18px 22px;
    overflow-x: auto;
    box-shadow: inset 0 0 10px #23863644;
}

.yaml-key {
    color: #ff7b72;
    font-weight: 700;
}

.yaml-string {
    color: #a5d6ff;
}

.yaml-number {
    color: #ffab70;
}

p.intro-text {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #cdd9e5;
    line-height: 1.5;
}

details {
    background: #0f121a;
    border: 1px solid #2ea043;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px 20px;
    color: #b3c7e6;
}

details summary {
    font-weight: 700;
    font-size: 1.1rem;
    color: #82aaff;
    cursor: pointer;
    outline: none;
}

details[open] summary {
    color: #56d364;
}

details pre {
    margin-top: 12px;
    background: #131820;
    border-radius: 8px;
    padding: 12px 18px;
    box-shadow: inset 0 0 8px #23863644;
    color: #a5d6ff;
}

#hero {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: center;
}

.photo-container {
    width: 240px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #56d364;
    box-shadow: 0 0 18px #56d364aa;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.footer {
    text-align: center;
    margin-top: 70px;
    font-size: 0.95rem;
    color: #8b949e;
    font-style: italic;
}

.social-links {
    margin-top: 10px;
    font-style: normal;
}

.social-links a {
    color: #79c0ff;
    text-decoration: none;
    margin: 0 10px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    color: #56d364;
    outline: none;
}

#menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    background: #161b22;
    border: 2px solid #79c0ff;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1103;
    color: #79c0ff;
    font-size: 28px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    user-select: none;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    #hero{
        display: block;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 0;
        height: calc(100vh - 70px);
        width: 260px;
        background: #161b22;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 6px rgb(35 134 54 / 0.25);
        z-index: 1100;
    }

    nav.show {
        transform: translateX(0);
    }

    main {
        padding: 20px;
        overflow: visible;
    }

    #menu-toggle {
        display: flex;
    }

    nav a {
        margin: 8px 20px;
        border-left: none;
        border-radius: 6px;
        padding: 10px 15px;
    }
}