@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Delicious+Handrawn&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,600');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
    --body-color: #fafafa;
    --color-white: #ffffff;
    --text-color: #262525;
    --text-color-second: #444444;
    --first-color: #6e57e0;
    --first-shadow: rgba(0, 0, 0, 0.1);
    --box-color: #ffffff;
    --nav-color: #ffffff;
    --nav-icon: #000000;
    --logo-color: #000000;
    --icon-color: #242526;
    --mode-color: #cccccc;
    --footer-text: #262525; /* For light mode */
  }
  
  body {
    background: var(--body-color);
    color: var(--text-color);
  }
  
  body.dark {
    --body-color: #202425;
    --box-color: #ffffff;
    --nav-color: #262425;
    --color-white: #ffffff;
    --text-color: #ffffff;
    --nav-icon: #ffffff;
    --logo-color: #ffffff;
    --icon-color: #8749f2;
    --mode-color: #ffffff;
    --footer-text: #ffffff; 
  }
  
  

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  position: relative;
}

nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 90px;
  line-height: 100px;
  background: var(--nav-color);
  padding-inline: 0 5vw;
  transition: 0.3s;
  z-index: 100;
}

.nav-logo {
  font-size: 30px;
  font-weight: 600;
  color: var(--logo-color);
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav-menu .nav-list {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 10px 15px;
  position: relative;
}
.nav-link::after {
    transition: all 0.3s ease;
  }

.nav-menu-btn {
  display: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--nav-icon);
}

.active-link {
  color: var(--first-color);
  position: relative;
}

.active-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--first-color);
}

.mode {
  display: flex;
  align-items: center;
}

.moon-sun {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mode-color);
  cursor: pointer;
}

.moon-sun :is(#moon, #sun) {
  position: absolute;
  transition: 0.2s ease-in-out;
}

#sun {
  opacity: 0;
}

body.dark #sun {
  opacity: 1;
}

body.dark #moon {
  opacity: 0;
}

.wrapper {
  padding: 0 10vw;
}

.featured-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  min-height: 700px;
  gap: 20px;
}

.featured-text {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  flex-direction: column;
  width: 50%;
  padding-left: 20px;
  margin-top: 10%;
}

.featured-text .hello {
  font-size: 50px;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 10px;
}

.featured-name {
  font-size: 50px;
  font-weight: 600;
  color: #8749f2;
  margin-bottom: 10px;
}

.typedText {
  font-family: sans-serif;
  color: #8749f2;
  font-size: 4rem;
  font-weight: bold;
  text-transform: capitalize;
  margin-top: -50px ;
  position: relative;
}

.text-info {
  font-size: 16px;
  margin-bottom: 30px;
  color: var(--text-color);
}

.text-btn {
  display: flex;
  gap: 20px;
}
.text-btn .btn{
    border: none;
    color: #f4f4f4;
    box-shadow: 0px 0px 5px 1px rgba(0, 0, 0, 0.1);

}
.btn {
  text-decoration: none;
  font-size: 15px;
  padding: 10px 20px;
  background: #8749f2;
  color: white;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn i{
    margin-right: 10px;
}
i{
    font-size: 16px;
}
.social-icons{
    display: flex;
    margin-top: 30px;
    margin-left: 5px;
    gap: 32px;
}
.social-icons .icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: var(--icon-color);
    border-radius: 50%;
    box-shadow: 0px 1px 5px 3px #8749f2;
    cursor: pointer;
}
.icon_circle{
    position: absolute;
    transform: transform(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    animation: iconSlide 4s infinite alternate;
}
@keyframes iconSlide{
    25%{
        border: 2px solid #e6d12e;
        left: 0px;
    }
    50%{
        border: 2px solid #c40101;
        left: 70px;
    }
    75%{
        border: 2px solid #8749f2;
        left: 145px;
    }
    100%{
        border: 2px solid #47ea15 ;
        left: 216px;
    }
}
.social-icons:hover .icon_circle{
    animation-play-state: paused;
    cursor: pointer;
}
.featured-image{
    display: flex;
    justify-content: right;
    align-items:center ;
    min-height: 80vh;
    width: 100%;
}
.image{
    margin-top: 10%;
    width: 500px;
    height: 700px;
    border-radius: 40% 40% 40% 40%;
    overflow: hidden;
    animation: imgfloat 5s ease-in-out infinite;
}
.image img{
    width: 500px;
    height: 700px ;
    object-fit: cover;
}
@keyframes imgfloat{
    50%{
        transform: translate(50px);
    }
}
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color);
    margin-bottom:10px ;
}
.about-info{
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block:45px 45px ;
    border: 2px solid #fff;
    background: transparent;
    box-shadow: 1px 8px 10px 2px var(--first-shadow) ;
    border-radius: 20px;
}
.about-me{
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}
.about-info figcaption{
    width: 100%;
    padding: 80px 25px 25px; 
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-me .profile{
    position: static;
    bottom: 100%;
    left: 20px;
    z-index: 1;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    margin-top: -70px;
}
.about-me h2{
    color: var(--text-color);   
}
.about-me p{
    margin-top: 10px;
    color: var(--text-color);
}
.about-info .about-me-btn{
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    cursor: pointer;
    border: 20px;
    border-radius:20px ;
    background: #8749f2;
    color: #fff;
    margin-top: 20px;
    font-weight:500 ;
    transition: all 0.5s ease;
}
.skill{
    position: relative;
    max-width: 600px;
    width: 100%;
    background: transparent;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
    padding: 10px 20px;
    border: 2px solid #fff;
    border-radius: 20px;
}
.skill .skill-box{
    width: 100%;
    margin: 25px 0;
}
.skill-box .title{
    display: block;
    font-size: 14px;
    font-weight:600 ;
    color: var(--text-color);
}
.skill-box .skill-bar{
    height: 8px;
    width: 100%;
    border-radius: 6px;
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.1);
}
.skill-box .skill-per{
    position: relative;
    display: block;
    height: 100%;
    width: 90%;
    background: #8749f2;
    border-radius: 6px;
    animation: progress 0.4s ease-in-out forwards;
    opacity: 0;
}
.skill-per.html {
    animation-delay: 0.1s;
    width: 80%;
  }
  
  .skill-per.css {
    animation-delay: 0.3s;
    width: 80%;
  }
  
  .skill-per.Python {
    animation-delay: 0.5s;
    width: 70%;
  }
  
  .skill-per.JavaScript {
    animation-delay: 0.7s;
    width: 40%;
  }
  
@keyframes progress{
    0%{
        width: 0;
        opacity: 1;
    }
    100%{
        opacity: 1;
    }
}
.skill-per .tooltip{
    position: absolute;
    right: -14px;
    top: -28px;
    font-size: 9px;
    color: #fff;
    padding: 2px 6px;
    border-radius: 20px;
    background: #8749f2;

}
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
  }
  .project-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
    overflow: hidden;
  }
  .project-box::before {
    content: "";
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #8749f2;
    transition: bottom 0.4s ease;
    z-index: 0;
    border-radius: 20px;
}
.project-box:hover::before {
    bottom: 0;
}

/* White text on hover */
.project-box:hover {
    color: #fff;
}

/* Ensure text stays above the background */
.project-box * {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}
.project-box:hover h3,
.project-box:hover p {
    color: #fff;
}
  .project-box:hover {
    transform: translateY(-5px);
    box-shadow: 1px 12px 15px 3px var(--first-shadow);
  }
  .project-box .progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
  }
  .project-box .progress-fill {
    width: 75%;
    height: 100%;
    background: #8749f2;
    border-radius: 6px;
  }
.project-box > i {
    font-size: 50px;
    color: #8749f2;
    margin-bottom: 25px;
}
.project-box label{
    font-size: 15px;
    color: var(--text-color);
}
.project-box::after, .contact-box::after{
    content: "";
    position: absolute;
    bottom: -100%;
    height: 100%;
    transition: 0.4s;
    z-index: 0.1;
}
.project-box:hover.project-box::after, .contact-info:hover.contact-box::after{
    bottom: 0;

}
.project-box:hover.project-box i ,.project-box:hover.project-box > h3, .project-box:hover.project-box > label{
    color: black;
    z-index: 2;
}
.top-header span{
    color: var(--text-color);
}
.contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    height: 380px;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
  }
  
  .contact-info::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #8749f2;
    z-index: 0;
    transition: height 0.4s ease-in-out;
    border-radius: 18px; /* match parent rounding */
  }
  
  .contact-info:hover::before {
    height: 100%;
  }
  
  .contact-info > h2,
  .contact-info > p {
    color: var(--text-color);
    margin-bottom: 10px;
    z-index: 2;
    transition: color 0.3s ease;
  }
  
  .contact-info:hover > h2,
  .contact-info:hover > p {
    color: white;
  }  
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
    
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #aaa;
    padding-inline: 20px;
    border-radius: 10px;
    outline:none ;
}
.input-subject{
    width: 100%;
    height: 55px;
    background: transparent;
    border: 2px solid #aaa;
    padding-inline: 20px;
    border-radius: 10px;
    outline: none;
    margin-bottom: 10px;

}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #aaa;
    padding: 15px 20px;
    color: var(--text-color);
    border-radius: 10px;
    outline: none;
    resize: none;
}
.form-button > .btn{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 40%;
    border: none;
    background: #8749f2;
    padding: 10px 20px;
    color: #fff;
}
.form-button i {
    font-size: 18px;
    rotate: -45deg;
    margin-left: 10px;
}
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: var(--body-color);
    padding-block: 40px 60px;
    color: var(--footer-text);
}
.middle-footer .footer-menu{
    display: flex;
}
.footer-menu-list{
    list-style: none;
}
.footer-menu-list a{
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-menu-list a:hover{
    color: #8749f2
}
.footer-social-icons{
    display: flex;
    gap: 30px;
    color: rgb(75, 75, 236);

}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px ;
    color: var(--footer-text);
}
@media only screen and (max-width:1024px){
    .featured-text{
        padding: 0;
    }
    .image, .image img{
        width: 320px;
        height: 320px;
    }
}
@media only screen and (max-width:900px){
    .nav-menu-btn{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        background: rgba(250,250,250,0.7) ;
        backdrop-filter: blur(5px);
        width: 300px;
        border-radius: 0px 30px 0px 30px;
        min-height: 450px;
        height: 100vh;
        transition: 0.3s;
    }
    .nav-menu-list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        flex-direction: column;
        justify-content: center;
        height: 100vh;
    }
    .featured-text{
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social-icons{
        margin-top: 2em;
    }
    .featured-image{
        order: 1;
        justify-content: center;
        min-height: 150px;
        width: 100%;
        margin-top: 65px;
    }
    .image, .image img{
        width: 150px;
        height: 150px;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;

    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }
    .mode{
        display: flex;
        align-items: center;
        margin-left: 60%;
    }
}
@media only screen and (max-width:540px){
    .featured-name{
        font-size: 40px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
    .mode{
        margin-left: 50%;
    }
}