body {
    user-select: none;
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: #000000;
    color: white;
    margin: 0 auto;
    padding-bottom: 5%;
    overflow-x: hidden;
    max-width: 1200px;
}

.navbar {
    background-color: #0000008f !important;
    width: 100%;
    padding: 0;
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: white !important;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 12px;
    line-height: 29px;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-style: normal;
}

.nav-link:hover {
    color: #ddd !important;
}

.default-btn {
    background-color: #1D57E9;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.default-btn:hover {
    background-color: #1d57e9b2;
}


#section-1 {
    height: 80vh;
    margin-top: 60px;
}

#section-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("/storage/images/section-1.png");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: -1;
}

#section-1 > div:nth-child(2) > div > div{
    position: absolute;
    top: 20%;
}

#message {
    margin-top: 10px;
    font-size: 1.2em;
    color: red;
    display: none;
    padding: 10px 20px;
    border-radius: 20px;
}

#message.success-message {
    background-color: #1de938;
    color: white;
}

#message.error-message {
    background-color: #bd2121e0;
    color: white;
}

#section-3 {
    padding-left: 10%;
    user-select: none;
}

#testimonials-section {
    display: flex;
    width: 90%;
    overflow-x: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#testimonials::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 auto;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 2rem;
    margin: 0.5rem;
    width: 30%;
    text-wrap-mode: wrap;
}

.testimonial {
    border: none !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #1D57E9 0%, #03F891 100%);
    padding: 20px !important;
}

#section-4 {
    margin: 10% 20%;
    color: white;
}

.part {
    position: relative;
    padding: 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #03F891;
    opacity: 0.5;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
}

.number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
}

#step-1-row .overlay {
    clip-path: polygon(0% 50%, 5% 0%, 50% 0%, 6% 2%, 2% 50%, 6% 98%, 90% 100%, 5% 100%, 0% 50%);
}

#step-2-row .overlay {
    clip-path: polygon(100% 50%, 95% 100%, 10% 100%, 94% 98%, 98% 50%, 94% 2%, 10% 0%, 95% 0%, 100% 50%);
}

#step-3-row .overlay {
    clip-path: polygon(0% 50%, 5% 0%, 50% 0%, 6% 2%, 2% 50%, 6% 98%, 90% 100%, 5% 100%, 0% 50%);
}

#step-4-row .overlay {
    clip-path: polygon(100% 50%, 95% 100%, 50% 100%, 94% 98%, 98% 50%, 94% 2%, 10% 0%, 95% 0%, 100% 50%);
}

#step-1-row .content,
#step-2-row .content,
#step-3-row .content,
#step-4-row .content {
    margin-left: 3%;
    margin-right: 3%;
}

.content .col-10 {
    align-self: center;
}

.content .col-10.text-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}


#section-5 {
    color: #000000;
}

.image-box-container {
    position: relative;
    display: inline-block;
}

.rounded-image {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    position: absolute;
    top: -6%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.content-box {
    border-radius: 30px;
    padding: 20px 40px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    position: relative;
    z-index: 1;
    margin-top: 60px;
    /* Adjust based on the image size and overlap */
}

.content-box p:nth-child(1) {
    text-align: left;
    margin-top: 15%;
}

.rating {
    font-size: 40px;
    color: #FFD700;
    margin-bottom: 10px;
}


#section-6 {
    width: 60%;
    margin: 0 auto;
    margin-top: 5%;
    background: linear-gradient(180deg, #03F891 0%, #1D57E9 100%);
    color: white;
    text-align: center;
    border-radius: 40px;
    display: flex;
    flex-direction: column;

}

.content-wrapper {
    background-color: #000000;
    padding: 30px;
    margin: 1%;
    border-radius: 30px;
}

.content-wrapper h2 {
    margin-bottom: 20px;
}

.content-wrapper p {
    margin-bottom: 30px;
}

.contact-form {
    padding: 20px;
    border-radius: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.form-group label {
    width: 120px;
    margin-right: 10px;
    text-align: right;
}

.form-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
}

.btn-primary {
    background-color: #03F891;
    border: none;
    padding: 10px 40px;
    color: white;
    border-radius: 20px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #1D57E9;
}

.form-content {
    width: 70%;
    margin: 0 auto;
}


#section-7 {
    padding: 50px 0;
    margin-top: 5%;
}

.image-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rounded-image {
    border-radius: 10px;
    object-fit: cover;
}

.text-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 20px;
}

.text-column h2 {
    margin-bottom: 20px;
}

.text-column p {
    margin-bottom: 30px;
}

.button-row {
    display: flex;
    gap: 15px;
}

.custom-btn {
    background-color: #467FF7;
    border: none;
    padding: 15px 40px;
    color: white;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #1D57E9;
}


.rounded-image.logo {
    border-radius: 10px;
    width: 300px;
    height: 300px;
    object-fit: cover;
}

@media only screen and (max-width: 1024px) {
    #section-1::before {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("/storage/images/section-1.png");
    }

    #section-3 .testimonial {
        width: 35%;
    }

    .w-50 {
        width: unset !important;
    }

    .content-box {
        height: 400px;
    }

    .form-content {
        width: unset;
    }
}


@media only screen and (max-width: 768px) {
    #section-1 .offset-6 {
        margin: 0 auto;
        width: unset;
    }

    #section-1 .m-5 {
        margin: 0 !important;
    }

    #section-1 > div:nth-child(2) > div > div{
        top: 20;
        left: 23%;
    }

    #section-3 .testimonial {
        width: 45%;
    }

    .w-50 {
        width: unset !important;
    }

    .content-box {
        font-size: 14px;
        height: 400px;
    }

    .clients-say {
        margin-top: 25% !important;
    }

    .rounded-image.logo {
        width: 200px;
        height: 200px;
    }

    #about-codenesslab-logo {
        height: fit-content;
    }

}

@media only screen and (max-width: 675px) {
    .content-box {
        height: 370px;
    }

    .clients-say {
        font-size: 11px;
        margin-top: 35% !important;
    }

    #section-6 {
        width: unset;
    }

}

@media only screen and (max-width: 590px) {
    #section-2>div>div.col-6.d-flex.flex-column.justify-content-center.align-items-start {
        all: unset;
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("/storage/images/section-2.png");
        background-repeat: no-repeat;
        background-size: cover;
    }

    #section-2-image {
        display: none !important;
    }

    #section-4 .part>div.row.content {
        flex-direction: column;
    }

    #section-4 .part>div.row.content .even {
        align-self: self-end;
        margin-right: 5%;
    }

    #section-4 .part>div.row.content .odd {
        margin-left: 5%;
    }

    #section-5 .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #section-5 .row .col-6.text-center {
        flex: 0 0 90% !important;
        max-width: unset !important;
        margin-bottom: 10%
    }

    .content-box {
        height: 370px;
    }

    .clients-say {
        font-size: 14px;
        margin-top: 20% !important;
    }

    #section-7 .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about-codenesslab-logo {
        margin-bottom: 40%;
    }

}


@media only screen and (max-width: 510px) {
    #section-1>div:nth-child(2)>div {
        flex: 0 0 90% !important;
        max-width: unset !important;
    }

    #section-3 .testimonial {
        width: 80%;
        font-size: 12px;
    }

    .row.content p {
        font-size: 12px;
    }

    #about-codenesslab-logo {
        margin-bottom: 50%;
    }

    .button-row {
        display: flex;
        flex-direction: column !important;
    }

    .contact-form {
        padding: 0
    }

    .form-group {
        flex-direction: column;
    }

    .col-10.text-right {
        margin-left: 50px;
    }

    .col-10.text-left {
        margin-right: 50px;
    }

    .number.even {
        margin-right: 35px !important;
    }

}

@media only screen and (max-width: 375px) {
    .clients-say {
        margin-top: 25% !important;
    }

    #section-1 > div:nth-child(2) > div > div{
        top: 10%;
    }

    .content-box {
        height: 420px;
    }

    #about-codenesslab-logo {
        margin-bottom: 60%;
    }
}



/* Fade-in effect for sections */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#section-1,
#section-2,
#section-3,
#section-4,
#section-5,
#section-6,
#section-7 {
    animation: fadeIn 1s ease-in-out;
}

/* Hover effects for buttons */
.default-btn,
.btn-primary,
.custom-btn {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.default-btn:hover,
.btn-primary:hover,
.custom-btn:hover {
    transform: scale(1.05);
}

/* Slide-in effect for testimonials */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial {
    animation: slideIn 0.5s ease-in-out;
}

/* Add a slight bounce effect to the rating stars */
.rating {
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.overlay_spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 84%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    position: absolute;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    width: 60px;
    height: 60px;
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-top: 8px solid #ffffff;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


#services-nav:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}


.dropdown-menu {
    padding-top: 2%;
    margin-top: -2%;
    padding-bottom: 0;
    opacity: 0;
    display: block;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    background-color: #000000c7;
}

.dropdown-menu a {
    color: white !important;
    font-family: "Montserrat";
    font-weight: 500;
    font-size: 12px;
    line-height: 29px;
    letter-spacing: 0px;
    text-transform: uppercase;
    font-style: normal;
}

.dropdown-menu a:hover {
    background-color: #ffffff75;
}
