@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --main-color: #00F5FF;
    --main-color-light: #80FAFF;
    --main-color-dark: #00B8C4;
    --neon-cyan: #00F5FF;
    --neon-glow-purple: 0 0 8px #00F5FF, 0 0 20px rgba(0,245,255,0.4);
    --neon-glow-cyan: 0 0 8px #00F5FF, 0 0 20px rgba(0,245,255,0.35);
    --font-mono: 'JetBrains Mono', monospace;
    --text-color: #ffffff;
    --bg-color-01: #0D0D0D;
    --bg-color-02: #111418;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

html {
    font-family: var(--font-mono);
    font-size: 16px;
}

body {
    background-color: var(--bg-color-01);
    color: var(--text-color);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.1rem;
    background-color: rgba(13,13,13,0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(0,245,255,0.12);
    transition: padding 0.3s ease;
}

.header--scrolled {
    padding: 0.7rem 1.1rem;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--main-color);
    cursor: default;
}

.nav-responsive {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem;
    background-color: rgba(13,13,13,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,245,255,0.1);
}

.nav a, .nav-responsive a {
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: 0.4s;
    position: relative;
}

.nav a::after, .nav-responsive a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: var(--neon-glow-cyan);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav a:hover, .nav-responsive a:hover {
    color: var(--main-color);
}

.nav a:hover::after, .nav-responsive a:hover::after {
    width: 100%;
    left: 0;
}

section {
    min-height: 100vh;
    padding: 6rem 6rem 2rem;
    position: relative;
    z-index: 1;
}

span {
    color: var(--main-color);
}

.home {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

.home-img {
    position: relative;
}

.home-img img {
    width: 100%;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    box-shadow: var(--neon-glow-purple), 0 0 40px rgba(0,245,255,0.25);
}

.home-img::after {
    content: '';
    position: absolute;
    inset: -10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,245,255,0.18) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.home-content {
    width: 45%;
}

.home-content > h3:first-child {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-size: 1.35rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 400;
}

@keyframes glitch {
    0%   { clip-path: polygon(0 10%, 100% 10%, 100% 28%, 0 28%); transform: translate(-4px, 0); color: var(--neon-cyan); }
    30%  { clip-path: polygon(0 55%, 100% 55%, 100% 72%, 0 72%); transform: translate(4px, 0); color: var(--main-color); }
    60%  { clip-path: polygon(0 35%, 100% 35%, 100% 50%, 0 50%); transform: translate(-2px, 1px); color: var(--neon-cyan); }
    100% { clip-path: none; transform: none; color: inherit; }
}

.home-content h1 {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2.7rem;
    line-height: 1.3;
}

.home-content h1.glitching {
    animation: glitch 0.75s steps(1) forwards;
}

.home-content h3 {
    font-weight: 700;
    font-size: 1.6rem;
}

.role-line {
    font-weight: 400 !important;
    font-size: 1.75rem !important;
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 2.5rem;
}

.role-prefix {
    font-family: var(--font-mono);
    color: var(--neon-cyan);
    font-weight: 400;
}

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

.cursor-blink {
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite;
}

.home-content p {
    margin-top: 1rem;
    text-align: justify;
}

.language {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    background-color: var(--bg-color-01);
    border-radius: 0.6rem;
    border: 1px solid rgba(0,245,255,0.1);
}

.language a {
    display: block;
    padding: 0.5rem;
}

.dropdown {
    position: relative;
    cursor: pointer;
    display: inline-block;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: 0.4s ease;
}

.dropdown:hover {
    color: var(--main-color);
}

.dropdown:hover .language {
    display: block;
}

.social-media img {
    width: 3.5rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: 0.15rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 1.5rem 0.5rem 2.5rem;
    transition: 0.5s ease;
}

.social-media a:hover {
    color: var(--bg-color-01);
    background-color: var(--main-color);
    box-shadow: var(--neon-glow-purple);
}

.services h2,
.portfolio h2,
.contact h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.services {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--bg-color-02);
}

.services-container {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.services-container .services-box {
    margin: 1rem;
    padding: 2rem 1rem 2.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 1px solid rgba(0,245,255,0.2);
    background-color: var(--bg-color-01);
    transition: 0.4s;
}

.services-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25rem;
    margin-bottom: 1rem;
}

.services-container .services-box:hover {
    border-color: var(--main-color);
    box-shadow: var(--neon-glow-purple);
    transform: translateY(-4px);
}

.services-box i {
    font-size: 4.3rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 1.5rem;
}

.services-box p {
    margin-top: 0.5rem;
    letter-spacing: 0.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.services-box code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    background: rgba(0,245,255,0.08);
    border: 1px solid rgba(0,245,255,0.2);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    display: inline-block;
}


.portfolio-container {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: auto auto auto;
}

.portfolio-box {
    position: relative;
    border-radius: 0.6rem;
    border: 1px solid rgba(0,245,255,0.2);
    overflow: hidden;
    display: flex;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.portfolio-box:hover {
    border-color: var(--main-color);
    box-shadow: var(--neon-glow-purple);
}

.portfolio-box img {
    width: 100%;
    transition: 0.5s ease;
}

.portfolio-box img:hover {
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(13,13,13,0.97) 0%,
        rgba(0,20,25,0.92) 60%,
        transparent 100%
    );
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(40rem);
    transition: 0.5s ease;
}

.portfolio-layer p {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-box:hover .portfolio-layer {
    transform: translateY(0);
}

.portfolio-layer h4 {
    font-size: 1.8rem;
    margin: 0.2rem 0 0.5rem;
}

.portfolio-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.25rem;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 1px solid var(--neon-cyan) !important;
    border-radius: 50%;
    color: var(--neon-cyan);
    box-shadow: var(--neon-glow-cyan);
    transition: 0.3s;
}

.portfolio-layer a:hover {
    background-color: var(--neon-cyan);
    color: var(--bg-color-01);
}

.portfolio-layer a i {
    font-size: 1.2rem;
    color: inherit;
}

.feedbacks {
    margin-top: 3rem;
    text-align: center;
    position: relative;
}

.feedbacks h2 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.prev, .next {
    cursor: pointer;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(13,13,13,0.7);
    border: 1px solid rgba(0,245,255,0.35) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
}

.prev:hover, .next:hover {
    border-color: var(--main-color) !important;
    box-shadow: var(--neon-glow-purple);
}

.prev {
    left: -20px;
}

.next {
    right: -20px;
}

.comment-container {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.5;
    max-height: calc(1.5em * 3);
}

.comment-container.expanded {
    -webkit-line-clamp: unset;
    max-height: none;
}

.comment {
    font-weight: 300;
    font-style: italic;
}

#result article {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}

.feedback-title {
    color: var(--main-color);
}

.feedback-title:hover {
    color: var(--main-color-dark);
}

.contact {
    background-color: var(--bg-color-02);
}

.contact-intro {
    text-align: center;
    color: rgba(255,255,255,0.65);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 680px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(0,245,255,0.25) !important;
    background: rgba(13,13,13,0.6);
    color: var(--text-color);
    text-decoration: none;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contact-card:hover {
    border-color: var(--main-color) !important;
    box-shadow: var(--neon-glow-purple);
    transform: translateX(6px);
}

.contact-card__icon {
    font-size: 2.5rem;
    color: var(--main-color);
    flex-shrink: 0;
    width: 3.5rem;
    text-align: center;
    transition: color 0.3s;
}

.contact-card__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-cyan);
    letter-spacing: 0.1rem;
    display: block;
    margin-bottom: 0.2rem;
}

.contact-card__body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-card__body p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.contact-card__arrow {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.2);
    margin-left: auto;
    transition: color 0.3s;
    flex-shrink: 0;
}

.contact-card:hover .contact-card__arrow {
    color: var(--main-color);
}

.contact-card--whatsapp:hover .contact-card__icon { color: #25D366; }
.contact-card--linkedin:hover .contact-card__icon  { color: #0A66C2; }
.contact-card--email:hover .contact-card__icon     { color: var(--neon-cyan); }

footer {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background-color: var(--bg-color-01);
    border-top: 1px solid rgba(0,245,255,0.08);
    text-align: center;
}

.btn {
    display: inline;
    padding: 0.7rem 1.8rem;
    border-radius: 2rem;
    background-color: var(--main-color);
    color: var(--bg-color-01);
    font-weight: 600;
    transition: 0.3s ease;
    margin-top: 1.2rem;
}

.btn:hover {
    background-color: transparent;
    box-shadow: var(--neon-glow-purple);
    color: var(--main-color);
    border: 0.1rem solid var(--main-color) !important;
}

/* MENU RESPONSIVO */

.menu-hamburguer {
    display: none;
    cursor: pointer;
}

.bar1, .bar2, .bar3 {
    width: 2rem;
    height: 0.3rem;
    background-color: var(--text-color);
    margin: 0.4rem 0;
    transition: 0.3s ease;
}

.change .bar1 {
    transform: translate(0, 0.65rem) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    transform: translate(0, -0.65rem) rotate(45deg);
}

/* media queries */

/* Extra Small */
@media (min-width: 0px) {
    .menu-hamburguer {
        display: block;
    }

    .nav {
        display: none;
    }

    .nav-responsive a {
        display: block;
        font-size: 1.2rem;
        margin: 0.5rem 0;
    }

    section {
        padding: 6rem 2.5rem;
    }

    .home {
        flex-direction: column;
        gap: 2rem;
    }

    .home-img {
        width: 80%;
        max-width: 80%;
    }

    .home-content {
        width: 100%;
    }

    .home-content div {
        text-align: center;
    }

    .home-content h1 {
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .services-box {
        width: 100%;
    }

    .portfolio-container {
        grid-template-columns: auto;
    }

    .contact-card {
        padding: 1.2rem 1.2rem;
        gap: 1rem;
    }
}

/* Small */
@media (min-width: 576px) {
    .home-img {
        width: 65%;
        max-width: 65%;
    }

    .services-box {
        width: 70%;
    }

    .portfolio-container {
        grid-template-columns: auto;
    }
}

@media (max-width: 886px) {
    .language {
        text-align: left;
    }
}

/* Medium */
@media (min-width: 886px) {
    .menu-hamburguer {
        display: none;
    }

    .nav {
        display: block;
    }

    .nav-responsive, .nav-responsive a {
        display: none;
    }

    .home {
        flex-direction: row;
        justify-content: space-evenly;
    }

    .home-img {
        max-width: 35%;
    }

    .home-img {
        width: 65%;
        max-width: 65%;
    }

    .home-content {
        width: 50%;
    }

    .services-box {
        width: 100%;
    }

    .services-box {
        width: 60%;
        margin-bottom: 2rem;
    }

    .portfolio-container {
        grid-template-columns: auto auto;
    }
}

/* Large */
@media (min-width: 992px) {
    .services-container {
        flex-direction: row;
        gap: 1.2rem;
    }
}

/* Extra Large */
@media (min-width: 1200px) {
    .home-img {
        max-width: 25%;
    }

    .home-content h1 {
        font-size: 2.7rem;
    }

    .home-content h3 {
        font-size: 1.6rem;
    }

    .portfolio-container {
        grid-template-columns: auto auto auto;
    }

    .home-content div {
        text-align: left;
    }
}
