/* appling google font over the website  */
body{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
}
/* styling menu icon */
.nav-menu{
    border: none;
    background-color: #fff;
    font-size: 1.5rem;
    color: #fca61f;
}
/* styling navbar links  */
.navbar-nav a{
    color: black;
    position: relative;
}
.navbar-nav a:hover{
    color: #fca61f;
}
.navbar-nav a:after {    
    background: none repeat scroll 0 0 transparent;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    top: 35px;
    position: absolute;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
  }
.navbar-nav a:hover:after { 
    width: 100%; 
    left: 0; 
  }
  /* styling contact btn  */
.c-btn{
    border: none;
    background: #fca61f;
    color: #fff;
    font-size: 1.2rem;
}
/* styling home section starts */
.home{
    background: linear-gradient(33deg, rgba(242,242,255,1) 0%, rgba(235,249,255,1) 100%);
    padding: 30px 0 10px 0;
    height: 659px;
}
.home h2{
    font-size: 3rem;
    line-height: 4rem;
}
.c-orange{
    color: #6f34fe;
    font-weight: 700;
    font-size: 4rem;
}
.home p{
    width: fit-content;
    margin-top: 1rem;
    font-size: 1.2rem;
}
.h-btn:hover{
    background: #6f34fe;
    color: #fff;
    transform: translateY(-20px);
    transition-duration: 1s;
}
.link{
    text-decoration: none;
    font-size: 1.2rem;
    color: #fca61f;
    position: relative;
}
.link::after{
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    top: 20px;
    background-color: #6f34fe;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.link:hover{
    color: #6f34fe;
}
.link:hover::after{
    transform: scaleX(1);
    transform-origin: bottom left;
}
/* adding animation to home section image  */
.home img {
    height: auto; /* Or specify a value like 300px */
    animation: floatimg 4s ease-in-out infinite;
}

@keyframes floatimg {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-24px);
    }
    100% {
        transform: translateX(0);
    }
}


/* expertise section starts */
.heading small{
    color: #6f34fe;
    font-size: 1.5rem;
    font-weight: 600;
}
.heading h3{
    margin-top: 0.5rem;
    color: #3f396d;
    font-size: 2.5rem;
    font-weight: 700;
}
.expertise h4{
    color: #3f396d;
    font-weight: 700;
}
.expertise a{
    text-decoration: none;
    color: #fca61f;
}
.expertise a:hover{
    color: #6f34fe;
}
.expertise .service-card{
    text-align: center;
    padding: 15px 15px;
    border-radius: 0.7rem;
}

/* skill section starts */
.skill{
    background-color: rgb(234, 234, 249);
}
.progress-card{
    padding: 12% 10% 10% 15%;
    background-color: #fff;
    text-align: center;
    border-radius: 10%;
}
.progress-card:hover{
    transform: scale(1.1,1.1);
    transition-duration: 0.6s;
}
.circular-progress{
    position: relative;
    height: 130px;
    width: 130px;
    border-radius: 50%;
    background: conic-gradient(#7d2ae8 3.6deg, #ededed 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.circular-progress::before{
    content: "";
    position: absolute;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background-color: #fff;
}
.progress-value{
    position: relative;
    font-size: 1.5rem;
    font-weight: 600;
}
.html-progress{
    color: #fca61f;
}
.javascript-progress{
    color: #6f34fe;
}
.php-progress{
    color: #20c997;
}
.reactjs-progress{
    color: #3f396d;
}
.text{
    font-size: 1.2rem;
    font-weight: 500;
}
.heading p{
    font-size: 1.3rem;
}

/* portfolio section starts */
#myBtnContainer{
    margin-bottom: 45px;
}
#myBtnContainer button{
  border: none;
  color: black;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;   
  display: inline-block;
  margin: 0 25px;
}
#myBtnContainer button:hover{
    color: #fca61f;
}

#myBtnContainer button:focus{
    outline: none;
}
.post {
    display: none;
}

.post.show {
    display: block;
    margin-bottom: 15px;
}

/* testimonial section starts */
.testimonial img:hover{
    transform: scale(1.2,1.2);
    transition-duration: 1s;
}
.testimonial h4{
    color: #3f396d;
}
.testimonial i{
    font-size: 2.9rem;
    color: #fca61f;
    
}
.testimonial .nextprev-btn{
    border: none;
    background-color: #fff;
}
.prev:hover,.prev-btn:hover{
    color:#6f34fe;
    transform: translateX(-10px);
    transition-duration: 1s;
}
.next:hover,.next-btn:hover{
    color:#6f34fe;
    transform: translateX(10px);
    transition-duration: 1s;
}

/* blog section starts */
.blog{
    background-color: #f2f2ff;
}
.blog .blogpost .card{
    border: none;
    border-radius: 5%;
}
.nav-bg{
    background-color: #fff;
}

.blog .blogpost small{
    color: #6f34fe;
    font-size: 1.1rem;
}
.blog .blogpost h4,.blogpost a{
    color: #3f396d;
    font-weight: 700;
    margin-top: 1rem;
    text-decoration: none;
}
.blogpost a:hover{
    color: #fca61f;
}
.blog .blogpost .read-more-btn{
    text-decoration: none;
    color: #fca61f;
    font-size: 1.1rem;
}
.blog .blogpost .read-more-btn:hover{
    color: #6f34fe;
}
/* styling modal group  */
.btn-c{
    margin-left: 94%;
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    margin-top: -3%;
}
.btn-c i{
    color: #f33030;
}
.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 400%;
    margin-right: 50px;
    max-width: 800px;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
}
.modal-body .content span{
    font-size: 1rem;
}
.modal-body .content small{
    font-size: 1rem;
    color: #6f34fe;
}
/* contact section starts */
.contact{
    background-color: #f3f3f3;
}
.contact-details i{
    font-size: 1.5rem;
    color: #fca61f;
}
.contact-details p{
    font-size: 1.2rem;
    margin-left: 1rem;
}
.contact-form .form-control:focus{
    box-shadow: none;
    border: 1px solid #fca61f;
}
.contact-form .form-control{
    padding: 10px 10px;
    width: 80%;
}
label {
    display: block;
}

/* Footer container */
footer {
    background-color: #222; /* Dark background for the footer */
    color: #ffffff; /* Text color */
    padding: 40px 0; /* Padding around the footer */
    text-align: center; /* Center-align text */
}

/* Header text styling */
footer h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Link group styling (for navigation links) */
.link-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Space between links */
    font-size: 16px;
}

.link-group a {
    color: #ffffff; /* White color for links */
    text-decoration: none; /* Remove underline */
}

.link-group .vr {
    height: 25px;
    border-left: 2px solid #ffffff; /* Vertical divider */
    margin: 0 10px; /* Space between links and divider */
}

/* Styling for the social media icons container */
.social-links2 {
    display: flex;
    justify-content: center; /* Center the social links */
    gap: 20px; /* Space between icons */
    margin-top: 30px;
}

/* Social link styling (buttons) */
.social-links2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; /* Set width for social icons */
    height: 70px; /* Set height for social icons */
    border-radius: 50%; /* Make buttons circular */
    font-size: 28px; /* Icon size */
    transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth hover effects */
    text-decoration: none; /* Remove underline */
}

/* GitHub button styling */
.social-links2 a.github {
    background-color: #333; /* GitHub color */
}

.social-links2 a.github:hover {
    background-color: #6e5494;
    transform: scale(1.1);
}

/* WhatsApp button styling */
.social-links2 a.whatsapp {
    background-color: #25d366; /* WhatsApp color */
}

.social-links2 a.whatsapp:hover {
    background-color: #1da851;
    transform: scale(1.1);
}

/* LinkedIn button styling */
.social-links2 a.linkedin {
    background-color: #0077b5; /* LinkedIn color */
}

.social-links2 a.linkedin:hover {
    background-color: #005582;
    transform: scale(1.1);
}

/* Footer horizontal line */
footer hr {
    border-color: #444; /* Darker border color for the line */
    margin: 30px auto;
    width: 80%; /* Width of the line */
}

/* Footer paragraph styling */
footer p {
    font-size: 14px;
    color: #bbb; /* Light gray text for copyright */
    margin-top: 20px;
}

/* Container styling for social links */
.social-links {
    display: flex;
    justify-content: left;
    gap: 15px; /* Space between buttons */
    margin-top: 20px;
}

/* Base styling for buttons (links styled as buttons) */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove underline */
    color: white; /* Default text color */
    font-size: 20px; /* Icon size */
    width: 50px;
    height: 50px;
    border-radius: 50%; /* Make buttons circular */
    transition: transform 0.2s ease, background-color 0.3s ease; /* Smooth hover effects */
}

/* Individual button styles */
.github {
    background-color: #333; /* GitHub dark gray */
}
.github:hover {
    background-color: #6e5494; /* GitHub hover color */
    transform: scale(1.1); /* Slight zoom on hover */
}

.whatsapp {
    background-color: #25d366; /* WhatsApp green */
}
.whatsapp:hover {
    background-color: #1da851; /* Darker green on hover */
    transform: scale(1.1);
}

.linkedin {
    background-color: #0077b5; /* LinkedIn blue */
}
.linkedin:hover {
    background-color: #005582; /* Darker blue on hover */
    transform: scale(1.1);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .social-links {
        flex-direction: row; /* Keep buttons in a single row */
        gap: 10px; /* Reduce gap on smaller screens */
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px; /* Adjust icon size */
    }
}

/* styling back to top button */
#btn-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    font-size: 1.4rem;
    background-color: #f33030;
    color: #fff;
    animation: pulse 3s infinite;
}
/* Mobile Styles */
@media (max-width: 768px) {
    /* Make the font size smaller on mobile */
    body {
        font-size: 1rem;
    }

    /* Adjust navbar layout for smaller screens */
    .navbar-nav a {
        font-size: 1rem;
    }

    /* Stack the menu icon and navbar items */
    .nav-menu {
        font-size: 1.2rem;
    }

    .home {
        padding: 20px 10px;
        height: auto;
    }

    .home h2 {
        font-size: 2rem;
        line-height: 3rem;
    }

    .home p {
        font-size: 1rem;
        margin-top: 0.5rem;
    }

    .link {
        font-size: 1rem;
    }

    .skill {
        padding: 15px;
    }

    .progress-card {
        padding: 8% 6% 6% 8%;
    }

    .contact-form .form-control {
        width: 100%;
    }

    footer {
        padding: 20px 0;
    }

    footer h3 {
        font-size: 18px;
    }

    .link-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .social-links2 {
        gap: 10px;
    }

    .social-links2 a {
        width: 50px;
        height: 50px;
    }
}

/* For smaller mobile screens (portrait) */
@media (max-width: 480px) {
    .home h2 {
        font-size: 1.8rem;
    }

    .home img {
        width: 100%;
        height: auto;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .btn-c {
        margin-left: 90%;
        font-size: 1.5rem;
    }
}
