@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');


html {
   font-size: 62.5%; /* 1REM = 10px */
   scroll-behavior:smooth ;
   margin: 0;
   padding: 0;
   width: 100%;
   height: 100%;
}

*, *:before, *:after {
    box-sizing: inherit;
}

* {
   margin: 0;
   padding: 0;
}

:root {
   --font-family: 'Roboto', sans-serif;
   --bg-color: #4756df;
   --primary-color: #4756df;
   --secondary-color: #ff7235 ;
   --primary-shadow: #8b8eaf;
   --secondary-shadow: #a17a69;
   --bottom-margin: 0.5rem;
   --bottom-margin-2: 1rem;
   --line-height: 3rem;
   --transition: 0.3s;
}

/* goblal */
body {
   font-family: var(--font-family);
   font-size: 2rem;
   background-color: #DCDCDC;
}

h1,
h2, 
h3 {
   font-weight: 900;
}
h1, h2, h3 {
   color: var(--primary-color);
}
h2 {
   margin: 0;
}
p {
   font-weight: 400;
}
a {
   text-decoration: none;
   color: var(--primary-color);
 }
 
 a:hover {
   color: var(--secondary-color);
}
ul, li, a {
   list-style:none ;
   text-decoration: none;
}
nav ul li {
   font-weight: var(--secondary-color);
}

/* header and nav */
header {
   position: sticky;
   top: 0;
   left: 0;
   z-index: 1;
}
.navheader-flex {
   display: flex;
   align-items: center;
   justify-content: space-between;
   box-shadow: 0 3px 5px var(--primary-color);
   padding: 3rem 2.5rem;
   background-color: #DCDCDC;
}

nav h1 {
   color: var(--primary-color);
}
nav a {  
   color: var(--primary-color);
   transition: var(--transition);
}

h1:hover {
   margin-left: 4rem;
}
nav a:hover {
   color: var(--secondary-color);
   border-bottom: 2px solid var(--transition);
}

nav ul {
   display: flex;
   gap: 1.9rem;
}

/* hamburguesa */
.menu-hamberger {
   color: var(--primary-color);
   font-size: 2rem;
   border: 0;
   background-color:transparent;
   cursor: pointer;
   display: none;
}

 /* hero */
.hero {
   background-size: 100%, 200rem;
   background-image: linear-gradient(to left, transparent 50%, var(--primary-color)  70%, var(--primary-color)  100% ), url(/imagepng/hero.jpg);
   background-position: center, left ;
   background-repeat: no-repeat;
   padding: 15rem 0;
   margin-top: 6rem;
 }
.hero-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   margin-right: 85rem;
}
.aboutme-grid p {
   text-align: center;
   padding: 2rem;
}
.aboutme-grid a {
   color: black;
}
.aboutme-grid a:hover {
   color: var(--secondary-color);
}
/* Skills */
.Hab {
   text-align: center;
   width: 100%;
   height: 100%;
}
.Hab h2 {
   margin: 2.5rem 0;
   color: var(--primary-color)
}
.iconskills {
   display: flex; 
   align-items: center; 
   justify-content: center;
   width: 1000px;
   height: auto;
   border-radius: 11px;
   box-shadow: 0 3px 10px var(--primary-color);
   margin: 0 15px;
   background-color: #ffffff;
   padding: 20px;
}
.habnavegation {
   display: flex;
   align-items: center; 
   justify-content: center;
   width: 100%;
   height: auto;
}
.icon {
   width: 100%; 
   height: 100%; 
   object-fit: cover; 
}
.grid-hab {
   display: flex;
   align-items: center;
   justify-content: center;
   width: 80%;
   height: auto;
}
/* project */
.project {
   text-align: center;
}
.imgproject {
   width: 75%;
   height: 55%;
   /* border-end-end-radius: 50px;
   border-start-start-radius: 50px; */
   margin-bottom: 1rem;
}
.project-container {
   position: relative;
   scroll-snap-align: center;
}
.project-container::-webkit-scrollbar {
   scroll-snap-align:center;
}
.web {
   width: 80%;
   height: auto;
   margin: 0 auto;
   display: flex;
   overflow-x: scroll;
   overscroll-behavior-x: contain;
   scroll-snap-type: x proximity;
   text-align: center;
   padding: 2rem;
}
.title-of-project {
   margin-bottom: .3rem;
}
.descripcion {
   margin: 5px;
   text-align: justify;
   line-height: 1.8;
}
.firt {
   display: grid;
}
.p{
   grid-row: 2/3;
}
.web-project {
   min-width: 56.5rem;
   border-radius: 11px;
   box-shadow: 0 3px 10px var(--primary-shadow);
   padding: 2rem;
   margin: 1.0rem;
   box-sizing: border-box;
}
.project_section {
   margin-top: 70px;
}
.cpp_project {
   margin-top: 25px;
}
.html_project {
   margin-top: 30px;
}

/* more about */  
.moreabout {
   box-sizing: border-box;
   width: 97%;
   height: auto;
   box-shadow: 0px 2px 15px 2px var(--primary-color);
   border-radius: 5px;
   text-align: center;
   margin: 80px auto;
   padding: 3rem;
}
.more-about-p {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   text-align: center;
}
.moreabout p {
   text-align: justify;
   line-height: 1.9; 
   margin: 1.5rem 3.5rem;
}
/* Form */
.Contact {
   width: 100%;
   height: auto;
   color: var(--primary-color);
}

.Contact h2 {
   text-align: center;
}

.formcontenedor {
   box-sizing: border-box;
   width: 97%;
   margin: 0 auto;
   padding: 3rem;
   border-radius: 5px;
   margin-bottom: 5rem;
   box-shadow: 0px 2px 15px 2px var(--primary-color);
}

.control-form label {
   line-height: 6rem;
   font-weight: 400;
   font-size: 2.5rem;
   font-family: var(--font-family);
}

.control-form textarea {
   min-height: 10rem;
   font-family: var(--font-family);
}

.control-form .input-field {
   width: 100%;
   padding-top: 10px;
   padding-bottom: 10px;
   border-radius: 5px;
   border: none;
   border: 2px outset var(--primary-color);
   font-size: 2.5rem;
   outline: none;
}

.input-field::placeholder {
   padding: 0.9rem;
   color: var(--primary-color);
}

.submit-btn {
   margin: 0 auto;
   width: 100%;
   height: auto;
   padding: 1.0rem;
   margin: 1.0rem 0;  
   border: 2px solid var(--primary-color);
   border-radius: 5px;
   font-size: 1.9rem;
   font-weight: var(--bold-font);
   transition: var(--transition);
   border-color: var(--primary-color);
   -webkit-transition: box-shadow 800ms ease-in-out, color 800ms ease-in-out;
   transition: box-shadow 800ms ease-in-out, color 800ms ease-in-out;
}

.btn-hover:hover {   
   box-shadow: 0 0 40px 40px var(--primary-color) inset;
   /* background-color: var(--primary-color); */
   border: 2px solid var(--primary-color);
   cursor: pointer;
}

/* upbutton */
.upbutton {
   position: fixed;
   right: 0.5%;
   bottom: 3%;
   cursor: pointer;
}
 
.bottonup{
   width: 3rem;
   height: 3rem;
}
/* footer */
footer {
   margin-top: 10rem;
   padding: 2.5rem 0;
   border-radius: 6px;
   box-shadow: 0px 2px 15px 2px var(--primary-color);
   font-size: 1rem;
   font-weight: var(--bold-font);
   transition: var(--transition);
   text-align: center;
}
.iconfooter {
   width: auto;
   height: 10rem;
}

.footernav .footerul{
   display: flex;
   justify-content: center;
   gap: 2.5rem;

}
.copy  {
   margin: 0;
   text-align: center;
   font-size: 1.5rem;
   margin-top: 1.5rem;
}
.copylove {
   font-size: 1.5rem;
}
.hidde {
   display: none;
}