*{
  border: none;
  text-decoration: none;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

:root{
  --bg-color: rgb(32, 16, 77);
  --second-bg-color: rgb(15, 9, 36);
  --text-color: #818cf8;
  --main-color: #07031f;
  --out-color: rgb(149, 207, 255);
}

html{
  font-size: 60%;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

body{
  font-family: Outfit, arial;
  background: linear-gradient( to right, var(--bg-color), #7e87d3de );
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.header{
  position: fixed;
  top:0;
  left:0;
  width: 100%;
  padding: 3rem 2%;
  background: rgba(4, 3, 22, 0.705);
  backdrop-filter: blur(12px);
  display:flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.head{
  padding-left: 90px;
  font-size: 25px;
  color: var(--text-color);
  font-weight: 800;
  transition: 0.3s ease;
  cursor: pointer;
}

.head:hover {
  transform: scale(1.1);
}

.head-effect{
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.head-effect:hover{
  color: var(--out-color);
  opacity: 2;
  text-shadow: 0 0 25px var(--out-color);
}

.navbar{
  position: absolute;
  right: 9%; /* controls distance from right edge */
  margin-right: 0;
  gap: 3rem;
  display: flex;
}

.navbar a{
  font-size: 18px;
  color: var(--text-color);
  margin-left: 8rem;
  font-weight: 500;
  transition: 0.3s ease;
  border-top: 3px solid transparent;
}

.navbar a:hover, 
.navbar a.active{
  color: var(--out-color);
  border-top: 2.5px solid var(--out-color);
  padding: 2px;
}

section{
  min-height: 100vh;
  padding: 10rem 12% 10rem;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}

.home{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  text-align: left;
  justify-content: center;
  margin-top:15px;
}

span{
  color: var(--out-color)
}

.head span{
  color: var(--out-color);
}

.home-content h2{
  margin-bottom: 20px;
  margin-top: 10px;
  font-size: 35px;
}

.home-content h1{
  font-size: 7rem;
  font-weight: 700;
  margin-top: 15px;
  line-height: 1;
}

.home-img{
  border-radius: 300px;
}

.home-img img{
  position: relative;
  top: 30px;
  width: 100%;
  height: auto;
  border-radius: 300px;
  box-shadow: 0 0 30px var(--second-bg-color);
  cursor: pointer;
  transition: 0.45s ease-in-out;
}

.home-img img:hover{
  transition: 0.45s ease-in-out;
  box-shadow: 0 0 0 var(--second-bg-color),
              0 0 75px var(--second-bg-color);
}

.social-icons a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--main-color);
  font-size: 2.5rem;
  border-radius: 40%;
  color: var(--main-color);
  margin: 2rem 1.2rem 2.5rem 0;
  transition: 0.3s ease-in-out;
}

.social-icons a:hover{
  color: var(--main-color);
  transform: scale(1.25)translateY(5px);
  box-shadow: 0 0 20px var(--main-color);
  background-color: var(--text-color);
}

.btn{
  display: inline-block;
  padding: 0.5rem 30px;
  background: linear-gradient( to top, #4c4b5241, var(--text-color));
  background-repeat: no-repeat;
  box-shadow: 0 0 20px var(--second-bg-color);
  border-radius: 1.1rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  opacity: 1px;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

input.bottom-btn{
  display: flex;
  padding: 4px 8px;
  width: auto;
  height: auto;
  background: linear-gradient( to top, #4c4b5241, var(--text-color));
  background-repeat: no-repeat;
  box-shadow: 0 0 20px var(--second-bg-color);
  border-radius: 1.1rem;
  font-size: 1.6rem;
  color: black;
  border: 2px solid transparent;
  letter-spacing: 0.5px;
  opacity: 1px;
  font-weight: 600;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.btn:hover{
  opacity: 0.6;
  transform: scale(0.9);
  box-shadow: 0 0 10px var(--second-bg-color);
}

.btn:active{
  border-radius: 5rem;
}

.btn-group{
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-group a:nth-last-of-type(2){
  background-color: transparent;
  color: var(--main-color);
  border: 2.5px solid linear-gradient(to right, var(--out-color), var(--second-bg-color));
  box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-last-of-type(2):hover{
  box-shadow: 0 0 25px var(--second-bg-color);
  background-color: var(--out-color);
  color: black;
}

.line-break{
  font-size: 55px;
  line-height: 1.2;
  padding: 0px;
}

.intro-ant{
  font-size: 45px;
}

 .intro-text{
  transition: 0.4s ease;
  cursor: pointer;
 }

 .intro-text:hover{
  opacity: 0.8;
  transform: 1s ease-in-out;
  transform: scale(1);
  text-shadow: 1.2rem 1rem 5px var(--second-bg-color);
 }

.heading{
  background: #0f023bb4;
  font-size: 8rem;
  text-align: center;
  margin: 3rem 0 10rem;
  line-height: 1.2;
}

::-webkit-scrollbar{
  width: 15px;
}

::-webkit-scrollbar-thumb{
  background-color: var(--out-color);
}

::-webkit-scrollbar-track{
  background-color: rgba(32, 26, 73, 0.945);
}

.about{
  padding: 100px 15px;
}

.about h3{
  margin-bottom: 5rem;
  font-size: 5.5rem;
  color: #06021b;
  line-height: 1.2;
}

.about-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.about-box{
  background-color: #708baf98;
  max-width: 700px;
  border-radius: 3rem;
  border: 5px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: max-height 0.45s ease, transform 0.25s ease;
  position: relative;
  box-shadow: 0 0 15px var(--second-bg-color);
}

.about-box:hover{
  background: #708baf;
  color: var(--out-color);
  transform: scale(1.02);
  box-shadow: 0 0 30px var(--second-bg-color);
}

.about-box .about-info{
  display: flex;
  flex-direction: column;
  text-align: left;
  max-height: 200px;
  justify-content: left;
  align-items: baseline;
  padding: 2rem 5rem;
}

.about-info h3{
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 0.3;
  letter-spacing: 0.8px;
}

.about-info p{
  font-size: 1.1rem;
  font-weight: 600;
  max-height: 100px;
  line-height: 1.5;
  margin: auto;
  text-align: justify;
}

.skills{
  display: flex;
  justify-content: center;
}

.skills .heading{
  margin-bottom: 7rem;
  padding: 1rem;
  width: 125%;
  text-align: center;
  display: inline-block;
  margin-bottom: 7rem;
  padding: 0; /* Removed huge padding that caused scroll */
}

.skills-box{
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.skills-box img{
  width: 18rem;
  border-radius: 25%;
  border: 2px solid var(--main-color);
  box-shadow: 0 15px 25px var(--main-color);
}

.skills-box video{
  width: 23rem;
  border-radius: 30%;
  border: 2px solid var(--main-color);
  box-shadow: 0 15px 25px var(--main-color);
}

.wrapper{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.skills-item{
  min-height: 500px;
  max-width: 350px;
  background: rgb(0, 0, 0, 0.7);
  border: 3px solid rgba(86, 59, 207, 0.884);
  border-radius: 2rem;
  margin: 0 2rem;
  padding: 30px 60px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
  gap: 1.5rem;
  color: white;
  transition: 0.4s ease-in-out;
}

.skills-item:hover{
  border: 1px solid var(--second-bg-color);
  transform: translateZ(-8px)scale(1.05);
  box-shadow: 0 0 50px var(--second-bg-color);
}

.testimonial-item h2{
  font-size: 20px;
}

.testimonial-item p{
  font-size: 1.3rem;
}

.contact{
  padding-left: 16px;
  padding-right: 16px;
}

.contact h2{
  margin-bottom: 3rem;
  color: white;
  font-size: 8rem;
}

.contact form{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10rem;
  margin: 5rem auto;
  text-align: center;
}

.contact form .input-box{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea{
  height: 25%;
  width: 100%;
  padding: 2rem;
  font-size: 15px;
  color: var(--text-color);
  background: var(--bg-color);
  border-radius: 3.5rem;
  border: 2px solid var(--main-color);
  margin: 1.5rem 0;
  resize: none;
}

.contact form .btn{
  margin-top: 2rem;
}

.footer{
  position: relative;
  bottom: 0;
  width: 100%;
  padding: 40px 0;
  background-color: #170b53d5;
}

.footer .social{
  text-align: center;
  padding-bottom: 25px;
  color: var(--main-color);
}

.footer .social a{
  font-size: 25px;
  color: var(--text-color);
  border: 2px solid var(--text-color);
  width: 42px;
  height: 42px;
  line-height: 45px;
  display: inline-block;
  text-align: center;
  border-radius: 50%;
  margin: 0 10px;
  transition: 0.3s ease-in-out;
}

.footer .social a:hover{
  transform: scale(1.2) translateY(-10px);
  background-color: var(--text-color);
  color: black;
  box-shadow: 0 0 25px var(--main-color);
}

.footer ul{
  margin-top: 0;
  padding: 0;
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: center;
}

.footer ul li a{
  padding: 0 8px;
  color: var(--text-color);
  border-right: 3px solid transparent;
  border-left: 3px solid transparent;
  transition: 0.3s ease-in-out;
}

.footer ul li a:hover{
  border-right: 3px solid var(--out-color);
  border-left: 3px solid var(--out-color);
}

.footer ul li{
  display: inline-block;
  padding: 0 15px;
}

.footer .copyright{
  margin-top: 50px;
  text-align: center;
  font-size: 16px;
  color: whitesmoke;
}

@media(max-width: 900px){
  html{
    font-size: 50%;
  }

  .head{
    font-size: 18px;
    padding-left: 20px;
  }
}

@media(max-width:800px){
  html {
    font-size: 85%;
  }
  section{
    padding: 5rem 5%;
  }
  .about{
    padding-bottom: 5rem;
  }
  .skills .wrapper{
    grid-template-columns: repeat(1, 1fr);
  }
  .contact form{
    flex-direction: column;
  }
  .footer {
    padding: 2rem 3%;
  }
}

@media(max-width:768px){
  #menu-icon{
    display: block;
  }
  .navbar {
    position: absolute;
    top: 70px;
    right: 0;
    background: #1a1a1a;
    width: 100%;
    display: none;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
  }
  .navbar.active {
    display: flex;
  }
  .home{
    flex-direction: column-reverse;
    margin: 5rem 4rem;
  }
  .home-content h2{
    font-size: 2rem;
  }
  .home-content h1{
    font-size: 4rem;
  }
  .home-content p{
    max-width: 600px;
    margin: 0 auto;
  }
  .home-img img{
    width: 56vw;
  }
  .heading {
    font-size: 3rem;
    margin: 2rem 0 5rem;
  }
  .about h3 {
    font-size: 2.5rem;
  }
  .skills .heading {
    font-size: 3rem;
  }
  .contact h2 {
    font-size: 2.5rem;
  }
  .about-box {
    max-height: none;
    cursor: default;
  }
  .about-box::after {
    display: none;
  }
}

@media (max-width: 895px) {
  .about-box {
    max-height: 200px;
    cursor: pointer;
  }
  .about-box::after {
    content: "Read more";
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  .about-box.expanded {
    max-height: 1000px;
  }
  .about-box.expanded::after {
    content: "Show less";
  }
}
