*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

:root{
  --backgoundColor: #9b5800;
  --textColor:  #000;
  --Textcolor: #333;
  --mainColor: #fdf0d9;
    --header-height: 120px;
}

body{
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  margin: 0;
}

.main-content{
  width: 90%;
  min-height: 90vh;
  background-color: var(--mainColor);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 5px 5px 20px 1px var(--backgoundColor);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
}

header h1{
  font-size: 30px;
  font-weight: 900;
}

nav ul{
  display: inline-flex;
  list-style: none;
}

nav a{
  color:  var(--textColor);
  font-size: 18px;
  font-weight: bold;
  padding: 0 25px;
  text-decoration: none;
  transition: 0.2s;
}

nav a:hover, nav a.active{
  color: var(--backgoundColor);
  text-decoration: underline;
}

.hero, #About{
  display: flex;
  align-items: center;
  height: 70%;
  padding: 0 10%;
  color: #3f3f3f;
  justify-content: space-between;
}

.hero h1{
  font-size: 60px;
    background: linear-gradient(to right, #acacac, #5f5a5a, #b8b2b2,
  #ccc9c9, #acacac);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: animate-gradient 2.5s linear infinite;
}

.hero h2{
  position: relative;
  height: 40px;
  font-size: 32px;
  margin: 0 10px;
  color:  var(--textColor);
}

.subtitle, .subtitle2{
  text-decoration: underline;
  position: absolute;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.subtitle{
  animation-name: head1;
  color: var(--Textcolor);
  text-shadow: 1px 2px 1px #f7f7f7;
}

.subtitle2{
  animation-name: head2;
  text-shadow: 1px 1px 1px red;
}

@keyframes head1{
  0%, 40%{
    opacity: 1;
    transform: translateY(0);
  }
  45%, 100%{
    opacity: 0;
    transform: translateY(-15px);
  }
}

@keyframes head2{
 0%, 45%{
    opacity: 0;
    transform: translateY(15px);
  }

  50%, 90%{
    opacity: 1;
    transform: translateY(0);
  }
  95%, 100%{
    opacity: 0;
    transform: translateY(-15px);
  }
}

.hero p, #About p, #contact p{
  max-width: 450px;
  margin-top: 7px;
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-icons{
  display: flex;
}

.btn{
  display: inline-block;
  padding: 15px 30px;
  background-color:  var(--textColor);
  color: #f7f7f7;
  border-radius: 40px;
  box-shadow: 0 0 10px var(--backgoundColor);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
  text-wrap: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn:hover{
  background-color: transparent;
  box-shadow: none;
  color: var(--backgoundColor);
  font-weight: 600;
  border: 2px solid  var(--textColor);
  transform: scale(1.1);
}

.ul-icons{
  display: flex;
  align-items: center;
}

.ul-icons li{
  list-style: none;
  margin-left: 10px;
}

.ul-icons a{
  display: inline-flex;
  padding: 7px;
  border: 2px solid var(--backgoundColor);
  border-radius: 50px;
  font-size: 20px;
  text-decoration: none;
  margin: 0 4px;
  transition: 0.5s;
  align-items: center;
  justify-content: center;
}

.ul-icons .fa-square-youtube{
  color: red;
}

.ul-icons .fa-square-reddit{
  color: orangered;
}

.ul-icons .fa-facebook{
  color: blue;
}

.ul-icons .fa-c{
  color: rgb(104, 104, 236);
  font-weight: 900;
}

.ul-icons img{
  color: whitesmoke;
  width: 30px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.ul-icons a:hover{
  background-color: rgba(155, 88, 0, .5);
  box-shadow: 0 0 10px var(--backgoundColor);
}

.image-box{
  width: 400px;
  height: 400px;
  position: relative;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 10px var(--backgoundColor);
  overflow: hidden;
  transition: 0.5s;
}

.image-box:hover{
  box-shadow: 0 0 25px var(--backgoundColor);
}

.image-box img{
  position: absolute;
  width: 115%;
  right: 2%;
  mix-blend-mode: darken;
}

.cards{
  display: flex;
  padding: 0 10%;
  justify-content: space-between;
}

.info-card{
  display: flex;
  align-items: center;
  gap: 2rem;
}

.info-card h1{
  font-size: 55px;
  text-transform: uppercase;
  background: linear-gradient(to right, #acacac, #c7c7c7, #d6d6d6,
  #f3f3f3, #acacac);
  background-size: 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes animate-gradient{
  to{
    background-position: 200%;
  }
}

.info-card p{
  color: var(--Textcolor);
  font-size: 20px;
  margin-left: 10px;
}

html{
  scroll-behavior: smooth;
}

#About h2{
  margin: 50px auto;
  font-size: 40px;
  padding-top: 80px;
}

.website-display{
  padding-top: 60px;
  padding-bottom: 30px;
  justify-content: center;
  align-items: center;
}

.Ally{
  display: flex;
  justify-self: center;
  padding: 15px 30px;
  background-color:  var(--textColor);
  color: #f7f7f7;
  border-radius: 40px;
  box-shadow: 0 0 10px var(--backgoundColor);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  margin-right: 15px;
  transition: 0.3s;
  text-wrap: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.Ally:hover{
  background-color: transparent;
  box-shadow: none;
  color: var(--backgoundColor);
  font-weight: 600;
  border: 2px solid  var(--textColor);
}

.arrow{
  padding: 0 15px;
  width: 60px;
  margin-top: 10px;
}

.Ally:hover img{
transform: scale(1.1);
font-weight: 900;
}

h3{
  text-align: center;
  color: var(--Textcolor);
  font-size: 30px;
}

#projects p{
  text-align: center;
  font-size: small;
  color: var(--Textcolor);
  padding-top: 15px;
}

#projects .demoImage{
  color: var(--textColor);
}

.gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 4rem 8%;
}

.websites{
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid var(--backgoundColor);
  border-radius: 20px;
  padding-bottom: 20px;
}

.websites:hover{
  box-shadow: 0 0 20px var(--backgoundColor);
  transform: translateY(-18px);
}

.websites img{
   width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  padding: 25px;
}

.website-heading{
  padding: 10px;
}

.Ally1{
  display: flex;
  justify-self: center;
  padding: 15px 30px;
  background-color:  var(--backgoundColor);
  color: #f7f7f7;
  border-radius: 40px;
  box-shadow: 0 0 10px var(--textColor);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.2s;
  text-wrap: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

.Ally1:hover{
  background-color: transparent;
  color: var(--Textcolor);
}

.video h3{
  display: flex;
  justify-content: center;
  align-items: center;
}

section{
  margin-top: 6rem;
  margin-left: 12rem;
  margin-bottom: 8rem;
}

.video p{
  position: absolute;
  left: 55%;
  margin-top: -9rem;
  text-shadow: 4px 0px 4px var(--backgoundColor);
  font-size: 18px;
}

.video a{
  color: var(--textColor);
}

.video iframe{
  width: 100%;
  max-width: 335px;
  height: auto;
}

.video a:hover{
  text-decoration: none;
  text-shadow: 4px 0 6px #05d1f5;
}

.skills{
  padding: 40px 0 80px 40px;
}

.skills span{
  display: inline-flex;
  border: 3px solid var(--Textcolor);
  box-shadow: 0 0 20px var(--textColor);
  border-radius: 30px;
  padding: 10px;
  margin: 15px;
  align-items: center;
}

.contact{
  padding-bottom: 2em;
  text-align: center;
}

#contact p{
  font-size: 18px;
  line-height: 2.5;
  padding: 3rem;
}

#contact{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

form{
  border: 5px solid var(--backgoundColor);
  border-radius: 20px;
  padding-bottom: 35px;
  width: 85%;
  background: linear-gradient(to right, #acacac, #f3f3f3, #d6d6d6,
  #c7c7c7, #acacac);
}

#contact form:hover{
  box-shadow: 0 0 25px var(--backgoundColor);
  transition: 0.4s;
}

form fieldset{
  border: none;
}

form label{
  font-weight: 700;
  letter-spacing: 3px;
  padding-left: 10px;
}

form label:hover, .message label{
  cursor: pointer;
}

form input{
  width: 16rem;
  height: 2rem;
  margin-top: 35px;
}

form input:focus, textarea:focus{
  border-radius: 20px;
  background: var(--mainColor);
  padding: 10px;
  font-size: 20px;
  transform: scale(0.5);
}

textarea{
  margin-top: 35px;
}

.message{
  margin-top: 2rem;
}

.message label{
 display: inline;
 vertical-align: top;
}

.submit-btn{
  float: right;
  margin-right: 12rem;
  padding: 15px;
  width: 15%;
  height: 45px;
  border-radius: 20px;
  background-color: #b8b2b2;
}

.submit-btn:hover{
  font-weight: 700;
  background-color: var(--backgoundColor);
  border-radius: 10px 20px;
  cursor: pointer;
  transition: 0.4s;
  transform: scale(1);
}

hr{
  border-color: #111;
}

footer{
  width: 100%;
  background: #111;
  color: var(--mainColor);
  padding: 20px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.copy h5{
  padding-bottom: 25px;
}

.ftext{
  margin-top: 3.8rem;
  font-size: 12px;
}

.copy a{
  padding: 9px;
}

.copy a:hover{
  background-color: rgba(155, 88, 0, .5);
  box-shadow: 0 2px 2px var(--backgoundColor);
  color: #f7f7f7;
  border-radius: 150%;
  transition: 0.5s;
}

.footer-menu a{
  color: var(--mainColor);
  font-size: 13px;
  }

.footer-menu li{
    margin-top: 40px;
}

.footer-menu ul{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-evenly;
}

.fontIcons h5{
  margin-right: 10rem;
}

h5{
  font-weight: 700;
}

.ul-icons2{
  padding-top: 30px;
  display: flex;
  align-items: center;
}

.ul-icons2 li{
  list-style: none;
  margin-left: 10px;
}

.ul-icons2 a, .copy .fa-envelope-open{
  display: inline-flex;
  padding: 7px;
  border: 2px solid var(--backgoundColor);
  border-radius: 50px;
  font-size: 13px;
  text-decoration: none;
  margin: 0 4px;
  transition: 0.5s;
  align-items: center;
  justify-content: center;
}

.ul-icons2 .fa-square-youtube{
  color: red;
}

.ul-icons2 .fa-square-reddit{
  color: orangered;
}

.ul-icons2 .fa-facebook{
  color: blue;
}

.ul-icons2 .fa-c{
  color: rgb(104, 104, 236);
  font-weight: 900;
}

.ul-icons2 img{
  color: whitesmoke;
  width: 20px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.ul-icons2 a:hover{
  background-color: rgba(155, 88, 0, .5);
  box-shadow: 0 2px 2px var(--backgoundColor);
}

/* Acessibility */

a:focus, button:focus, input:focus, textarea:focus{
  outline: 3px solid var(--backgoundColor);
  outline-offset: 4px;
  border-radius: 10px;
}

/* .hamburger-menu{
  display: none;
} */

.close-menu, .hamburger-menu span{
  display: none;
}

.skip-link{
  position: absolute;
  top: 0;
  left: 0;
  background: black;
  color: white;
  padding: 8px 12px;
  transform: translateY(-100%);
  z-index: 100;
  transition: transform 0.3s ease;
}

.skip-link:focus{
  transform: translateY(0);
}

@media (max-width: 500px) {
  
 :root {
  --header-height: 100px;
  --hamberger-margin: 10px;
  --barWidth: 40px;
  --barHeight: 5px;
  --closeWidth: 700;
  }

#sidebar{
  position: fixed;
  top: 0;
  right: 0;
  width: 150px;
  height: 100vh;
  background: var(--mainColor);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding-top: 5rem;
}

#sidebar:target{
  transform: translateY(0);
}

.hamburger-menu{
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: absolute;
  top: 20px;
  right: 20px;
}

.hamburger-menu span{
  width: var(--barWidth);
  height: var(--barHeight);
  background: var(--textColor);
  border-radius: 3px;
  display: block;
}

.close-menu{
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-decoration: none;
  font-size: 2rem;
  color: var(--textColor);
  display: flex;
  font-weight: var(--closeWidth);
}

 #sidebar nav ul{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    list-style: none;
  }

  #sidebar nav li{
    margin-left: 0;
  }

  header h1{
    font-size: 21px;
  }

.hero{
  display: grid;
  grid-template-columns: repeat(2, 2fr);
}

  .hero h1{
    font-size: 23px;
  }

  .hero h2{
    font-size: 20px;
  }

  .subtitle, .subtitle2{
    font-size: 16px;
  }

.hero p{
  font-size: 14px;
  max-width: 250px;
  margin-top: 10px;
}

.btn{
  margin-bottom: 7px;
  font-size: 14px;
}

.ul-icons a, .ul-icons img{
  font-size: 14px;
}

.ul-icons{
   display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.ul-icons li:nth-child(3){
  position: relative;
  right: 10%;
  bottom: 6%;
}

.ul-icons li:nth-child(5){
  position: relative;
  left: 30%;
  bottom: 140%;
}

.btn{
  margin-top: 10rem;
  text-align: center;
}

.image-box{
  width: 100px;
  height: 100px;
  position: absolute;
  top: 6.4%;
  left: 15%;
}

.image-box img{
  top: 5%;
}

.cards{
  margin-top: 45px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-card h1{
  font-size: 30px;
}

.info-card p{
  font-size: 15px;
}

  .subtitle, .subtitle2, .ul-icons li:nth-child(3), .ul-icons li:nth-child(5),
  .image-box{
    z-index: -1;
  }

#About{
  margin-top: -1rem;
  display: grid;
  grid-template-columns: repeat(4, 2fr);
}

#About h2{
  font-size: 25px;
  text-align: center;
}

#About p{
  width: 15rem;
}

#About .p2{
  margin-bottom: 14rem;
}

.website-display{
  position: relative;
  top: 35%;
  right: 125%;
}

.website-display img{
  width: 130%;
}

.website-display a{
  font-size: 14px;
}

.website-display .arrow{
  width: 40%;
}

#projects{
  margin-top: 8rem;
}

#projects h3, .video h3, #skill h3{
  font-size: 23px;
}

#projects p{
  line-height: 1.5;
}

.gallery{
  display: flex;
  flex-wrap: wrap;
}

.websites img{
  width: 80%;
}

.websites .Ally1{
  font-size: 12px;
}

iframe{
  width: 235px;
}

section{
  margin-left: 3rem;
}

.video{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
}

.video p{
  position: static;
  font-size: 17px;
  line-height: 1.6;
  margin-top: 1.1rem;
}

#skill{
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(1, 2fr);
}

#skill .skills{
  font-size: 13px;
}

.contact{
  font-size: 20px;
}

#contact{
  display: flex;
  flex-direction: column;
}

#contact p{
  font-size: 14px;
  margin-top: -3rem;
}

form{
  margin-left: 15px;
}

form input{
  width: 12rem;
  margin-left: 15px;
}

.address{
  margin-top: 2rem;
}

.message{
  margin-left: 3rem;
}

.submit-btn{
  font-size: 13px;
  width: 22%;
}

footer{
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 25px;
}

.copy{
  margin-left: 3rem;
  margin-top: 2rem;
}
  }