*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    text-decoration: none;
    border:none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins",sans-serif;
}
:root{
    --bg-color:#080808;
    --second-bg-color:#fafafa;
    --text-color:white;
    --text-color2:black;
    --main-color:#fafafa; 
    --span-color2: #a6a6a6; 
    --span-color:#fafafa;
    --nav-color:rgba(255, 255, 255, 0.03);
    --menu-color:rgba(255, 255, 255, 0.03);
}
html{
    font-size:60%;
    overflow-x:hidden;
}
body{
    background:var(--bg-color);
    color:var(--text-color);
}
.c-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  transition: filter 0.3s;
  filter: invert(1);
}

body.night .c-icon {
    filter: none;
}
.header{
    position: fixed;
    width:100%;
    height: 7rem;
    top:0;
    left:0;
    background:var(--nav-color);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index:1000;
}
#menu-icon{
    margin-top: 4.5rem;
    font-size: 3.5rem;
    color:var(--main-color);
    display:none;
}

span{
    background: linear-gradient(
        270deg,
         var(--span-color) 10%,
         var(--span-color2) 100%
    );
    background-clip: text;
    color: transparent;
}

.space{
    width: 5rem;
}
.nav-bar
{
    position: fixed;
    width: 100%;
    height: 3.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 2rem;
}

/*probably not needed*/
.nav-bar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}
.nav-container
{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.nav-logo
{
    width: 40%;
    
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.nav-logo:hover{
    transform: scale(1.1);
}
.nav-items
{
    width: 60%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-items a{
    font-size: 1.8rem;
    color:var(--text-color);
    margin-right: 3.5rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}
.nav-items a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon {
    display: none;
    font-size: 2.5rem;
    color: var(--main-color);
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#menu-icon:active {
    transform: rotate(999999999999999999999999999999deg);
}

.gradiant-btn{
    font-size: 1.8rem;
    padding:1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(
        270deg,
        var(--span-color) 10%,
        var(--span-color2) 100%
    );
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    color: white;
    border: none;
    text-wrap: nowrap;
}
.gradiant-btn:hover{
    transform: scale(1.05);
}

section{
    min-height: 80vh;
    padding: 10rem 15%;
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15rem;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    /*justify-content: center;
    margin-top: 3rem;*/
}

.home-content h1{
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-content h3{
    /*margin-bottom: 2rem;
    margin-top: 1rem;*/
    margin: 1rem 0;
    font-size: 4rem;
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}
.home-img{
    border-radius: 50%;
}
.home-img img{
    top:3rem;
    width:17vw;
    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);
    border-radius: 50%;
    /*width: 4.5rem;
    height: 4.5rem;*/
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover{
    color: var(--text-color);
    transform: scale(1.2)translateY(-5px);
    box-shadow: 0 0 10px var(--bg-color);
    background-color:var(--bg-color); 
}
.btn-group{
    display: flex;
    /*align-items: center;*/
    gap: 1.5rem;
}
.btn{
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 15px var(--second-bg-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: var(--text-color2);
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--second-bg-color),
                0 0 20px var(--second-bg-color);
}

.btn-group a:nth-of-type(2){
    background-color: var(--bg-color);
    color: var(--main-color2);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 15px transparent;
} 
.btn-group a:nth-of-type(2):hover{
    box-sizing: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--text-color2);
}
.text-animation{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}
.text-animation span{
    position: relative;
}
.text-animation span::before{
    content: "Web Devloper";
    color:var(--main-color);
    animation: words 20s infinite;
}
.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s infinite;
}
@keyframes cursor{
    to{
        border-left: 2px solid var(--main-color);
    }
}
@keyframes words{
    0%,
    20%{
        content: "Web Developer";
    }
    21%,
    40%{
        content: "3D Artist";
    }
    41%,
    60%{
        content: "Programmer";
    }
    61%,
    80%{
        content: "coder";
    }
    81%,
    100%{
        content: "Learner";
    }
}
@keyframes typing{
    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%{
        width: 0;
    }
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85%{
        width: calc(100% + 8px);
    }
}
.about{
    margin-top: 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10rem;
    background: var(--bg-color);
    /*width: 100%;*/
}
.about-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.about-content h2{
    font-size: 5.5rem;
}
.about-content p{
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 50%;
    font-size: 1.8rem;
}
.about-content .btn{
    margin: 3rem 0;
}
::-webkit-scrollbar{
    width: 2px;
}
::-webkit-scrollbar-thumb{
    background-color:var(--main-color) ;
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
}
.all-titles {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: column;
    color: var(--text-color);
    font-size: 3.5rem;
    margin-bottom: 5rem;
}/*
.section-title { text-align: center; margin-bottom: 2.5rem;}
.section-title h2 { font-size: 3.5rem; font-weight: 700;}*/
.container{
    margin-top: 5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-flow: wrap;
    font-size: 1.2rem;
}


/* Skills */
.skills {
  margin: 2.2rem auto 0 auto;
  max-width: 1040px;
}
.skills h3 {
  margin-bottom: 1.7rem;
  font-size: 1.4rem;
  letter-spacing: 1.3px;
  font-weight: 800;
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  margin: 2.2rem 0 1.5rem 0;
}

.skill-pill {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  color: var(--text-color);
  padding: 2rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  letter-spacing: .6px;
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 120px;
}

.skill-pill i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.skill-pill:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
  background: var(--main-color);
  color: var(--text-color2);
}
/* Projects */
.projects {
  background: inherit;
  padding: 5.5rem 2rem 3.5rem 2rem;
}

.project-filters {
  margin-top: 1.2rem;
  display: flex; gap: 1rem; justify-content: center;
}
.filter-btn {
  padding: 1rem 1.3rem;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  border-radius: 1.5rem;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s, color .2s;
  font-size: 1.1rem;
}
.filter-btn.active,
.filter-btn:hover { background: #000; color: #fff;}
body.dark .filter-btn { background: #000; color: #fff; border: 2px solid #fff;}
body.dark .filter-btn.active,
body.dark .filter-btn:hover { background: #fff; color: #000; border: 2px solid #fff;}
.projects-list {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.project-card {
  text-decoration: none;
  color: inherit;
  transition: box-shadow .22s, transform .22s, background .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border: 2px solid var(--main-color);
  width: 340px;
  background: var(--bg-color);
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  border-radius: 1.6rem;
  overflow: hidden;
  margin-bottom: 2rem;
  margin-top: 2rem;
  min-height: 370px;
  position: relative;
}
/*.featured-project { border: 4px solid #000; min-height: 380px;}*/
body.dark .project-card { background: #000; border: 2px solid #fff; color: #fff;} 
/*body.dark .featured-project { border: 4px solid #fff; }*/
.project-card img {
  width: 100%; height: 130px; object-fit: contain; background: #f5f5f5; border-radius: 0;
}
body.dark .project-card img { background: #111; }
.project-card-content {
  flex: 1 1 auto;
  padding: 1.7rem 1.2rem 1.5rem 1.2rem;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
}
.project-card h3 { margin: 0.8rem 0 0.6rem 0; font-size: 1.19rem; font-weight: 700;}
.project-card p { font-size: 1.08rem;}
.card-actions { margin-top: 1.2rem; display: flex; gap: 0.9rem;}
.project-card .card-actions .btn {
  padding: 0.65rem 1.7rem;
  font-size: 1.08rem;
}
.project-card:hover {
  box-shadow: 0 14px 48px rgba(0,0,0,0.13);
  transform: translateY(-8px) scale(1.03);
}
.project-card:hover .project-card-content { background: var(--bg-color);}
body.dark .project-card:hover .project-card-content { background: var(--bg-color);}

/* Blog */
.blog { background: inherit; padding: 5.5rem 2rem 3.5rem 2rem;}
.blog-list {
  max-width: 950px;
  margin: 0 auto;
  display: flex; gap: 2.1rem; flex-wrap: wrap; justify-content: center;
}
.blog-card {
  text-decoration: none !important;
  color: inherit;
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 30px;
  padding: 2.1rem 1.6rem;
  min-width: 290px;
  max-width: 410px;
  flex: 1 1 300px;
  transition: box-shadow .18s, transform .18s;
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
  display: flex; align-items: flex-start;
}
body.dark .blog-card { background: #000; color: #fff; border: 2px solid #fff;}
.blog-card:hover {
  box-shadow: 0 10px 40px rgba(0,0,0,0.13);
  transform: translateY(-6px) scale(1.01);
}
.blog-content h3 { margin: 0 0 0.5rem 0; font-size: 1.09rem; font-weight: 700;}
.blog-content p { margin: 0 0 0.8rem 0;}
.blog-date { font-size: 0.98rem; color: #888;}
body.dark .blog-date { color: #aaa; }

/* Testimonials */
.testimonials { background: inherit; padding: 5.5rem 2rem 3.5rem 2rem;}
.testimonials-slider {
  display: flex; flex-direction: row; justify-content: center; align-items: stretch;
  width: 100%; max-width: 440px; margin: 0 auto; min-height: 220px;
  position: relative;
}
.testimonial-card {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 1.6rem;
  padding: 2.2rem 1.7rem;
  width: 420px;
  min-height: 150px;
  font-size: 1.22rem;
  font-style: italic;
  color: var(--text-color);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.testimonial-card:first-child { display: flex; }
.testimonial-card h4 {
  margin-top: 1.1rem;
  font-size: 1.07rem;
  font-weight: 700;
  color: #888;
}
.testimonial-avatar {
  width: 66px; height: 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #000;
  margin-bottom: 1rem;
  background: #fff;
}
body.dark .testimonial-avatar { border: 2.5px solid #fff; background: #000; }
body.dark .testimonial-card { background: #000; color: #fff; border: 2px solid #fff;}
body.dark .testimonial-card h4 { color: #888; }
.testimonial-controls {
  margin: 2.6rem auto 0 auto;
  display: flex;
  justify-content: center;
  gap: 2.3rem;
  position: static;
}
.testimonial-controls button {
  background: var(--bg-color);
  border: 2px solid var(--main-color);
  border-radius: 50%;
  color: var(--main-color);
  font-size: 2.4rem;
  width: 55px;
  height: 55px;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-controls button:hover { background: var(--bg-color); color: var(--main-color); border: 2px solid var(--main-color);}
body.dark .testimonial-controls button {background: var(--bg-color); color: var(--main-color); border: 2px solid var(--main-color);}
body.dark .testimonial-controls button:hover { background: #fff; color: #000; border: 2px solid #fff;}

/* Contact */
.contact { background: inherit; padding: 5rem 2rem 3.2rem 2rem;}
.section-title span { color: #888;}
.contact-form {
  max-width: 500px;
  margin: 2.3rem auto 0 auto;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-form input,
.contact-form textarea {
  padding: 1.25rem;
  font-size: 1.11rem;
  border-radius: 1.2rem;
  border: 2px solid var(--main-color);
  background: var(--bg-color);
  color: var(--text-color);
  resize: none;
  outline: none;
  transition: border .2s, background .2s, color .2s;
  font-weight: 600;
}
body.dark .contact-form input,
body.dark .contact-form textarea {
  background: #000; color: #fff; border: 2px solid #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { border: 2px solid #888;}
.contact-form .btn { width: 100%; }

.contact-thankyou {
  text-align: center;
  margin-top: 2.2rem;
  font-size: 1.28rem;
  color: var(--text-color);
  font-weight: 800;
}
.contact-thankyou i { font-size: 2.5rem; color: var(--text-color); vertical-align: middle; margin-right: 0.7rem; }
/* Footer */
.footer{
    background-color: var(--bg-color);
    padding: 50px 0;
}
.footer .social-icons{
    text-align: center;
}
.footer ul{
    display: flex;
    justify-content: center;
    /*text-align: center;*/
    font-size: 1.8rem;
}
.footer ul li{
    display: inline-block;
    margin-left: 20px;
}
.footer ul li a{
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer .copyright{
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
}

/* Back To Top Button */
#backToTop {
  position: fixed;
  bottom: 28px; right: 24px;
  width: 54px; height: 54px;
  background: #fff;
  color: #000;
  border: 2.5px solid #000;
  border-radius: 50%;
  font-size: 2.2rem;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(0,0,0,0.17);
  z-index: 50;
  transition: background .18s, color .18s;
}
#backToTop.show { display: flex; }
#backToTop:hover { background: black; color: #fff; border: 2.5px solid #fff;}
/*body.dark #backToTop { background: #000; color: #000; border: 2.5px solid #000;}
body.dark #backToTop:hover { background:black; color: #000; border: 2.5px solid #fff;}
*/
label{
    position: absolute;
    width: 45px;
    height: 22px;
    right: 18rem;
    top: 0rem;
    border: 2px solid;
    border-radius: 20px;
}
label:before{
    position: absolute;
    content: '';
    width:15px;
    height: 15px;
    left: 1px;
    top: 1px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    transition: 0.4s;
}
label.active:before{
    left: 24px;
    background: #000;
}
body.night{
    --bg-color:#fafafa;
    --second-bg-color:#cecbc8;
    --text-color:black;
    --text-color2:white;
    --main-color:#080808;
    --span-color:#080808; 
    --span-color2:#d5d8dc;
    --nav-color:rgba(0, 0, 0, 0.03);
    --menu-color:rgba(0, 0, 0, 0.03);
}
@keyframes appear{
    from{
        opacity:0;
        scale:0.5;
    }
    to{
        opacity:1;
        scale: 1;
    }
}
.an{
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}




/* Responsive Design */
@media screen and (max-width: 970px) {
    /*optionanl*/
    .nav-bar {
        flex-direction: column;
        height: auto;
    }
    .darkbtn {
        position: relative;
        top: 0;
        left: 19.3rem;
        margin: 0;
        z-index: 1001;
        display: flex; /* Ensure proper alignment */
        align-items: center;
        justify-content: center;
    }
    .nav-items {
        position: absolute;
        left: 0;
        top: 7.05rem;
        right: 0; /* Add some spacing from the right */
        width: auto; /* Adjust width to fit content */
        height: 0;
        background-color:var(--bg-color);
        border-bottom-left-radius: 2rem;
        border-bottom-right-radius: 2rem; /* Rounded corners for card effect */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for card effect */
        overflow: hidden;
        transition: height 0.5s cubic-bezier(.17,.67,1,1.23), opacity 0.3s cubic-bezier(.17,.67,1,1.23);
        flex-direction: column;
        align-items: center;
        opacity: 0; /* Initially hidden */
    }

    .nav-items.active {
        opacity: 1; /* Make it visible */
        height: 9rem;
        padding: 1rem 0;
    }

    .nav-items a {
        padding: 1rem 0;
        text-align: center;
    }

    #menu-icon {
        display: block;
        font-size: 3rem;
        margin-top: 0.1rem;
        margin-right: 2rem;
    }

    .home {
        flex-direction: column;
        gap: 2rem;
        padding: 5rem 2rem;
    }

    .home-img img {
        width: 80%;
    }

    .about-content p {
        width: 90%;
    }

    .container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 40%;
    }

    .contact form {
        flex-direction: column;
        gap: 1rem;
    }

    .contact form .input-box {
        flex-direction: column;
    }

    .contact form textarea {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .nav-bar {
        padding: 1rem;
    }

    .nav-logo {
        font-size: 2rem;
    }

    .nav-items a {
        font-size: 1.5rem;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .home-content p {
        font-size: 1.2rem;
    }

    .btn {
        font-size: 1.5rem;
        padding: 0.8rem 2rem;
    }

    .about-content h2 {
        font-size: 4rem;
    }

    .about-content p {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 2rem;
    }

    .footer ul {
        flex-direction: column;
        gap: 1rem;
    }

    .footer ul li {
        margin: 0;
    }
}
