/* font-size for long h1 words */
.fs-custom {
    font-size: clamp(19px, 5vw, 35px);
}

/* form success POPup */
.bg-dark-custom {
    background-color: rgb(50, 50, 50);
}

#btn-close-popup2 {
    cursor: pointer;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

.svg-background {
    background-color: var(--bs-primary);
    border-radius: 50%;
    padding: 10px;
}

#formPopup {
    display: none;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--bs-light);
    z-index: 1000;
    text-align: center;
}

@media (max-width: 768px) {
    #formPopup {
        width: 100%;
        top: 0;
    }

    .success-text {
        font-size: 13px;
    }
}

/* reviews */
.testimonial {
    background-color: var(--bs-white);
    color: var(--bs-secondary);
    border-radius: 10px;
    padding: 2rem 1rem 1rem;
    margin-top: 3rem;
    position: relative;
}

.testimonial .client-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid  var(--bs-primary);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.quote-icon {
    font-size: 2rem;
    color: var(--bs-primary);
}

.client-name {
    color: var(--bs-primary);
    font-weight: bold;
}

/* services */
.square {
    height: 130px;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 50%;
}

.square .number {
    height: 50px;
    width: 50px;
    line-height: 50px;

    /* Match the height */
    border-radius: 50%;
}

/* products solutions */
.clipped-img {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
}

.solution-card {
    transition: transform 0.3s ease-in-out ;
}

.solution-card:hover {
    transform: scale(1.03);
}

/* information block */
.float-left {
    float: left;
}

/* hero */
.avant-hero {
    position: relative;
    overflow: hidden;
}

.organic-shape {
    position: absolute;
    width: 800px;
    height: 800px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -300px;
    right: -300px;
    transform: rotate(45deg);
    z-index: 1;
    opacity: 0.1;
}

.dynamic-line {
    position: absolute;
    height: 3px;
    width: 150%;
    background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
    top: 40%;
    left: -20%;
    transform: rotate(-10deg);
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    padding: 60px 0;
}

.image-container {
    position: relative;
    margin-left: -100px;
    z-index: 2;
}

.main-image {
    width: 120%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: -30px 30px 0px rgba(0, 0, 0, 0.1);
    transform: rotate(-5deg);
    border: 8px solid white;
}

.shape-overlay {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 15px solid var(--bs-primary);
    bottom: -50px;
    right: -50px;
    transform: rotate(15deg);
    z-index: -1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--bs-dark);
}

.hero-title span {
    color: var(--bs-secondary);
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: var(--bs-primary);
    z-index: -1;
    opacity: 0.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}

.hero-text {
    font-size: 1.2rem;
    color: #636e72;
    margin-bottom: 2rem;
    max-width: 500px;
}

.btn-organic {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
    margin-right: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .image-container {
        margin-left: -50px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .organic-shape {
        width: 600px;
        height: 600px;
        top: -200px;
        right: -200px;
    }

    .image-container {
        margin-left: 0;
        margin-top: 50px;
    }

    .main-image {
        width: 100%;
        transform: rotate(0);
    }

    .shape-overlay {
        display: none;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .organic-shape,
    .dynamic-line {
        display: none;
    }

    .content-wrapper {
        text-align: center;
        padding: 40px 0;
    }

    .hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .btn-container {
        justify-content: center;
    }
}

/* HEADER */
/* arrow */
.arrow {
    display: inline-block;
    transform: scale(1.3);
    transform-origin: center;
}

/* Hidden checkbox */
.dropdown-toggle {
    display: none;
}

/* Label acts like a link */
.dropdown-label {
    cursor: pointer;
}

/* Dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
    min-width: 150px;
    z-index: 100;
}

.dropdown-menu li {
    margin: 0.5rem 0;
}

.dropdown-menu li a {
    color: black;
    text-decoration: none;
}

/* Show dropdown when checkbox is checked */
.dropdown-toggle:checked + .dropdown-label + .dropdown-menu {
    display: block;
}

.burger-toggle {
    display: none;
}

.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    margin-left: 20px;
    position: relative;
    z-index: 101;
}

.burger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}

@media (min-width: 960px) {
    .nav {
        justify-content: flex-end;
    }
}

@media (max-width: 960px) {
    .header {
        justify-content: space-between;
        padding: 15px 20px;
        position: relative;
    }

    .dropdown-menu {
        left: 0;
        min-width: 250px;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: auto;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: all 0.5s ease;
        z-index: 100;
        padding-bottom: 40px;
        padding-top: auto;
    }

    .nav ul {
        flex-direction: column;
        gap: 30px !important;
        padding-left: 30px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Анимация бургер-иконки */
    #burger-toggle:checked ~ .burger-menu span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #burger-toggle:checked ~ .burger-menu span:nth-child(2) {
        opacity: 0;
    }

    #burger-toggle:checked ~ .burger-menu span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }

    /* Показываем меню при активации чекбокса */
    #burger-toggle:checked ~ .nav {
        left: 0;
    }
}