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

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


/*================================
        GLOBAL VARIABLES
=================================*/

:root {

    --bg: #060816;

    --text: #ffffff;

    --text-light: #a8b0d3;


    /* Neon Colors */

    --purple: #7b2cff;

    --blue: #00c8ff;

    --green: #00ff9d;


    /* Glass */

    --glass:
        rgba(255,255,255,0.08);

    --border:
        rgba(255,255,255,0.15);


    /* Effects */

    --blur: 20px;

    --radius: 22px;

}


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


body {

    background: var(--bg);

    color: var(--text);

    font-family:
        "Segoe UI",
        sans-serif;

    overflow-x: hidden;

}


/*================================
        BACKGROUND LIGHTS
=================================*/


.bg-purple,
.bg-blue {

    position: fixed;

    width: 450px;

    height: 450px;

    border-radius: 50%;

    filter: blur(140px);

    opacity: .4;

    z-index: -1;

}


.bg-purple {

    background: var(--purple);

    top: -120px;

    left: -150px;

}


.bg-blue {

    background: var(--blue);

    bottom: -120px;

    right: -150px;

}


/*================================
        REUSABLE GLASS
=================================*/


.glass {

    background: var(--glass);

    backdrop-filter: blur(var(--blur));

    -webkit-backdrop-filter:
        blur(var(--blur));

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

    box-shadow:
        0 8px 32px rgba(0,0,0,0.3);

}


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


.navbar {

    position: fixed;

    top: 25px;

    left: 50%;

    transform: translateX(-50%);


    width: 88%;

    height: 75px;

    padding: 0 40px;


    border-radius: 60px;


    display: flex;

    align-items: center;

    justify-content: space-between;


    z-index: 1000;

}


/* Logo */


.logo {

    font-size: 1.4rem;

    font-weight: 800;

    letter-spacing: 2px;

}


.logo span {

    color: var(--blue);

    text-shadow:
        0 0 15px var(--blue);

}


/* Navigation */


.menu {

    display: flex;

    gap: 35px;

}


.menu a {

    position: relative;

    padding-bottom: 6px;

    text-decoration: none;

    color: var(--text-light);

    font-size: .95rem;

    transition: .3s ease;

}


.menu a::after {

    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    left: 0;

    height: 2px;

    background: var(--blue);

    box-shadow: 0 0 8px var(--blue);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .25s ease;

}


.menu a:hover {

    color: var(--blue);

    text-shadow:
        0 0 15px var(--blue);

}


.menu a:hover::after {

    transform: scaleX(1);

}


/*================================
            SECTION
=================================*/


section {

    width: 100%;

    padding: 120px 10%;

}


/*================================
        SECTION TITLES
=================================*/


.section-title {

    margin-bottom: 45px;

}


.section-title span {

    color: var(--green);

    font-family: monospace;

    letter-spacing: 2px;

}


.section-title h2 {

    margin-top: 12px;

    font-size: 2.6rem;

}

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


.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 80px;

    padding-top: 150px;

}


/* Left content */


.hero-content {

    flex: 1;

}


.hero-tag {

    display: inline-block;

    padding: 12px 22px;

    border-radius: 30px;

    font-size: .95rem;

    margin-bottom: 25px;

    color: var(--green);

}


.hero h1 {

    font-size: 4.8rem;

    line-height: 1.1;

    margin-bottom: 25px;

}


.hero p {

    max-width: 600px;

    color: var(--text-light);

    font-size: 1.1rem;

    line-height: 1.8;

}


/*================================
             BUTTONS
=================================*/


.hero-buttons {

    display: flex;

    gap: 20px;

    margin-top: 40px;

}


.primary-btn,
.secondary-btn {

    padding: 15px 32px;

    border-radius: 40px;

    text-decoration: none;

    font-weight: 600;

    transition: .3s ease;

    display: inline-flex;

    align-items: center;

    gap: 8px;

}


.primary-btn {

    background: var(--blue);

    color: #00131a;

    box-shadow:
        0 0 25px var(--blue);

}


.secondary-btn {

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

    color: var(--text);

    background: var(--glass);

    backdrop-filter: blur(var(--blur));

}


.primary-btn:hover,
.secondary-btn:hover {

    transform: translateY(-6px);

    box-shadow:
        0 0 25px var(--blue);

}


/*================================
            ERROR 404
=================================*/

.error-hero {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.error-hero .hero-content {
    max-width: 720px;
}

.error-hero h1 {
    font-size: 5rem;
    margin-bottom: 25px;
}

.error-hero p {
    max-width: 600px;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 35px;
}


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


.profile-card {

    width: 360px;

    height: 500px;

    position: relative;

    border-radius: var(--radius);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: visible;

}


/*================================
            ORBIT
=================================*/


.orbit {

    position: absolute;

    width: 320px;

    height: 320px;

    border-radius: 50%;

    border: 2px solid
        rgba(0,200,255,.35);

    animation:
        rotate 12s linear infinite;

    box-shadow:
        0 0 30px var(--blue),
        inset 0 0 30px var(--blue);

}


/* Floating glow */


.small-glow {

    position: absolute;

    width: 120px;

    height: 120px;

    border-radius: 50%;

    background: var(--purple);

    filter: blur(70px);

    opacity: .7;

}


/*================================
              AVATAR
=================================*/


.avatar {

    position: relative;

    width: 160px;

    height: 160px;

    border-radius: 50%;

    overflow: hidden;

    z-index: 3;

}


.avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

}


/* Head */


.head {

    display: none;

}


/* Body */


.body {

    display: none;

}


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


.profile-info {

    text-align: center;

    z-index: 3;

}


.profile-info h2 {

    margin-top: 20px;

    font-size: 1.8rem;

}


.profile-info p {

    color: var(--text-light);

    margin: 10px 0;

}


/* Status */


.status {

    color: var(--green);

    font-size: .9rem;

    text-shadow:
        0 0 15px var(--green);

}


/*================================
          SOCIAL DOCK
=================================*/


.socials {

    display: flex;

    gap: 18px;

    margin-top: 25px;

    z-index: 3;

}


.socials a {

    width: 42px;

    height: 42px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--text);

    text-decoration: none;

    background:
        rgba(255,255,255,.08);

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

    transition: .3s ease;

}


.socials a:hover {

    color: var(--blue);

    transform: translateY(-5px);

    box-shadow:
        0 0 20px var(--blue);

}


/*================================
           ANIMATION
=================================*/


@keyframes rotate {

    from {

        transform: rotate(0deg);

    }

    to {

        transform: rotate(360deg);

    }

}

/*================================
            ABOUT
=================================*/


.about-container {

    display: flex;

    justify-content: center;

}


.about-card {

    width: 100%;

    max-width: 950px;

    border-radius: var(--radius);

    overflow: hidden;

}


.about-card .about-content {

    padding: 25px;

    font-family: monospace;

}


.about-card p {

    color: var(--text-light);

    font-size: 1.05rem;

    line-height: 1.9;

    margin: 0 0 20px;

    font-family: monospace;

}


.about-card .stats {

    margin-top: 20px;

    padding: 0;

}


/*================================
              STATS
=================================*/


.stats {

    margin-top: 40px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

}


.stat {

    padding: 25px;

    text-align: center;

    border-radius: 18px;

    background: rgba(255,255,255,.05);

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

    transition: .3s ease;

}


.stat:hover {

    transform: translateY(-8px);

    box-shadow:
        0 0 25px rgba(0,200,255,.5);

}


.stat h3 {

    color: var(--blue);

    font-size: 2rem;

    margin-bottom: 10px;

    text-shadow:
        0 0 15px var(--blue);

}


.stat span {

    color: var(--text-light);

}


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


.projects-grid {

    display: grid;

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

    gap: 30px;

}


/* Repository card */


.project-card {

    padding: 30px;

    border-radius: var(--radius);

    transition: .35s ease;

}


.project-card:hover {

    transform: translateY(-10px);

    box-shadow:
        0 0 35px rgba(123,44,255,.5);

}


.project-card:hover .project-header h3 {

    color: var(--blue);

    text-shadow: 0 0 12px rgba(0, 200, 255, 0.35);

    transition: .25s ease;

}


/* Header */


.project-header {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 20px;

}


.project-icon {

    font-size: 1.5rem;

    filter:
        drop-shadow(0 0 8px var(--blue));

}


.project-header h3 {

    position: relative;

    padding-bottom: 6px;

    font-size: 1.2rem;

    transition: color .25s ease, text-shadow .25s ease;

}


.project-header h3::after {

    content: "";

    position: absolute;

    right: 0;

    bottom: 0;

    left: 0;

    height: 2px;

    background: var(--blue);

    box-shadow: 0 0 8px var(--blue);

    transform: scaleX(0);

    transform-origin: left;

    transition: transform .25s ease;

}


.project-card:hover .project-header h3::after {

    transform: scaleX(1);

}


/* Description */


.project-card p {

    color: var(--text-light);

    line-height: 1.8;

    margin-bottom: 25px;

}


/* Technologies */


.project-stack {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}


.project-stack span {

    padding: 8px 15px;

    border-radius: 25px;

    font-size: .85rem;

    color: var(--blue);

    background: rgba(0,200,255,.1);

    border: 1px solid rgba(0,200,255,.25);

    box-shadow:
        inset 0 0 15px rgba(0,200,255,.15);

}


/*================================
        GENERAL HOVER EFFECTS
=================================*/


.glass:hover {

    border-color:
        rgba(255,255,255,.25);

    transition: .3s ease;

}
/*================================
          CAREER SECTION
=================================*/

.career {
    position: relative;
}


/*================================
          GIT TERMINAL
=================================*/

.git-terminal {

    max-width: 900px;

    margin: 0 auto 50px;

    border-radius: var(--radius);

    overflow: hidden;

}


/* Terminal top bar */

.terminal-top {

    height: 45px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 20px;

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

}


/* Terminal circles */

.circle {

    width: 12px;

    height: 12px;

    border-radius: 50%;

}


.red {
    background: #ff5f56;
}


.yellow {
    background: #ffbd2e;
}


.green {
    background: #27c93f;
}


/* Terminal title */

.terminal-title {

    margin-left: 10px;

    color: var(--text-light);

    font-family: monospace;

    /*alinear texto al final */
    margin-left: auto;
}


/* Command line */

.terminal-command {

    padding: 18px 22px;

    color: var(--green);

    font-family: monospace;

    letter-spacing: 1px;

}



.cursor {

    display: inline-block;

    width: 1px;

    height: 15px;

    margin-left: 6px;

    background: var(--green);

    animation: blink 1s steps(2, start) infinite;

    vertical-align: middle;

}


@keyframes blink {

    0%, 50% {

        opacity: 1;

    }

    51%, 100% {

        opacity: 0;

    }

}


/*================================
          GIT TIMELINE
=================================*/


.git-timeline {

    position: relative;

    max-width: 900px;

    margin: auto;

}


/* Main Git vertical line */

.git-timeline::before {

    content: "";

    position: absolute;

    left: 28px;

    top: 35px;

    bottom: 0;

    width: 2px;

    background: var(--blue);

    box-shadow:
        0 0 12px var(--blue),
        0 0 30px var(--blue);

}

/* Horizontal bar at the end of vertical line

.git-timeline::after {

    content: "";

    position: absolute;

    left: 28px;

    bottom: 0;

    width: 20px;

    height: 2px;

    background: var(--blue);

    box-shadow:
        0 0 12px var(--blue),
        0 0 30px var(--blue);

}
 */

/*================================
            COMMITS
=================================*/


.commit {

    position: relative;

    margin-bottom: 45px;

    padding-left: 75px;

}


/* Git bullet */
/* 
   FIX APPLIED:
   Center bullet on timeline line using translateX(-50%).
*/

.node {

    position: absolute;

    left: 28px;

    top: 35px;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    transform: translateX(-50%);

    z-index: 5;

    box-shadow:
        0 0 10px currentColor,
        0 0 25px currentColor,
        0 0 45px currentColor;

}


/* Node colors */

.work {

    background: var(--blue);

    color: var(--blue);

}


.study {

    background: var(--green);

    color: var(--green);

}


.certification {

    background: var(--purple);

    color: var(--purple);

}


.project {

    background: #ff9f1c;

    color: #ff9f1c;

}


/*================================
          COMMIT CARD
=================================*/


.commit-card {

    padding: 28px;

    border-radius: var(--radius);

    transition: .35s ease;

}


.commit-card:hover {

    transform: translateX(10px);

    box-shadow:
        0 0 35px rgba(0, 200, 255, .35);

}


/* Commit tag */

.commit-tag {

    display: inline-block;

    color: var(--green);

    font-family: monospace;

    font-size: .85rem;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


/* Title */

.commit-card h3 {

    font-size: 1.35rem;

    margin-bottom: 12px;

}


/* Description */

.commit-card p {

    color: var(--text-light);

    line-height: 1.7;

    margin-bottom: 15px;

}


/* Date / status */

.commit-card small {

    color: var(--blue);

}

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


.contact {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}


.contact-terminal {

    width: 100%;

    max-width: 900px;

    border-radius: var(--radius);

    overflow: hidden;

}


.contact-info {

    padding: 25px;

    font-family: monospace;

    line-height: 2;

}


.contact-info p {

    color: var(--text-light);

}

.contact-info a {

    color: var(--blue);
    text-decoration: none;
    font-weight: 600;

}


.status-online {

    display: inline-block;
    margin-top: 15px;
    color: var(--green) !important;
    text-shadow:
        0 0 15px var(--green);
}

.status-online::after {
    content: "|";
    color: var(--green);
    animation: blink-cursor 1s steps(2, start) infinite;
    margin-left: 6px;
}

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


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


footer {

    padding: 40px 10%;

    text-align: center;

    color: var(--text-light);

    border-top: 1px solid rgba(255,255,255,.08);

}


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


@media (max-width: 960px) {


    /* Navigation */

    .navbar {

        width: 92%;

        padding: 0 25px;

    }


    .menu {

        gap: 20px;

    }


    /* Hero */

    .hero {

        flex-direction: column;

        text-align: center;

        gap: 60px;

    }


    .hero p {

        margin: auto;

    }


    .hero-buttons {

        justify-content: center;

    }


    /* About */

    .stats {

        grid-template-columns: 1fr;

    }


    /* Git timeline */

    .git-timeline::before {

        left: 18px;

    }


    .commit {

        padding-left: 55px;

    }


    /*
        Alignment fix for mobile

        Center bullet on mobile timeline line.
    */

    .node {

        left: 18px;

        transform: translateX(-50%);

    }


}


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


@media (max-width: 600px) {


    section {

        padding: 90px 7%;

    }


    .navbar {

        height: auto;

        padding: 18px;

        flex-direction: column;

        gap: 15px;

    }


    .menu {

        flex-wrap: wrap;

        justify-content: center;

    }


    .hero h1 {

        font-size: 3rem;

    }


    .profile-card {

        width: 100%;

        max-width: 340px;

        height: 460px;

    }


    .orbit {

        width: 260px;

        height: 260px;

    }


    .project-header {

        flex-direction: column;

        align-items: flex-start;

    }


    .terminal-command {

        font-size: .9rem;

        overflow-x: auto;

    }


}
/*================================
       CAREER SECTION
================================*/


.history {

    margin-top: 130px;
}


.section-title {

    text-align: center;

    margin-bottom: 70px;
}


.section-title h2 {

    font-size: 42px;
}


.section-title p {

    color: #999;

    margin-top: 15px;
}
