* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Roboto Light";
}

:root {
    --blue-color: #558bf6;
    --black-background: #202020;
    --button-outline: rgba(255, 255, 255, .10);
    --badge-outline: rgba(0, 0, 0, .05);
    --border-card: #cdd0d6;
    --bg-card: #f5f5f5;
    --dark-bg-card: #1c1e21;
    --elevate-1: rgba(0, 0, 0, .05);
    --elevate-2: rgba(255, 255, 255, .09);
    --dark-section-bg: #121416;
    --dark-text: #98a1b3;
    --dark-text-secondary: #d3d7de;
    --dark-border-card: #393e46;
    --tw-ring-shadow: 0 0 #0000;
    --tw-ring-offset-shadow: 0 0 #0000;
    --dark-scrolled-bg: #121416cc;
    --scrolled-bg: #fafafacc;
    --dark-input-bg: #121416;
    --dark-input-border: #4c5567;
    --light-background: #fafafa;
    --tw-ring-inset: ;
}

p{
    font-size: 18px;
}

.container__full-width {
    max-width: 1400px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.padding-small {
    padding: 1em;
}

.display-flex {
    display: flex;
}

.dark-mode p, label, .geo, footer, footer .social-links, .footer__links a {
    color: var(--dark-text);
}

.text-center {
    text-align: center;
    margin: auto;
}

.text-error {
    color: red;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.errorlist {
    list-style-type: none;
}

.align-center {
    align-items: center;
}

.margin-top-sm {
    margin-top: 0.5em;
}

.margin-top {
    margin-top: 1em;
}

.margin-top-xl {
    margin-top: 4em;
}

.margin-bottom {
    margin-bottom: 1em;
}

.flex-wrap {
    flex-wrap: wrap;
    display: flex;
}

h1 {
    color: var(--blue-color);
    font-size: 6vw;
}

h1, h2, h3, h4 {
    text-transform: capitalize;
}

h2 {
    font-size: 2.25rem;
}

.short-text {
    max-width: 600px;
}

.gap {
    gap: 1em;
}

.gap-sm {
    gap: 0.5em;
}

.gap-lg {
    gap: 2em;
}

.column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.align-end{
    align-items: end;
}

body {
    min-height: 100vh;
}

.margin-auto {
    margin: auto;
}

.justify-center {
    justify-content: center;
}

/* Menu */

#modeSvg{
    cursor: pointer;
}

.navbar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1;
}

#navbar, body.dark-mode {
    height: 100vh;
}

.dark-mode .navbar__icon {
    filter: invert(1);
}

#navbar {
    background: linear-gradient(rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3)),
    url("../../../../../media/code.png") no-repeat center;
    background-size: cover;
}

body.dark-mode #navbar {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("../../../../../media/code.png") no-repeat center;
    background-size: cover;
}

.navbar__logo, .navbar__links a, .grid__item-link {
    text-decoration: none;
}

.navbar__links a {
    color: var(--black-background);
    padding: 0.5em 1em;
}

.dark-mode .navbar__links a {
    color: #f5f5f5;
}

.dark-mode .scrolled {
    background-color: var(--dark-scrolled-bg) !important;
    border-bottom: 1px solid var(--dark-border-card);
}

.dark-mode .navbar.scrolled:has(.navbar__links.active) {
    border: 0 !important;
}

.scrolled {
    background-color: var(--scrolled-bg) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(12px);
}

.navbar__logo {
    font-weight: 800;
    font-size: 3vw;
    color: var(--blue-color);
}

.navbar__links {
    list-style: none;
    display: flex;
    z-index: 1;
}

.navbar__links-item {
    border-radius: 8px;
}

.navbar__links__item-active {
    font-weight: 600;
}

.navbar__burger {
    display: none;
    width: 40px !important;
}

.navbar__icon {
    width: 20px;
}

.navbar__links:hover {
    padding: 0;
}

.navbar__links a:hover, .navbar__links a.active {
    color: white;
    background-color: #363d49;
    cursor: pointer;
    padding: 0.5em 1em;
    border-radius: 8px;
}

.mouse {
    width: 40px;
    height: 80px;
    position: absolute;
    left: 50%;
    bottom: 0;
}

.intro {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: 70vw;
    width: 100%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #202020;
}

.intro p {
    color: white;
    font-size: 20px;
    font-weight: 400;
}

.social-links {
    color: white;
}

.social-links:hover {
    color: var(--blue-color);
}

.intro__button, .flex__item-submit {
    border-radius: 8px;
    font-size: 25px;
    font-weight: 500;
    text-transform: capitalize;
}

.intro__button {
    padding: 1em 3em;
}

.intro__button:hover {
    cursor: pointer;
}

.intro__button-full, .flex__item-submit {
    border: 3px solid var(--button-outline);
    background-color: var(--blue-color);
}

.intro__button-full:hover {
    background-color: #558bf6e6;
}

.intro__button-transparent {
    background-color: #fafafa1a;
    border: 3px solid var(--button-outline);
}

.dark-mode .intro__button-transparent {
    background-color: #1214161a;
    border: 3px solid var(--button-outline);
    color: white;
}

.intro__button-transparent:hover {
    background-color: rgb(255 255 255 / 0.2);
}

.jump {
    display: inline-block;
    animation: jump 2s ease-in-out infinite;
    will-change: transform;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Projects */
#projects, #contact {
    padding-top: 4em;
    padding-bottom: 4em;
    background-color: var(--light-background);
}

.dark-mode #projects, .dark-mode #contact {
    background-color: var(--dark-section-bg);
}

.dark-mode h2, .dark-mode h3, .dark-mode h4, .dark-mode label, .dark-mode .title {
    color: white;
}

.grid__item {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-card);
    border-radius: 8px;
    background-color: var(--bg-card);
}

.dark-mode .grid__item__frameworks-badge {
    color: var(--dark-text);
    border: 1px solid var(--dark-border-card);
}

.dark-mode .grid__item {
    background-color: var(--dark-bg-card);
    border: 2px solid var(--dark-border-card);
}

.grid__item-img {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.grid__item-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid__item-content {
    padding: 2em;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.grid__item__frameworks-badge {
    padding: 0.2em 0.5em;
    border-radius: 8px;
    border: 1px solid var(--badge-outline);
}

.grid__item-link {
    color: #4f5458 !important;
    font-weight: 500;
    padding: 0.5em 1em;
    margin-top: auto;
    border-radius: 8px;
}

.shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.dark-mode .grid__item__frameworks-badge, .dark-mode .grid__item-link {
    color: var(--dark-text-secondary) !important;
}

.grid__item-link:hover, .grid__item__frameworks-badge:hover, .grid__item:hover {
    background-color: var(--elevate-1);
}

.dark-mode .grid__item-link:hover, .dark-mode .grid__item__frameworks-badge:hover, .dark-mode .grid__item:hover {
    background-color: var(--elevate-2);
}

/* Frameworks */
#frameworks {
    padding-top: 4em;
    padding-bottom: 4em;
    background-color: #e3e5e84d;
}

.dark-mode #frameworks {
    background-color: #181a1d !important;
}

@keyframes pulse-step-open {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(41,199,111,0.0); }
  12%  { transform: scale(1.18); box-shadow: 0 0 18px 6px rgba(41,199,111,0.18); }
  18%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(41,199,111,0.0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(41,199,111,0.0); }
}

@keyframes pulse-step-closed {
    0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.0); }
    12%  { transform: scale(1.18); box-shadow: 0 0 18px 6px rgba(255,59,48,0.18); }
    18%  { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,59,48,0.0); }
}

.circle {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;

}

.circle__open{
    box-shadow: 0 0 0 0 rgba(41, 199, 111, 0.6);
    background: #29c76f;
    animation: pulse-step-open 3s infinite;
}

.circle__closed{
    background: #ff3b30;
    box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6);
    animation: pulse-step-closed 3s infinite;
}

.framework__button {
    border-radius: 20px;
    width: 25%;
    padding: 1em 2em;
    margin: 4em auto;
    display: flex;
    background-color: transparent;
    border: 1px solid var(--border-card);
}

.dark-mode .framework__button {
    border: 1px solid var(--dark-border-card);
    color: var(--dark-text-secondary);
}

/* Contact */
.flex__item {
    display: flex;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    padding: 1em;
    justify-content: space-between;
}

.info__box{
    height: 100%;
}

.dark-mode .flex__item {
    border: 1px solid var(--dark-border-card);
}

.flex__item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex__item-icon {
    width: 40px;
    height: 40px;
    margin-right: 1em;
    background-color: #558bf61a;
    border-radius: 0.5625rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex__item-icon svg {
    color: var(--blue-color)
}

.invalid .flex__item-input {
    border: 1px solid red !important;
}

.flex__box {
    flex-grow: 1;
    height: 100%;
}

.align-stretch{
    align-items: stretch;
}

.dark-mode form{
    background-color: var(--dark-bg-card);
    border: 1px solid var(--dark-border-card);
}

form{
    padding: 1em;
    border-radius: 8px;
    border: 1px solid var(--border-card);
}

.flex__box-big {
    flex-grow: 3;
}

label {
    margin-bottom: 0.5em;
}

.flex__item-submit {
    padding: 0.5em 1em;
}

.flex__item-input {
    border: 1px solid var(--border-card);
    border-radius: 8px;
    background-color: #fafafa;
    padding: 0.75em 1.5em;
}

.flex__item-input:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 4px var(--blue-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.dark-mode .flex__item-input {
    background-color: var(--dark-input-bg);
    border: 1px solid var(--dark-input-border);
}

/* Footer */
footer{
    border-top: 1px solid var(--border-card);
    padding: 4em 1em;
}

.dark-mode footer{
    border-top: 1px solid var(--dark-border-card);
    background-color: var(--dark-bg-card);
}
.footer__box{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 30%;
}

.footer__links a {
    width: 25%;
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--blue-color);
}

.footer__box-big{
    flex-grow: 2;
}

.title{
    color: black;
    font-size: 16px;
    margin-top: 15px;
    font-weight: 600;
}

.footer__logo{
    font-size: 30px;
}

.split-line{
    width: 100%;
    height: 1px;
    background-color: var(--border-card);
    margin: 2em 0;
    display: flex;
}

.dark-mode .split-line{
    background-color: var(--dark-border-card);
}

@media screen and (max-width: 888px) {
    .navbar__links {
        display: none;
    }

    .navbar__icon {
        display: flex;
    }

    .navbar__links-item:first-child {
        margin-top: 0 !important;
    }

    .navbar__links-item {
        margin-top: 1em;
        width: 100%;
    }

    .navbar__links.active {
        display: block;
        position: absolute;
        width: 100%;
        top: 100%;
        flex-direction: column;
        padding: 1em;
        background-color: var(--scrolled-bg) !important;
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

    .navbar__links.active::before {
        content: "";
        position: absolute;
        inset: 0;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        z-index: -1;
    }

    .dark-mode .navbar__links.active {
        background-color: var(--dark-scrolled-bg) !important;
        border-bottom: 1px solid var(--dark-border-card);
    }

    .dark-mode .navbar__links a {
        color: white;
    }

    .dark-mode .navbar__links a:hover {
        color: white !important;
    }

    .navbar__links a {
        display: flex;
        width: 100%;
    }

    h1 {
        font-size: 8vw;
    }

    .intro__button {
        font-size: 2.60vw;
    }

    .intro {
        max-width: 90vw;
    }

    .navbar__logo {
        font-size: 6.5vw;
    }

    .flex-column {
        flex-direction: column;
    }

    .framework__button {
        width: 100%;
    }
}