/* =========================================================
   enoblega.com.ar — Landing y Terminal
   ========================================================= */

:root {
    --bg: #060b14;
    --grid: rgba(80, 125, 180, 0.075);

    --terminal-bg: #080e18;
    --terminal-header: #111927;
    --border: #25364e;

    --cyan: #63f3ff;
    --cyan-soft: #43cbd6;

    --white-soft: #d7e7ed;
    --gray: #718198;
    --gray-dark: #46566d;

    --error: #ff6b6b;
    --green: #51d88a;
    --yellow: #ffd166;

    --shadow: rgba(0, 0, 0, 0.55);

    --nav-height: 60px;
}


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

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    background-color: var(--bg);

    background-image:
        linear-gradient(
            var(--grid) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--grid) 1px,
            transparent 1px
        );

    background-size: 32px 32px;

    color: var(--cyan);

    font-family:
        "SFMono-Regular",
        "Cascadia Code",
        "Roboto Mono",
        "Liberation Mono",
        Menlo,
        Consolas,
        monospace;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    background: rgba(6, 11, 20, 0.92);
    backdrop-filter: blur(6px);

    border-bottom: 1px solid var(--border);
}

.navbar-inner {
    max-width: 1180px;
    margin: 0 auto;

    height: var(--nav-height);

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

    padding: 0 22px;
}

.navbar-brand {
    color: var(--white-soft);
    text-decoration: none;
    font-weight: 700;
}

.navbar-prompt {
    color: var(--cyan);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s ease;
}

.navbar-links a:hover {
    color: var(--cyan);
}

.navbar-toggle {
    display: none;

    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;

    padding: 8px 9px;

    cursor: pointer;
}

.navbar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: var(--cyan);
}


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

.hero {
    min-height: 100vh;

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

    padding: calc(var(--nav-height) + 40px) 22px 60px;
}


/* =========================================================
   TERMINAL WINDOW
   ========================================================= */

.terminal-window {
    width: min(980px, 100%);
    height: min(640px, calc(100vh - var(--nav-height) - 80px));

    min-height: 420px;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--terminal-bg);

    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow:
        0 30px 80px var(--shadow),
        0 0 0 1px rgba(255, 255, 255, 0.01);
}


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

.terminal-header {
    flex: 0 0 54px;

    display: flex;
    align-items: center;

    padding: 0 18px;

    background: var(--terminal-header);

    border-bottom: 1px solid var(--border);

    position: relative;
}


/* Traffic lights */

.traffic-lights {
    display: flex;
    align-items: center;
    gap: 9px;
}

.traffic-light {
    width: 13px;
    height: 13px;
    border-radius: 50%;
}

.traffic-light.close {
    background: #ff4d4f;
}

.traffic-light.minimize {
    background: #ffb020;
}

.traffic-light.maximize {
    background: #25c76f;
}


/* Window title */

.terminal-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    color: var(--gray);
    font-size: 12px;

    user-select: none;
}


/* =========================================================
   TERMINAL BODY
   ========================================================= */

.terminal-body {
    flex: 1;

    overflow-y: auto;

    padding: 24px 26px 40px;

    font-size: 14px;
    line-height: 1.65;

    scrollbar-width: thin;
    scrollbar-color: var(--gray-dark) transparent;
}

.terminal-body::-webkit-scrollbar {
    width: 7px;
}

.terminal-body::-webkit-scrollbar-track {
    background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
    background: var(--gray-dark);
    border-radius: 10px;
}


/* =========================================================
   PROMPT / COMMAND
   ========================================================= */

.terminal-input-line,
.terminal-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-height: 23px;
}

.prompt {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 700;
}

.command {
    color: var(--cyan);
    font-weight: 600;
}


/* =========================================================
   REAL TERMINAL INPUT
   ========================================================= */

.terminal-input {
    flex: 1;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--cyan);
    font: inherit;
    font-weight: 600;
    caret-color: var(--cyan);
}

.terminal-input:focus {
    outline: none;
}


/* =========================================================
   OUTPUT
   ========================================================= */

.terminal-output,
.terminal-command-output {
    color: var(--cyan);
}

.terminal-output {
    margin-top: 3px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.welcome-output {
    color: var(--cyan);
    margin-bottom: 3px;
}

.welcome-output strong {
    font-weight: 700;
}

.highlight {
    color: var(--white-soft);
}


/* =========================================================
   SPACING
   ========================================================= */

.terminal-spacer {
    height: 18px;
}


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

.command-section {
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 7px;
    color: var(--white-soft);
    font-weight: 700;
}

.secondary-title {
    margin-top: 22px;
}

.subsection-title {
    margin-top: 16px;
    margin-bottom: 5px;
    color: var(--white-soft);
    font-weight: 700;
}


/* =========================================================
   LISTS
   ========================================================= */

.command-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.command-list-item {
    display: flex;
    gap: 10px;
    color: var(--cyan);
}

.list-marker {
    color: var(--gray);
    user-select: none;
}

.command-name {
    min-width: 170px;
    color: var(--white-soft);
    font-weight: 600;
}


/* =========================================================
   PROFILE
   ========================================================= */

.profile-name {
    color: var(--white-soft);
    font-size: 18px;
    font-weight: 700;
}

.profile-title {
    margin-top: 2px;
    color: var(--cyan-soft);
}

.profile-role {
    color: var(--cyan);
}

.profile-location {
    color: var(--gray);
}

.profile-output p {
    max-width: 900px;
    margin: 8px 0;
    color: var(--cyan);
}

.output-divider {
    width: 100%;
    max-width: 900px;
    height: 1px;
    margin: 14px 0;
    background: var(--border);
}


/* =========================================================
   SKILLS
   ========================================================= */

.skill-category {
    margin-bottom: 16px;
}

.skill-category .section-title {
    color: var(--white-soft);
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience-item {
    max-width: 950px;
    margin-bottom: 32px;
    padding-left: 15px;
    border-left: 2px solid var(--border);
}

.experience-period {
    color: var(--gray);
    font-size: 12px;
}

.experience-role {
    margin-top: 3px;
    color: var(--white-soft);
    font-size: 17px;
    font-weight: 700;
}

.experience-company {
    color: var(--cyan-soft);
}

.experience-item p {
    color: var(--cyan);
}


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

.project-item,
.project-detail {
    max-width: 950px;
    margin-bottom: 24px;
}

.project-id {
    color: var(--gray);
    font-size: 12px;
}

.project-name {
    margin-top: 2px;
    color: var(--white-soft);
    font-size: 17px;
    font-weight: 700;
}

.project-technologies {
    margin-top: 2px;
    color: var(--cyan-soft);
    font-size: 12px;
}

.project-item p,
.project-detail p {
    max-width: 850px;
    color: var(--cyan);
}

.project-command-hint {
    color: var(--gray);
}

.project-command-hint span {
    color: var(--white-soft);
}


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

.repository-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.repository-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.repository-item a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.15s ease;
}

.repository-item a:hover {
    color: var(--white-soft);
    text-decoration: underline;
}


/* =========================================================
   EDUCATION
   ========================================================= */

.education-item {
    max-width: 900px;
    margin-bottom: 22px;
}

.education-period {
    color: var(--gray);
    font-size: 12px;
}

.education-title {
    margin-top: 2px;
    color: var(--white-soft);
    font-size: 17px;
    font-weight: 700;
}

.education-institution {
    color: var(--cyan-soft);
}

.education-faculty {
    color: var(--gray);
}


/* =========================================================
   COURSES
   ========================================================= */

.course-item,
.course-detail {
    max-width: 900px;
    margin-bottom: 22px;
}

.course-year {
    color: var(--gray);
    font-size: 12px;
}

.course-name {
    margin-top: 2px;
    color: var(--white-soft);
    font-weight: 700;
}

.course-institution {
    color: var(--cyan-soft);
}

.course-duration {
    color: var(--gray);
}

.course-command-hint,
.course-info {
    margin-top: 5px;
    color: var(--gray);
}

.course-command-hint span,
.course-info span {
    color: var(--white-soft);
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-label {
    margin-bottom: 4px;
    color: var(--gray);
}

.contact-output a {
    color: var(--cyan);
    text-decoration: none;
}

.contact-output a:hover {
    color: var(--white-soft);
    text-decoration: underline;
}


/* =========================================================
   SYSTEM OUTPUT
   ========================================================= */

.system-output {
    color: var(--cyan);
}

.history-line {
    display: flex;
    gap: 15px;
}

.history-number {
    width: 30px;
    color: var(--gray);
    text-align: right;
}

.autocomplete-output {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--white-soft);
}


/* =========================================================
   ERRORS
   ========================================================= */

.error-output {
    color: var(--error);
}

.error-output span {
    color: var(--white-soft);
}

.sudo-output {
    color: var(--yellow);
}


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

.cursor {
    display: inline-block;
    width: 8px;
    height: 17px;
    margin-left: 4px;
    vertical-align: -3px;
    background: var(--cyan);
    animation: cursor-blink 1s steps(1, end) infinite;
}

@keyframes cursor-blink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}


/* =========================================================
   LANDING
   ========================================================= */

.landing {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 22px 60px;
}

.landing-section {
    scroll-margin-top: calc(var(--nav-height) + 20px);
    padding: 70px 0 20px;
}

.landing-title {
    display: flex;
    align-items: baseline;
    gap: 12px;

    color: var(--white-soft);
    font-size: 26px;
    font-weight: 700;

    margin: 0 0 24px;
    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);
}

.landing-prompt {
    color: var(--cyan);
}

.landing-body {
    color: var(--cyan);
    font-size: 15px;
    line-height: 1.7;
}


/* About (landing) */

.about-body .profile-name {
    font-size: 24px;
}

.about-body .profile-role {
    font-size: 16px;
}

.about-body .profile-output p {
    max-width: 780px;
}


/* Skills (landing) */

.skills-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px 28px;
}

.skills-body .skill-category {
    margin-bottom: 0;
}


/* Projects (landing) */

.projects-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.projects-body .project-item {
    max-width: none;
    margin-bottom: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--terminal-bg);
}

.projects-body .project-item p {
    margin-bottom: 14px;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-links a {
    color: var(--cyan);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.project-links a:hover {
    color: var(--white-soft);
    border-color: var(--cyan-soft);
}


/* Experience (landing) */

.experience-body .experience-item {
    max-width: none;
    margin-bottom: 26px;
}

.experience-env {
    margin-top: 10px;
}

.experience-env-tag {
    display: inline-block;
    margin: 3px 6px 3px 0;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--gray);
    font-size: 12px;
}


/* Courses (landing) */

.courses-body .course-item {
    max-width: none;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--terminal-bg);
}

.courses-body .course-metadata {
    color: var(--gray);
    font-size: 12px;
    margin-top: 4px;
}

.course-verify-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--cyan);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
}

.course-verify-link:hover {
    color: var(--white-soft);
    border-color: var(--cyan-soft);
}


/* Contact (landing) */

.contact-row {
    max-width: 760px;

    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.contact-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;

    min-width: 180px;

    padding: 14px 18px;

    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--terminal-bg);

    color: var(--cyan);
    text-decoration: none;

    transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-tile:hover {
    border-color: var(--cyan-soft);
    color: var(--white-soft);
}

.contact-tile-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray);
}

.contact-tile-text {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}


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

.site-footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 22px 40px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    color: var(--gray);
    font-size: 13px;

    border-top: 1px solid var(--border);
}

.footer-dot {
    color: var(--gray-dark);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 760px) {
    .navbar-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;

        flex-direction: column;
        align-items: flex-start;
        gap: 0;

        background: rgba(6, 11, 20, 0.97);

        border-bottom: 1px solid var(--border);

        padding: 8px 24px;

        display: none;
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        padding: 10px 0;
    }

    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 700px) {
    .hero {
        padding: calc(var(--nav-height) + 24px) 12px 40px;
    }

    .terminal-window {
        width: 100%;
        border-radius: 12px;
    }

    .terminal-header {
        flex-basis: 48px;
    }

    .terminal-title {
        display: none;
    }

    .terminal-body {
        padding: 20px 14px 30px;
        font-size: 13px;
    }

    .command-name {
        min-width: 130px;
    }

    .experience-item {
        padding-left: 10px;
    }

    .landing {
        padding: 0 16px 40px;
    }

    .landing-section {
        padding-top: 50px;
    }

    .landing-title {
        font-size: 22px;
    }

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