@import url('https://fonts.googleapis.com/css2?family=Poppins:weight@300;400;500;600;700;800;900&display=swap');
@import url(https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css);
@import url(https://fonts.googleapis.com/css?family=Raleway:400,800);

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family:poppins;
}
:root{
    --bg-color: #fdfdfd;
    --text-color: #333;
    --main-color: #754ef9;
    --white-color:#fdfdfd;
    --testimonial-shadow:#B6ADDC;
    --shadow-color:rgba(0,0,0, .2);
}
.dark-mode{
    --bg-color:#0b061f;
    --text-color:#fdfdfd;
    --shadow-color: rgba(0,0,0,.7);
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 7%;
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 100;
    background:var(--main-color);
    transition: .5s;
}
.header.sticky{
    background: var(--bg-color);
    box-shadow: 0.1rem .1rem var(--shadow-color);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    margin-right: auto;
}
.navbar a{
    position: relative;
    font-size: 1.7rem;
    color: white;
    font-weight: 500;
    margin-right: 3.5rem;
}
.header.sticky .navbar a{
    color: var(--text-color);
}
/*.header.sticky .navbar a.active{
    color: var(--main-color);
}*/
/*.navbar a.active::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background-color: var(--white-color);
}*/
.header.sticky .navbar a::before{
    background:var(--main-color);
    opacity: .7;
}
#darkmoon-icon{
    font-size: 2.4rem;
    color: var(--white-color);
    cursor: pointer;
}
.header.sticky #darkmoon-icon{
    color: var(--text-color);
    opacity: .9;
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}
section{
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}
.home{
    display: flex;
    align-items: center;
}
.home .home-content{
    max-width: 44rem;
}
.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: .3rem;
}
.home-content p{
    font-size: 1.6rem;
}
.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;
    transition: 0.5s ease;
}
.social-media a:hover{
    background: var(--main-color);
    color: var(--white-color);
}
.btn{
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background-color: var(--main-color);
    border-radius: .6rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--white-color);
    letter-spacing: .1rem;
    font-weight: 600;
    border: .2rem solid transparent;
    transition: .5s ease;
}
.btn:hover{
    background: transparent;
    color: var(--main-color);
    border-color: blue;
}

.cv{
    display:flex;
}
.cv2{
    margin-left: 5px;
}
.cv h3{
    font-size: 15px;
    padding-bottom: 10px;
}
@media (max-width: 768px) {
    .cv2{
        margin-top: 5px;
    }
}

.home .profession-container {
    position: absolute;
    top: 47%;
    right: 0;
    transform: translateY(-50%);
    width: -webkit-fill-available;
    height: 768px;
    overflow:hidden;
    pointer-events: none;
}
.home .profession-container .professio-box{
    position: absolute;
    top: 0;
    right: 0;
    width: 768px;
    height: 768px;
    border-radius: 50%;
    display:flex;
    justify-content: center;
    align-items: center;
    animation: professionRotate 8s 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 .professio-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;
    background: var(--bg-color);
    padding: 13px 0;
}
.home .professio-box .profession:nth-child(1) i{
    margin-right: 7rem;
}
.home .professio-box .profession:nth-child(2) {
    margin-bottom: 5rem;
}

.home .professio-box .profession:nth-child(4) {
    margin-top: 10rem;
}
.home .profession i{
    font-size: 3.8rem;
}
.home .profession h3{
    font-size: 3.2rem;
    line-height: 1;
    font-weight: 600;
}
.home .professio-box .circle{
    width: 560px;
    height: 560px;
    border: 3px solid var(--main-color);
    border-radius: 50%;
}
.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;
}
.home-img img{
    position:absolute;
    bottom: 11%;
    left: 73%;
    width: 27%;
    pointer-events: none;
    opacity: 80%;
}

.demo{
    display:none;
}
.about-image {
    display:block;
    position:absolute;
    size: 20px;
}
span{
    color: var(--main-color);
}
.about{
    display: center;
    justify-content: center;
    align-items: center;
    gap: 4rem
}
.about-img img{
    widht: 100px;
    height: 100px;
    display: none;
}
.heading{
    font-size: 4.5rem;
    text-align: center;
}
.about-content h2{
    text-align: left;
    line-height: 1.2;
}
.about-content h3{
    font-size: 2rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0;
}
.services{
    min-height: auto;
    padding-bottom: 7rem;
}
.services h2{
    margin-bottom: 5rem;
}
.services .services-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.services-container .services-box{
    flex: 1 1 30rem;
    background: var(--bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    box-shadow: 0.1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .6rem solid var(--main-color);
    border-bottom: .6rem solid var(--main-color);
    transition: .5s ease;
}
.services-container .services-box:hover{
    box-shadow: 0.1rem 2rem var(--shadow-color);
    transform: scale(1.02);
}
.services-box i{
    font-size: 7rem;
    color: var(--main-color);
}
.services-box h3{
    font-size: 2.6rem;
    transition: .5s ease;
}
.services-box:hover h3{
    color: var(--main-color);
}
.services-box p{
    font-size: 1.6rem;
    margin: 1rem 0 3rem;
}
.portfolio{
    padding-bottom: 10rem;
}
.portfolio h2{
    margin-bottom: 4rem;
}
.portfolio .portfolio-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 2.5rem;
}
.portfolio-container .portfolio-box{
    position: relative;
    display: flex;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0 , 0, .1);
}
.portfolio-box img{
    width:100%;
    border-radius: 2rem;
    transition: .5s ease;
}
.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));
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0 4rem;
    opacity: 0;
    transition: .5s ease;
    border-radius: 2rem;
}
.portfolio-box:hover .portfolio-layer{
    opacity: 1;
}
.portfolio-layer h4{
    font-size: 3rem;
}
.portfolio-layer p{
    font-size: 1rem;
    margin: .3rem 0 1rem;
}
.portfolio-layer a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--white-color);
    border-radius: 50%;
}
.portfolio-layer a i{
    font-size: 2rem;
    color:chartreuse
}

/* Gallery desing */




.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 10px; /* Adjust this value for row height */
    gap: 8px;
    padding: 20px;
}

.gallery-item {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.025);
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gallery img:hover {
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.3);
}

.full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.full img {
    max-width: 50%;
    max-height: 50%;
    border-radius: 8px;
}

.no-scroll {
    overflow: hidden;
}  

/* new testonomial  */


/* Base Styles */
.testimonials-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
  }
  
  .testimonials-container {
    display: flex;
    transition: transform 0.5s ease;
    color:#C2B7F1;
  }
  
  figure.snip1157 {
    flex: 0 0 33.33%; /* Each testimonial takes 33.33 width */
    margin: 5%;
    scroll-snap-align: start;
    transform-origin: center;
    font-family: 'Raleway', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    color: #333;
    text-align: left;
    box-shadow: none !important;
  }
  
  figure.snip1157 * {
    box-sizing: border-box;
    transition: all 0.35s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  }
  
  figure.snip1157 img {
    max-width: 100%;
    vertical-align: middle;
    height: 90px;
    width: 90px;
    border-radius: 50%;
    margin: 40px 0 0 10px;
    border: .3rem solid var(--bg-color);
    outline: .3rem solid var(--main-color);
  }
  
  figure.snip1157 blockquote {
    display: block;
    border-radius: 8px;
    position: relative;
    background-color: #C2B7F1;
    padding: 25px 50px 30px 50px;
    font-size: 0.8em;
    font-weight: 500;
    margin: 0;
    line-height: 1.6em;
    font-style: italic;
    border-radius: 2rem;
    border-top-left-radius: 3rem;
    box-shadow: .2rem .1rem .4rem solid var(--testimonial-shadow);
    padding: 3rem 5rem;
    border-top: .8rem solid var(--testimonial-shadow);
  }
  
  figure.snip1157 blockquote:before,
  figure.snip1157 blockquote:after {
    font-family: 'FontAwesome';
    content: "\201C";
    position: absolute;
    font-size: 50px;
    opacity: 0.3;
    font-style: normal;
  }
  
  figure.snip1157 blockquote:before {
    top: 25px;
    left: 20px;
  }
  
  figure.snip1157 blockquote:after {
    content: "\201D";
    right: 20px;
    bottom: 0;
  }
  
  figure.snip1157 .arrow {
    top: 100%;
    width: 0;
    height: 0;
    border-left: 0 solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid #C2B7F1;
    margin: 0;
    position: absolute;
    
  }
  
  figure.snip1157 .author {
    position: absolute;
    bottom: 45px;
    padding: 0 10px 0 120px;
    margin: 0;
    text-transform: uppercase;
    color:#8A76E4;
    transform: translateY(50%);
  }
  
  figure.snip1157 .author h5 {
    opacity: 0.8;
    margin: 0;
    font-weight: 800;
  }
  
  /* Navigation Arrows */
  .carousel-arrows {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
  }
  
  .arrow-btn {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .arrow-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
  }
  
  .arrow-btn[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    figure.snip1157 {
      flex: 0 0 50%; /* Full width on mobile */
    }
  
    .arrow-btn {
      padding: 10px 15px;
      font-size: 1.2rem;
    }
  }

/* testimonial style ended */

.contact h2{
    margin-bottom: 3rem;
}
.contact form{
    max-width: 70rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}
.contact form .input-box{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: .8rem;
    margin: .7rem 0;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
}
.contact form .input-box input{
    width: 49%;
}
.contact form textarea{
    resize: none;
}

/* submittion button */



.contact form .btn{
    margin-top: 2rem;
    cursor: pointer;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background: var(--main-color);
}
.footersocial-media{
    display: flex;
}
.footer-text{
    margin-left: 30%;
}
.footer-text p{
    font-size: 1.6rem;
    color: var(--white-color);
}
.footer-info{
    display:flex;
    padding: 10px;
}
.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8;
    background: var(--white-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}
.footer-iconTop a:hover{
    outline-color: var(--white-color);
}
.footer-iconTop a i{
    font-size: 2.4rem;
    color: #333;
}
/*====break points===*/
@media (max-width: 1200px){
    html{
        font-size: 55%;
    }
    .home .profession-container{
        height: 85.8rem;
    }
    .home .profession-container .portfolio-box{
        right: -12rem;
        height: 85.8rem;
    }
    .home .profession-container .overlay{
        right: -9rem;
    }
}
@media (max-width: 1024px){
    .header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .home .profession-container.portfolio-box{
        right: -22rem;
    }
    .home .profession-container .overlay{
        right: -15rem;
    }
}
@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;
    }
    .home .home-content{
        max-width: 50rem;
    }
    .home .profession-container .professio-box{
        right: -45rem;
    }
    .home .profession-container .overlay{
        right: -35.5rem;
    }
    .home-img img{
        display: none;
    }
    .services,
    .portfolio{
        padding-bottom: 7rem;
    }
    .contact{
        min-height: auto;
    }
    .footer{
        padding: 2rem 3%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Navigation Bar */
    #menu-icon {
      display: block;
      font-size: 3rem;
      color: var(--text-color);
      cursor: pointer;
    }
  
    .navbar {
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem 3%;
      background: var(--bg-color);
      border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
      box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
      display: none;
    }
  
    .navbar.active {
      display: block;
    }
  
    .navbar a {
      display: block;
      font-size: 2rem;
      margin: 2rem 0;
      color: var(--text-color);
    }
  
    .header.sticky .navbar a {
      color: var(--text-color);
    }
  
    /* Home Section */
    @media (max-width: 768px) {
        /* Adjust the home section layout for mobile */
        .home {
          flex-direction: column;
          align-items: center;
          text-align: center;
          padding: 25% 0% 20% 0%; /* Add spacing at the bottom */
        }
      
        /* Move the profession container below the CV button */
        .home .profession-container {
          position: relative;
          top: auto;
          right: auto;
          transform: none;
          width: 100%;
          height: auto;
          overflow: visible;
          pointer-events: auto;
          margin-top: 2rem; /* Add spacing between CV button and professions */
        }
      
        .home .profession-container .professio-box {
          position: relative;
          top: auto;
          right: auto;
          width: 100%;
          height: auto;
          border-radius: 0;
          animation: none; /* Disable the rotation animation on mobile */
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
      
        .home .professio-box .profession {
          position: static;
          transform: none;
          transform-origin: unset;
          margin: 1rem 0; /* Add spacing between professions */
          padding: 10px;
          background: transparent;
        }
      
        .home .professio-box .profession i {
          font-size: 2.5rem; /* Reduce icon size for mobile */
        }
      
        .home .professio-box .profession h3 {
          font-size: 2rem; /* Reduce text size for mobile */
        }
      
        .home .professio-box .circle {
          display: none; /* Hide the circle on mobile */
        }
      
        .home .profession-container .overlay {
          display: none; /* Hide the overlay on mobile */
        }
      
        /* Adjust specific professions for mobile */
        .home .professio-box .profession:nth-child(1) i {
          margin-right: 0; /* Remove margin for mobile */
        }
      
        .home .professio-box .profession:nth-child(2) {
          margin-bottom: 1rem; /* Reduce margin for mobile */
        }
      
        .home .professio-box .profession:nth-child(4) {
          margin-top: 1rem; /* Reduce margin for mobile */
        }
      }

    .demo{
    position:absolute;
    width: 100%;
    }
  
    /* About Section */
    .about {
        display: flex;
      /* flex-direction: column;
      text-align: center; */
    }
  

    .about-img img{

        widht: 300px;
        height: 300px;
        display:flex;
    }

    .dark-mode .about-img{
        opacity: 60%;
    }
    .about-content h2 {
        text-align: center;
    }

    .about-mid{
        display: block;
    }
  
    /* Skills Section */
    .skills ul {
      padding-left: 1rem;
    }
  
    /* Projects Section */
    .portfolio .portfolio-container {
      grid-template-columns: repeat(1, 1fr); /* Single column for mobile */
    }
  
    /* Contact Section */
    .contact form .input-box input {
      width: 100%; /* Full width for inputs on mobile */
    }
  
    /* Footer */
    .footer {
      flex-direction: column;
      text-align: center;
    }
  
    .footer p {
      margin-top: 1rem;
    }
    
  }