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

body,
html {
    height: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    background: radial-gradient(1200px 600px at 10% 10%, #071018 0%, #000000 30%), linear-gradient(135deg, #080a0b 0%, #020203 100%);
}

.containder {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 24px;
    color: var(--text, #d7e9d7);
}

:root {
    --bg: #071018;
    --panel: #0b1418;
    --panel-2: #081018;
    --accent: #7ef3a6;
    --accent-2: #ffd28a;
    --muted: #8b9aa0;
    --text: #cfeee0;
    --glass: rgba(255, 255, 255, 0.02);
}

.terminal {
    width: 100%;
    max-width: 1100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    border: 1px solid rgba(126, 243, 166, 0.06);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(2, 6, 8, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.term-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
    border-bottom: 1px dashed rgba(255, 255, 255, 0.03);
}

.term-title {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.6px;
}

.term-title .muted {
    color: var(--muted);
    font-weight: 400;
    margin-left: 8px
}

.term-nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: 12px;
    font-size: 0.95rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}

.term-nav a:hover,
.term-nav a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(126, 243, 166, 0.06)
}

.term-main {
    padding: 28px 28px 40px;

}

.hero {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 28px
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    background: var(--panel);
    display: block;
    flex-direction: row;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.02)
}

.hero-right h1 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 6px
}

.lead {
    color: var(--muted);
    margin-bottom: 12px
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.chip {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--accent-2);
    border: 1px solid rgba(255, 255, 255, 0.02);
    text-decoration: none;
}

.projects h2,
.contact h2 {
    color: var(--text);
    margin: 8px 0 12px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px
}

.card {
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 10px
}

.thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background: #07161a
}

.card h3 {
    margin-top: 4px;
    font-size: 1.05rem;
    color: var(--accent)
}

.card p {
    color: var(--muted);
    font-size: 0.9rem
}

.btn {
    display: inline-block;
    margin-top: auto;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: #06130a;
    background: var(--accent);
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(7, 23, 16, 0.6)
}

.btn:hover {
    transform: translateY(-1px)
}

.term-footer {
    padding: 12px 20px;
    border-top: 1px dashed rgba(255, 255, 255, 0.02);
    background: transparent
}

.status {
    color: var(--muted);
    font-size: 0.9rem
}

.status .ok {
    color: var(--accent);
    font-weight: 600
}

/* Responsive */
@media (max-width:720px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .avatar {
        width: 96px;
        height: 96px
    }

    .term-main {
        padding: 18px
    }
}

/* Accessibility focus */
a:focus {
    outline: 3px solid rgba(126, 243, 166, 0.08);
    outline-offset: 2px
}

/* Typewriter / caret */
.terminal-line {
    margin-top: 12px;
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    height: 1.4em;
}

.terminal-line .typed {
    color: var(--accent);
    background: transparent;
    padding: 2px 4px;
    border-radius: 4px;
    display: inline-block;
    white-space: pre;
    overflow: hidden
}

.cursor {
    color: var(--accent);
    font-weight: 800;
    line-height: 1;
    transform: translateY(-2px);
    opacity: 0.95
}


@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none
    }
}

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

.cursor {
    animation: blink 1s steps(2, start) infinite
}

#resume {
    font-family: 'Courier New', Courier, monospace;
    background-color: transparent;
    border: 0;
    padding: 0.4rem;
    font-size: 1rem;
    color: green;
    float: right;
    margin-top: -0.050rem;
    /* margin-right: 0.5rem; */
    transition: all 0.3s ease;
    background-color: yellowgreen;
    color: black;
    border-radius: 0.5rem;
}

#resume:hover {
    background-color: green;
    color: aliceblue;
    cursor: pointer;
}

#home4 {
    font-family: 'Courier New', Courier, monospace;
    background-color: transparent;
    border: 0;
    padding: 0.5rem;
    font-size: 1rem;
    color: #ff6a6a;
}

#home4:hover {
    background-color: #FF0000;
    color: aliceblue;
    cursor: pointer;
}

#home5 {
    font-family: 'Courier New', Courier, monospace;
    background-color: transparent;
    border: 0;
    /* padding: 0.5rem; */
    font-size: 1rem;
    color: rgb(0, 216, 216);
}

#home5:hover {
    background-color: blue;
    color: aliceblue;
    cursor: pointer;
}

#github-activity svg {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #github-activity svg {
        transform: scale(1.15);
        transform-origin: left top;
    }
}

@media (max-width: 768px) {
    .github-heatmap {
        width: 300px;
        /* whatever fits your sidebar */
        /* height: 45px;               zooms into last few months */
        overflow: hidden;
        /* hides old months */
        border-radius: 6px;
    }

    .github-heatmap img {
        width:600px;
        /* zoom in horizontally */
        transform: translateX(-300px);
        /* move left to show latest months */
    }
}

@media (max-width: 400) {
    .github-heatmap {
        width: 200px;
        /* whatever fits your sidebar */
        /* height: 45px;               zooms into last few months */
        overflow: hidden;
        /* hides old months */
        border-radius: 6px;
    }

    .github-heatmap img {
        width: 600px;
        /* zoom in horizontally */
        transform: translateX(-400px);
        /* move left to show latest months */
    }
}

.goback {
    position: fixed;
    top: 16px;
    left: 16px;
    text-decoration: none;
    color: var(--accent);
    font-size: 1rem;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.00));
}
@media (max-width: 600px) {
    .projects-layout {
        flex-direction: column
    }   }