:root {
    --Primary-color: hsl(180, 66%, 49%);
    --DrakViolet-color: hsl(257, 27%, 26%);
    --Secondary-color: hsl(0, 87%, 67%);
    --Gray-color: hsl(0, 0%, 75%);
    --Grayish-color: hsl(257, 7%, 63%);
    --VeryDarkBlue-color: hsl(255, 11%, 22%);
    --VeryDarkViolet-color: hsl(260, 8%, 14%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Poppins', sans-serif;
}

body {
    font-size: 18px;
}

.contianer {
    width: 90%;
    margin: auto;
}
header{
    padding-bottom: 6rem;
    overflow: hidden;
}
header nav  {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-block: 20px;
    position: relative;
}
header nav  .links {
    position: absolute;
    top: 70px;
    line-height: 3.3;
    background-color: var(--DrakViolet-color);
    z-index: 999;
    text-align: center;
    width: 100%;
    left: -200%;
    border-radius: 10px;
    padding: 4rem;
    overflow: hidden;
}
header nav  ul {
    list-style: none;
    font-weight: 600;
}
header nav  .bars span {
    width: 33px;
    height: 4px;
    background-color: var(--VeryDarkViolet-color);
    display: block;
    margin-bottom: 5px;
}
header nav  .link li a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}
header nav  .link li:nth-of-type(3) {
    border-bottom: 1px solid var(--Grayish-color);
}
header nav  .link li.get {
    font-size: 1rem ;
    padding: 0;
}
.header--body {
    display: flex;
    justify-content: space-between;
    flex-direction: column-reverse;
}
.header--body .text h1 {
    font-size: 2rem;
    color: var(--VeryDarkBlue-color);
    font-weight: bold;
}
.header--body .text p {
    color: var(--Grayish-color);
    line-height: 1.5;
    margin: 7px 0 20px 0;
    font-size: 1rem;
}
.header--body .img {
    position: relative;
    right: -22%;
    margin-bottom: 3rem;
}
.header--body .img img {
    width: 100%;
    height: 100%;
}
.get{
    background-color: var(--Primary-color);
    padding: 7px 20px;
    color: #fff;
    border-radius: 2rem;
    outline: none;
    font-size: 1.2rem;
    border: none;
}
.get:hover {
    opacity: 0.7;
    transition: 0.6s;
    font-size: 1.3rem;
    transform: translateX(10px);
}
article {
    background-color: #EFF1F7;
    text-align: center;
    padding: 3rem 0 8rem;
}
article .contianer {
    position: relative;
}
article .shortly {
    background: url('images/bg-shorten-mobile.svg') var(--DrakViolet-color);
    border-radius: 10px;
    position: relative;
    top: -6rem;
    height: 8rem;
    padding: 1rem;
    display: grid;
    gap: 10px;
    width: 100%;
}
article .shortly input,
article .shortly button {
    border: none;
    height: 40px;
    padding: 10px;
    outline: none;
    border-radius: 5px;
    flex-basis: 70%;
    font-size: 1rem;
    min-width: 100px;
}
article .newlink {
    background: #fff;
    display: flex;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
article .short p {
    color: #333;
    min-width: 140px;
    word-wrap: break-word;
}
article .short button {
    padding: 10px;
    min-width: 60px;
    width: 150px;
    background: var(--Primary-color);
    font-size: 1.2rem;
    border: none;
    outline: none;
    border-radius: 7px;
    color: #fff;
}
article .short button:hover {
    color: var(--Secondary-color);
}
article .text{
    margin: 4rem 0;
}
article .text h2 {
    margin: 20px;
    color: var(--VeryDarkBlue-color);
    font-size: 20px;
}
article .text p {
    width: 90%;
    margin: 10px auto;
    line-height: 1.3;
    color: #555;
    font-size: 1rem;
}
.compeny .contianer{
    display: grid;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
}
.compeny section {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    padding-top: 2.3rem;
    position: relative;
}
.compeny section:not(:last-of-type)::after{
    content: "";
    height: 64px;
    width: 13px;
    background-color: var(--Primary-color);
    position: absolute;
    bottom: -4rem;
    left: 47%;
}
.compeny section:nth-of-type(2){
    top: 3rem;
}
.compeny section:last-of-type {
    top: 6rem;
}
.compeny section h3 {
    margin: 10px 0;
    color: var(--VeryDarkBlue-color)
}
.compeny section .img {
    background-color: var(--DrakViolet-color);
    border-radius: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -2.3rem;
    left: 38%;
}
.compeny section p {
    color: #555;
    line-height: 1.5;
    font-size: 1rem;
}
.compeny section:hover {
    background: var(--DrakViolet-color);
}
.compeny section:hover h3{
    color: #fff;
    transition: 0.4s;
}
.compeny section:hover p{
    color: #fff;
    transition: 0.4s;
}
.compeny section:nth-of-type(2):hover {
    top: 2.5rem;
    transition: 0.5s linear;
}
.compeny section:last-of-type:hover {
    top: 5rem;
    transition: 0.5s linear;
}
.boost {
    padding: 3rem 0;
    text-align: center;
    line-height: 2;
    background: url('images/bg-boost-mobile.svg') var(--DrakViolet-color);
    color: #fff;
    text-transform: uppercase;
}
footer {
    text-align: center;
    padding: 3rem 0;
    background: var(--VeryDarkViolet-color);
    color: #EFF1F7;
}
footer ul {
    list-style: none;
    line-height: 3;
    margin-top: 1.5rem;
}
footer ul li:not(:first-of-type){
    color: var(--Grayish-color);
    font-size: 1rem;
}
footer ul li:not(:first-of-type):hover {
    background-color: var(--Primary-color);
    color: var(--VeryDarkBlue-color);
    font-weight: bold;
    transition: 0.5s;
    width: 130px;
    margin: auto;
    border-radius: 10px;
}
footer .icons {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
footer .icons img:hover {
    background: var(--Primary-color);
    padding: 2px;
    transition: 0.2s;
    border-radius: 10px;
}
.attribution {
    padding: 1rem 0;
    font-size: 11px;
    text-align: center;
}
.attribution a {
    color: hsl(228, 45%, 44%);
}

@media (min-width: 501px) and (max-width: 768px) {
    .compeny section:not(:last-of-type)::after {
        left: 44%;
    }
    article .shortly {
        height: 5.2rem;
        padding: 1.2rem;
        grid-template-columns: 70% 30%;
    }
    article .shortly input , article .shortly button{
        height: 50px;
    }
    footer nav {
        display: flex;
        gap: 10px;
        justify-content: space-evenly;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header nav  .links {
        display: block;
        background: none;
        top: 0.2rem;
        line-height: 1;
        padding: 1rem;
        width: 70%;
        left: 35%;
    }
    header nav  .bars {
        display: none;
    }
    header nav  ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header nav .link li a {
        color: var(--VeryDarkViolet-color);
        font-size: 1rem;
        
    }
    header nav .link li a:hover {
        color: var(--Primary-color);
        transition: 0.5s;
        display: block;
        padding-bottom: 5px;
        border-bottom: 2px solid var(--Primary-color);
    }
    header nav .link li:nth-of-type(3) {
        border: none;
    }
    header nav  .link li.get {
        font-size: 1.2rem ;
        padding: 7px 20px;
    }
    .header--body {
        flex-direction: row;
    }
    .header--body .text {
        padding: 2rem;
    }
    .header--body .text h1 {
        font-size: 2.3rem;
    }
    .header--body .text p {
        font-size: 1.2rem;
    }
    .header--body .img {
        right: -13%;
    }
    article .shortly {
        background: url('images/bg-shorten-desktop.svg') var(--DrakViolet-color);
        height: 5.5rem;
        padding: 1.4rem;
        grid-template-columns: 70% 30%;
        margin: 0 auto;
    }
    article .shortly input , article .shortly button{
        height: 55px;
    }
    .compeny .contianer {
        grid-template-columns: repeat(3, 1fr);
    }
    .compeny section:not(:last-of-type)::after {
        left: 100%;
        top: 50%;
        height: 13px;
        width: 64px;
    }
    .compeny section .img {
        left: 1rem;
    }
    .compeny section h3 {
        font-size: 60%;
    }
    .compeny section p {
        font-size: 60%;
    }
    .compeny section:nth-of-type(2):hover {
        top: 1rem;
    }
    .compeny section:last-of-type:hover {
        top: 3rem;
    }
    .boost {
        background: url('images/bg-boost-desktop.svg') var(--DrakViolet-color);
        font-size: 1.3rem;
    }
    footer nav {
        display: flex;
        gap: 10px;
        justify-content: space-evenly;
        flex-basis: 80%
    }
    footer .flexx {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
}
@media (min-width: 1025px){
    header nav  .links {
        display: block;
        background: none;
        top: 0.2rem;
        line-height: 1;
        padding: 1rem;
        width: 65%;
        left: 35%;
    }
    header nav  .bars {
        display: none;
    }
    header nav  ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header nav .link li a {
        color: var(--VeryDarkViolet-color);
        font-size: 1.1rem;
    }
    header nav .link li a:hover {
        color: var(--Primary-color);
        transition: 0.5s;
        display: block;
        padding-bottom: 5px;
        border-bottom: 2px solid var(--Primary-color);
    }
    header nav .link li:nth-of-type(3) {
        border: none;
    }
    header nav .link li:nth-of-type(4) {
        padding-left: 5rem;
    }
    header nav  .link li.get {
        font-size: 1.2rem ;
        padding: 7px 20px;
    }
    .header--body {
        flex-direction: row;
    }
    .header--body .text {
        padding: 2.4rem;
    }
    .header--body .text h1 {
        font-size: 2.8rem;
    }
    .header--body .text p {
        font-size: 1.3rem;
        margin: 1.4rem 0;
    }
    .header--body .img {
        right: -13%;
    }
    article .shortly {
        background: url('images/bg-shorten-desktop.svg') var(--DrakViolet-color);
        height: 6rem;
        padding: 1.5rem;
        grid-template-columns: 70% 30%;
        margin: 0 auto;
    }
    article .shortly input , article .shortly button{
        height: 55px;
    }
    article .text h2 {
        font-size: 2rem;
    }
    article .text p {
        font-size: 1.2rem;
        width: 60%;
    }
    .compeny .contianer {
        grid-template-columns: repeat(3, 1fr);
    }
    .compeny section {
        padding: 2.5rem;
    }
    .compeny section:not(:last-of-type)::after {
        left: 100%;
        top: 50%;
        height: 13px;
        width: 64px;
    }
    .compeny section .img {
        left: 1rem;
    }
    .compeny section h3 {
        font-size: 1.5rem;
    }
    .compeny section p {
        font-size: 1.1rem;
    }
    .compeny section:nth-of-type(2):hover {
        top: 1rem;
    }
    .compeny section:last-of-type:hover {
        top: 3rem;
    }
    .boost {
        background: url('images/bg-boost-desktop.svg') var(--DrakViolet-color);
        font-size: 1.3rem;
    }
    footer nav {
        display: flex;
        gap: 10px;
        justify-content: space-evenly;
        flex-basis: 80%
    }
    footer .flexx {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
}
