@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root{
    --text-color: #fff;
    --bg-color: #1b1f24;
    --second-bg-color: #22282f;
    --main-color: #13bbff;
    --other-color: #c3cad5;

    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;
}

/* Header of portfolio */

body {
    color: var(--text-color);
    background: var(--bg-color);
}
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%; 
    background: transparent;
    transition: all .50s ease;
}
.logo{
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}
span{
    color: var(--main-color);
}
.navlist{
    display: flex;
}
.navlist a{
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-left: 40px;
    transition: all .50s ease;
}
.navlist a::before {
    content: attr(data-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(1.6875rem, 1.9737rem + 2.8553vw, 10rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 200px;
    z-index: -1;
    color: hsl(0 0% 100% / 0.1);
    opacity: 0;
    transition: 0.5s ease;
    pointer-events: none;
  }
.navlist a:hover{
    color: var(--main-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}
.navlist a:hover::before {
    opacity: 1;
    letter-spacing: 10px;
  }
.navlist li:nth-child(1) a::before {
    color: hsl(267 60% 76% / 0.4);
  }
  .navlist li:nth-child(2) a::before {
    color: hsl(174 60% 43% / 0.4);
  }
  .navlist li:nth-child(3) a::before {
    color: hsl(258 60% 35% / 0.4);
  }
  .navlist li:nth-child(4) a::before {
    color: hsl(349 52% 61% / 0.4);
  }
  .navlist li:nth-child(5) a::before {
    color: hsl(29 60% 70% / 0.5);
  }
#menu-icon {
    font-size: 35px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}
.h-btn{
    display: inline-block;
    padding: 10px 26px 0.5px;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}
.h-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}
section{
    padding: 50px 12% 40px;
}

.hero{
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-content h1{
    font-size: var(--h1-font);
    font-weight: 300;
    margin: 20px 0px 20px;
    line-height: 1.2;
}
.main-content p{
    font-size: var(--p-font);
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);
    line-height: 25px;
    margin-bottom: 15px;
}
.main-content img{
    border-radius: 4%;
}

.social{
    margin-bottom: 40px;
    
}

.social i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}

.tech-stacks img{
    
    width: 40px;
    height: 40px;
}

.tooltip{
    position: relative;
    display: inline-block;
}
.tooltip .tooltiptext{
    visibility: hidden;
    background-color: black;
    width: 5px;
    color: #fff;
    text-align:center;
    border-radius: 6px;
    z-index: 1;
    align-items: center;
}

.tooltip:hover .tooltiptext{
visibility: visible;
}

img{
    width: 100%;
    height: 200px;
    max-width: 200px;
    border-radius: 50%;
    transition: all .50s ease;
}

.social i:hover{
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

.main-btn{
    margin-top: -35px;
}
.btn{
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}
.btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 10 20px var(--main-color);
}
.btn2{
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50s ease;
}
.btn2:hover{
    background: var(--main-color);
    color: var(--bg-color);
}
header.sticky{
    background: var(--bg-color);
    box-shadow: 0.1rem 1rem rgba(0, 0, 0, 2);
    padding: 16px 16%;
}
.about{
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
}
.contact{
    background: var(--second-bg-color);
}

.about-img img{
    width: 100%;
    height: 530px;
    max-width: 530px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color); 
}
.hero .main-content .about-img2{
    width: 100%;
    height: 530px;
    max-width: 330px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: -30%;
}
.hero .main-content .about-img{
    width: 100%;
    height: 530px;
    max-width: 530px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color); 
    margin-bottom: -30%;
}

.about-img2 img{
    width: 100%;
    height: 330px;
    max-width: 330px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color); 
}
.about-text h2{
    font-size: var(--h2-font);
    line-height: 1.3;
    margin-bottom: 20px;
}
.exp-area{
    margin-bottom: 50px;
}
.exp-area p{
    color: var(--text-color);
    font-weight: 600;
    font-size: 13px;
    line-height: 35px;
}

.center-text{
    text-align: center;
}
.center-text h2{
    font-size: var(--h2-font);
}

.projects {
    background: var(--bg-color);
}

.Projects-content{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    align-items:center;
    gap: 2.3rem;
    margin-top: 4.2rem;    
}

.row img{
    height: auto;
    width: 100%;
    border-radius: 30px;
    margin-bottom: 1.rem;
}
.row {
    transition: all .50s ease;
}
.main-row{
    display: flex;
    align-items: center;
    justify-content:space-between;
    margin-bottom: 0.5rem;
}
.row h5{
font-size: 20px;
font-weight: 600;
color: var(--other-color);
}
.row i{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 17px;
}
.row h4{
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 10px;
    line-height: 1.4;
}
.row:hover{
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
}

.contact-form{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}
.contact-form form{
    position: relative;
    width: 600px;
}
form input, form textarea{
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background: #2d343f;
    color: var(--text-color);
    margin-bottom: 20px;
    border-radius: 8px;
}
form input::placeholder,
form textarea::placeholder{
    color: var(--other-color);
    font-size: 15px;
}

form .send-btn{
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: 30%;
}
form .send-btn:hover{
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
}
.footer{
    padding: 10px 16%;
    background: var(--second-bg-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}
.copyright p{
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}

.tag{
    animation: tagAnimationOne 3s forwards;
}

.exp-area2{
    margin-bottom: 50px;
}
.exp-area2 p{
    color: var(--text-color);
    font-weight: 600;
    font-size: 23px;
    line-height: 55px;
    margin-top: 300px;
}
.text-rotator {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-top: -60px;
    margin-right: 100px;
    margin-bottom: 50px;
    height: 50px; /* Ensure space for text */
    display: flex;
  }
  
  #rotating-text {
    animation: ease-in-out 5s infinite;
    margin-left: 75px;
    margin-top: 50px;
}
  
  @keyframes ease-in-out {
    0%, 25% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }


.projects-text{
    margin-top: 50px;
    font-style: italic;
}

.footer .copyright{
    margin-bottom: 5px;
}
.scroll-top i{
    vertical-align: middle;
    font-size: 25px;
    color: var(--main-color);
    margin-left: 5px;
}

.wrapper{
    max-width: 1100px;
    width: 100%;
    position:relative;
    background: var(--bg-color);
}

.wrapper i {
    height: 50px;
    width: 50px;
    background: rgb(24, 26, 27);
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1.25rem;
    transform: translateY(-50%);
    box-shadow: 0 3px 6px rgba(0,0,0,0.23);
    
}
.wrapper i:first-child {
    left: -22px;
}
.wrapper i:last-child{
    right: -22px;
}
.wrapper .carousel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4.1) - 30px);
    gap: 16px;
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   scroll-behavior: smooth;
   scrollbar-width: 0px;
}
.wrapper2{
    max-width: 400px;
    width: 100%;
    position:relative;
   
}
.wrapper2 i {
    height: 20px;
    width: 20px;
    background: rgb(24, 26, 27);
    text-align: center;
    line-height: 20px;
    border-radius: 70%;
    cursor: pointer;
    position: absolute;
    top: 50%;
    font-size: 1rem;
    transform: translateY(-50%);
    
    
}
.wrapper2 i:first-child {
    left: -22px;
}
.wrapper2 i:last-child{
    right: -72px;
}
.wrapper2 .carousel{
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% / 4.1) - 30px);
    gap: 37px;
    width: 450px;
   overflow-x: auto;
   scroll-snap-type: x mandatory;
   scroll-behavior:smooth;
  
}



.carousel::-webkit-scrollbar{
    display: none;
}
.carousel :where(.card, .img) {
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel .dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
}
.carousel .dragging .card {
cursor: grab;
-webkit-user-select: none;
}
.carousel .card {
    scroll-snap-align: start;
    height: 250px;
    max-width: 700px;
    list-style: none;
    background: var(--darkreader-bg--bg-color);
    border-radius: 8px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    
}


.card .img img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 20%;
    }
    .card .tech img{
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 20%;
        }
.card span {
    color: #6a6d78;
    font-size: 1rem;
}
.card span img {
    height: 30px;
    width: 30px;
    }
    .card span .tech img{
        height: 30px;
        width: 30px;
        }

@media (max-width: 1700px) {
    header{
        padding: 20px 8%;
    }
    header.sticky{
        padding: 14px 8%;
    }
    section{
        padding: 90px 8% 80px;
    }
    .footer{
        padding: 18px 8%;
    }
    .logo {
        font-size: 28px;
    }
}
@media (max-width: 1380px) {
    header{
        padding: 20px 5%;
    }
    header.sticky{
        padding: 14px 5%;
    }
    section{
        padding: 90px 5% 80px;
    }
    .footer{
        padding: 18px 5%;
    }
      .hero{
        height: 90vh;
        background-position: center;
      }
}
@media (max-width: 1290px){
    .box{
        padding: 40px 40px 46px;
    }
    .box img{
        width: 100%;
        height: 60px;
        max-width: 60px;
    }
    .box h3{
        font-size: 21px;
    }
    section{
        padding: 90px 5% 80px;
    }
}
@media (max-width: 1240px){
    .about{
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-img img{
        text-align: center;
        width: 100%;
        height: 400px;
        max-width: 400px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
    :root{
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }
}
@media (max-width: 1024px) {
    .navlist a {
        font-size: 1.2rem;
        margin-left: 30px;
    }
    .navlist a::before {
        font-size: clamp(1.2rem, 1.6rem + 2.5vw, 8rem);
        letter-spacing: 150px;
    }
    .main-btn {
        margin-top: -25px; /* Adjust as needed */
    }
    section{
        padding: 90px 5% 80px;
    }
    .wrapper2 i:first-child{
        left: 170px;
    }
        .wrapper2 i:last-child {
    right: -300px;
}
.wrapper2 .carousel{
    margin-left: 220px;
}
}
@media (max-width: 950px){
    :root{
        --h1-font: 3.5rem;
    }
    .social{
        margin-bottom: 20px;
    }
    #menu-icon{
        display: none;
    }
    .wrapper2 i:first-child{
        left: 170px;
    }
        .wrapper2 i:last-child {
    right: -170px;
}
.wrapper2 .carousel{
    margin-left: 220px;
}
}
@media (max-width: 768px) {
    #menu-icon {
        display: block;
    }
    .main-btn {
        margin-top: -15px; /* Adjust as needed */
    }
    .navlist {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    }
    .navlist a {
        margin-left: 0;
        margin-bottom: 20px;
        font-size: 1rem;
    }
    .navlist a::before {
        font-size: clamp(1rem, 1.2rem + 2vw, 6rem);
        letter-spacing: 100px;
    }
    .navlist.active {
        display: flex;
       background: var(--darkreader-bg--bg-color);
    }
}

@media (max-width: 680px){
    .main-content p{
        width: 100%;
    }
    .logo{
        font-size: 0px;
    }
    .main-content p{
        font-size: 70%;
        font-weight: 100px;
        width: 300px;
        line-height: 15px;
        margin-bottom: -5px;
}
}

@media (max-width: 500px){
    :root{
        --h1-font: 2rem;
        --h2-font: 2rem;
    }
    .main-content p{
        font-size: 70%;
        font-weight: 100px;
        width: 300px;
        line-height: 15px;
        margin-bottom: -5px;
}
    .about-img img{
        text-align: center;
        width: 100%;
        height: 300px;
        max-width: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
    .logo{
        font-size: 0px;
    }
    }
   
    @media screen and (max-width: 460px) {
        .h-btn{
            display: none;
        }
        .wrapper2 .carousel{
            margin-left: 220px;
        }
    }
    @media screen and (max-width: 390px) {
        
        .navlist a{
            display: flex;
            padding: 9px;
            font-size: 1%;
        }
        .wrapper2 .carousel{
            grid-auto-columns: 95%;
            width: 317px; 
        }
        .wrapper2 i:last-child {
            right: -4px;
        }
        #menu-icon{
            margin-left: 313px;
        }
        .tooltip .ri-github-fill{
            margin-right:50px;  
        }
    }
    @media screen and (max-width: 667){
       .text-rotator {
            margin-right: -400px;
        }
    }
    @media screen and (max-width: 281px) {
        :root{
            --h1-font: 1rem;
            --h2-font: 1rem;
        }
        .wrapper2 .carousel{
            grid-auto-columns: 95%;
            width: 317px;
 
        }
        .wrapper2 i:last-child {
            right: 32px;
        }
        #menu-icon{
            display: none;
        }
        .main-content p{
            font-size: 70%;
            font-weight: 100;
            width: 300px;
            line-height: 15px;
            margin-bottom: -5px;
    }
    
     .about-img2 .text-rotator {
    
        margin-right: 400px;
    }
    .hero .main-content .about-img2 {
        width: 100%;
        height: 530px;
        max-width: 330px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0%;
    }
    .wrapper2 i:last-child {
        right: 32px;
    }
    .logo{
        font-size: 0px;
    }
    .navlist a{
        padding-left: 5px;
    }
   
}

@media screen and (max-width: 360px){
    .wrapper2 .carousel{
        grid-auto-columns: 95%;
        width: 317px;

    }
    .wrapper2 i:last-child {
        right: 32px;
    }
    .hero .main-content .about-img2 {
        width: 100%;
        height: 530px;
        max-width: 330px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 0%;
    }
    .about-img2 .text-rotator {
            margin-right: 400px;
    }
    
}

@media screen and (max-width: 912px){
    .wrapper2 i:first-child{
        left: 170px;
    }
        .wrapper2 i:last-child {
    right: -300px;
}
.wrapper2 .carousel{
    margin-left: 220px;
}
}

 @media screen and (max-width: 900px) {
        .wrapper .carousel  {
            grid-auto-columns: calc((100% / 2) - 9px);
        }
        .wrapper2 .carousel{
            grid-auto-columns: calc((100% / 2) - 9px);
            width: 317px;
        }
    }
    @media screen and (max-width: 600px) {
        .wrapper .carousel  {
            grid-auto-columns: 95%;
        }
        .wrapper2 .carousel{
            grid-auto-columns: 95%;
            width: 317px;
 
        }
    }
/* Media Queries */
@media (max-width: 768px) {
    header .navlist {
        display: none;
        flex-direction: column;
        background: #333;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 1rem;
    }

    header #menu-icon {
        display: block;
    }

    header .navlist.active {
        display: ruby;
    }   

    .about {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        order: 2;
    }

    .about-img {
        order: 1;
    }

    .main-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .about-text h3 {
        font-size: 1.2rem;
    }

    .about-text p {
        font-size: 0.9rem;
    }

    .main-btn .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    .wrapper2 i:last-child {
        right: 32px;
    }
    .navlist a {
        font-size: 0.875rem;
        margin-bottom: 15px;
    }
    .main-btn {
        margin-top: -20px; /* Adjust as needed */
    }
    .navlist a::before {
        font-size: clamp(0.875rem, 1rem + 1.5vw, 4rem);
        letter-spacing: 50px;
    }
    
    .wrapper2 {
        right: 52px;
    }
    .wrapper2 .carousel{
        width: 100px;
    }
}
