
/* =========================
   TERMINAL PORTFOLIO THEME
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    color-scheme: dark;
    --bg: #080d0b;
    --surface: #0d1511;
    --surface-2: #111d17;
    --border: #20352a;
    --text: #e2eee6;
    --muted: #91a69a;
    --accent: #48e890;
    --accent-soft: rgba(72, 232, 144, 0.09);
    --shadow: rgba(0, 0, 0, 0.25);
    --terminal-bar: #121d17;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f7f4;
    --surface: #ffffff;
    --surface-2: #f4f8f5;
    --border: #d5e3d9;
    --text: #1b2b21;
    --muted: #62766a;
    --accent: #12864b;
    --accent-soft: rgba(18, 134, 75, 0.08);
    --shadow: rgba(20, 50, 30, 0.07);
    --terminal-bar: #eaf1ec;
}

body {
    background:
        radial-gradient(ellipse at 50% 0%, var(--accent-soft), transparent 40%),
        var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.7;
    transition: background .25s, color .25s;
}

a {
    color: inherit;
}

.container,
.topbar {
    width: min(100% - 40px, 1050px);
    margin: auto;
}

/* NAVIGATION */

.topbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--border);
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-family: Consolas, monospace;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.logo span,
.prompt {
    color: var(--accent);
}

.topbar nav {
    display: flex;
    gap: 23px;
}

.topbar nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: Consolas, monospace;
    font-size: 12px;
    transition: color .2s;
}

.topbar nav a:hover {
    color: var(--accent);
}

.theme-toggle {
    padding: 8px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: Consolas, monospace;
    font-size: 12px;
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

/* HERO */

.hero {
    padding: 65px 0 75px;
}

.terminal-window {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 45px var(--shadow);
}

.window-bar {
    min-height: 42px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--terminal-bar);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 11px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 9px;
    height: 9px;
    display: block;
    border-radius: 50%;
    background: #e36b65;
}

.window-dots i:nth-child(2) {
    background: #e8bb55;
}

.window-dots i:nth-child(3) {
    background: #52c77c;
}

.window-status {
    color: var(--accent);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 205px;
    align-items: center;
    gap: 35px;
    padding: 38px;
}

.terminal-line {
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 12px;
    margin-bottom: 17px;
}

.availability {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 4px 11px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 10px;
    letter-spacing: 1px;
}

.availability span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent);
}

.hero h1 {
    font-size: clamp(36px, 5vw, 57px);
    line-height: 1.2;
    letter-spacing: -2px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--accent);
}

.hero h2 {
    margin-top: 12px;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 12px;
    letter-spacing: 2px;
}

.intro {
    max-width: 620px;
    margin: 20px 0;
    color: var(--muted);
    font-size: 13px;
}

.contact-prompt {
    margin: 22px 0 10px;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.social-links a {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--surface-2);
    color: var(--text);
    text-decoration: none;
    font-family: Consolas, monospace;
    font-size: 11px;
    transition: .2s;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.location {
    margin-top: 15px;
    color: var(--muted);
    font-size: 12px;
}

/* PROFILE PHOTO */

.profile-panel {
    text-align: center;
}

.profile-frame {
    position: relative;
    width: 185px;
    height: 185px;
    margin: 0 auto 14px;
    overflow: hidden;
    border: 2px solid var(--accent);
    border-radius: 9px;
    background: var(--surface-2);
    box-shadow: 0 0 25px var(--accent-soft);
}

.profile-frame img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-frame img.visible {
    display: block;
}

.profile-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--accent);
    font-family: Consolas, monospace;
}

.profile-placeholder span {
    font-size: 48px;
    font-weight: bold;
}

.profile-placeholder small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 2px;
}

.profile-placeholder.hidden {
    display: none;
}

.upload-button {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--muted);
    background: var(--surface-2);
    font-family: Consolas, monospace;
    font-size: 11px;
    cursor: pointer;
    transition: .2s;
}

.upload-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.upload-button span {
    color: var(--accent);
}

.profile-caption {
    margin-top: 9px;
    color: var(--muted);
    font-family: Consolas, monospace;
    font-size: 10px;
}

/* SECTION HEADINGS */

.section {
    margin-bottom: 75px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-heading > span {
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 20px;
    font-weight: bold;
}

.section-command {
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 11px;
}

.section-heading h3 {
    font-size: 23px;
}

/* EXPERIENCE */

.timeline {
    margin-left: 9px;
    padding-left: 25px;
    border-left: 1px dashed var(--accent);
}

.experience-card {
    position: relative;
    margin-bottom: 18px;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 5px 18px var(--shadow);
    transition: border-color .2s, transform .2s;
}

.experience-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.experience-card::before {
    content: "";
    position: absolute;
    top: 29px;
    left: -32px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 9px var(--accent);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 16px;
}

.card-index {
    margin-bottom: 5px;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 10px;
}

.experience-header h4 {
    font-size: 16px;
}

.company {
    color: var(--muted);
    font-size: 12px;
}

.date {
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 11px;
    white-space: nowrap;
}

.experience-card ul {
    padding-left: 20px;
    color: var(--muted);
    font-size: 12px;
}

.experience-card li {
    margin-bottom: 7px;
    padding-left: 3px;
}

.experience-card li::marker {
    color: var(--accent);
}

/* TAGS */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 17px;
}

.tags span {
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 10px;
}

/* SKILLS */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.skill-card {
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: border-color .2s, transform .2s;
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.skill-symbol {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--accent);
    font-family: Consolas, monospace;
    font-size: 20px;
}

.skill-card h4 {
    margin-bottom: 9px;
    font-size: 13px;
}

.skill-card p {
    color: var(--muted);
    font-size: 11px;
}

/* EDUCATION */

.education-card,
.certificate {
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.education-card {
    margin-bottom: 14px;
}

.education-card h4,
.certificate h4 {
    font-size: 13px;
}

.education-card p,
.certificate p,
.education-card span,
.certificate span {
    color: var(--muted);
    font-size: 11px;
}

.certificates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* CONTACT */

.contact {
    margin: 70px 0;
    padding: 45px 20px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    text-align: center;
}

.contact h2 {
    margin: 8px 0;
    font-size: clamp(22px, 4vw, 30px);
}

.contact > p:not(.section-command) {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 12px;
}

.contact-button {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--accent);
    color: #07130b;
    text-decoration: none;
    font-family: Consolas, monospace;
    font-size: 12px;
    font-weight: bold;
}

.contact-button:hover {
    opacity: .85;
}

/* FOOTER */

footer {
    padding: 20px 0 35px;
    color: var(--muted);
    text-align: center;
    font-family: Consolas, monospace;
    font-size: 11px;
}

footer p {
    margin-top: 7px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
        padding: 15px 0;
    }

    .topbar nav {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-content {
        grid-template-columns: 1fr 165px;
        gap: 20px;
        padding: 25px;
    }

    .profile-frame {
        width: 150px;
        height: 150px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .container,
    .topbar {
        width: min(100% - 28px, 1050px);
    }

    .hero {
        padding: 40px 0 55px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .profile-panel {
        grid-row: 1;
        margin-bottom: 10px;
    }

    .profile-frame {
        width: 145px;
        height: 145px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero h2 {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .experience-header {
        flex-direction: column;
    }

    .date {
        white-space: normal;
    }

    .timeline {
        padding-left: 18px;
    }

    .experience-card {
        padding: 17px;
    }

    .experience-card::before {
        left: -25px;
    }

    .certificates,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .window-bar {
        font-size: 9px;
    }
}
