/* appling google font over the website  */
body{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
}
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
/* 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;
    background: #fca61f;
    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 0px 10px 0px;
}
.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{
    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;
}
.mlops-progress {
    color: #fd7e14;
}
.big-data-progress {
    color: #198754;
}
.data-viz-progress {
    color: #6f34fe;
}
.text{
    font-size: 1.2rem;
    font-weight: 500;
}
.heading p{
    font-size: 1.3rem;
}

.post .content h4{
    font-size: 1rem;
    font-weight: 700;
}
.post .card{
    border: none;
}

.portfolio-body .card {
    border-radius: 0.7rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 100%;
}
.portfolio-body .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    transition: all 0.3s ease-in-out;
}
/* New Experience Card Styles */
.experience-card {
    background-color: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}
.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.card-header-custom {
    display: flex;
    align-items: center;
}
.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.8rem;
    color: #fff;
}
/* Specific icon colors */
.experience-card:nth-of-type(odd) .icon-wrapper {
    background-color: #6f34fe;
}
.experience-card:nth-of-type(even) .icon-wrapper {
    background-color: #fca61f;
}
.header-text .card-title {
    font-weight: 700;
    color: #3f396d;
    font-size: 1.25rem;
}
.header-text .company-name {
    font-weight: 500;
}
.card-summary {
    flex-grow: 1; /* Allows summary to take up available space */
    color: #555;
}
.link-btn {
    background: none;
    border: none;
    color: #6f34fe;
    font-weight: 600;
    padding: 0;
    text-align: left;
    transition: color 0.3s ease;
}
.link-btn:hover {
    color: #fca61f;
}
/* Custom wrapper for logos in experience cards */
.logo-wrapper {
    background-color: #fff !important; /* Override default background */
    padding: 5px; /* Add some padding around the logo */
    border: 1px solid #eee;
}

/* Ensure logos fit perfectly within the circular wrapper */
.logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the area without distortion */
    border-radius: 50%; /* Makes the image itself circular */
}

/* Modal Customizations */
.modal-body {
    padding: 1rem 2rem; /* Added more horizontal padding for spacing */
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.modal-body ul li {
    position: relative;
    padding-left: 35px; /* Create space for the custom icon */
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555; /* Slightly softer text color */
}

.modal-body ul li::before {
    content: "\f28a"; /* Bootstrap Icons check-circle-fill */
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 4px;
    color: #6f34fe; /* Use a primary theme color */
    font-size: 1.2rem;
}

/* 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;
}
/* 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%;
}

/* footer section starts */
.footer-section {
  background: #151414;
  position: relative;
}
.footer-content {
  position: relative;
  z-index: 2;
}
.footer-logo a {
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}
.footer-text p {
  margin-bottom: 14px;
  font-size: 14px;
  color: #7e7e7e;
  line-height: 28px;
}
.footer-social-icon span {
  color: #fff;
  display: block;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}
.footer-social-icon a {
  color: #fff;
  font-size: 16px;
  margin-right: 15px;
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
}
.footer-social-icon a.bi-linkedin { background: #0077b5; }
.footer-social-icon a.bi-envelope-fill { background: #dd4b39; }
.footer-social-icon a.bi-instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }

.footer-social-icon a {
  transition: all 0.3s ease-in-out;
}
.footer-social-icon a:hover {
  transform: scale(1.2);
}

.footer-widget-heading h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 40px;
  position: relative;
}
.footer-widget-heading h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  height: 2px;
  width: 50px;
  background: #fca61f;
}
.footer-widget ul li {
  display: inline-block;
  width: 50%;
  margin-bottom: 12px;
}
.footer-widget ul li a:hover{
  color: #fca61f;
}
.footer-widget ul li a {
  color: #878787;
  text-transform: capitalize;
  text-decoration: none;
}
.subscribe-form {
  position: relative;
  overflow: hidden;
}
.subscribe-form input {
  width: 100%;
  padding: 14px 28px;
  background: #2E2E2E;
  border: 1px solid #2E2E2E;
  color: #fff;
}
.subscribe-form button {
    position: absolute;
    right: 0;
    background: #fca61f;
    padding: 13px 20px;
    border: 1px solid #fca61f;
    top: 0;
}
.subscribe-form button i {
  color: #fff;
  font-size: 22px;
  transform: rotate(-6deg);
}
.copyright-area{
  background: #202020;
  padding: 25px 0;
}
.copyright-text p {
  margin: 0;
  font-size: 14px;
  color: #878787;
}
.mb-50 {
    margin-bottom: 50px;
}
.mb-30 {
    margin-bottom: 30px;
}
ul {
    margin: 0px;
    padding: 0px;
}
/* styling back to top button */
#btn-back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    font-size: 1.4rem;
    background-color: #fca61f;
    color: #fff;
    animation: pulse 3s infinite;
}

/* Media Queries for Responsiveness */ 

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .contact-form .form-control {
        width: 100%;
    }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    .home h2 {
        font-size: 2.5rem;
        line-height: 3.5rem;
    }
    .c-orange {
        font-size: 3.5rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {

    .home .text-md-start {
        text-align: center !important;
    }

    .home .col-10.col-md-4 {
        margin-top: 2rem !important;
    }

    .progress-card {
        padding: 15px;
        margin-left: 0 !important;
    }
    .circular-progress {
        height: 110px;
        width: 110px;
    }
    .circular-progress::before {
        height: 100px;
        width: 100px;
    }
    .progress-value {
        font-size: 1.2rem;
    }
    .portfolio-body .post .card {
        cursor: pointer;
    }
    .skill-detail .heading {
        text-align: center;
    }
    .contact-details {
        text-align: center;
    }
    .contact-details .row {
        justify-content: center !important;
    }
    .contact-form {
        text-align: center;
    }
    .footer-widget {
        text-align: center;
    }
    .footer-widget-heading h3::before {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Custom modal styling for mobile to prevent full-screen takeover */
    .modal-dialog {
        margin: 1.75rem;
    }
    .modal-content {
        max-height: 85vh;
    }
}

/* Welcome Modal Styles */
.welcome-modal-content {
    background: #212529; /* Dark background */
    color: #fff;
    border-radius: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.welcome-modal-content .modal-header {
    padding: 1rem 1rem 0 0;
}

.welcome-modal-content .btn-close-white {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.welcome-modal-content .btn-close-white:hover {
    opacity: 1;
    transform: scale(1.1);
}

.welcome-modal-content #timeBasedGreeting {
    font-weight: 700;
    color: #fca61f;
}

.welcome-modal-content .welcome-message {
    font-size: 1.2rem;
}

.welcome-modal-content .blockquote {
    font-size: 1.1rem;
    border-left: 3px solid #fca61f;
    padding-left: 1.5rem;
    text-align: left;
    margin-left: 1rem;
    margin-right: 1rem;
    color: #ccc; /* Lighter grey for quote */
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #fca61f;
    animation: blink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}
