body{
    background-color: rgb(0, 0, 33);
}
*{
    margin: 0;
    padding: 0;
}
nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    background-color: rgb(18,18,62);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    color: whitesmoke;
}
nav ul{
    display: flex;
    justify-content: center;
}
nav ul li{
    list-style: none;
    margin: 0 23px;
    text-decoration: none;
}
nav ul li a{
    color: rgb(83, 112, 254);
    
}
nav ul li a:hover{
    color: rgb(185, 38, 180);
    font-size: 1.1rem;
}
.animate{
    font-family:monospace ;
}
.left{
    font-size: 1.5rem;
}
.firstsection{
    background-color: rgb(0, 0, 33);
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 110px 0;
    color: whitesmoke;
}
.firstsection div{
    width: 30%;
}
.leftsection{
    font-size: 3rem;
}
.rightsection{
    width: 100px;
    justify-content: center;
    font-size: 2rem;
    text-align: center;
    align-items: center;
    display: grid;
    place-items: centre;
}   
.rightsection img{
    width: 75%;
    border-radius: 5px;
}
.purple{
    color: rgb(137, 83, 187);
}
#element{
    color: rgb(137, 83, 187);
    font-size: 3.5rem;
}
#element2{
    color: rgb(137, 83, 187);
}
.section2{
    max-width: 80vw;
    margin: auto;
    height: 500px;
    text-align: center;
    justify-content: center;
}
.box{
    display: flex;
    justify-content:space-evenly;
    gap: 30px;
}
.section2 h1,
.section3 h1,
.section4 h1,
.section5 h1{
    font-size: 2rem;
    font-weight: 1000px;
    color: rgb(215, 18, 219);
    text-align: center;
}
.study{
    display: flex;
    justify-content: center;
    gap: 40px;
    border: none;
}
.course {
    width: 25%;
    text-align: left;
}
.course *{
    color: rgb(198, 191, 191);
}
.year h3 {
    color: rgb(110, 104, 104);
}
hr{
    border-color: rgb(89, 86, 86);
}
a{
    text-decoration: none;
}
.section3{
    max-width: 80vw;
    margin: auto;
    height: 500px;
    text-align: center;
    justify-content: center;
}
.myskills{
    width: 200px;
    height: 220px;
    justify-content: space-evenly;
}
.skills *,
.exp *{
    color: rgb(141, 139, 139);
    background-color:  rgb(0, 0, 33);
}
.skills{
    justify-content: center;
    display: flex;
    gap: 30px;
}
.exp{
    height: auto;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    margin: 20px 0px 0px;
}
.myexp{
    display: flex;
    gap: 10px;
    flex: 1 1 calc(33.3% - 10px);
}
.myexp h1{
    font-size: 55px;
    text-align: center;
    color: rgb(59, 57, 57);
    padding-top: 10%;
}
.time{
    color: rgb(205, 205, 210);
}
.section4{
    text-align: center;
    justify-content: center;
}

.img{
    border:solid;
    border-width: 2px;
    border-color: #6649b8;
    border-radius: 1rem;
}
.imgcontainer {
    position: relative;
    display: inline-block;
}

.imgcontainer img {
    display: block;
    height: 400px;
    width: 800px;
    border-radius: 7px;
    box-shadow: inset;
    box-shadow: black;
}

.pdescription{
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.imgcontainer:hover .pdescription {
    opacity: 1;
}
.pdescription a{
    background-color: rgb(9, 1, 20);
    border-radius: 10px;
    color: rgb(161, 154, 154);
}
.buttoneffect{
    height: 30px;
    width: 90px;
    background-color: black;
    border-radius: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 25px;
}
.link{
    text-align: center;
    justify-content: center;
    align-items: center;
    color: whitesmoke;
}
.contacts{
    text-align: center;
    align-items: center;
    justify-content: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}
.section5 h2{
    color: rgb(215, 18, 219);
}
.section5{
    color: white;
    text-align: center;
}
.section5 a{
    color: blue;
}
@media only screen and (max-width: 768px) {
  .firstsection {
    flex-direction: column;
    margin: 50px 0;
  }
  .leftsection {
    width: 100%;
    text-align: center;
  }
  .rightsection {
    width: 100%;
    margin-top: 20px;
  }
  .rightsection img {
    width: 50%;
    margin: auto;
  }
  .section4 {
    padding: 20px;
  }
  .imgcontainer {
    width: 100%;
  }
  .imgcontainer img {
    width: 100%;
  }
  .pdescription {
    padding: 10px;
  }
  .buttoneffect {
    width: 100%;
    text-align: center;
  }
}
@media only screen and (max-width: 768px) {
  .section2, .section3 {
    margin-bottom: 50px;
    clear: both;
  }
}