@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

:root {
    --body-color: rgba(250, 250, 250);
    --color-white: rgba(250, 250, 250);
    --text-color-second: rgba(38, 37, 37);
    --first-color: rgba(110, 87, 224);
    --first-shadow: rgba(0, 0, 0, 0.1);

    --box-shadow: #fff;
    --nav-color: #fff;
    --nav-icon: #000;
    --logo-color: #000;

    --text-color: #444444;
    --color-white: #242526;

    --icon-color: #242526;
    --mode-color: #ccc;

    --primary: #36454f;
    /* dark mode color */
}

body {
    background: var(--body-color);
}

/* dark mode */
/* body .dark {
    --body-color: #202425;
    --box-color: #fff;

    --nav-color: #262425;
    --color-white: #fff;
    --text-color: #fff;

    --nav-icon: #fff;
    --logo-color: #fff;
    --icon-color: #8749f2;
    --mode-color: #fff;

} */
body.dark { 
    --body-color: #202425;
    --nav-color: #262425;
    --color-white: #fff;
    --text-color: #fff;
    --nav-icon: #fff;
    --logo-color: #fff;
    --icon-color: #8749f2;
    --mode-color: #fff;
}


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

html {
    scroll-behavior: smooth;
}

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

.nav-logo {
    position: relative;
}

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

.nav-menu,
.menu_list {
    display: flex;
    column-gap: -30px;
}

.nav-menu .nav_list {
    list-style: none;
    position: relative;
}


.nav_link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 20px;
}

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

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

.nav_link:hover {
    color: #8749f2;
}

.menu-btn {
    display: none;
}

.menu-btn i {
    font-size: 28px;
    cursor: pointer;
    color: var(--nav-icon);
}

/* mode */
.mode {
    display: flex;
    align-items: center;
    margin-right: -2%;
}

.theme {
    position: relative;
    align-items: center;
    display: flex;
    justify-content: center;
    height: 40px;
    width: 40px;
    border-radius: 30px;
    cursor: pointer;
    background: var(--mode-color);

}

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

#sun {
    opacity: 0;
}

body.dark #sun {
    opacity: 1;
}

body.dark #moon {
    opacity: 0;
} */

.moon-icon, .sun-icon {
    transition: opacity 0.3s ease-in-out;
}

body:not(.dark) .sun-icon {
    opacity: 0;
}

body.dark .moon-icon {
    opacity: 0;
}

body.dark .sun-icon {
    opacity: 1;
}






/* wrapper */
.wrapper {
    padding-inline: 10vw;
}

/*----featured box------*/

.featured-box {
    position: relative;
    display: flex;
    height: 100vh;
    min-height: 700px;
   
}

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

}

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

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

.typedText {
    font-family: sans-serif;
    color: #8749f2;
    font-size: 55px;
    font-weight: 600;
    text-transform: capitalize;
}

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

.text-btn {
    display: flex;
    border-radius: 8px;
    cursor: pointer;
    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;
    cursor: pointer;
    border-radius: 8px;
    background: #8749f2;
    font-weight: 500;
    transition: all 0.5s ease;
}

/* .btn a{
    text-decoration: none;
    color: #fff;
} */
.btn i {
    margin-right: 10px;
}

i {
    font-size: 16px;
}


/* social-icons */
.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: translate(-50%, -50%); */
    transform: transform(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50px;
    /* animation: iconSlide 4s infinite alternate; */
    /* circle animation */

}

@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-img*/
.fetured-img {
    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: translateY(50px);
    }
}

/* main */

.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 */
.about-info {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-block: 45px 45px;
    padding-inline: 35px;
    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: 25px;
    position: relative;
}

.about-me .profile {
    border-radius: 50%;
    position: absolute;
    bottom: 100%;
    left: 20px;
    z-index: 1;
    background-color: #fff;
    max-width: 90px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    /* background-color: #202425; */
}

.about-me h2 {
    color: var(--text-color);
}

.about-me p {
    margin-top: 10px;
    color: var(--text-color);
}

.about-info .About-btn {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    border-radius: 20px;
    background: #8749f2;
    color: #fff;
    margin-top: 20px;
    font-weight: 500;
    transition: all 0.5s ease;

}

/* skill  */
.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%;
    border-radius: 6px;
    background: #8749f2;
    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.1s;
    width: 70%;
}

.skill-per.bootstrap {
    animation-delay: 0.1s;
    width: 70%;
}

.skill-per.js {
    animation-delay: 0.1s;
    width: 40%;
}

.skill-per.php {
    animation-delay: 0.1s;
    width: 60%;
}

.skill-per.mysql {
    animation-delay: 0.1s;
    width: 50%;
}

@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;
    z-index: 1;
}

/* service */
.service-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.service-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 30%;
    height: 250px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow);
    overflow: hidden;
    cursor: pointer;
}

.service-box>i {
    font-size: 50px;
    color: #8749f2;
    margin-bottom: 25px;
}

.service-box label {
    font-size: 15px;
    color: var(--text-color);
    text-align: center;
    /* justify-content: center; */
    padding-inline: 12px;
    padding-block: 10px;
}
.service-box h3{
    color: var(--text-color);
}
.service-box::after,
.contact-info::after {
    content: "";
    position: absolute;
    bottom: -100%;
    background: #8749f2;
    width: 100%;
    height: 100%;
    transition: 0.4s;
    z-index: 0.1;
}

.service-box:hover.service-box::after,
.contact-info:hover.contact-info::after {
    bottom: 0;

}

.service-box:hover.service-box i,
.service-box:hover.service-box>h3,
.service-box:hover.service-box>label {
    color: #fff;
    z-index: 2;
}

.top-header span {
    color: var(--text-color);

}

/* project */

/* Project Section */
.project-container {
    display: flex;
    justify-content: center;
    /* gap: 40px; */
    gap:30px;
    flex-wrap: wrap;
    padding: 20px;

}
.text{
    width: 100%;
    height: 40px;
    align-items: center;
    color:var(--text-color);
    
}
.text h2{
    text-align: center;
    /* justify-content: center; */
  
}
/* Project Box */
.project {
    position: relative;
    width: 300px;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideIn 0.8s ease-in-out forwards;
}

.project:nth-child(2) {
    animation-delay: 0.2s;
}

.project:nth-child(3) {
    animation-delay: 0.4s;
}

.project img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Hover Effect */
.project:hover {
    transform: scale(1.05);
}

/* Hover Overlay (Slide-in from Left) */
.overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(106, 106, 250, 0.7); /* Blue transparent */
    /* background-color: #8749f2; */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: left 0.5s ease-in-out;
}

.project:hover .overlay {
    left: 0;
}

/* Tech Stack Display */
.tech {
    margin-top: 10px;
    font-size: 14px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 5px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.5s ease-in-out;
}

/* Modal Image Animation (Slide-in from Right) */
.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Active State for Modal */
.modal.active .modal-content {
    transform: translateX(0);
    opacity: 1;
}

/* Hide other project boxes */
.hide-projects {
    display: none;
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/* Responsive Animation Fix */
@media screen and (max-width: 900px) {
    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 80%;
        height: 350px;
        animation: slideInMobile 0.8s ease-in-out forwards;
    }
    
    .overlay {
        left: 0;
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
    }

    .project:active .overlay {
        opacity: 1;
    }
}

@media screen and (max-width: 600px) {
    .project {
        width: 90%;
        height: 300px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 75%;
    }
}

/* Mobile View Animation */
@keyframes slideInMobile {
    from {
        transform: translateX(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}




/* contact */

.contact-info {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    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;
}

.contact-info>h2 {
    color: var(--text-color);
    margin-bottom: 20px;

}

.contact-info>p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    margin-block: 5px;
}

.contact-info::after {
    color: #8749f2;
}

.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i {
    color: #fff;
    z-index: 2;
}

/* contact form */
.form-control {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.form-info {
    display: flex;
    gap: 55px;
    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;
    border-radius: 10px;
    padding-inline: 20px;
    margin-bottom: 10px;
    outline: none;
}

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;
    border-radius: 30px;
    color: #fff;
}

.form-button i {
    font-size: 18px;
    rotate: -45deg;
    margin-left: 10px;
}

/* Success Message */
.success-msg {
    text-align: center;
    font-size: 16px;
    color: green;
    margin-top: 10px;
}

/* footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: var(--body-color);
    padding-block: 40px 60px;
}

.middle-footer .footer-menu {
    display: flex;
    cursor: pointer;
}

.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-icons {
    display: flex;
    gap: 30px;
    color: var(--color-white);
 
}
.icon i{
    cursor: pointer;
}
.icon i:hover{
    color: #8749f2;
}
.bottom-footer {
    font-size: 14px;
    margin-top: 10px;
    color: var(--color-white);
}


/* media query-1024px */
@media only screen and (max-width:1024px) {
    .featured-text {
        padding: 0;
    }

    .image,
    .image img {
        width: 320px;
        height: 320px;
    }
}

/* media query *900px */
@media only screen and (max-width:900px) {
    .menu-btn {
        display: none;

    }

    .nav-menu.responsive {
        left: 0;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: 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;
    }

    .menu_list {
        flex-direction: column;
    }

    .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;
    }

    .fetured-img {
        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%;
    }

    .service-container {
        justify-content: center;
    }

    .service-box {
        width: 80%;
    }

    .mode {
        display: flex;
        align-items: center;
        margin-left: 60%;
    }
}

@media only screen and (max-width:540px) {
    .featured-name {
        font-size: 40px;
    }

    .service-box {
        width: 100%;
    }

    .form-info {
        flex-direction: column;
    }

    .input-field {
        width: 100%;
    }

    .mode {
        margin-left: 50%;
    }
}


@media (max-width: 500px) {
    .middle-footer {
        display: flex;
        justify-content: center;
        /* Center horizontally */
        align-items: center;
        /* Center vertically */
        width: 100%;
        /* Full width */
    }

    .footer-menu {
        display: flex;
        flex-direction: column;
        /* Items in vertical order */
        align-items: center;
        /* Align items to center */
        text-align: center;
        /* Text alignment */
        gap: 10px;
        /* Space between items */
    }

    .footer_menu_list a {
        margin-inline: 0;
        /* Remove left-right margin */
    }

    .bottom-footer {
        text-align: center;
        font-size: 12px;
        padding-inline: 20px;
    }

    .menu-btn {
        margin-left: 10px;
    }

    .contact-info {
        font-size: 13px;
    }
}

@media (max-width: 500px) {
    .form-button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .form-button .btn {
        margin-left: 0;
        /* Remove left margin */
    }
}