@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;600&display=swap');

:root{
    --yellow:#f9ca24;
}

*{
    font-family: 'Nunito', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    border: none;
    text-transform: capitalize;
    transition: all .2s linear;
}

*::selection{
    background:var(--yellow);
    color:#333;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

html::-webkit-scrollbar{
    width:1.4rem; 
}

html::-webkit-scrollbar-track{
    background: #222;
}

html::-webkit-scrollbar-thumb{
    background: var(--yellow);
}

.post {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
}

.post::after {
  content: '|';
  margin-left: 2px;
  animation: blink 0.7s steps(1) infinite;
  margin-left : 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}


body{
    background: #111;
    overflow-x: hidden;
    padding-left:35rem;
}

section{
    min-height: 100vh;
    padding:1rem;
}

.btn{
    padding: .7rem 3rem;
    background: #333;
    color:#fff;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 2rem;
    border-radius: 5rem;
}

.btn i{
    padding:0 .5rem;
    font-size: 1.8rem;
}

.btn:hover{
    background: var(--yellow);
}

.heading{
    text-align: center;
    margin:0 6rem;
    font-size: 4rem;
    padding: 1rem;
    border-bottom: .1rem solid #fff4;
    color: #fff;
}

.heading span{
    color: var(--yellow);
}


header{
    position: fixed;
    top:0; left:0;
    z-index: 1000;
    height:100%;
    width:35rem;
    background:#1a1a1a;
    display:flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
}

header .user img{
    height:17rem;
    width: 17rem;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border:.7rem solid var(--yellow);
}

header .user .name{
    font-size: 3rem;
    color:#fff;  
}

header .user .post{
    font-size: 2rem;
    color:#eee;
}

header .navbar{
    width:100%;
}

header .navbar ul{
    list-style: none;
    padding: 1rem 3rem;
}

header .navbar ul li a{
    display: block;
    padding: 1rem;
    margin:1.5rem 0;
    background:#333;
    color:#fff;
    font-size:2rem;
    border-radius: 5rem;
}

header .navbar ul li a:hover{
    background: var(--yellow);
}

#menu{
    position: fixed;
    top:2rem;right:2rem;
    background:#333;
    color:#fff;
    cursor: pointer;
    font-size: 2.0rem;
    padding: 1rem 1rem;
    z-index: 1000;
    /* display: none;  */
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;
    padding:0 10rem;
}

.home h3{
    font-size: 2.5rem;
    color:#fff;
    margin-bottom: 1.4rem;
}

.home h1{
    font-size: 5rem;
    color:#fff;
    margin-bottom: 1.6rem;
}

.home h1 span{
    color:var(--yellow);
}

.home p{
    font-size: 1.60rem;
    text-transform: none;
    color:#eee;
    padding: 1rem 0;
    margin-bottom: 1.2rem;
}

.about .row{
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    gap: 2rem;
}

.about .row .info{
    flex: 1 1 60%;
    padding-left: 6rem;
}

.skills-heading {
  font-size: 2.4rem;
  color: var(--yellow);
  margin-left: 0.1rem;
  margin-bottom: 1rem;
}

.about .row .info .skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem 0.1rem;
}

.about .row .info .skill-tabs .tab-btn {
  padding: 0.6rem 1.2rem;
  background: #333;
  color:#fff;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1.6rem;
  transition: background 0.2s, color 0.2s;
  border:none;
  outline: none;
}

.about .row .info .skill-tabs .tab-btn:hover {
  background: #555;
  color:var(--yellow);
}

.about .row .info .skill-tabs .tab-btn.active {
  background: var(--yellow);
  color: #222;
}

.about .row .info .skill-panels {
  margin-left: 1rem;
  margin-top: 2rem;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.4;
}

.about .row .info .skills-panel {
  margin: 1rem 0;
  line-height: 1.4;
  position: relative;
  padding-left: 1.6rem;
  border-left: 3px solid var(--yellow);
  background: #222;
  border-radius: 4px;
  padding: 1rem 1.6rem;
}

.about .row .info .skills-panel::before {
  position: absolute;
  left: 0.6rem;
  color: var(--yellow);
  font-weight: bold;
  font-size: 1.8rem;
  top: 50%;
  transform: translateY(-50%);
}

.about .row .counter {
  position: sticky;
  top: 300px;
  flex: 0 0 300px;
  align-self: flex-start;
  background: transparent;
  padding: 1rem 2rem;
  border-radius: 1rem;
  box-shadow: none;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.about .row .counter .box {
  width: 100%;
  background: #333;
  text-align: center;
  padding: 2rem 1rem;
  margin: 0.5rem;
  border-radius: 0.6rem;
}

.about .row .counter .box span {
  font-size: 4rem;
  color: var(--yellow);
}

.about .row .counter .box h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-top: 0.5rem;
}

.education .box-container{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 1rem 0;
    padding-left: 2rem;
}

.education .box-container .box{
    width: 27rem;
    margin: 4rem 1rem;
    padding-left: 4rem;
    border-left: .2rem solid #fff;
    position: relative;
}

.education .box-container .box span{
    font-size: 1.3rem;
    background: #222;
    color: #fff;
    border-radius:5rem;
    padding: .5rem 2.5rem;
}

.education .box-container .box h3{
    font-size: 2rem;
    color: #fff;
    padding-top: 1.5rem;
}

.education .box-container .box p{
    font-size: 1.4rem;
    color: #eee;
    padding: 1rem 0;
}

.education .box-container .box i{
    position: absolute;
    top:-1.5rem;
    left:-2.5rem;
    height: 5rem;
    width:5rem;
    border-radius: 50%;
    line-height: 5rem;
    text-align: center;
    font-size: 2rem;
    color:#fff;
    background: var(--yellow);
}
/* Work Experience Section Updates */
.experience{
    width: 100%;
    padding: 35px 10%;
}

.experience .container{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 1rem 0;
    padding-left: 2rem;
}
.experience .container .col .contents{
    padding: 0px 30px;
    border-left: 2px solid #bababa;
}

.experience .container .col .contents .box{
    position: relative;
    padding: 20px;
    border: 1px solid #eaeaea;
    cursor: pointer;
    transition: all 0.4s;
    margin-bottom: 20px;
}

.experience .container .col .contents .box:before{
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    right: calc(100% + 22px);
    top: 0;
    background-color: var(--yellow);
    border: 2px solid white;
}

.experience .container .col .contents .box h4{
    position: relative;
    font-size: 15px;
    color: var(--yellow);
}

.experience .container .col .contents .box h3{
    font-size: 19px;
    padding: 10px 0px 6px;
    font-family: helvetica;
    color: #fff;
}

.experience .container .col .contents .box p{
    line-height: 1.2;
    text-transform: none;
    color: #eee;
    font-size: 17px;
}


.project-container-horizontal {
  display: flex;
  flex-direction: column;
  /* gap: 3rem; */
  padding: 2rem;
  align-items: center;
  gap: 0;
}

.project-horizontal-card {
  display: flex;
  background: #222;
  border-radius: 1rem;
  overflow: hidden;
  max-width: 1000px;
  width: 100%;
  height: 260px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  flex-wrap: nowrap;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin-bottom: 3rem;
}   

.project-horizontal-card:last-child {
  margin-bottom: 0;
}

.project-horizontal-card:hover {
  border: 2px solid var(--yellow);
  background-color: rgba(255, 255, 0, 0.05);
  transform: scale(1.01);
  box-shadow: 0 6px 25px rgba(255, 217, 0, 0.2);
}

.project-horizontal-card img {
  width: 320px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-right: 2px solid #111;
}

.project-horizontal-card .card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.project-horizontal-card h3 {
  font-size: 2.2rem;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.project-horizontal-card p {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: none;
  color: #eee;
}

.project-horizontal-card .tech-stack {
  padding: 0;
  margin-bottom: 1rem;
}

.project-horizontal-card .tech-stack li {
  display: inline-block;
  background: #444;
  margin: 0.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.4rem;
  font-size: 1.3rem;
  color: #fff;
}

.project-horizontal-card .links a {
  display: inline-block;
  margin-right: 1.5rem;
  font-size: 1.4rem;
  color: var(--yellow);
  font-weight: bold;
  text-decoration: none;
}

.contact .row{
    display:flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.contact .row .content{
    flex: 1 1 30rem;
    padding:4rem;
    padding-bottom: 0;   
}

.contact .row form{
    flex: 1 1 45rem;
    padding:2rem;
    margin:2rem;
    margin-bottom: 4rem;  
}

.contact .row form .box{
    padding:1.5rem;
    margin: 1rem 0;
    background: #3333;
    color: #fff;
    text-transform: none;
    font-size: 1.7rem;
    width: 100%;
}

.contact .row form .box::placeholder{
    text-transform: capitalize;
}

.contact .row form .message{
    height: 15rem;
    resize: none;
}

.contact .row .content .title{
    text-transform: uppercase;
    color: #fff;
    font-size: 3rem;
    padding-bottom: 2rem;
}

.contact .row .content .info h3{
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #eee;
    padding: 1rem 0;
    font-weight: normal;
    text-transform: none;
}

.contact .row .content .social-links{
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: #eee;
    padding: 1rem 0;
    font-weight: normal;
}

.contact .row .content .info h3 i{
    padding-right: 1rem;
    color: var(--yellow);
}

.contact .row .content .social-links i{
    padding-right: 1rem;
    color: var(--yellow);
}

.contact .row .content .social-links a{
    margin-right: 2.5rem;
}

.top{
    position: fixed;
    bottom: 7.5rem;
    right: 2rem;
    z-index: 100;
    display:none;
}

/* media queries */

@media (max-width:1200px){
    html{
        font-size:55%;
    }

    .home{
        padding:1rem 4rem;
    }
}

@media (max-width:991px){
    header{
        left:-120%;
    }

    #menu{
        display:block;
    }

    header.toggle{
        left:0%;
    }

    body{
        padding:0;
    }
}

@media (max-width:768px){
    html{
        font-size: 50%;
    }
}

@media (max-width:400px){
    header{
        width:100vw;
    }

    .heading{
        margin:0 3rem;
    }

    .about .row .counter .box{
        width: 100%;
    }

    .education .box-container .box{
        width: 100%;
    }

    .projects .box-container .box{
        width: 100%;
    }

    .contact .row form{
        margin: 3rem 0;
    }
}

@media (max-width: 600px) {
  .about .row {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
  }
  .about .row .info {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 700px) {
  .project-horizontal-card {
    flex-direction: column;
    height: auto;
    max-width: 95vw;
    min-width: 0;
    align-items: stretch;
  }
  .project-horizontal-card img {
    width: 100%;
    height: 200px;
    border-right: none;
    border-bottom: 2px solid #111;
    object-fit: cover;
  }
  .project-horizontal-card .card-content {
    padding: 1.5rem;
  }
}
