/* color palette  */
:root {
    --color-one: #161616;
    --color-two: #fff;
    --color-three: #8d51ff;
    --color-four: #fd5759;
    --color-five: #c654ac;
    --color-six: #d7d8db;
    --color-gradient: linear-gradient(270deg, rgba(141,81,255,1) 0%, rgba(253,87,89,1) 100%);
    --font-one: "Poppins", sans-serif;
    --font-two: "Manrope", sans-serif;
}


/* common  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}
body {
    scroll-behavior: smooth;
}


p, li, a, h5, h6 {
    line-height: 1.5;
    font-family: var(--font-two);
}
h1, h2, h3, h4 {
    line-height: 1.5;
    font-family: var(--font-one);
}
a {
    text-decoration: none;
}
li {
    list-style: none;
}
p, a, li, h5, h6 {
    color: var(--color-one);
}

.btn-1 a, .btn-2 a {
    background: var(--color-gradient);
    color: var(--color-two);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.5s linear;
}
.btn-1 a:hover {
    transition: all 0.5s linear;
    background: linear-gradient(270deg, rgba(141,81,255,1) 0%, rgba(253,87,89,1) 0%);
}
.btn-1,.btn-2 {
    margin-top: 10px;
}
.img-cd img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
section {
    padding: 100px 0;
    overflow: hidden;
}
.section-title h4 {
    color: var(--color-three);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}
.section-title h2 {
    color: var(--color-one);
    font-size: 45px;
    text-transform: capitalize;
    font-weight: 600;
}
.section-title {
    padding-bottom: 25px;
}


/* navigation  */
.sticky-header {
    transition: box-shadow 0.3s ease; 
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
}
.site-logo {
   height: 50px;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
nav {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    transition: all 0.5s linear;
}
.sticky nav {
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 4px;
    background-color: var(--color-two);
    transition: all 0.5s linear;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
}
nav ul li a {
    position: relative;
    color: var(--color-one);
    padding: 3px;
    font-weight: 700;
    transition: all 0.3s linear;
}
nav ul li a.active {
    color: var(--color-three);
}
nav ul li a:hover {
    color: var(--color-three);
    transition: all 0.3s linear;
} 
nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white; /* Adjust as needed */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a shadow */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 200px; /* Adjust as needed */
    z-index: 1000;
}
nav ul li ul.sub-menu li a {
    padding: 10px;
}
nav ul li.has-submenu:hover ul.sub-menu {
    display: block;
}
span.dropdown-icon svg {
    width: 10px;
}
span.dropdown-icon {
    position: relative;
    top: 2px;
}


@media (max-width: 850px) {
    .menu-toggle {
        display: block;
    }
    .menu-toggle .burger-icon {
        display: block;
    }
    .menu-toggle .burger-icon svg, .menu-toggle .close-icon svg {
        width: 30px;
        fill: var(--color-one);
    }
    .menu-toggle .close-icon {
        display: none;
    }
    .menu-toggle.active-menu-toggle .burger-icon {
        display: none;
    }
    .menu-toggle.active-menu-toggle .close-icon {
        display: block;
    }
    nav ul {
        gap: 0;
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white; /* Adjust as needed */
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Optional: adds a shadow */
    }
    nav ul.nav-menu {
        display: none;
    }
    nav ul li {
        padding: 10px 15px;
    }
    nav ul li ul.sub-menu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        width: 100%;
    }
    nav ul li.has-submenu:hover ul.sub-menu {
        display: none;
    }
    nav ul li.has-submenu ul.sub-menu.active-submenu {
        display: block;
        padding-left: 15px;
    }
    nav ul li.has-submenu .sub-menu-toggle {
        display: block;
        cursor: pointer;
    }
    .nav-menu.active {
        display: flex;
        padding: 25px 15px;
        background: var(--color-two);
    }
    li.has-submenu {
        position: relative;
    }
    span.dropdown-icon {
        position: absolute;
        right: 25px;
        top: 2px;
    }
}


/* hero  */
.hero-section {
    padding: 90px 0 0;
    position: relative;
}
.hero-content {
    padding: 130px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.hero-left, .hero-right {
    width: 50%;
}
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.hero-content h1 {
    color: var(--color-one);
    font-size: 45px;
    line-height: 1.2;
}
.hero-content p {
    color: var(--color-one);
    font-size: 18px;
    width: 90%;
}


/* achievment  */
.achievment-section {
    padding: 40px 0 120px 0;
    background: var(--color-gradient);
    position: relative;
    z-index: 10;
}
.achievment-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 30px;
    border-radius: 4px;
}
.counter {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.counter h5 {
    font-size: 45px;
    color: var(--color-two);
    font-weight: 700;
}
.counter p {
    font-size: 18px;
    color: var(--color-two);
    font-weight: 500;
}


/* service  */
.service-section {
    padding: 0 0 40px;
    position: relative;
    z-index: 100;
    margin-top: -80px;
}
.service-section .section-title {
    text-align: center;
}
.service-content {
    padding: 60px 30px;
    background: var(--color-two);
    border-radius: 4px;
    box-shadow: 0 5px 50px rgba(156, 185, 226, 0.2);
}
.service-content p {
    text-align: center;
    width: 80%;
    margin: 0 auto;
}
.service-card-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 80%;
    margin: 0 auto;
    padding-top: 50px;
}
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 25px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s linear;
}
.service-card h3 {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}
.service-card:hover {
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1);
}


/* about  */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-left, .about-right {
    width: 50%;
}

.value-content {
    display: flex;
    gap: 30px;
}
.value-left, .value-right {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.value-right {
    margin-top: 50px;
}
.value-card {
    background: var(--color-three);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 20px 0 rgba(16, 66, 97, .07);
    animation: animation-1 5s ease-out infinite;
}
.value-card h3, .value-card p {
    color: var(--color-one);
}
.value-card h3 {
    font-size: 20px;
    font-weight: 500;
}
.value-card.first {
    background: #dbccf8;
}
.value-card.fourth {
    background: #f7c2c3;
}
.value-card.third {
    background: #facef0;
}
.value-card.second {
    background: #eec0f7;
}

@keyframes animation-1 {
    50% {
        transform: translate(0, 20px);
    }
}


/* portfolio  */
.portfolio-section {
    background: #f2eff8;
}
.portfolio-section .section-title {
    text-align: center;
}
.portfolio-section p {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}
.portfolio-slider {
    margin-top: 80px;
}
.portfolio-card {
    background: var(--color-two);
    border-radius: 4px;
    box-shadow: 0 8px 20px 0 rgba(16, 66, 97, .07);
}
.portfolio-card img {
    border-radius: 4px 4px 0 0;
}
.portfolio-txt {
    padding: 25px;
    text-align: center;
}
.portfolio-txt h3 {
    font-weight: 500;
    font-size: 20px;
    padding-bottom: 10px;
}
.portfolio-txt p {
    color: var(--color-four);
}
.portfolio-slider .splide__arrow {
    transform: unset;
    top: -35px;
    background: transparent;
}
.portfolio-slider .splide__arrow svg {
    fill: var(--color-four);
}
.portfolio-slider .splide__arrow--prev {
    left: unset;
    right: 40px;
}
.portfolio-card:hover h3 {
    color: var(--color-four);
    transition: all 0.3s linear;
}


/* partners  */
.partner-section .section-title {
    text-align: center;
}
.partner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding-top: 50px;
}
.partner img {
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    cursor: pointer;
}
.partner img:hover {
    filter: grayscale(0);
    transition: all 0.3s linear;
}


/* footer  */
footer {
    background: var(--color-gradient);
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding: 60px 0;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-logo img {
    max-width: 150px;
}
.logo-p {
    width: 95%;
    padding-top: 10px;
}
.footer-links h5 {
    font-size: 18px;
    color: var(--color-two);
}
.footer-links a, .footer-links p, .footer-links i {
    color: var(--color-two);
    font-size: 16px;
    transition: all 0.3s linear;
}
.footer-links i {
    padding-right: 10px;
    width: 30px;
}
.footer-links.cm a:hover {
    transform: translateX(5px);
    transition: all 0.3s linear;
}
.social-links {
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.social-links span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-two);
    display: flex;
    justify-content: center;
    align-items: center;
}
.social-links i {
    padding: 0;
    width: max-content;
    font-size: 14px;
    color: var(--color-two);
}
.social-links span:hover {
    transform: rotate(360deg) translateX(0) !important;
    transition: all 0.3s linear;
}
.social-links span:hover i {
    transition: all 0.3s linear;
}
.copyright {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #ffffff;
    font-size: 14px;
}
.copyright p, .copyright a {
    color: var(--color-two);
}




/* ##########################   Contact  Page  ############################  */

.page-top-section {
    padding: 0;
    margin-top: 90px;
    background: var(--color-gradient);
    position: relative;
    height: 400px;
}
.banner-overlay {
    position: absolute;
    width: 100%;
    left: 0;
    right: 0;
    bottom: -6px;
}
.page-title {
    display: flex;
    align-items: center;
    color: var(--color-two);
    z-index: 100;
    font-size: 50px;
    position: relative;
    padding-top: 120px;
}

.contact-pg-content {
    display: flex;
    gap: 60px;
    padding: 35px;
    margin-top: 50px;
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.contact-left, .contact-right {
    width: 50%;
}
.contact-left .section-title h2 {
    font-size: 35px;
}
.contact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.contact-line {
    flex: 1;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    border-radius: 4px;
}
.contact-line:hover {
    box-shadow: 0 0.125rem 0.375rem rgba(230, 141, 246, 0.05), 0 0.5rem 1.2rem rgba(230, 141, 246, 0.2);
}
.contact-line span {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--color-three);
}
.contact-line i {
    font-size: 20px;
    color: var(--color-two);
}
.contact-line h6 {
    font-size: 22px;
}
.contact-line a, .contact-line p {
    font-size: 18px;
}
.contact-line a:hover {
    color: var(--color-three);
    transition: all 0.3s linear;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
#contactForm input, #contactForm  textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    color: var(--color-one);
    border: none;
    resize: none;
    outline: none;
    background: #f2eff8;
    border-radius: 4px;
}
#contactForm input::placeholder, #contactForm textarea::placeholder {
    color: var(--color-one);
    font-family: var(--font-two);
}
#contactForm .form-group-outer {
    display: flex;
    gap: 15px;
}
#contactForm .form-group-outer .form-group {
    width: 50%;
}
#contactForm .form-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
#contactForm .form-group-grid .controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: start;
}
#contactForm .form-group-grid input {
    width: max-content;
}
.contact-right h3, .contact-right h2 {
    color: #333;
    font-size: 14px;
    font-family: var(--font-two);
    font-weight: 400;
}
.contact-right h2  {
    padding-bottom: 20px;
    font-size: 18px;
}
#submit {
    background: var(--color-gradient);
    border:none;
    color: var(--color-two);
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    text-transform: capitalize;
    width: max-content;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}
#submit:hover {
    background: linear-gradient(270deg, rgba(141,81,255,1) 0%, rgba(253,87,89,1) 0%);
    transition: all 0.3s linear;
}
#msgSubmit {
    font-family: var(--font-two);
}

.text-danger {
     color: var(--color-four);
}

.text-success {
    color: green;
}



/* ##########################   Services  Page  ############################  */

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}
.service {
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s linear;
}
.service-img img {
    object-fit: contain;
    height: 280px;
}
.service h3 {
    font-size: 24px;
    color: var(--color-one);
}
.service:hover h3 {
    color: var(--color-three);
    transition: all 0.3s linear;
}
.service:hover {  
    box-shadow: 0 0.125rem 0.375rem rgba(206, 130, 241, 0.05), 0 0.5rem 1.2rem rgba(206, 130, 241, 0.2);
    transition: all 0.3s linear;
}

.review-slider .splide__track {
    padding: 50px 5px;
}
.review-slider .splide__arrow {
    transform: unset;
    top: unset;
    bottom: -10px;
    background: transparent;
}
.review-slider .splide__arrow svg {
    fill: var(--color-three);
}
.review-slider .splide__arrow--prev {
    left: unset;
    right: 40px;
}
.review-card {
    border-radius: 4px;
    background: var(--color-two);
    box-shadow: 0 0.125rem 0.375rem rgba(0, 0, 0, 0.05), 0 0.5rem 1.2rem rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-height: 225px;
}
.review-card:hover {  
    box-shadow: 0 0.125rem 0.375rem rgba(206, 130, 241, 0.05), 0 0.5rem 1.2rem rgba(206, 130, 241, 0.2);
    transition: all 0.3s linear;
}
.review-card p {
    text-align: left;
    width: 100%;
}
.client {
    display: flex;
    align-items: center;
    gap: 10px;
}
.client-img img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}
.client h4 {
    font-size: 17px;
    font-weight: 500;
}
.client h5 {
    font-size: 14px;
    font-weight: 400;
    color: grey;
}



/* ##############################   responsive  ###################################  */

@media screen and (max-width:767px) {
    
    /* home --------------------------------------------  */

    /* common  */
    .container {
        padding: 0 15px;
    }
    section {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 32px;
    }

    /* hero  */
    .hero-content {
        flex-direction: column;
        padding: 60px 0;
    }
    .hero-content h1 {
        font-size: 35px;
    }
    .hero-content p {
        width: 100%;
    }
    .hero-left, .hero-right {
        width: 100%;
    }
    .site-logo {
        height: 40px;
    }

    /* achievment  */
    .achievment-content {
        grid-template-columns: repeat(1, 1fr);
    }
    .counter {
        gap: 0;
    }

    /* service  */
    .service-content {
        padding: 50px 20px;
    }
    .service-card-wrap {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }
    .service-content p {
        width: 100%;
    }

    /* about  */
    .about-content {
        flex-direction: column;
    }
    .about-left, .about-right {
        width: 100%;
    }
    .value-card {
        padding: 20px 10px;
    }

    /* portfolio  */
    .portfolio-section p {
        width: 100%;
    }

    /* footer  */
    .footer-content {
        grid-template-columns: repeat(1, 1fr);
    }

    
    /* contact --------------------------------------------  */
    .page-top-section {
        height: 250px;
    }
    .page-title {
        font-size: 32px;
        padding-top: 80px;
    }
    .contact-pg-content {
        flex-direction: column;
    }
    .contact-left, .contact-right {
        width: 100%;
    }
    .contact-line {
        padding: 10px;
    }

    
    /* service --------------------------------------------  */
    .service-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .service-img img {
        height: 180px;
    }
    .review-slider .splide__track {
        padding-top: 30px;
    }
}


@media screen and (max-width:991px) and (min-width:768px) {
    
    /* home --------------------------------------------  */

    /* hero  */
    .hero-content {
        flex-direction: column;
    }
    .hero-left {
        width: 100%;
    }
    .hero-right {
        width: 70%;
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 40px;
    }
    .achievment-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-content {
        gap: 1px;
    }

    
    /* contact --------------------------------------------  */
    .page-title {
        font-size: 35px;
        height: 300px;
    }
    .contact-pg-content {
        flex-direction: column;
    }
    .contact-left, .contact-right {
        width: 100%;
    }
    
}


@media screen and (max-width:400px) {
    
    .site-logo {
        height: 35px;
    }
    .menu-toggle .burger-icon svg, .menu-toggle .close-icon svg {
        width: 25px;
    }
    .page-title {
        font-size: 30px;
    }
    .contact-pg-content {
        padding: 15px;
    }
    .contact-line {
        padding: 10px 0;
        gap: 10px;
    }
    .contact-line span {
        width: 40px;
        height: 40px;
    }
    .contact-line i {
        font-size: 18px;
    }

    .service {
        padding: 10px;
    }

}


@media screen and (max-width:1250px) and (min-width:992px) {

    .review-card {
        min-height: 273px;
    }
}
