/* Base styles to prevent horizontal scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px; /* This matches the navbar height */
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* appling google font over the website  */
body{
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    position: relative;
    padding-top: 76px;
}

/* Container styles to prevent overflow */
.container-fluid {
    width: 100%;
    max-width: 100vw;
    padding-left: 15px;
    padding-right: 15px;
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
}

/* Ensure all rows don't cause overflow */
.row {
    margin-left: 0;
    margin-right: 0;
}

/* Ensure all sections stay within viewport */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding-top: 76px;  /* Add padding to all sections */
    margin-top: -76px;  /* Offset the padding */
}

@media screen and (max-width: 768px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* 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: 76px 0px 10px 0px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: -76px;
}

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

@media screen and (max-width: 768px) {
    .home {
        padding-top: 20px;
        margin-top: 0;
    }
    
    body {
        padding-top: 56px;  /* Reduced padding for mobile */
    }
    
    html {
        scroll-padding-top: 56px;  /* Adjusted scroll padding for mobile */
    }
    
    section {
        padding-top: 56px;
        margin-top: -56px;
    }
    
    .home h2 {
        font-size: 2.5rem;
        line-height: 3.2rem;
        text-align: center;
    }

    .c-orange {
        font-size: 3rem;
    }

    .home p {
        font-size: 1.1rem;
        margin: 1rem auto;
        text-align: center;
    }

    .home .row {
        align-items: center;
        justify-content: center;
    }

    .home .col-12 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
}

.mobile-banner-container {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(33deg, rgba(242,242,255,1) 0%, rgba(235,249,255,1) 100%);
}

/* adding animation to home section image  */
.desktop-banner {
    animation: floatimg 4s ease-in-out infinite;
}

.mobile-banner-container {
    text-align: center;
    padding: 1rem 0;
    background: linear-gradient(33deg, rgba(242,242,255,1) 0%, rgba(235,249,255,1) 100%);
}

.mobile-banner {
    max-width: 70%;
    margin: 0 auto;
    animation: none;
}

@keyframes floatimg {
    0%{
        transform: translateX(0);
    }
    50%{
        transform: translateX(-24px);
    }
    100%{
        transform: translateX(0);
    }
}

/* expertise section starts */
.expertise {
    padding: 4rem 0;
    background: linear-gradient(33deg, rgba(242,242,255,1) 0%, rgba(235,249,255,1) 100%);
}

.expertise .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

.expertise .heading {
    text-align: center;
    margin-bottom: 2rem;
}

.expertise .heading small {
    color: #6f34fe;
    font-size: 1.5rem;
    font-weight: 600;
}

.expertise .heading h3 {
    color: #3f396d;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.expertise .service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.expertise .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.expertise .service-card .img {
    margin-bottom: 1.5rem;
}

.expertise .service-card .img img {
    transition: transform 0.3s ease;
    max-width: 25%;
    height: auto;
}

.expertise .service-card:hover .img img {
    transform: scale(1.1);
}

.expertise .service-card h4 {
    color: #3f396d;
    margin-bottom: 1rem;
    font-weight: 600;
}

.expertise .service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.expertise .service-card .link {
    color: #6f34fe;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.expertise .service-card .link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #6f34fe, #fca61f);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.expertise .service-card:hover .link {
    color: #fca61f;
}

.expertise .service-card:hover .link::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media screen and (max-width: 768px) {
    .expertise {
        padding: 3rem 0;
    }
    
    .expertise .heading small {
        font-size: 1.25rem;
    }
    
    .expertise .heading h3 {
        font-size: 2rem;
    }
    
    .expertise .col-10.col-md-4 {
        margin-bottom: 2rem;
    }
    
    .expertise .service-card {
        padding: 1.5rem;
    }
}

.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;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.expertise .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.expertise .img img {
    transition: transform 0.3s ease;
}

.expertise .service-card:hover .img img {
    transform: scale(1.1);
}

.expertise .link {
    position: relative;
    color: #6f34fe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.expertise .link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #6f34fe, #fca61f);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.expertise .service-card:hover .link {
    color: #fca61f;
}

.expertise .service-card:hover .link::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media screen and (max-width: 768px) {
    .expertise {
        padding: 1rem 0;
    }
    
    .expertise .col-10.col-md-4 {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* Keep all animations same as desktop */
    .expertise .service-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        will-change: transform;
        touch-action: manipulation;
    }

    .expertise .service-card:hover,
    .expertise .service-card:active {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .expertise .service-card:hover .img img,
    .expertise .service-card:active .img img {
        transform: scale(1.1);
    }

    .expertise .service-card:hover .link,
    .expertise .service-card:active .link {
        color: #fca61f;
    }

    .expertise .service-card:hover .link::after,
    .expertise .service-card:active .link::after {
        transform: scaleX(1);
        transform-origin: left;
    }
}

@media screen and (max-width: 768px) {
    .expertise {
        padding: 1rem 0;
    }

    .expertise .heading {
        margin-bottom: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
    }

    .expertise .heading.aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

    .expertise .col-10 {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .expertise .col-10.aos-animate {
        opacity: 1;
        transform: translateY(0);
    }

    .expertise .img {
        opacity: 0;
        transform: scale(0.8);
        transition: all 0.5s ease;
    }

    .expertise .img.aos-animate {
        opacity: 1;
        transform: scale(1);
    }
}

@media screen and (max-width: 768px) {
    .expertise {
        padding: 1rem 0;
    }

    .expertise .heading {
        margin-bottom: 1.5rem;
    }

    .expertise .heading h3 {
        font-size: 1.8rem;
        margin-top: 0.5rem;
    }

    .expertise .row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin: 0;
        padding: 0 1rem;
    }

    .expertise .col-10 {
        width: 100%;
        max-width: 350px;
        padding: 0;
        margin: 0 0 1rem;
    }

    .expertise .service-card {
        margin: 0;
        padding: 1.2rem;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        transition: transform 0.3s ease;
        background: #fff;
    }

    .expertise .service-card .img {
        margin-bottom: 0.8rem;
    }

    .expertise .service-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
        color: #3f396d;
    }

    .expertise .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
        color: #666;
    }

    .expertise .service-card:hover {
        transform: translateY(-3px);
    }
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .expertise .heading h3 {
        font-size: 1.6rem;
    }

    .expertise .col-10 {
        max-width: 300px;
    }

    .expertise .service-card {
        padding: 1rem;
    }

    .expertise .service-card h4 {
        font-size: 1rem;
    }

    .expertise .service-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
}

@media (max-width: 768px) {
  #service .heading h3 {
    font-size: 1.5rem;
  }

  #service .heading small {
    font-size: 0.9rem;
  }

  #service p {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }

  #service .card img {
    width: 100%;
    height: auto;
    min-height: 300px;
    object-fit: cover;
  }

  #service .card {
    margin-bottom: 15px;
  }

  #service .row {
    gap: 10px;
  }

  #service .col-md-4 {
    padding: 0 10px;
  }
}

/* skill section starts */
.skill{
    background-color: rgb(234, 234, 249);
}
.skill-with-progress {
    width: 100%;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

.progress-card {
    width: 100%;
    padding: 15px;
    background-color: #fff;
    text-align: center;
    border-radius: 10%;
    margin: 0;
    opacity: 0;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-card:nth-child(1) {
    animation: slideFromLeft 0.8s ease-out forwards;
}

.progress-card:nth-child(2) {
    animation: slideFromTop 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.progress-card:nth-child(3) {
    animation: slideFromBottom 0.8s ease-out forwards;
    animation-delay: 0.4s;
}

.progress-card:nth-child(4) {
    animation: slideFromRight 0.8s ease-out forwards;
    animation-delay: 0.6s;
}

.progress-card:hover {
    transform: scale(1.1);
    transition: transform 0.6s ease;
}

.progress-card {
    transition: transform 0.6s ease;
}

@media screen and (max-width: 768px) {
    .progress-card {
        animation-duration: 0.6s;
    }
}

.circular-progress {
    position: relative;
    height: 120px;
    width: 120px;
    border-radius: 50%;
    background: conic-gradient(#7d2ae8 3.6deg, #ededed 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.circular-progress::before {
    content: "";
    position: absolute;
    height: 110px;
    width: 110px;
    border-radius: 50%;
    background-color: #fff;
}

.progress-value {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
}

.text {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.8rem;
    text-align: center;
}

.skill-detail {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.skill-detail .heading {
    margin-top: 3rem;
}

.skill-detail .heading h3 {
    font-size: 2rem;
    margin: 1rem 0;
}

.skill-detail .heading p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.skill-detail .c-btn {
  margin-bottom: 20px;
}

.skill-detail .read-more-btn {
  display: none; /* Hide by default */
}

@media (max-width: 768px) {
  .skill-detail .read-more-btn {
    display: inline-block;
    color: #007bff;
    padding: 0;
    border: none;
    background: none;
    text-decoration: none;
    cursor: pointer;
    margin: 10px 0;
  }

  .skill-detail .read-more-btn:hover {
    color: #0056b3;
    text-decoration: underline;
  }

  .skill-detail .expanded-text {
    margin-bottom: 15px;
  }

  .skill-detail .c-btn {
    margin-top: 5px;
  }
}

@media (max-width: 768px) {
  .row {
    display: flex;
    flex-direction: column;
  }

  .skill-with-progress {
    order: -1;
  }

  .skill-detail {
    order: 0;
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .skills-grid {
        gap: 15px;
        padding: 0 15px;
    }

    .progress-card {
        padding: 10px;
    }

    .circular-progress {
        height: 100px;
        width: 100px;
    }

    .circular-progress::before {
        height: 90px;
        width: 90px;
    }

    .progress-value {
        font-size: 1rem;
    }

    .text {
        font-size: 0.9rem;
        margin-top: 0.5rem;
    }

    .skill-detail .heading h3 {
        font-size: 1.5rem;
    }

    .skill-detail .heading p {
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .skills-grid {
        gap: 10px;
    }

    .circular-progress {
        height: 90px;
        width: 90px;
    }

    .circular-progress::before {
        height: 80px;
        width: 80px;
    }

    .text {
        font-size: 0.8rem;
    }
}

/* 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 .content h4{
    font-size: 1rem;
    font-weight: 700;
}
.post .card{
    border: none;
}

/* 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;
}

@media screen and (max-width: 768px) {
    .testimonial {
        padding: 1rem;
    }
    .testimonial .row {
        flex-direction: column;
        align-items: center;
    }
    .testimonial .col-md-4, .testimonial .col-md-6 {
        width: 100%;
        max-width: 350px;
        margin-bottom: 1rem;
    }
    .testimonial .heading h3 {
        font-size: 1.5rem;
    }
    .testimonial .carousel-item {
        padding: 1rem;
    }
}

/* 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: #fca61f;
}
.modal-body .content span{
    font-size: 1rem;
}
.modal-body .content small{
    font-size: 1rem;
    color: #6f34fe;
}
/* contact section starts */
.contact{
    background-color: #f8f9fa;
    padding: 50px 0;
}
.contact-details {
    text-align: left;
}
.map-container iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.row {
    display: flex;
    flex-wrap: nowrap;
}
.contact {
    background-color: #f8f9fa;
    padding: 50px 0;
}
.contact-details {
    text-align: left;
    padding-right: 20px;
    margin-left: 10px;
}
.map-container iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}
.separator {
    width: 2px;
    height: 100%;
    background-color: #ddd;
    margin: 0 auto;
}
.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.contact {
    background-color: #f8f9fa;
    padding: 50px 0;
}
.contact-details {
    text-align: center;
    padding-right: 20px;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-details .row i {
    font-size: 1.5rem;
    color: #ff8c00;
}
.map-container iframe {
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}
.separator {
    width: 2px;
    height: 400px;
    background-color: #ddd;
    margin: auto 0;
}
.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
}

@media screen and (max-width: 768px) {
    .contact {
        padding: 1rem;
    }
    .contact .row {
        flex-direction: column;
        align-items: center;
    }
    .contact .col-md-5, .contact .col-10 {
        width: 100%;
        max-width: 350px;
        margin-bottom: 1rem;
    }
    .contact .contact-details {
        text-align: center;
    }
    .contact .row.mb-3 {
        margin-bottom: 1rem;
    }
}

/* footer section starts */
footer{
    background-color: #211e39;
}

footer .link-group a{
    margin-left: 10px;
    margin-right: 10px;
    text-decoration: none;
    color: #6c757d;
    font-size: 1.1rem;
    margin-top: 1rem;
}
footer .link-group a:hover{
    color: #fca61f;
}
.social-links button{
    border: none;
    margin-right: 1rem;
    font-size: 1.2rem;
    background-color: #fff;
    padding: 14px 15px 10px 15px;
}
.social-links .dribble{
    color: #f33a7e;
    border: none;
}
.social-links button:hover{
    color: #fff;
    transform: translateY(-20px);
    transition-duration: 1s;
}
.social-links .dribble:hover{
    background-color: #f33a7e;
}
.social-links .whatsapp{
    color: #25D366;
}
.social-links .whatsapp:hover{
    background-color: #25D366;
}
.social-links .linkedin{
    color: #041c63;
}
.social-links .linkedin:hover{
    background-color: #042177;
}
.social-links .instagram{
    color: #e20d91;
}
.social-links .instagram:hover{
    background-color: #a00786;
}
/* 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;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .home {
        background: none;
    }

    .mobile-banner-container {
        margin-bottom: 1rem;
    }

    .home h2 {
        font-size: 2rem;
        line-height: 2.5rem;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .c-orange {
        font-size: 2.2rem;
    }
    
    .home p {
        font-size: 1rem;
        text-align: center;
        width: 100%;
    }

    .mobile-text .mobile-text-expand {
        display: none;
    }

    .mobile-text.expanded .mobile-text-expand {
        display: inline;
    }

    .read-more-link {
        color: #fca61f;
        text-decoration: none;
        font-weight: 500;
    }

    .read-more-link:hover {
        color: #6f34fe;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .mobile-hire-btn {
        width: 80%;
        max-width: 200px;
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem !important;
    }
    
    .heading h3 {
        font-size: 1.8rem;
    }
    
    .heading small {
        font-size: 1.2rem;
    }
    
    .expertise .service-card {
        margin-bottom: 2rem;
    }
    
    .progress-card {
        margin-bottom: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav a:after {
        top: 25px;
    }
    
    .c-btn {
        font-size: 1rem;
        padding: 0.5rem 1.5rem !important;
    }
    
    .skill-with-progress {
        margin-bottom: 2rem;
    }
    
    .circular-progress {
        height: 100px;
        width: 100px;
    }
    
    .circular-progress::before {
        height: 90px;
        width: 90px;
    }
    
    .progress-value {
        font-size: 1.2rem;
    }
    
    .text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .mobile-banner {
        max-width: 85%;
    }

    .mobile-banner-container {
        padding: 0.5rem 0;
    }
    
    .home h2 {
        font-size: 1.8rem;
        line-height: 2.2rem;
    }
    
    .c-orange {
        font-size: 2rem;
    }
    
    .mobile-hire-btn {
        width: 90%;
        font-size: 1rem;
    }

    .home p {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .expertise .service-card {
        padding: 10px;
    }
}

.text-content {
    margin-bottom: 1.5rem;
}

/* Desktop full text */
.full-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 1rem 0;
}

/* Mobile content */
.mobile-content {
    text-align: center;
    margin: 1rem 0;
}

.initial-text, .expanded-text {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.read-more-btn {
    background: none;
    border: none;
    color: #fca61f;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0.5rem auto;
    cursor: pointer;
    transition: color 0.3s ease;
    display: block;
}

.read-more-btn:hover {
    color: #6f34fe;
}

@media screen and (max-width: 768px) {
    .mobile-content {
        padding: 0 1rem;
    }

    .expanded-text.show {
        display: block !important;
        animation: fadeIn 0.5s ease;
    }
}

@media screen and (max-width: 480px) {
    .mobile-content {
        padding: 0 0.5rem;
    }

    .initial-text, .expanded-text {
        font-size: 0.95rem;
    }

    .read-more-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}   .mobile-content {
        padding: 0 0.5rem;
    }

    .initial-text, .expanded-text {
        font-size: 0.95rem;
    }

    .read-more-btn {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 576px) {
  .portfolio-body .row {
    flex-direction: column;
    align-items: center;
  }
  .portfolio-body .post {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
    .home .row {
        flex-direction: column-reverse;
        align-items: center;
    }
    .home .col-12 {
        margin-bottom: 1rem;
    }
}

.navbar-brand img {
    border-radius: 50%;
    height: 50px;
    width: 50px;
    object-fit: cover;
    vertical-align: middle;
}

@media screen and (max-width: 768px) {
    #navbarNav {
        position: fixed;
        top: 60px; /* Adjust based on the height of the navbar */
        width: 100%;
        background-color: white;
        z-index: 1000;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .navbar-collapse.collapse.show {
        display: block !important;
    }
}

@media screen and (max-width: 768px) {
    #navbar-top {
        padding: 0.5rem 1rem;
        height: 65px; /* Further adjust based on the desired gap below the logo */
        display: flex;
        align-items: center;
    }
    .navbar-nav .nav-link {
        padding: 0;
        font-size: 0.9rem;
    }
}

.mobile-contact-btn {
    display: none;
    background: #fca61f;
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-contact-btn:hover,
.mobile-contact-btn:focus {
    background: #6f34fe;
    color: #fff;
    transform: translateY(-2px);
}

.mobile-contact-btn i {
    margin-right: 0;
}

@media screen and (max-width: 991px) {
    .mobile-contact-btn {
        display: flex;
        align-items: center;
        margin-right: 10px;
    }
    
    .navbar > .container-fluid {
        justify-content: space-between;
    }
}

#navbar-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media screen and (max-width: 991px) {
    #navbar-top {
        padding: 0.75rem 0;
    }
    
    body {
        padding-top: 65px;
    }
    
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin: 0 -15px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}