*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins' , sans-serif;  
}

:root{
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #754ef9;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

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

.no-scroll {
    overflow: hidden;
    height: 100vh;  /* optional: ensures the page doesn't scroll vertically */
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    transition: .5s;
}

.header .nav-link{
    font-weight: 549;
}
.header.sticky{
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem var(--shadow-color);
}

.header.sticky .navbar a {
    color: var(--text-color);
}

.header.sticky .navbar a.active{
    color: var(--main-color);
}

.header.sticky .navbar a::before {
    background: var(--main-color);
    color: var(--main-color);
    opacity: .7;
}


.header.sticky #darkmode-icon box-icon {
    --box-icon-color: var(--text-color); 
}

.logo{
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--white-color);
    font-weight: 500;
    margin-right: 3.5rem;
    position: relative;
}

.navbar a.active::before{
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background-color: var(--white-color);
    bottom: -6px;
}

#darkmode-icon{
    cursor: pointer;
}

.darkmode{
    --bg-color: #0b061f;
    --text-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .7);
}

#cross-icon{
    padding-bottom: 5px;
    display: none;
}

#menu-icon{
    display: none;
}

.navbar-nav .nav-link {
    font-size: 1.7rem !important;
    color: var(--white-color) !important;
    margin-right: 3.5rem;
    position: relative;
}

section{
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

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

.home .home-content{
    max-width: 40rem;
    /* background: #754ef9; */
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .3;
}

.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    margin-bottom: .4rem;
}

.home-content p{
    font-size: 1.6rem;
    max-width: 44rem;
    text-align: justify;

}

.home-content .social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 2rem;
    color: var(--main-color);
    margin: 2.5rem 1.5rem 3rem 0;
    color: var(--main-color);
    transition: 0.5s ease;
}

.home-content .social-media box-icon {
    fill: var(--main-color);
}
.home-content .social-media a:hover{
    background: var(--main-color);
}

.home-content .social-media a:hover box-icon {
    fill: var(--white-color);
}



.mybtn{
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0.2rem 0.5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
}


.mybtn:hover{
    background-color: var(--white-color);
    color: var(--main-color);
    border-color: var(--main-color);
}

.home .profession-container{
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 768px;
    height: 768px;
    overflow: hidden;
    pointer-events: none;
    /* background: red; */
}

.home .profession-container .profession-box{
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 768px;
    /* background: greenyellow; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: professionrotate 13s ease-out infinite;
    
}

@keyframes professionrotate{
    0%,20%{
        transform: rotate(0deg);
    }
     25%, 45%{
        transform: rotate(-90deg);
    }
     50%, 70%{
        transform: rotate(-180deg);
    }
     75%, 95%{
        transform: rotate(-270deg);
    }
     100%{
        transform: rotate(-360deg);
    }
}

.home .profession-box .profession{
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: var(--main-color);
    transform: rotate(calc(360deg / 4 * var(--i)));
    transform-origin: 384px;
    gap: 2rem;
    background: var(--bg-color);
}


.home .profession box-icon{
    font-size: 2rem;
}

.home .profession box-icon{
    fill: var(--main-color);
}



.home .profession h3 {
    font-size: 2.4rem;  /* Slightly smaller */
    padding: 0 1.5rem;  /* More horizontal padding */
    margin-left: 15px;  /* Push text outward */
}



.home .profession-box .circle {
    width: 480px;  /* Slightly larger */
    height: 480px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
}

/* Transform origin fine-tuning */
/* .home .profession-box .profession {
    transform-origin: 320px;  
} */

.home .profession-box .profession {
    transform-origin: calc(50% + 250px); /* Adjust 250px to match circle radius */
}


.home .profession-container .overlay{
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 384px solid var(--main-color);
    border-right: 384px solid var(--main-color);
    border-bottom: 384px solid var(--main-color);
    border-left: 384px solid transparent;
}

/* about section */

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}
.about-content span{
    color: var(--main-color);
}

.about-img{
    /* border-radius: 50%; */
    max-width: 70rem;
}
.about-img img {
    width: 40vw;
    border-radius: 50%;    
    object-fit: cover;     
    max-width: 300px;      
    max-height: 300px;     
}
/* .about-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90rem;
    text-align: justify;
} */

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Left-align content */
    justify-content: flex-start;
    max-width: 90rem;
    text-align: left;        /* Align text left */
}
.about-content h2 {
    margin-bottom: 2px; 
    text-align: left;
    line-height: 1.2;
    /* width: 70%; */
}

.about-content .heading{
    font-size: 4.5rem;
}
.about-content h3 {
    font-size: 2rem;
}

.about-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 2rem;
    
}

.about-content .mybtn {
    display: inline-block;
    margin-top: 10px;
}

/* Services */

.myservices {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.ServicesHeading{
    text-align: center;
    font-size: 4rem;
    margin-bottom: 8px;
}

.ServicesHeading span{
    color: var(--main-color);
}


.Inner-MyServices{
    max-width: 35rem;
    border-left: 2px solid var(--shadow-color);
    border-right: 2px solid var(--shadow-color);
    border-top: 5px solid var(--main-color);
    border-bottom: 5px solid var(--main-color);
    border-radius: 10px;
    padding: 20px;  /* Adds gap inside the border */
    margin: 10px;   /* Optional: adds space outside the box */
    text-align: center;
    transition: 0.5s;
   
}

.Inner-MyServices:hover{
    cursor: pointer;
    transition: 0.5s;
    opacity: 0.95;
    box-shadow: 0 .1rem 2rem var(--shadow-color);
    transform: scale(1.05);

}
.Inner-MyServices p{
    text-align: justify;
    margin-top: 3px;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.Inner-MyServices h3{
    font-size: 2.6rem;
}

/* portfolio */

.portfolio{
    padding-bottom: 4rem;
}
.myportfolio-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.row.g-4 {
    --bs-gutter-x: 0; /* Remove horizontal gutter */
}

.portfolio-box{
    max-width: 5rem; 
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, .1);
    overflow: hidden;
}

.portfolio-box img{
    width: 100%;
    height: 100%;
    transition: .5s ease;
    object-fit: cover;
}



.mobile1-box {
    max-width: 45rem;
    
}

.mobile1-img {
   max-width: 45rem;
    /* mix-blend-mode: multiply; */
  background: transparent;
}

.portfolio-box img.mobile1-img {
    width: 100%; /* fill container */
    height: auto;
}

.web2-box{
    max-width: 22rem;
}
.web2-img {
    max-width: 22rem; /* increase box width */
     /* mix-blend-mode: multiply; */
  background: transparent;
}
.portfolio-box img.web2-img {
    width: 100%; /* fill container */
    height: 100%;
}



.portfolio-box:hover img{
    transform: scale(1.1);
}

.portfolio-box .portfolio-layer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0, .1), var(--main-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
}

.portfolio-box:hover .portfolio-layer{
    opacity: 1;
    cursor: pointer;
}
.portfolio-layer h4{
    font-size: 3rem;
    color: var(--white-color);
}

.portfolio-layer p{
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: var(--white-color);
}

.portfolio-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}

/* .morePortfolio{
    display: flex;align-items: center;justify-content: center; width: 50px; height:50px;
    border-radius: 50%;
    margin: 30px auto;
    background: var(--main-color);
}

.morePortfolio box-icon {
    width: 24px;
    height: 24px;
}

.morePortfolio:hover {
    cursor: pointer;
    background: var(--white-color);
    transition: .5s ease;
    width: 60px; height:60px;
    border-radius: 50%;
    border: 2px solid var(--main-color);
}

.morePortfolio:hover box-icon {
    fill: var(--main-color); 
    transition: .5s ease;
} */

/* CONTACT */
.contact h2{
    margin-bottom: 3rem;
}

.contact .formdiv{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}


.formdiv .input-box input{
    width: 100%;
    border-radius: 0.8rem;
    padding: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0.7rem 0;
    box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
}

.formdiv textarea{
    width: 100%;
    border-radius: 0.8rem;
    padding: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0.7rem 0;
    box-shadow: 0 0.1rem 0.5rem var(--shadow-color);
    resize: none;
}

.formdiv .mybtn{
    margin-top: 10px;
}

/* footer */

.footer{
    display: flex;
}
.footer .footer-text{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    height: 50px;
    width: 100%;
}

.footer-text p{
    font-size: 1.6rem;
    color: var(--white-color);
}

.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--main-color);
    color: var(--white-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .2);
    text-align: center;
    display: none;
    z-index: 9999;
    width: 80%;
    max-width: 400px;
}

.custom-alert p {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.custom-alert button {
    background: var(--white-color);
    color: var(--main-color);
    padding: .8rem 1.6rem;
    border: none;
    border-radius: 5px;
    font-size: 1.4rem;
    cursor: pointer;
}
.custom-alert button:hover {
    background: #eee;
}

@media(min-width: 1412px){
.mobile1-box{
    max-width: 65rem;
}
.mobile1-img {
    max-width: 65rem; 
}
.portfolio-box img.mobile1-imgg {
    width: 100%; 
    height: 100%;
}
}

@media(max-width: 1260px){
    html{
        font-size: 55%;
    }

    .home .profession-container{
        height: 85.8rem;
    }

    .home .profession-box{
        right: -15rem;
        height: 85.8rem;
    }

    .home .overlay{
        right: -9rem;
    }
}

@media(max-width: 1207px){
    html{
        font-size: 55%;
    }

    .home .profession-container{
        height: 85.8rem;
        right: -13rem;
    }

    .home .profession-box{
        right: -15rem;
        height: 85.8rem;
    }

    .home .overlay{
        right: -9rem;
    }
}


@media(max-width: 1082px){
    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3% 2rem;
    }

    .home .profession-container{
        right: -12rem;
    }

    .home .profession-box{
        right: -22rem;
    }

    .home .overlay{
        right: -50rem;
    }
}

@media(max-width: 1055px){
    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3% 2rem;
    }

    .home .profession-container{
        right: -20rem;
    }

    .home .profession-box{
        right: -22rem;
    }

    .home .overlay{
        right: -50rem;
    }
}
@media (max-width: 991px) {  
    .navbar a:nth-child(1),
    .navbar a:nth-child(2){
        color: var(--main-color);
    }

    .navbar a.active::before{
        background: var(--main-color);
        opacity: .7;
    }

    .header{
        padding: 2rem 3%;
    }

    section{
        padding: 10rem 3% 2rem;
    }

    .home .profession-container{
        right: -43rem;
    }

    .home .profession-box{
        right: -22rem;
    }

    .home .overlay{
        right: -50rem;
    }

}

@media(max-width: 768px){
    .header #menu-icon{
        display: block;
        font-size: 3rem;
        color: var(--text-color);
        margin-bottom: .1rem;
    }

    #darkmode-icon{
        position: absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
    }

    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, .2);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .1);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }
    .navbar a:nth-child(1),
    .navbar a:nth-child(2){
        color: var(--text-color);
    }

    .navbar a.active {
        color: var(--main-color);
    }

    .navbar a::before{
        display: none;
    }

    .home{
    padding: 0 3% 23rem;
    justify-content: center;
    text-align: center;
   }

   .home-content h3{
    font-size: 2.6rem;
   }
   
   .home-content h1{
    font-size: 5rem;
   } 

   .home-content .social-media a{
    margin: 2.5rem .75rem 3rem;
   }

 
   .home .profession-container{
    left: 0;
    width: 100%;
    height: 100%;
   }

   .home .profession-container .profession-box{
    position: fixed;
    top: 60%;
    left: 0;
    border-radius: 0;
    width: 100%;
   }

   .home .profession-box .profession{
    padding: 0 13px;
    left: auto;
    transform-origin: 0;
   }

   .home .profession-box .profession:nth-child(1){
    transform: rotate(-90deg) translate(-120px, -190px);
   }

   .home .profession-box .profession:nth-child(1) i {
    margin-right: 0;
    }

    .home .profession-box .profession:nth-child(2){
    transform: rotate(0deg) translate(0, -335px);
   }

   .home .profession-box .profession:nth-child(3){
    transform: rotate(-270deg) translate(-115px, -450px);
   }

   .home .profession-box .profession:nth-child(4){
    transform: rotate(180deg) translate(-250px, -335px);
   }

   .home .profession-box .circle{
    position: fixed;
    width: 670px;
    height: 670px;
    z-index: -1;
   }

  .home .profession-container .overlay {
    transform: rotate(90deg) translate(-50%, 50%) scaleY(3);
    position: fixed;
    top: 70rem;
    left: 50%;
    right: 0;
    border-width: 23.9rem;
  } 

  .about{
    flex-direction: column;
    text-align: center;
  }

  .about-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* max-width: 90rem; */
    text-align: justify;
}

  .about-content h2{
    text-align: center;
    padding-bottom: 6px;
  }

  .about-content h3{
    text-align: center;
    font-size: 1.8rem;
    padding-bottom: 30px;
  }

  .about-content p{
    padding-bottom: 30px;
  }

  .about-img img{
    width: 70vw;
    margin-top: -2rem;
  }
}

@media (min-height: 750px) and (max-width: 768px) {

    .home .profession-container {
        height: 80%; 
    }

    .home .profession-container .overlay {
        top: 73rem; 
        transform: rotate(90deg) translate(-50%, 50%) scaleY(2.4);
        border-width: 20rem; 
    }

    .home .profession-container .profession-box {
        top: 50%; 
    }

    .home .profession-box .circle {
        width: 688px;
        height: 688px;
    }

    .home .profession-box .profession:nth-child(1) {
    transform: rotate(-90deg) translate(-150px, -190px);
}

.home .profession-box .profession:nth-child(3){
    transform: rotate(-270deg) translate(-135px, -460px);
   }



   .web2-box{
    max-width: 45rem;
}
.web2-img {
    max-width: 45rem; /* increase box width */
}
.portfolio-box img.web2-img {
    width: 100%; /* fill container */
    height: 100%;
}





}

@media (min-width: 770px) and (min-height: 770px){
    .header {
        background: var(--bg-color);
        box-shadow: 0 .1rem 1rem var(--shadow-color);
    }
    .header .navbar a {
        color: var(--text-color);
    }
    .header .navbar a.active {
        color: var(--main-color);
    }
    .header .navbar a::before {
        background: var(--main-color);
        color: var(--main-color);
        opacity: .7;
    }

    .web2-box{
    max-width: 45rem;
}
.web2-img {
    max-width: 45rem; 
}
.portfolio-box img.web2-img {
    width: 100%; 
    height: 100%;
}

}
