/* CSS Reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a{
    text-decoration: none;
}

input:not([type="checkbox"]), textarea, button{
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}
button{
    border:none;
}
/* Fonts */

/* Import the variable font */
@font-face {
    font-family: 'Manrope';
    src: url('static/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 800; /* This covers all weights from 100 to 800 */
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('static/Manrope-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Consolas';
    src: url('../fonts/Consolas.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
/* General */

:root {
    --primary: #7604F1;
    --primary-90: #8414F8;
    --primary-80: #912EFC;
    --primary-70: #9F48FC;
    --primary-60: #AD62FD;
    --primary-50: #BB7CFD;
    --primary-40: #C897FD;
    --primary-30: #D6B1FE;
    --primary-20: #E4CBFE;
    --primary-10: #F1E5FF;
    --complementary: #8266C7;
    --complementary-90: #8B70D6;
    --complementary-80: #9778DC;
    --complementary-70: #A794E8;
    --complementary-60: #B4A3DD;
    --complementary-50: #C0B3E3;
    --complementary-40: #CDC8EE;
    --complementary-30: #D9D1E4;
    --complementary-20: #E4E3F4;
    --complementary-10: #F0F0FB;
    --secondary: #C4F8CC;
    --secondary-90: #C4F0F4;
    --secondary-80: #D2F8E3;
    --secondary-70: #E9FEF4;
    --secondary-60: #FCFFFA;
    --secondary-50: #FAFFFB;
    --secondary-40: #F9FFFF;
    --secondary-30: #FFFFFA;
    --secondary-20: #FFFCFF;
    --secondary-10: #FCF8FF;
    --white: #FAFFFB;
    --white-dark: #5A5A5A;
    --white-apagado: #B4B4B4;
    --white-apagado-claro: #EAEAEA;
    --black: #1B2220;
    --black-90: #2F3B38;
    --black-80: #43544F;
    --black-70: #576D67;
    --black-60: #68867E;
    --black-50: #829894;
    --black-40: #9BAFAA;
    --black-30: #B4C3BF;
    --black-20: #CDD7D4;
    --black-10: #E6EBEA;
    --footer-bg: #040505;
    --max-width: 1024px;
}


body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    color: var(--white-gray);
    background-color: var(--black);
    width: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes up the full viewport height */
    margin: 0; /* Remove default margin */
}
body.no-scroll{
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.logo-sm {
    height: 20px;
    width: auto;
}

.logo-md {
    height: 32px;
    width: auto;
}

.cursor {
    width: 1px;
    height: 1px;
    background-color: rgba(250, 255, 251, 0.05);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.1s ease;
    box-shadow: 10px 10px 200px 40px rgba(250, 255, 251, 0.4);
}

.d-flex { display: flex; }
.flex-d-column { flex-direction: column; }
.flex-d-row { flex-direction: row; }

.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }
.gap-48 { gap: 48px; }

.algn-items-center { align-items: center; }
.algn-items-start { align-items: start; }
.algn-items-end { align-items: end; }
.jstf-cntnt-center { justify-content: center; }
.jstf-cntnt-end { justify-content: end; }
.jstf-cntnt-space-btwn { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.wght-300 { font-weight: 300; }
.wght-400 { font-weight: 400; }
.wght-500 { font-weight: 500; }
.wght-600 { font-weight: 600; }
.wght-700 { font-weight: 700; }
.wght-800 { font-weight: 800; }


h1 { font-size: 60px; font-weight: 700; }
h2, .h2 { font-size: 40px; font-weight: 600; line-height: 46px; }
h3 { font-size: 26px; font-weight: 600; line-height: 32px; }
h4 { font-size: 16px; font-weight: 500; color: var(--white-apagado-claro); }

p {
    font-size: 16px;
    font-weight: 400;
    color: var(--white-apagado-claro);
    line-height: 22px;
}

p, h4, h5, h6, input, button, textarea {
    line-height: 22px;
}

.mb-8 { margin-bottom: 8px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mb-32 { margin-bottom: 32px; }

.w-100 { width: 100%; }
.hidden { display: none; }
.overflow-h { overflow: hidden; }


.highlight-word { color: var(--secondary); font-weight: 700; }
.link-secondary { color: var(--secondary); }

.link-secondary::before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.link-secondary:hover::before { transform: scaleX(1); }

/* Gradients */
.txt-gradient {
    background: -webkit-linear-gradient(45deg, var(--complementary-50) 40%, var(--secondary-90) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.txt-gradient-ua {
    background: -webkit-linear-gradient(45deg, #C1EEFF 40%, #EDEBA0 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tooltip */
.tooltip {
    border-bottom: 1px dashed var(--complementary-40);
    color: var(--complementary-40);
    transition: opacity 0.6s ease-in-out;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: #c4f8cc;
    color: var(--black);
    font-size: 0.8em;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 9999;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.tooltip:hover::after { opacity: 1; }

.alert-label {
    font-size: 12px;
    padding: 0 4px;
    background: rgba(90, 90, 90, 0.68);
    font-weight: 500;
    animation: bounce-in-top 1.1s both 0.5s;
    -webkit-animation: bounce-in-top 1.1s both 0.5s;
}

.tab {
    padding: 4px 8px;
    font-size: 14px;
    background: rgba(90, 90, 90, 0.59);
    color: var(--white-apagado-claro);
    font-weight: 500;
    font-family: 'Manrope', sans-serif;
}

.tab.active { background: var(--complementary); }

.line {
    height: 2px;
    width: 100%;
    background: radial-gradient(circle, var(--white-dark) 1px, transparent 1px);
    background-size: 8px 2px;
    position: absolute;
    top: 50%;
    left: 0;
}

main {
    z-index: 9;
    max-width: var(--max-width);
    margin: 100px auto;
    flex: 1;
    width: 100%;
}

main > *:not(:first-child) { margin-top: 100px; }

.br-8,.card-2 .date,.card-2,.card-1,.wrapper-progress .percentage-label,.tab,.btn, .btn-link{
    border-radius: 8px;
}

a.list-item:not(.header-link):active, a.list-item:not(.header-link):hover, a.list-item:not(.header-link):focus,
.btn-link:active, .btn-link:focus, .btn-link:hover, h1, h2, h3, .skill .tittle, .card-2, .card-1, .wrapper-progress .percentage-label,
.alert-label, header nav ul li a.active span, form label, form input, form textarea, .company-description,ul,li, #sec .letter, #sec.complete .letter
{
    color: var(--white);
}

.p-8, form input, form textarea, .tooltip::after,.card-2 .date,.card-2 .inner-card,.card-1-label{
    padding: 8px;
}

.card-2,.card-1,#about .container,form, .formSubmit,form input, form textarea,.company-description,.company-description img,header,#skills .col-2, input, textarea{
    border: 1px solid var(--black-90);
}

form button[type='submit'],.tab,.tooltip, .header-link::after,.header-link span,.companies,.skill,.card-2,.card-1,.btn-nxt, .btn-skills, #cookies-button, button, .icon-close, .slider{
    cursor: pointer;
}

form input, form textarea, .tooltip::after ,.animation , .progress,.wrapper-progress,.card-1-label,.alert-label{
    border-radius: 4px;
}

.header-link,#banner .col-1,.companies, .companies .wrapper .btn,#skills, .progress, .wrapper-progress,.education .c, .card-2, .card-2 .inner-card,.jobs,
.card-1, main,#about .text,.link-secondary,.company-description,.tooltip,.company-projects, .education{
    position: relative;
}

/* Header */

header {
    margin: 16px auto 0;
    padding: 8px 32px;
    position: sticky;
    top: 20px;
    left: 0;
    z-index: 99;
    border-radius: 20px;
    max-width: var(--max-width);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    background: rgba(27, 34, 32, 0.6);
    width: 100%;
}

header .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.header-link {
    display: inline-block;
    font-size: 14px;
    position: relative;
    color: var(--white-apagado);
}

header .btn-icon {
    height: 30px;
}

header nav ul li a.active span {
    font-weight: 600;
}
#burguer {
    display:none;   
}

#burguer {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
}

#burguer span {
    display: block;
    position: absolute;
    width: 100%;
    height: 4px; /* Thicker for visibility; adjust if needed */
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

#burguer span:nth-child(1) {
    top: 0; /* Top bar */
    transform-origin: center;
}

#burguer span:nth-child(2) {
    top: 50%; /* Center bar */
    transform: translateY(-50%);
    transform-origin: center;
}

#burguer span:nth-child(3) {
    bottom: 0; /* Bottom bar */
    transform-origin: center;
}

#burguer.open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg); /* Align and rotate */
}

#burguer.open span:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
    transform: scaleX(0);
}

#burguer.open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg); /* Align and rotate */
}




/* Footer */

footer {
    background-color: var(--footer-bg);
}

footer .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 32px;
}

footer ul.sitemap {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column: 3;
}

footer ul a {
    font-size: 14px;
    color: var(--white-apagado);
    transition: text-shadow 0.8s ease, color 0.5s ease;
}

/* Buttons */

.btn,
.btn-link,
.btn-nxt {
    display: flex;
    align-items: center;
    justify-self: center;
    font-family: 'Manrope', sans-serif;
}

.btn,
.btn-link {
    font-weight: 500;
    padding: 8px 12px;
    font-size: 14px;
    height: 35px;
}

.btn {
    background-color: var(--black-20);
    color: var(--black);
    transition: background 0.8s ease, box-shadow 0.8s ease;
}

.btn:hover,
.btn:active {
    background-color: var(--white);
    box-shadow: 0 5px 30px rgba(250, 255, 251, 0.4);
}

.btn-link {
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    color: var(--white-apagado);
    background: rgba(47, 59, 56, 0.32);
    gap: 8px;
    transition: all 0.5s linear;
}

.btn-link:active,
.btn-link:focus,
.btn-link:hover {
    background-color: rgba(47, 59, 56, 0.75);
}

.icon-close svg path{
    fill: var(--white-apagado);
}
.btn-link svg,
.btn-nxt svg,
.icon-close svg
{
    stroke: var(--white-apagado);
    transition: stroke 0.5s ease;
}
.icon-close svg path{
    transition: fill 0.2s linear;
}

.icon-close:hover svg,
.icon-close:hover svg path{
     stroke: var(--white);
    fill: var(--white); 
}

.btn-link:hover svg,
.btn-nxt:hover svg
{
    stroke: var(--white);
}

.btn-link.prev svg {
    rotate: 180deg;
}

.btn-icon {
    gap: 8px;
}

.btn-icon img {
    width: 18px;
    height: 18px;
}

.btn-nxt,
.btn-skills {
    user-select: none;
}

.companies .wrapper .btn {
    transform: translate3d(-200%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1), background 0.8s ease, box-shadow 0.8s ease;
}

.companies:hover .wrapper .btn {
    transform: translate3d(0, 0, 0);
}

/* Home */

#about .gradient-fixed {
    background-image: url(../media/bg.png);
    background-repeat: no-repeat;
    margin-top: 100px;
    padding: 0 30px;
    position: absolute;
    height: 420px;
    width: 100%;
    left: -200px;
}

#about .container {
    max-width: calc(var(--max-width) - 60px);
    margin: 0 auto;
    padding: 30px;
    backdrop-filter: blur(32px) saturate(140%);
    -webkit-backdrop-filter: blur(32px) saturate(140%);
    background: rgb(27 34 32 / 70%);
    z-index: 1;
}

#about .text {
    z-index: 12;
}

#banner {
    max-width: calc(var(--max-width) - 60px);
    margin: 0 auto;
}

#banner h1 {
    width: 368px;
}

#banner .wrapper {
    display: grid;
    grid-template-columns: auto auto;
}

#banner .wrapper .col-2 img {
    width: 300px;
}

.typing {
    border-right: 2px solid rgba(255, 255, 255, 0.75);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 2s steps(10) 1s 1 normal both, blinkTextCursor 700ms steps(10) infinite normal, removeCursor 4s steps(1) forwards;
}

.education{
    height: 150px;
}

.education .c{
    z-index: 9;
}

#education > div:nth-child(1){
    padding: 0 0 0 30px;
}

#experience .companies {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.company img {
    width: 140px;
    height: 140px;
}

.companies .wrapper {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 9;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s linear;
}

.companies:hover .wrapper {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 1;
}

#skills {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 0 30px;
    gap: 32px;
}

#skills ul {
    margin: 16px auto;
}

#skills ul li {
    padding: 6px 8px;
    font-size: 16px;
    border-left: 2px solid var(--black-90);
}

#skills ul li.active {
    border-left: 2px solid var(--secondary);
    font-weight: 500;
}

#skills .col-2 {
    width: 100%;
    padding: 32px;
    backdrop-filter: blur(80px) saturate(250%);
    -webkit-backdrop-filter: blur(80px) saturate(250%);
}

#skills-gradient {
    width: 400px;
    height: 400px;
    position: absolute;
    right: 10%;
    top: 40%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    -webkit-filter: blur(40px);
    pointer-events: none;
    opacity: 0.6;
}

#skills-gradient.tech {
    background: -webkit-radial-gradient(circle, rgba(130, 102, 199, 0.5) 6%, rgba(130, 102, 199, 0.27) 49%, rgba(130, 102, 199, 0) 100%);
}

#skills-gradient.soft {
    background: -webkit-radial-gradient(circle, rgba(35, 201, 255, 0.5) 6%, rgba(35, 201, 255, 0.27) 49%, rgba(35, 201, 255, 0) 100%);
}

#skills-gradient.lang {
    background: -webkit-radial-gradient(circle, rgba(241, 91, 181, 0.5) 6%, rgba(241, 91, 181, 0.2) 49%, rgba(255, 192, 159, 0) 100%);
}

.skill {
    display: grid;
    gap: 8px;
    grid-template-columns: auto 360px;
    align-items: center;
}

.wrapper-progress {
    height: 3px;
    width: 100%;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    align-self: end;
    background-color: var(--white-dark);
}

.progress {
    height: 3px;
    background-color: var(--complementary);
    max-width: 100%;
    animation: progress 2s 1 normal both;
}

.progress::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: var(--complementary-70);
    border-radius: 50%;
    z-index: 9;
}

.progress.soft {
    background-color: #23C9FF;
}

.progress.soft::after {
    background-color: #65D9FF;
}

.progress.lang {
    background-color: #f15bb5;
}

.progress.lang::after {
    background-color: #F47EC5;
}

.progress-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: #f15bb5;
    background-size: 200% 100%;
    transition: opacity 2s ease;
    opacity: 0;
    animation: opacity 1.2s 1.2s forwards;
}

.skill:hover .percentage-label {
    opacity: 1;
}

.wrapper-progress .percentage-label {
    position: absolute;
    top: -14px;
    width: 40px;
    padding: 4px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(90, 90, 90, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.progress-spanish {
    background: -webkit-linear-gradient(139deg, rgba(240, 58, 71, 0.66) 22%, rgba(255, 213, 0, 0.7) 54%, rgba(240, 58, 71, 0.5) 79%);
}

.progress-english {
    background: -webkit-linear-gradient(139deg, #174ea8b8 22%, rgba(245, 226, 226, 0.8) 55%, rgba(239, 35, 60, 0.58) 79%);
}

.progress-russian {
    background: -webkit-linear-gradient(139deg, rgba(255, 255, 255, 0.66) 27%, rgba(23, 78, 168, 0.8) 56%, rgba(239, 35, 60, 0.75) 76%);
}

.progress-ukrainian {
    background: -webkit-linear-gradient(139deg, rgba(76, 201, 240, 0.78) 37%, rgba(198, 208, 101, 0.6) 55%, rgba(255, 213, 0, 0.72) 68%);
}

.progress-french {
    background: -webkit-linear-gradient(139deg, rgba(23, 78, 168, 0.8) 21%, rgba(255, 255, 255, 0.66) 58%, rgba(239, 35, 60, 0.75) 84%);
}

.skills-content.active {
    display: block;
}

/* Cards */

.card-2 {
    z-index: 2;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 250px;
    height: 250px;
    transition: border 0.5s linear;
    background-color: var(--black);
}

.card-2 .bg-gradient {
    position: absolute;
    background: -webkit-linear-gradient(290deg, rgba(67, 84, 79, 1) 0%, rgba(47, 59, 56, 0) 45%, rgba(47, 59, 56, 0) 58%, rgba(47, 59, 56, 0) 100%);
    opacity: 0;
    transition: opacity 0.5s linear;
    height: 100%;
    width: 100%;
}

.card-2:hover .bg-gradient {
    opacity: 1;
}

.card-2 .date {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--secondary-80);
    background: -webkit-linear-gradient(204deg, rgba(47, 59, 56, 0.4458) 19%, rgba(47, 59, 56, 1) 85%);
    font-size: 14px;
    font-weight: 500;
}

.card-2 .inner-card {
    z-index: 9;
    height: 100%;
}

.card-2 .title {
    font-weight: 500;
}

.card-2 img {
    height: 120px;
    width: 120px;
}

.card-1 {
    padding: 16px;
    z-index: 999;
    height: 150px;
    width: 350px;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transition: background-position 0.5s ease, background-size 0.5s ease;
    background: -webkit-radial-gradient(circle at top left, rgba(196, 248, 204, 0.33) 0%, rgba(196, 248, 204, 0) 35%);
    background: radial-gradient(circle at top left, rgba(196, 248, 204, 0.33) 0%, rgba(196, 248, 204, 0) 35%);
    background-position: 0 -50px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: var(--black);
}

.card-1:hover {
    background-position: 0px -30px;
    background-size: 150% 150%;
}

.card-1-label {
    position: absolute;
    top: -13px;
    background-color: var(--secondary);
    color: var(--black);
    box-shadow: -3px -2px 11px 3px rgba(196, 248, 204, 0.3);
    font-size: 14px;
    font-weight: 500;
}

#contact .card-1 {
    background-image: -webkit-linear-gradient(290deg, rgba(67, 84, 79, 1) 0%, rgba(47, 59, 56, 0) 45%, rgba(47, 59, 56, 0) 58%, rgba(47, 59, 56, 0) 100%);
}

/* Contact */

#contact svg {
    stroke: var(--white);
}

.gradient-contact {
    position: absolute;
    top: 10px;
    left: 30%;
    height: 800px;
    width: 800px;
    background-image: url(../media/23.png);
    background-position: bottom left;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
}

#contact .card-1,
#contact form {
    backdrop-filter: blur(40px) saturate(140%);
    -webkit-backdrop-filter: blur(40px) saturate(140%);
}

/* Form */

#form-container {
    position: relative;
    flex-direction: column;
    overflow: hidden;
}

#form-container .wrapper {
    width: 100%;
    max-width: 740px;
}

form,
.formSubmit {
    width: 100%;
    max-width: 740px;
    margin: 0 auto;
    padding: 30px;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    background: rgba(27, 34, 32, 0.62);
    position: relative;
    z-index: 9;
}

form label {
    font-size: 14px;
    font-weight: 600;
}

form input,
form textarea {
    background-color: transparent;
    transition: border-color 0.3s linear, background-color 0.3s linear, color 0.3s linear;
    font-family: 'Manrope', sans-serif;
    backdrop-filter: saturate(0.5);
    -webkit-backdrop-filter: saturate(0.5);
}

form input:hover,
form textarea:hover {
    border: 1px solid var(--black-70);
}

form input:active,
form textarea:active,
form input:focus,
form textarea:focus {
    border: 1px solid var(--white);
}

form textarea {
    height: 120px;
    resize: vertical;
}

form h4 {
    font-size: 20px;
    color: var(--secondary-80);
    margin-bottom: 24px;
    font-weight: 600;
}

form button[type='submit'] {
    max-width: fit-content;
}

::placeholder {
    color: var(--black-40);
    opacity: 1;
    font-family: 'Manrope', sans-serif;
    transition: all 0.3 linear;
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: var(--black-20);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--white);
    background-color: transparent;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #23232329;
}

.field-error {
    border-color: #f03a47;
}

.error-message {
    color: #f03a47;
    font-weight: 600;
    font-size: 14px;
}

.formSubmit {
    position: absolute;
    top: 72px;
    transform: translateX(-1000px);
    height: 220px;
}

.formSubmit .lottie {
    height: 100px;
    width: auto;
}

.formSubmit.show {
    -webkit-animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.formSubmit.show p {
    -webkit-animation: opacity 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation: opacity 2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
    animation-delay: 0.3s;
}

#contactForm.hide {
    -webkit-animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* Companies */

.container-job {
    display: grid;
    grid-template-columns: auto 300px;
    max-width: var(--max-width);
    align-items: start;
    position: relative;
}

.container-job #skills-gradient {
    top: 100px;
    left: 100px;
}

.container-job .col-3 {
    width: 300px;
    right: calc((100vw - 1024px) / 2);
    align-self: start;
    position: sticky;
    top: 166px;
}

.company-description {
    background: rgba(27, 34, 32, 0.6);
    padding: 66px 16px 16px;
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.company-description .row {
    gap: 4px;
    padding-top: 24px;
    border-top: 1px solid var(--black-90);
}

.company-description .row.arrows {
    gap: 24px;
}

.company-description .title {
    font-size: 18px;
    margin: 0 auto;
}

.company-description img {
    width: 100px;
    height: 100px;
    position: absolute;
    top: -50px;
    backdrop-filter: blur(60px);
    -webkit-backdrop-filter: blur(60px);
    background: rgba(27, 34, 32, 0.73);
    margin: 0 auto;
}

.company-description .link-secondary {
    margin: 0 auto;
}

.company-description .desc {
    padding-top: 16px;
    font-size: 14px;
    line-height: 28px;
    border-top: 1px solid var(--black-90);
}

.company-projects {
    margin-top: 40px;
    z-index: 9;
}

.company-projects h3 {
    margin-bottom: 16px;
}

.company-projects h4 {
    font-size: 20px;
    margin-top: 32px;
    color: var(--secondary-80);
}

h3.stl {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.project-title {
    font-size: 18px;
}

.animation {
    background: #c4f8cc;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
    font-size: 22px;
    color: var(--black);
    overflow: hidden;
    height: 32px;
    width:120px;
}

.animation > span > span {
    padding: 0.25rem 0.75rem;
    height: 2.81rem;
    margin-bottom: 2.81rem;
    display: inline-block;
}

.animation span {
    display: block;
}

.animation span:first-child {
    animation: text-animation 8s infinite;
}

#sec .binary {
    color: var(--secondary);
    transition: color 0.3s ease;
}

#sec .letter {
    transition: color 0.3s ease;
}

.lottie-a {
    height: 120px;
}

.lottie-a svg {
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.lottie-b {
    height: 80px;
}

#lotties-bartolome {
    margin: 32px 0;
}

ul.mw {
    list-style: circle;
    padding-left: 32px;
    margin: 16px 0;
}

ul.sm {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    margin: 16px 0;
}

ul.sm li {
    display: grid;
    grid-template-rows: 44px 132px 80px;
    gap: 16px;
}

/* Cookies */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    background: rgb(27 34 32 / 23%);
    padding: 16px;
    text-align: center;
    z-index: 9999;
    gap: 32px;
    align-items: center;
    justify-content: center;
    transform: translateX(-100%);
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#cookie-banner.show {
    transform: translateX(0%); /* Slide into view */
}

#cookie-banner:not(.show) {
    transform: translateX(100%);
}

#cookie-banner button{
    font-size: 14px;
    padding: 14px 12px;
    height: 24px;
}

#cookie-banner p{
    font-size: 14px; 
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    background: rgb(27 34 32 / 23%);
    padding: 16px 32px 32px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 500px;
    /*box-shadow: rgba(130, 102, 199, 0.4) 5px 5px, rgba(130, 102, 199, 0.3) 10px 10px, rgba(130, 102, 199, 0.2) 15px 15px, rgba(130, 102, 199, 0.1) 20px 20px, rgba(130, 102, 199, 0.05) 25px 25px;*/
    box-shadow: rgba(130, 102, 199, 0.2) 5px 5px, rgba(130, 102, 199, 0.1) 10px 10px, rgba(130, 102, 199, 0.05) 15px 15px;
}

.modal-content  p{
    font-size:12px;
}

.modal-content label{
    color: var(--white);
    width: 100%;
    font-size: 14px;
    display: flex;
    gap: 8px;
    flex-direction: row-reverse;
    justify-content: start;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size:11px;
}

th, td {
    padding: 4px;
    text-align: left;
    color: var(--white);
}

th, td{
    border-bottom: 1px solid var(--white-apagado);
}

th {
    font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
  max-width:40px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgb(255 255 255 / 20%);
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px; 
  background-color: var(--white);
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary-70);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary-70);
}

input:checked + .slider:before {
  -webkit-transform: translateX(20px);
  -ms-transform: translateX(20px);
  transform: translateX(20px); 
}

.slider.round {
  border-radius: 20px;
}

.slider.round:before {
  border-radius: 50%;
}

.container-cookie{
    display: flex;
    gap: 16px;
    color: var(--white);
    width: 100%;
    font-size: 12px;
    justify-content: start;
    align-items: center;
}
.cookie-banner-container{
    max-width: var(--max-width);
}
.cookie-banner-container p{
    max-width:100%;
    text-align:left;
}

.lottie-c{
    width:60px;
    height:60px;
}

.tabs{
    flex-wrap:wrap;
}


/* Media Query*/

@media (min-width: 765px) and (max-width:1200px){
    :root {
        --max-width: calc(100% - 32px);
    }
    #education > div:nth-child(1){
        padding: 0;
        text-align: center;
    }
    
}

@media (max-width: 765px) {
    
        .c{
            width:100%;
        }
    
    .tooltip:hover::after { display:none; }
    
    .logo-md{
        height: 26px;
    }
    
    footer .sitemap{
        font-size: 14px;
    }
    
    #body-contact{
        overflow-x: hidden;
    }
    
    #form-container.sent{
        height: 220px;
    }
    
    header .container{
        position:relative;
    }
    
    header.open nav{
        top: 60px;
    }
    
    header nav{
        position: absolute;
        top: -600px;
        width: 100%;
        margin: 0 auto;
        background: rgb(27 34 32);
        z-index: 999;
        border: 1px solid var(--black-90);
        padding: 16px 0;
        transition: .4s top linear;
    }
    
    header nav ul{
        display: flex;
        flex-direction: column;
        gap: 32px;
    }
    .header-link::after{
        display:none;
    }
    .container-job{
        display: flex;
        flex-direction: column-reverse;
    }
    .container-job .col-3{
        width: calc(100% - 32px);
        margin: 56px auto 0;
        position: relative;
        left: 0;
        top: 0;
    }
    ul.sm{
        display: flex;
        flex-direction: column;
    }
    ul.sm li{
        gap: 8px;
        display: flex;
        flex-direction: column;
    }
    #bisiesto .lottie-b{
        height: 100px;
    }
    header{
        width: calc(100% - 64px);
    }
    header #burguer{
        display:block;
        scale: 0.65;
    }
    
    #skills{
        display:flex;
        flex-direction:column;
        padding:0;
    }
    main:not(#contact):not(.company-main) {
        max-width: calc(100% - 32px);
        margin: 60px auto;
    }
    .company-main{
        margin: 0 auto;
        overflow:hidden;
    }
    #contact .content{
        max-width: calc(100% - 32px);
        margin: 60px auto; 
    }
    .company-main > *:first-child{
        max-width: calc(100% - 32px);
        margin: 60px auto; 
    }
    .education{
        height:auto;
        margin-top:60px;
    }
    .education .wrapper{
        flex-direction: column;
    }
    .education .line, .jobs .line{
        height: 100%;
        width: 2px;
        background-size: 2px 8px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(180deg);
    }
    
    #banner .wrapper{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }
    main > *:not(:first-child){
        margin-top:60px;
    }
    #banner{
        margin: 0 auto;
    }
    #banner h1{
        margin: 0 auto;
    }
    #banner h2, #banner h3{
        text-align:center;
    }
    #banner .wrapper .col-1 > div:last-child{
        justify-content: center;
    }
    .skill{
        flex-direction: column;
        display: flex;
        align-items: start;
        gap: 8px;
        justify-content: start;
    }
    .wrapper-progress{
        width:90%;
        align-self:start;
    }
    #skills {
        overflow:hidden;
    }
    #skills .col-2{
        padding:16px;
    }
    #skills .col-1{
        text-align: center;
    }
    /* change to only small screens */
    .alert-label{
        display:none;
    }
    .education .c , .education .card-1{
        width: 100%;
        max-width:400px;
    }
    #education > div:nth-child(1){
        padding:0;
        text-align:center;
    }
    #education h3{
        text-align: center;
        width: 100%;
    }
    #skills ul li{
        border-left:none;
        border-bottom:2px solid var(--black-90);
    }
    #skills ul li.active{
        border-left:none;
        border-bottom:2px solid var(--secondary)
    }
    #skills ul{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        margin: 40px auto 0;
    }
    #skills ul li{
        text-align:center;
    }
    #experience {
        text-align:center;
    }
    .company img{
        width: 100px;
        height: 100px;
    }
    #about .container{
        padding:16px;
    }
    #cookie-banner p {
        text-align: center;
    }
    .cookie-banner-container{
        flex-direction: column;
        gap: 16px;
    }
    #cookie-banner{
        padding:8px;
    }
    #skills-gradient{
        top:80%;
    }
    .skill .title{
        font-size: 14px;
    }
    .wrapper-progress .percentage-label{
        padding: 3px;
        font-size: 11px;
    }
    .skill-category > .wrapper{
        gap: 24px;
    }
    .jobs .wrapper{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .jobs .wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    #education{
        gap:0;
    }
    #contact .card-1{
        width:100%;
    }
    #contact .container{
        flex-direction: column;
    }
    #contact .wrapper{
        gap: 32px;
    }
    .gradient-contact{
        max-width: 100%;
        top: 20%;
        left: 0;
        height: 80%;
        background-size: auto;
    }
    #contact{
        overflow:hidden;
        margin-top: 0px;
        margin-bottom: 0px;
    }
    #successForm{
        top: 0px;
    }
    #successForm p{
        text-align:center;
    }
    .modal-content{
        padding:8px;
        width: calc(100% - 32px);
    }
    .modal-content  p, .modal-content  h3{
        text-align:center;
    }
}

@media(min-width: 766px){
    .header-link::after {
        content: attr(data-replace);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        font-family: 'Consolas';
        font-weight: 600;
        font-size: 11px;
        line-height: 14px;
        color: var(--secondary);
        transform-origin: 100% 50%;
        transform: translate3d(0, -200%, 0);
        transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    }
    
    .header-link:hover::after {
        transform: translate3d(0, 0, 0);
        top: 4px;
    }
    
    .header-link span {
        display: inline-block;
        transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
    }
    
    .header-link:hover span {
        transform: translate3d(0, 500px, 0);
    }
}
/* Animations */

@keyframes text-animation {
    0% {
        margin-top: 0;
    }

    20% {
        margin-top: 0;
    }

    40% {
        margin-top: -32px;
    }

    60% {
        margin-top: -64px;
    }

    80% {
        margin-top: -32px;
    }

    100% {
        margin-top: 0;
    }
}


@-webkit-keyframes bounce-in-top {
    0% {
        -webkit-transform: translateY(-500px);
        transform: translateY(-500px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0;
    }

    38% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        opacity: 1;
    }

    55% {
        -webkit-transform: translateY(-65px);
        transform: translateY(-65px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    72% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    81% {
        -webkit-transform: translateY(-28px);
        transform: translateY(-28px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    90% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    95% {
        -webkit-transform: translateY(-8px);
        transform: translateY(-8px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
}

@keyframes bounce-in-top {
    0% {
        -webkit-transform: translateY(-500px);
        transform: translateY(-500px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
        opacity: 0;
    }

    38% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
        opacity: 1;
    }

    55% {
        -webkit-transform: translateY(-65px);
        transform: translateY(-65px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    72% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    81% {
        -webkit-transform: translateY(-28px);
        transform: translateY(-28px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    90% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }

    95% {
        -webkit-transform: translateY(-8px);
        transform: translateY(-8px);
        -webkit-animation-timing-function: ease-in;
        animation-timing-function: ease-in;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        -webkit-animation-timing-function: ease-out;
        animation-timing-function: ease-out;
    }
}



@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}


@-webkit-keyframes slide-right {
    0% {
        -webkit-transform: translateX(-1000px);
        transform: translateX(-1000px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes slide-up {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity:0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity:1;
    }
}

@keyframes slide-up {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity:0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity:1;
    }
}

@keyframes slide-right {
    0% {
        -webkit-transform: translateX(-1000px);
        transform: translateX(-1000px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@-webkit-keyframes slide-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
    }
}

@keyframes slide-left {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
    }
}

@-webkit-keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 368px
    }
}

@keyframes blinkTextCursor {
    from {
        border-right-color: rgba(255, 255, 255, .75);
    }

    to {
        border-right-color: transparent;
    }
}

@keyframes removeCursor {
    to {
        border-right-color: transparent;
    }
}

@keyframes opacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}