@font-face {
    font-family: "SFProDisplayRegular";
    src: url("SFPRODISPLAYREGULAR.OTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "ITCAvantGardePro";
    src: url("ITCAvantGardePro-Bk.otf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    font-family: "SFProDisplayRegular", sans-serif;
    background-color: white;
    color: black;
    padding-top: 90px;
    width: 100%;
    scroll-behavior: smooth;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    overflow-x: hidden;
    box-sizing: border-box;

    @media (max-width: 768px) {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    position: fixed;
    top: -100px;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 11px;
    animation: slideDown 1.5s ease-out forwards;

    @media (max-width: 768px) {
        justify-content: center;
        padding: 1.2rem;
    }
}

@keyframes slideDown {
    from {
        top: -100px;
    }
    to {
        top: 0;
    }
}

.logo-img {
    height: 15px;
    width: auto;
    padding-left: 2.5rem;
    padding-top: 0.2rem;
    filter: invert();
    transition: filter 0.7s ease;

    &:hover {
        filter: invert() drop-shadow(0 0 0.8px rgba(0, 0, 0, 0.8));
    }

    @media (max-width: 768px) {
        padding-left: 0;
        height: 15px;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;

    @media (max-width: 768px) {
        display: none;
    }
}

.nav-links li {
    margin-left: 4rem;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-family: "SFProDisplayRegular", sans-serif;
    font-size: 15px;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: black;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease-out;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:not(:hover)::after {
    transform-origin: right;
}

.nav-links a {
    transition: color 0.5s ease;
}

.nav-links a:hover {
    color: black;
}

.nav-links li {
    transition: filter 0.5s ease-in-out;
}

.nav-links:hover li {
    filter: blur(1.5px);
}

.nav-links li:hover {
    filter: none;
}

.nav-links li.no-blur {
    filter: none;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    padding: 0 2.5rem;
    opacity: 0;
    filter: blur(5px);
    animation:
        dissolveIn 1.3s ease-in forwards,
        blurIn 1s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0 1rem;
        padding-bottom: 4rem;
        padding-top: 4rem;
    }
}

@keyframes dissolveIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes blurIn {
    0% {
        filter: blur(10px);
    }

    100% {
        filter: blur(0);
    }
}

.greeting {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 10px;
    border: 0.4px solid rgba(0, 0, 0, 0.21);
}

.greeting p {
    margin: 0;
    font-size: 1rem;
    font-family: "SFProDisplayRegular", sans-serif;
}

.wave {
    display: inline-block;
    transition: transform 0.05s ease;
    transform-origin: bottom center;
}

.greeting:hover .wave {
    animation: wave-animation 1.5s linear infinite;
}

@keyframes wave-animation {
    0%,
    100% {
        transform: translateX(0) rotate(0deg);
    }
    25% {
        transform: translateX(0.35px) rotate(7deg);
    }

    75% {
        transform: translateX(-0.35px) rotate(-7deg);
    }
}

h1 {
    font-size: 3.5rem;
    max-width: 750px;
    margin-bottom: 30px;
    font-family: "ITCAvantGardePro", sans-serif;
    letter-spacing: -2.5px;
    font-weight: lighter;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: lighter;
    transition: all 0.5s ease;
    margin-top: 10px;
    font-family: "SFProDisplayRegular", sans-serif;
    position: relative;
    overflow: hidden;

    @media (max-width: 768px) {
        padding: 10px 20px;
    }
}

.cta-button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    filter: blur(12px);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s ease-in-out infinite;
}

.cta-button:hover {
    background-color: black;
    color: white;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.arrow {
    margin-left: 10px;
}

.proyectos {
    padding: 0rem 2.5rem 4rem;
    font-family: "ITCAvantGardePro", sans-serif;
    letter-spacing: -2.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: dissolveInUp 1.5s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0rem 1rem 4rem;
    }
}

@keyframes dissolveInUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    40% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.proyectos-titulo {
    font-family: "SFProDisplayRegular", sans-serif;
    font-weight: lighter;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2.5rem;
    letter-spacing: -2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.proyecto {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    border-radius: 7px;
    border: 0.1px solid rgba(0, 0, 0, 0.08);
}

.proyecto-imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    border-radius: 7px;
}

.proyecto:hover .proyecto-imagen {
    transform: scale(1.01);
}

.proyecto-overlay {
    position: absolute;
    top: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    color: black;
    text-align: center;
    padding: 1rem;
    border-radius: 7px;
}

.proyecto:hover .proyecto-overlay {
    opacity: 0.85;
}

.proyecto-overlay h3 {
    font-weight: lighter;
    color: white;
    font-size: 1.8rem;
    border: 1.5px solid white;
    border-radius: 50px;
    padding: 5px 18px;
    font-family: "SFProDisplayRegular", sans-serif;
    letter-spacing: -0.7px;
    opacity: 0;
    transform: translateY(7px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.proyecto:hover .proyecto-overlay h3 {
    opacity: 1;
    transform: translateY(0);
}

.proyecto:not(:hover) .proyecto-overlay h3 {
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.ver-todos-btn {
    align-items: center;
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px 30px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: lighter;
    transition: all 0.5s ease;
    font-family: "SFProDisplayRegular", sans-serif;
    margin-top: 2.5rem;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.ver-todos-btn:hover {
    background-color: black;
    color: white;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }
}
.texto-centrado {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2.5rem;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.texto-centrado p {
    font-weight: lighter;
    max-width: 1000px;
    text-align: center;
    font-size: 2rem;
    line-height: 1.25;
    font-family: "ITCAvantGardePro", sans-serif;
    letter-spacing: -1.5px;
}

@media (max-width: 1024px) {
    .texto-centrado p {
        margin-bottom: 5rem;
        margin-top: -0.3rem;
        margin-left: 0;
        margin-right: 0;
    }
}

.sobre-mi {
    display: flex;
    padding: 5rem 2.5rem 0;
    align-items: stretch;
    gap: 5.5rem;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        padding: 5rem 1rem 0;
    }
}

.imagen-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.imagen-sobre-mi {
    width: 100%;
    max-height: 43vh;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.texto-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.sobremi {
    align-self: flex-start;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    padding: 0px 20px;
    margin-bottom: 20px;
    border: 0.4px solid rgba(0, 0, 0, 0.21);
    font-family: "SFProDisplayRegular", sans-serif;
    font-size: 1rem;
}

.descripcion {
    font-size: 1.1rem;
    line-height: 1.35;
    margin-bottom: 2rem;
    color: black;
    font-family: "SFProDisplayRegular", sans-serif;
}

.estadisticas {
    display: flex;
    justify-content: flex-start;
    gap: 4rem;
    font-family: "SFProDisplayRegular", sans-serif;
}

.estadistica {
    text-align: left;
    font-family: "SFProDisplayRegular", sans-serif;
}

.estadistica-titulo {
    font-size: 1.1rem;
    color: gray;
    font-family: "SFProDisplayRegular", sans-serif;
}

.estadistica-numero {
    font-size: 3.5rem;
    margin-top: -0.6rem;
    font-family: "ITCAvantGardePro", sans-serif;
}

@media (max-width: 1024px) {
    .sobre-mi {
        padding: 0 2.5rem;
        gap: 4rem;

        @media (max-width: 768px) {
            padding: 0 1rem;
        }
    }
}

@media (max-width: 768px) {
    .sobre-mi {
        flex-direction: column;
        padding: 0 1rem;
        gap: 2rem;
    }

    .texto-container {
        padding-top: 2rem;
    }
}

.mi-experiencia {
    text-align: center;
    margin-top: 4rem;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

.mi-experiencia h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-family: "ITCAvantGardePro", sans-serif;
    font-weight: lighter;
    letter-spacing: -2px;
}

.mi-experiencia-contenido {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.mi-experiencia-izquierda,
.mi-experiencia-derecha {
    flex: 1;
}

.mi-experiencia-izquierda p {
    font-size: 1.3rem;
    color: black;
    text-align: left;
    margin-right: 2rem;
    font-family: "SFProDisplayRegular", sans-serif;
    font-weight: lighter;
    letter-spacing: -0.6px;
}

.mi-experiencia-derecha p {
    font-size: 1.1rem;
    color: grey;
    text-align: left;
    margin-left: 2rem;
    font-family: "SFProDisplayRegular", sans-serif;
}

.separador {
    height: 0.9px;
    background: linear-gradient(to left, white, grey, white);
    opacity: 0.5;
    margin: 1.7rem 0rem;
}

@media (max-width: 768px) {
    .mi-experiencia {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    .mi-experiencia-contenido {
        flex-direction: column;
    }
    .mi-experiencia-izquierda {
        order: 1;
    }
    .mi-experiencia-derecha {
        order: 2;
    }
}

.hero2 {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    padding: 0 2.5rem;
    font-family: "SFProDisplayRegular", sans-serif;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.heroproyectos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    padding: 0 1.5rem;
    opacity: 0;
    filter: blur(5px);
    animation:
        dissolveIn 1.3s ease-in forwards,
        blurIn 1s ease-in forwards;

    @media (max-width: 768px) {
        padding-bottom: 2rem;
        padding-top: -4rem;
        margin-top: -3rem;
    }
}

.proyectos2 {
    padding: -0.5rem 2.5rem 4rem;
    font-family: "ITCAvantGardePro", sans-serif;
    letter-spacing: -2.5px;
    opacity: 0;
    transform: translateY(20px);
    animation: dissolveInUp 1.5s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0rem 1rem 2rem;
        margin-top: -3rem;
    }
}

.hero3 {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
    padding: -1rem 2.5rem;
    margin-top: -2rem;
    font-family: "SFProDisplayRegular", sans-serif;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.descripcion2 {
    font-size: 1.1rem;
    line-height: 1.35;
    margin: 2.5rem;
    color: black;
    font-family: "SFProDisplayRegular", sans-serif;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;
}

.titulo {
    font-size: 2.5rem;
    padding-left: 2.5rem;
    font-family: "SFProDisplayRegular", sans-serif;
    font-weight: lighter;
    letter-spacing: -2px;
    margin-bottom: 2.5rem;
    margin-top: 5rem;
    margin-left: 0;
    animation:
        dissolveIn 1.3s ease-in forwards,
        blurIn 0.8s ease-in forwards;

    @media (max-width: 768px) {
        margin-top: 2rem;
    }
}

.video-container {
    position: relative;
    margin-left: 12rem;
    margin-right: 12rem;
    margin-bottom: 4rem;
    margin-top: 4rem;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        margin: 0.5rem 0 2.5rem;
    }
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.imagenproyecto {
    position: relative;
    margin-left: 12rem;
    margin-right: 12rem;
    margin-bottom: 4rem;
    margin-top: 4rem;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;

    @media (max-width: 768px) {
        margin: 0.5rem 0 2.5rem;
    }
}

.imagenproyecto img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.form-group {
    margin-bottom: 1.5rem;
    font-family: "SFProDisplayRegular", sans-serif;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: black;
}

.form-group input,
.form-group textarea {
    width: calc(100% - 1.6rem);
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px;
    font-family: "SFProDisplayRegular", sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    margin: 0 auto;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: black;
}

#contactForm button {
    display: block;
    align-items: center;
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: lighter;
    transition: all 0.5s ease;
    font-family: "SFProDisplayRegular", sans-serif;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-size: 16px;
    margin: 1rem auto 0;
}

#contactForm button:hover {
    background-color: black;
    color: white;
}

#contactForm button::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    filter: blur(12px);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s ease-in-out infinite;
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    animation: dissolveIn 1.3s ease-in forwards;
}

@media (max-width: 768px) {
    #contactForm {
        padding: 2rem;
    }
}

.social-icon {
    display: inline-block;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-img {
    width: auto;
    height: 36px;
    display: block;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    gap: 3.5rem;
    animation: dissolveIn 1.3s ease-in forwards;
    margin: 0 auto;
    text-align: center;

    @media (max-width: 768px) {
        margin-top: -3rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .social-icon {
        margin: 0 0.5rem;
    }

    .social-links {
        padding: 1rem 1rem;
    }
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2.5rem;
    animation: dissolveIn 1.3s ease-in forwards;
    opacity: 0;

    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

.bento-card {
    background: whitesmoke;
    border-radius: 7px;
    padding: 2.5rem;
    transition: transform 0.3s ease;
    border: 0.1px solid rgba(0, 0, 0, 0.08);
    animation: fadeUpIn 1.3s ease forwards;
    opacity: 0;
    transform: translateY(30px);

    @media (max-width: 768px) {
        margin-bottom: 2.5rem;
    }
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bento-card:hover {
    transform: translateY(-5px);
}

.bento-card h2 {
    font-family: "ITCAvantGardePro", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: lighter;
    letter-spacing: -1.5px;
}

.bento-card p {
    font-family: "SFProDisplayRegular", sans-serif;
    font-size: 1.1rem;
    line-height: 1.35;
    color: gray;
}
.cta-mobile {
    display: none;
    align-items: center;
    background-color: white;
    color: black;
    border: 1px solid black;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: lighter;
    transition: all 0.5s ease;
    font-family: "SFProDisplayRegular", sans-serif;
    position: relative;
    overflow: hidden;
    width: fit-content;
    margin: 10px auto;
    margin-top: -3.5rem;
    visibility: hidden;
}

.cta-mobile::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    filter: blur(12px);
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s ease-in-out infinite;
}

.cta-mobile:hover {
    background-color: black;
    color: white;
}

@media (max-width: 768px) {
    .cta-mobile {
        display: inline-flex;
        visibility: visible;
    }
}
