* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: -apple-system, sans-serif;
}

:root {
    --bg-color: #f7d0f6;
    --snd-bg-color: #fffcfe;
    --text-color: #000;
    --main-color: #7d217c;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {

    background: var(--bg-color);
    color: var(--text-color);
}

section{
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.468), rgba(0, 0, 0, 0.244)),
        /* overlay */
        url(assets/leptop-with-notepen.jpg);
    /* image */
    background-position: center;

    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    /* color: rgb(83, 16, 86); text clear dikhne ke liye */
}

/* section {
    background-image: url(assets/leptop-with-notepen.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: var(--snd-bg-color);
    background-attachment: fixed;
    
    min-height: 100vh;
    padding: 10rem 9% 2rem;
} */

/*________header section code___________*/
.header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 5%;
    background: rgba(70, 66, 66, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.header.scrolled {
    background: #7d217c;
    /* dark purple */
}



.header img {
    height: 65px;
    width: 65px;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.2);
}

.navbar a {
    font-size: 1.9rem;
    color: white;
    margin-left: 4rem;
    font-weight: 700;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--bg-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--bg-color);
    cursor: pointer;
    display: none;
}

/*________home section code_____*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-img img {
    width: 350px;       /* dono same */
    height: 350px;      /* 👈 ye add karo */
    object-fit: cover;  /* image crop ho kar circle me fit hogi */
    border-radius: 50%;
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;
}

/* .home-img img {
    width: 23vw;
    border-radius: 50%;
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
    animation: floatImage 4s ease-in-out infinite;
    transition: 0.4s ease;

} */

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 35px var(--main-color),
        0 0 45px var(--main-color);

}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2.4rem);
    }

    100% {
        transform: translateY(0)
    }
}

.home-content {
    margin-left: 5rem;
}

.home-content h3 {
    font-size: 3.7rem;
    font-weight: 700;
    color: white;    
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}
/* .about-content h3{
    margin-bottom: 2rem;
} */

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
}
/* .home-content h1:hover{
    text-decoration: underline 2px var(--main-color);
} */

.home-content p {
    font-size: 1.6rem;
    color: white;
    /* width: 200px; */

}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease;
    margin-top: 15px;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
    color: #fff;
}

/*about section*/
.about {
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: var(--snd-bg-color);
}

/* .about-img img {
    /* width: 350px;       dono same */
    /* height: 350px;  */
    /* object-fit: cover; */
    /* border: 2px solid var(--main-color); */
    /* border-radius: 50%; */
    /* box-shadow: 0 0 25px var(--main-color); */
    /* cursor: pointer; */
    /* transition: 0.4s ease; */
/* } */ 
.about-img img {
    margin-bottom: 120px;
    width: 350px;       /* dono same */
    height: 380px;      /* 👈 ye add karo */
    /* object-fit: cover;  image crop ho kar circle me fit hogi */
    /* border-radius: 50%; */
    /* box-shadow: 0 0 20px var(--main-color); */
    cursor: pointer;
    /* animation: floatImage 4s ease-in-out infinite; */
    /* transition: 0.4s ease; */
}


/* .about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 35px var(--main-color),
        0 0 45px var(--main-color);
} */

.heading {
    font-size: 6rem;
    text-align: left;
   
}
.heading3{
    font-size: 6rem;
    text-align: left;
    color: #fff;
    margin: 20px;
}

.about-content {
    padding: 0 4rem;

}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 3rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/*services section code*/
.services h2 {
    text-align: center;
    margin-bottom: 5rem;
}

/* .services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem
} */

/* .services-container .services-box {
    flex: 1 1 30rem;
    background: var(--snd-bg-color);
    padding: 6rem 2rem 6rem;
    border-radius: 2rem;
    text-align: center;
    border: 0.3rem solid var(--bg-color);
    transition: 0.3s ease;
} */

/* .services-container .services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
} */

/* .services-box i {
    font-size: 7rem;
    color: var(--main-color);

} */

/* .services-box h3 {
    font-size: 2.6rem;
}

.services-box p {
    font-size: 1.6rem;
    margin: 1rem 0 3rem
} */

/*testimonial section*/
/* .testimonial {
    background: var(--snd-bg-color);
} */

/* .testmonial-box {
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
} */

/* .testimonial .heading {
    margin-bottom: 5rem;
} */

/* .testimonial-box img {
    width: 15rem;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
} */

/* .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem
} */

/* .testimonial-item {
    min-height: 450px;
    max-width: 450px;
    background: var(--bg-color);
    border: 0.3rem solid var(--bg-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    transition: 0.3s ease;
} */

/* .testimonial-item:hover {
    border-color: var(--main-color);
    transform: scale(1.02);

} */

/* .testimonial-item h2 {
    font-size: 3rem;
} */

/* .testimonial-item p {
    font-size: 1.5rem;
    text-align: center;
} */

/* #star {
    color: gold;
    font-size: 2rem;
} */

/* skills section */
.skills {
  background-color: #fff;
  padding: 60px 0;
  width: 100%;
}

.skills .title {
  color: black;
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  font-family: inherit;
}

.skills .title span {
  color: var(--main-color);
}

/* .skills .title span::after {
  
  font-size: 1rem;
  color: grey;
} */

.skills .skills-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.skills .skills-content .column {
  width: calc(50% - 30px);
}

.skills .skills-content .left .text {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 10px;
  margin-left: 30px;
  color: var(--main-color);
  font-family: -apple-system, sans-serif;
}

.skills .skills-content .left p {
  text-align: justify;
  margin-left: 30px;
  font-family: -apple-system, sans-serif;
  font-size: 2rem;
}

.skills .skills-content .right .bars {
  margin-bottom: 15px;
}

.skills .skills-content .right .info {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: space-between;
}

.skills .skills-content .right span {
  font-weight: 500;
  font-size: 18px;
}

.skills .skills-content .right .line {
  height: 5px;
  width: 100%;
  background: lightgrey;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.skills .skills-content .right .line::before {
  content: "";
  position: absolute;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--main-color);
}

/* Progress bars */
.skills-content .right .html::before {
  width: 98%;
}
.skills-content .right .css::before {
  width: 98%;
}
.skills-content .right .js::before {
  width: 80%;
}
.skills-content .right .react::before {
  width: 50%;
}
.skills-content .right .tailwind::before {
  width: 80%;
}
.skills-content .right .wordpress::before {
  width: 80%;
}
.skills-content .right .figma::before {
  width: 70%;
}
.skills-content .right .bs::before {
  width: 90%;
}
.skills-content .right .flutter::before {
  width: 55%;
}

/* project section */
/* .thirdsection{
    background-image: url(assets/bgforallskills.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
} */
/* .projects {
    background: #ffffff;
} */

.projects-box {
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
/* .thirdsection{
    margin-bottom: 30px !important;
} */

.projects .heading {
    margin-bottom: 6rem;
}

.projects-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1.5rem;
    box-shadow: 0 0 20px var(--main-color);
}

.project-item {
    min-height: 450px;
    max-width: 450px;
    background: var(--snd-bg-color);
    border: 0.3rem solid var(--bg-color);
    border-radius: 2rem;
    margin: 0 2rem;
    padding: 20px 20px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-color);
    transition: 0.3s ease;
}

.project-item:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
}

.project-item h2 {
    font-size: 2.5rem;
    text-align: center;
}

.project-item p {
    font-size: 1.5rem;
    text-align: center;
}

.projects .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.custom-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color:var(--main-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
    font-size: 15px;
}

.custom-btn:hover {
    background-color:var(--bg-color);
    color: var(--main-color);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .projects .wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .project-item {
        max-width: 100%;
        margin: 0 auto;
        padding: 15px;
    }

    .project-item h2 {
        font-size: 2rem;
    }

    .project-item p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .projects .wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects .heading {
        margin-bottom: 3rem;
        font-size: 2rem;
    }

    .project-item {
        padding: 20px;
        gap: 1rem;
    }

    .project-item h2 {
        font-size: 1.8rem;
    }

    .project-item p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .project-item h2 {
        font-size: 1.6rem;
    }

    .project-item p {
        font-size: 1rem;
    }

    .custom-btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .projects-box img {
        height: 160px;
        border-radius: 1rem;
    }
}


/*contact section code*/
.contact {
    background: var(--snd-bg-color);
}

.contact .heading {
    text-align: center;

}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--main-color);
}

.contact form {
    max-width: 80rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 0.25rem solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

/*footer section code*/
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}

.footer .social {
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}

.footer .social a {
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-10px);
    background-color: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 25px var(--main-color);

}

.copyright {
    margin-top: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--text-color);
}

/*responsive design code*/
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media(max-width:991px) {
    .header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3%;
    }

    .services {
        padding: 7rem;
    }

    .testimonial .wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    .contact form .input-box input {
        width: 100%;
    }

    .footer {
        padding: 2rem 3%;
    }
}

@media(max-width:991px) {
    #menu-icon {
        display: block;
    }

    @media(max-width:991px) {
        .navbar {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            max-height: 0;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: inherit;
            backdrop-filter: blur(10px);
            transition: max-height 0.5s ease;
        }

        .navbar.active {
            max-height: 400px;
        }

        .navbar a {
            display: block;
            padding: 17px;
            font-size: 22px;
        }
    }


    .home {
        flex-direction: column;
    }

    .home-content h3 {
        font-size: 2.6rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content {
        order: 2;
        margin-left: 1rem;
    }

    .home-img img {
        width: 50vw;
        margin-top: 4rem;
    }

    .about {
        flex-direction: column-reverse;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }

    .services h2 {
        margin-bottom: 3rem;
    }
}

@media(max-width:617px) {
    .home-img img {
        width: 70vw;
        margin-top: 8rem;
    }

    .about-img img {
        width: 70vw;
        margin-top: 4rem;
    }
}

@media(max-width:617px) {
    html {
        font-size: 50%;
    }
}

/* skills media query */

/* Responsive Styles */
@media (max-width: 992px) {
  .skills .skills-content .column {
    width: 100%;
    margin-bottom: 30px;
  }

  .skills .title {
    font-size: 2.5rem;
  }

  .skills .title span {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .skills {
    padding: 40px 15px;
  }

  .skills .skills-content .left .text {
    font-size: 18px;
  }

  .skills .skills-content .right span {
    font-size: 16px;
  }

  .skills .title {
    font-size: 2rem;
  }

  .skills .title span {
    font-size: 2rem;
  }
}
@media (max-width: 761px) {
    .row{
        gap: 20px;
    }
}
