* {
    margin:0;
    box-sizing: border-box;
    /* outline: 2px solid red; */

}body {
    margin: 0%;
    font-family: "Mozilla text", -apple-system;
    color:#fff;
}
/* navbar */
nav {
    position: fixed;
    bottom: 0%;
    width: 100dvw;
    padding: 1rem;
    z-index: 10;
}
.nav-container {
    display: flex;
    width: 100%;
    border-radius: 1rem;
    background-color: #414141cc;
    border: 1px solid white;
    justify-content: space-evenly;
    align-items: center;
    padding: 1rem 0;
}

.nav-link {
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 3rem;
    font-size: clamp(0.6rem, 0.1vw + 0.7rem, 3rem);
    flex-shrink: 1;
}
.nav-element:hover, .nav-element:active {
    transform: scale(1.1);
    transition: transform 0.2s;
}
.nav-link img {
    width: 2rem;
    height: 2rem;
    margin: 0;
}
a {
    text-decoration: none;
    color: white;
}
.header-container {
    background-image: url('Assets/wave-Dark.webp');
    background-size: cover;
    background-position: center;
    height: 100dvh;
    overflow: hidden;
}
.wrapper {
    height: 100%;
    width: 100%;
    background-color: #0008;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 1rem;
}
h1 {
    font-family: 'Major Mono Display', --apple-system;
    font-size: clamp(2.3rem, 7dvw, 10rem);
    text-align: center;

}
/* main */
/* info */
main {
    background-color: #1A1A1A;
}
h2 {
    font-family: 'Major Mono Display', --apple-system;
    font-size: clamp(1.8rem, 10%, 5rem);
}
.info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.info-title-container {
    border-bottom: 2px solid white;
    border-left: 2px solid white;
    display: inline-block;
    padding: 1rem;
    margin: 0 0 0.5rem 0.8rem;
}
.info-image {
    max-width: 100%;
    border: 2px solid white;
    border-radius: 0.5rem;
}
.info-image::selection {
    background-color: transparent;
}
.info-img-container {
    margin: 0.5rem 0.8rem;
}
.info-info {
    display: inline-block;
    padding: 0 1rem;
    font-size: clamp(0.9rem, 7%, 2rem);
    line-height: 1.5;
    text-wrap: pretty;
}
/*web-projects*/
.web-projects {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #292929;
}
.web-projects-title {
    border-bottom: 2px solid white;
    border-left: 2px solid white;
    display: inline-block;
    padding: 1rem;
    margin: 0 0 0.5rem 0.8rem;
}
.web-projects-container {
    display: grid;
    grid-template-columns: 1fr;
}
.web-project {
    margin-top: 1.2rem;
    width: 100%;
    padding: 20px;
    border: 1px solid #fff;
    border-radius: 10px;
    background-color: #111111;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition:
    transform 0.2s,
    box-shadow 0.2s;
    position: relative;
    font-family: inherit;
}
.web-projects-description {
    display: inline-block;
    padding: 0 1rem;
    font-size: clamp(0.9rem, 7%, 2rem);
    text-wrap: pretty;
}
.web-project:hover {
    transform: translateY(-0.5rem);
}

.mac-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.mac-header span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-header .red {
    background-color: #ff5f57;
}

.mac-header .yellow {
    background-color: #ffbd2e;
}

.mac-header .green {
    background-color: #28c941;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #e6e6ef;
}

.project-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}
.web-project-image {
    max-width: 100%;
    border-radius: 0.2rem;
}
/*proyectos de hardware*/
.hw-projects {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #1a1a1a;
}
.hw-projects-title-container {
    border-bottom: 1px solid white;
    border-left: 1px solid white;
    display: inline-block;
    padding: 1rem;
    margin: 0 0 0.5rem 0.8rem;
}
.hw-project-description {
    color: #fffd;
}
.hw-project-image {
    width: 5rem;
    
}
.hw-image-container {
    display: flex;
    justify-content: end;
    padding: 0 2rem ;
}
/*contact*/
.contact {
    background-color: #212121;
    padding: 2rem 1.5rem;
}
.contact-phrase {
    display: inline-block;
    text-wrap: balance;
    text-align: center;
    padding-bottom:0.5rem ;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #fff;
}
.form-container {
    background-color: #000000;
    padding: 1rem;
    margin-top: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid white;
    transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.form-input {
    width: 100%;
    padding: 0.8rem 0.5rem;
    margin: 0.5rem 0;
    background-color: #1A1A1A;
    border: none;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0.5rem;
    color:#fff;
    font-family: 'Major Mono Display', --apple-system;
}
.form-input:is(textarea) {
    min-height: 4rem;
    font-family: inherit;
    resize: none;
}
.form-input:is(input[type="submit"]) {
    background-color: #bfbfbf;
    color:#000;
    font-family: inherit;
    font-size: inherit;
    padding: 0.5rem;
    border:none;
}
.form-container:hover {
    transform: translateY(-0.5rem);
}
/*footer*/
footer {
    background-color: #121111;
    padding: 2rem;
}
.footer-container {
    padding-bottom: 5.5rem;
}
.footer-container h3{
    font-family: 'Major Mono Display', --apple-system;
    font-size: clamp(0.8rem, 4dvw, 2rem);
}


@media (min-width: 720px) {
    .info-info {
        line-height: 2;
    }
    h1 {
        font-size: clamp(3rem, 8dvw, 10rem);
    }
    .web-projects-container, .hw-projects-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        z-index: 5;
    }
    .web-projects, .hw-projects, .contact, .footer-container, .info {
        padding:0.5rem 3rem 2rem 3rem;
    }
    .footer-container {
    padding-bottom: 6rem;
}
    
}
@media (min-width:980px) {
    h1 {
        animation: h1-animation-effect 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    }
        nav {
        top:0rem;
        padding: 0;
        height: fit-content;
    }
    .nav-container {
        padding: 0.7rem 0;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid #fff;
        background-color: #212121;
    }
    .info {
        background-image: url('Assets/archsetup.webp');
        background-size: cover;
        background-position: start;
        background-repeat: no-repeat;
        height: 54rem;
        overflow: hidden;
        justify-content: center;
        background-attachment: fixed;
    }
    .info-text-container {
        width: 40dvw;
        height: 60%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #0009;
        padding: 1rem;
    }
    .info-img-container {
        display: none;
    }
    .web-projects, .hw-projects, .contact, .footer-container {
        padding:2rem 10rem;
    }
    .form-input {
        padding: 1rem;
    }
    .form-input:is(textarea) {
        height: 10rem;
    }
.form-input:is(input[type="submit"]) {
    padding: 1rem;
}
}
@keyframes h1-animation-effect {
    from {
        opacity: 0;
        transform:scale(0.8);
    }
    to {
        opacity: 1; 
        transform: scale(1);
    }

}

