
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins";
}
:root {
  --bg-color: #080808;
  --second-bg-color: #101010;
  --text-color: white;
  --main-color: #c084fc;
}

body{
    background: var( --bg-color);
    color: var(--text-color);
}
html {
  font-size: 60%;
  overflow-x: hidden;
}
.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 15%;
    background:rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}
#menu-icon{
    font-size: 3rem;
    color: var(--main-color);
    display:none;
}
.logo{
 font-size: 3rem;
 color: var(--text-color);
 font-weight: 800;
 cursor:pointer;
 transition: 0.3s ease-in-out;
 margin-left: -35px;
}

.logo:hover{
    transform: scale(1.1);
}
span{
    background: linear-gradient(
        270deg,
     #c084fc 10%,
        #a855f7 100%
    );
    background-clip: text;
    color:transparent;
}
.navbar a{
font-size: 1.8rem;
color:var(--text-color);
margin-left: 4rem;
font-weight: 500;
transition: 0.3s ease-in-out;
border-bottom: 3px solid transparent;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.button-gradient{
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(
        270deg,
      #c084fc 10%,
        #a855f7 100%
    );
    letter-spacing: 1px;
    cursor: pointer;
    transition:white;
    border:none;
    text-wrap: nowrap;
}
.button-gradient:hover{
    transform: scale(1.05);
}
section{
    min-height: 100vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}
.home-content{
display: flex;
flex-direction: column;
align-items: flex-end;
text-align: right;
}
.home-content h1{
  font-size: 8rem;
  font-weight: 700;
  margin-top: 1.5rem;
  line-height: 1;  
}
.home-content h3{
    margin: 1rem;
    font-size: 4rem;

}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-img img{
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.home-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.social-icons a{
display: inline-flex;
justify-content: center;
align-items: center;
font-size: 3rem;
padding: 1rem;
background: transparent;
border: 2px solid var(--main-color);
color: var(--main-color);
margin: 3rem;
transition: 0.3s ease-in-out;
}
.social-icons a:hover{
color: var(--text-color);
background-color:var(--main-color);
transform: scale(1.2)translateY(-5px);
box-shadow: 0 0 25px var(--main-color);
}
 .btn-group{
    display: flex;
    gap: 1.5rem;
 }
 .btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color:black;
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
 }
 .btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
 }
 .btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid;
    box-shadow: 0 0 25px transparent;
 }
 .btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
 }
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--second-bg-color);
}
.about-img img{
    width: 32vw;
    border: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}
.about-img img:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.about-content h2{
    font-size: 7rem;
    text-align: left;
}
.about-content p{
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}

::-webkit-scrollbar{
width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}

.heading{
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.skills{
    background-color: var(--bg-color);
    color: black;
}
.skills h2{
    color: var(--text-color);
}
.skills-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 2.5rem;
}
.skills-box{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 5 px solid transparent;
    transition: 0.4s ease-in-out;
}
.skills-box:hover{
    background:var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}
.skills-info{
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 5rem;
}
.skills-info h4{
font-size: 4rem;
margin: 2rem 0;
font-weight: 800;
}
.skills-info p{
    font-size:1.4rem;
    font-weight: 600;
    line-height: 1.7;
}
.skills-info i{
    font-size: 8rem;
}

.projects-box{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px,1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}
.projects-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: o o 5px var(--main-color);
    transition: 0.3s ease;
}
.projects-card h3{
    font-size: 3rem;
}
.projects-card:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.02);
}
.projects-card p{
    font-size: 1.6rem;
}

.contact{
    background-color: var(--bg-color);

}
.contact h2{
    margin-bottom: 3rem;
    color: var(--text-color);
}
.contact form{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 0;
    text-align: center;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 2.5rem;
    font-size: 1.8rem;
    color: var(--text-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}

.footer{
    background-color: var(--second-bg-color);
    padding: 50px 0;

}
.footer .social-icons{
    text-align: center;
}
.footer ul{
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footerul li a:hover{
    border-bottom: 3px solid var(--main-color);

}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}
.footer a .btn{
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {

    
    .projects {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        padding: 5rem 4%; 
    }

    .github-grid {
        display: flex; 
        flex-direction: column;
        align-items: center; 
        width: 100%;
        gap: 3rem;
    }

    .github-card {
        width: 100%; 
        max-width: 350px; 
        margin: 0 auto; 
    }


    .heading {
        text-align: center;
        width: 100%;
    }
}

@media (max-width:1285px){

    .logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    margin-left: 1px;
}

    .header .home{
        margin-left: 3px ;
    }
    #menu-icon{
        display: block;
    }
    .navbar{
        position:absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgb(0, 0, 0, 0.8);
        border-bottom-left-radius: 2rem;
        display:none;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);

    }
    .navbar.active{
        display: block;
        padding-bottom: 2000px;
    }
    .gradient-btn{
        display: none;
    }
    .home{
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }
    .home-content{
        align-items: center;
        text-align: center;
    }
    .home-img img{
        width: 56vw;
    }
    .about{
        flex-direction: column-reverse;
        text-align: center;
    }
    .about h2{
        text-align: center;
        margin: 2rem 0;
    }
    .about img{
        width: 52vw;

    }
    .contact form{
        flex-direction: column;
    }
    .button-gradient{
        display: none;
    }
    #menu-icon.bx-x {
    transform: translateY(2px);
}
.footer .btn-group{
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

    
}

.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 2rem;
    padding: 2rem 0;
}


.github-card {
    background-color: #0d1117; 
    border: 1px solid #30363d; 
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.github-card:hover {
    transform: translateY(-5px);
    border-color: var(--main-color); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.8rem;
    color: #e6edf3; 
    font-weight: 600;
    margin-right: 1rem;
    word-break: break-word;
}

.card-stats {
    display: flex;
    gap: 1rem;
    font-size: 1.4rem;
    color: #7d8590; 
    white-space: nowrap;
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-stats i {
    font-size: 1.6rem;
}

.stat-fork { color: #a371f7; } 
.stat-star { color: #e3b341; } 


.github-card p {
    font-size: 1.4rem;
    color: #8b949e; 
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; 
}


.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}


.topic-tag {
    background-color: #13233a; 
    color: #58a6ff; 
    font-size: 1.2rem;
    padding: 0.4rem 1rem;
    border-radius: 2rem; 
    font-weight: 500;
}

.card-license {
    font-size: 1.2rem;
    color: #7d8590;
}


.card-link {
    text-decoration: none;
    color: inherit;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.page-btn {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.8rem 1.5rem;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #8b949e;
    color: #e6edf3;
}


.page-btn.active {
    background: var(--main-color); 
    border-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 10px var(--main-color); 
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  background-color: transparent;
  border: none;
  color: #c9d1d9;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  font-weight: 600;
}
.page-btn.active {
  background-color: #1f6feb;
  color: #fff;
}
.page-btn.disabled {
  color: #484f58;
  cursor: not-allowed;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                padding 0.3s ease,
                box-shadow 0.3s ease;
}

.header.hide {
    transform: translateY(-100%); 
}

.header.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    padding: 1.5rem 9%;
    background: rgba(0, 0, 0, 0.85);
}
